All of lore.kernel.org
 help / color / mirror / Atom feed
From: fengchengwen <fengchengwen@huawei.com>
To: Chengwen Feng <chengwen.feng@linux.dev>, <thomas@monjalon.net>,
	<stephen@networkplumber.org>
Cc: <aconole@redhat.com>, <dev@dpdk.org>
Subject: Re: [PATCH v5] devtools: support local opencode agent for patch review
Date: Fri, 7 Aug 2026 11:32:53 +0800	[thread overview]
Message-ID: <21ea27ff-513c-425e-8dfd-2a7fc4cee626@huawei.com> (raw)
In-Reply-To: <20260807031104.2503404-1-chengwen.feng@linux.dev>

On 8/7/2026 11:11 AM, Chengwen Feng wrote:
> From: Chengwen Feng <fengchengwen@huawei.com>
> 
> Currently review-patch.py only supports cloud AI providers
> (Anthropic, OpenAI, xAI, Google) via REST API, requiring API keys.
> 
> Add a --via option that invokes the locally installed opencode CLI as
> the review runner instead of making HTTP calls. opencode reads
> AGENTS.md from the DPDK project directory automatically, needing no
> configuration beyond opencode on PATH.
> 
> The --via and -p/--provider options are independent -- via routes to
> the local agent mode while -p continues to use the cloud API path.
> 
> Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
> Acked-by: Morten Brørup <mb@smartsharesystems.com>
> ---
> v5: Use linux.dev mailbox to send email and update mailmap
> v4: Fix AI review comments with Claude Opus which provided by Stephen
> v3: Rebase main to fix apply error
> v2: Address comments from Stephen, including: not arise
> FileNotFoundError and more clarify.
> 
> ---
>  .mailmap                            |   2 +-
>  devtools/ai/review-patch.py         | 305 ++++++++++++++++++++++------
>  doc/guides/contributing/patches.rst |  10 +
>  3 files changed, 249 insertions(+), 68 deletions(-)
> 
> diff --git a/.mailmap b/.mailmap
> index fcb3d1bb3f..d86a09b5b3 100644
> --- a/.mailmap
> +++ b/.mailmap
> @@ -270,7 +270,7 @@ Chengfei Han <han.chengfei@zte.com.cn>
>  Chengfeng Ye <cyeaa@connect.ust.hk>
>  Chenghu Yao <yao.chenghu@zte.com.cn>
>  Chenglian Sun <sunchenglian@loongson.cn>
> -Chengwen Feng <fengchengwen@huawei.com>
> +Chengwen Feng <fengchengwen@huawei.com> <chengwen.feng@linux.dev>

For this new email address:
Acked-by: Chengwen Feng <fengchengwen@huawei.com>



      reply	other threads:[~2026-08-07  3:33 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260703091902.525837-1-datshan@qq.com>
2026-07-06  6:29 ` [PATCH v2] devtools: support local opencode agent for patch review datshan
2026-07-25  8:43 ` [PATCH v3] " datshan
2026-08-04  8:41   ` fengchengwen
2026-08-04 12:22   ` Morten Brørup
2026-08-04 16:18   ` Stephen Hemminger
2026-08-05  6:12 ` [PATCH v4] " datshan
2026-08-07  3:11 ` [PATCH v5] " Chengwen Feng
2026-08-07  3:32   ` fengchengwen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21ea27ff-513c-425e-8dfd-2a7fc4cee626@huawei.com \
    --to=fengchengwen@huawei.com \
    --cc=aconole@redhat.com \
    --cc=chengwen.feng@linux.dev \
    --cc=dev@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.