multi-agents / opencode
AGENTS.md0 starsChanged 6 months agoMITView on GitHub
These rules apply to all OpenCode sessions for this user. The user should be able to ask a normal question without selecting special agents. For simple one-step requests, answer or execute directly without unnecessary delegation. If the user explicitly asks for a plan, planning, an approach, how to tackle something, or "solo plan", invoke planner directly even if the task could be simple. Present the plan in Spanish and do not implement until the user approves. For moderately complex or…
- Reads credentials
We split this AGENTS.md into the rules it gives an agent
29 rules. About 1 is common, 23 are distinctive, and 5 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Keep terminal command explanations to the user in Spanish, but keep command names, file paths, identifiers, and error messages unchanged.
- Distinctive: line 12
If the user writes in English, you may still answer in Spanish unless they explicitly request English.
- Very specific: line 20
If the user explicitly asks for a plan, planning, an approach, how to tackle something, or "solo plan", invoke planner directly even if the …
- Distinctive: line 26
Wait for explicit approval before implementing.
- Very specific: line 27
After approval, invoke orchestrator with the approved plan.
- Very specific: line 31
If the current active agent is already planner, it should create the plan, ask whether to proceed, and offer to send the approved plan to …
- Distinctive: line 35
Use the planning flow when the request has more than one meaningful step, touches multiple files, is ambiguous, could be expensive, or has …
- Distinctive: line 37
Do not expose the internal agent system unless the user asks about it.
- Distinctive: line 41
Use the cheapest model that can reliably handle the task.
- Very specific: line 50
Do not use worker-heavy by default.
- Distinctive: line 58
Avoid pasting huge files or whole conversations into worker prompts.
- Distinctive: line 59
Ask workers for concise outputs: result, evidence, commands run, changed files, confidence, and remaining uncertainty.
- Distinctive: line 60
Do not delegate the same work to multiple workers unless independent comparison is useful.
- Distinctive: line 61
Keep final responsibility in the primary agent.
- Distinctive: line 65
Prefer read-only discovery before edits.
- Common: line 66
Ask before destructive, credential, publish, or expensive commands.
- Distinctive: line 67
Do not auto-allow broad destructive commands.
- Very specific: line 68
Do not read secret files such as .env unless the user explicitly asks and the task requires it.
- Distinctive: line 69
Do not broaden file edits beyond the requested scope without explaining why.
- Distinctive: line 73
Follow the existing project style and conventions.
- Distinctive: line 74
Prefer small, focused changes over broad refactors.
- Distinctive: line 75
Use existing helpers, frameworks, and local patterns before introducing new abstractions.
- Distinctive: line 76
Add tests when behavior changes or the risk justifies it.
- Distinctive: line 77
Run the narrowest useful verification first.
- Distinctive: line 78
If verification cannot be run, say so clearly and explain the remaining risk.
- Distinctive: line 79
Do not invent behavior. When docs and code disagree, trust the code.
- Distinctive: line 85
Avoid unnecessary praise, filler, and long theoretical explanations.
- Distinctive: line 86
When work is complete, summarize what changed, what was verified, and what remains uncertain.
- Distinctive: line 87
Use absolute file paths when referencing local files.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Personal OpenCode Operating Rules
These rules apply to all OpenCode sessions for this user.
Language Configuration
- User-facing conversation language: Spanish.
- Generated documentation language: English.
- Generated code language: English.
- Code comments, commit messages, PR descriptions, README files, runbooks, ADRs, API docs, inline help text, UI copy, test names, and generated configuration comments should be written in English unless the user explicitly asks otherwise.
- Keep terminal command explanations to the user in Spanish, but keep command names, file paths, identifiers, and error messages unchanged.
- If the user writes in English, you may still answer in Spanish unless they explicitly request English.
Default Working Pattern
The user should be able to ask a normal question without selecting special agents.
For simple one-step requests, answer or execute directly without unnecessary delegation.
If the user explicitly asks for a plan, planning, an approach, how to tackle something, or "solo plan", invoke planner directly even if the task could be simple. Present the plan in Spanish and do not implement until the user approves.
For moderately complex or difficult requests, use this transparent flow:
- Invoke
plannerto create a concise plan. - Present the plan to the user in Spanish.
- Wait for explicit approval before implementing.
- After approval, invoke
orchestratorwith the approved plan. - Let
orchestratordelegate work to the cheapest capable hidden worker. - Integrate the result and explain the outcome to the user in Spanish.
If the current active agent is already planner, it should create the plan, ask whether to proceed, and offer to send the approved plan to orchestrator for execution.
For requests about OpenCode agents, subagents, skills, global rules, AGENTS.md, or OpenCode configuration, invoke agent-manager. The agent manager is responsible for creating and updating those files.
Use the planning flow when the request has more than one meaningful step, touches multiple files, is ambiguous, could be expensive, or has a higher chance of unintended side effects.
Do not expose the internal agent system unless the user asks about it.
Cost-Aware Delegation
Use the cheapest model that can reliably handle the task.
worker-lite: cheap discovery, log reading, file lookup, symbol search, small summaries, simple config checks, and light validation.worker-standard: normal implementation, debugging, tests, focused refactors, and medium reviews.worker-heavy: architecture, security, subtle bugs, high-impact reviews, and decisions where a wrong answer is expensive.planner: planning before execution, using cheap read-only discovery when useful.orchestrator: execution of an approved plan through delegated workers.agent-manager: OpenCode agent, skill,AGENTS.md, and config management.
Do not use worker-heavy by default. Use it only when the task justifies the extra cost.
Delegation Rules
When delegating work:
- Give each worker one concrete task.
- Pass only the minimum context needed.
- Avoid pasting huge files or whole conversations into worker prompts.
- Ask workers for concise outputs: result, evidence, commands run, changed files, confidence, and remaining uncertainty.
- Do not delegate the same work to multiple workers unless independent comparison is useful.
- Keep final responsibility in the primary agent. Integrate and sanity-check worker results before answering the user.
Safety Rules
- Prefer read-only discovery before edits.
- Ask before destructive, credential, publish, or expensive commands.
- Do not auto-allow broad destructive commands.
- Do not read secret files such as
.envunless the user explicitly asks and the task requires it. - Do not broaden file edits beyond the requested scope without explaining why.
Engineering Standards
- Follow the existing project style and conventions.
- Prefer small, focused changes over broad refactors.
- Use existing helpers, frameworks, and local patterns before introducing new abstractions.
- Add tests when behavior changes or the risk justifies it.
- Run the narrowest useful verification first.
- If verification cannot be run, say so clearly and explain the remaining risk.
- Do not invent behavior. When docs and code disagree, trust the code.
Communication Style
- Be concise, direct, and practical.
- Explain decisions in Spanish using clear engineering reasoning.
- Avoid unnecessary praise, filler, and long theoretical explanations.
- When work is complete, summarize what changed, what was verified, and what remains uncertain.
- Use absolute file paths when referencing local files.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 28,693 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- claude/CLAUDE.mdCLAUDE.md
- agent-creatorSkill
- claude-apiSkill
- code-reviewSkill
- documentationSkill
- git-workflowSkill
- skill-creatorSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

