Opencode ACP Tracking
npm install @widat/opencode-acp-trackingopencode.json (OpenCode config):
json
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"edit": "ask"
},
"plugin": ["@widat/opencode-acp-tracking"]
}
`
Then run:
`bash
opencode
`
Wait until it finishes with no errors.
Edit setting.json (Zed config):
`json
{
"agent_servers": {
"Opencode Tracking": {
"type": "custom",
"command": "C:/Program Files/nodejs/node.exe",
"args": [
"C:/Users/[change_me]/.cache/opencode/node_modules/@widat/opencode-acp-tracking/dist/zed/agent.js"
]
}
}
}
`
Open Opencode Tracking from the External Agent panel. Wait until you see the message:
Message Opencode Tracking - @ to include context.
For test this plugin, do not prompt from the Zed thread. This is only a bridge connection.
Test by running prompts directly in the OpenCode CLI.
This project is for education only. Use at your own risk.
Changelog
$3
- Fix issue false tracking
- Fix logging flow
$3
- Fix issue double tracking
$3
- Fix issue false tracking
$3
- Auto detect agent server is running.
$3
- Read opencode.json configuration to understand permission settings.
- Support permission.edit with allow or ask`.