anomalyco / anomalyco/opencode
agent list prints every agent's full resolved permission rules (8,600+ lines) instead of an inventory
@neriousy is already working on this.
Since Aug 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
opencode agent list pretty-prints every agent's fully expanded inherited permission ruleset, one giant block per agent. On this setup that is 8,634 lines / 222 KB for a routine inventory question. The size makes the command hard to use directly and overflows the output limits of coding-agent harnesses that shell out to it, which is how we keep hitting it.
A one-line summary per agent (name, model, description) with the full resolved ruleset behind a --verbose flag would cover both needs. opencode debug agent <name> already gives the per-agent detail and is what we use as the workaround.
Happy to put up a small PR if you confirm which direction you'd prefer.
OpenCode version
1.18.23 (brew tap, macOS; behavior unchanged since at least 1.18.4, and packages/opencode/src/cli/cmd/agent.ts's list handler hasn't changed on dev since June)
Steps to reproduce
- Have a config with a normal handful of agents
opencode agent list | wc -cl- Observe ~8,600 lines / ~222 KB of expanded permission rules
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.