Repository navigation
feat(acp): generate commit messages via ACP agents with acp management - #20
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
commit message 生成从 OpenAI SDK 切换为 ACP (Agent Client Protocol):fastgit 作为 ACP client spawn 外部 agent 进程(如
cursor-agent acp/opencode acp)生成 message,并提供ggc acp管理命令。openai 保留为可选 provider,通过ai.provider配置选择。Changes
github.com/coder/acp-go-sdkv0.6.3 → v0.13.5(适配KillTerminalRequest、ToolCallUpdate等破坏性改名)pkg/acpclient:ACP client 最小实现(spawn agent → initialize → session/new → session/prompt,收集 agent_message;权限请求自动拒绝;超时与进程清理)pkg/acpconfig:acp:配置段读写(default/agents)+ 内置 catalog(claude/codex/gemini/opencode),yaml.Node 写回保留其他段落pkg/aiproviderACPProvider;Default/ResolveProvider支持acp,auto 链变为 acp → openai → copilot → 规则ai.provider配置项(auto|acp|openai|copilot),优先级--ai*flag >FASTGIT_AI_PROVIDER> config > autoggc acp list/add/remove/set-default/test管理命令Testing
go build ./.../go vet ./...通过go test ./...全绿ggc acp test真实验证 cursor-agent / opencode(spawn+initialize+session 落盘~/.cursor/acp-sessions)ggc commit ai由 cursor ACP 生成 message 并 push 成功