MCPcopy Create free account
hub / github.com/diillson/chatcli / RunGatewayCoderOnce

Method RunGatewayCoderOnce

cli/agent_mode.go:1061–1063  ·  view source on GitHub ↗

RunGatewayCoderOnce runs the coder ReAct loop one-shot on a raw task for the messaging gateway: same engine and tools (create/edit files, run commands, iterate) but with the gateway persona layered on the system prompt so the answer is concise, chat-friendly prose. The caller is expected to have set

(ctx context.Context, task string)

Source from the content-addressed store, hash-verified

1059// cli.unattended so every confirmation auto-approves — the gateway must never
1060// block on a stdin prompt the daemon has no way to answer.
1061func (cli *ChatCLI) RunGatewayCoderOnce(ctx context.Context, task string) error {
1062 return cli.runCoderQuery(ctx, task, true)
1063}
1064
1065// runCoderQuery is the shared body for the coder one-shot entries. It runs the
1066// AgentMode ReAct loop under the coder profile and system prompt; gatewayPersona

Callers 1

Calls 1

runCoderQueryMethod · 0.95

Tested by

no test coverage detected