[PATCH v3] devtools: support local opencode agent for patch review
Morten Brørup
mb at smartsharesystems.com
Tue Aug 4 14:22:47 CEST 2026
> From: datshan at qq.com [mailto:datshan at qq.com]
> Sent: Saturday, 25 July 2026 10.44
> From: Chengwen Feng <fengchengwen at 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 at huawei.com>
>
> ---
> v3: Rebase main to fix apply error
> v2: Address comments from Stephen, including: not arise
> FileNotFoundError and more clarify.
> ---
I have only skimmed this, but
the concept of local agent support deserves a big fat:
Acked-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list