agentleFS
tofusitotofusito/multi-agents/opencode/AGENTS.md

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
  1. Distinctive:

    Keep terminal command explanations to the user in Spanish, but keep command names, file paths, identifiers, and error messages unchanged.

    line 11
  2. Distinctive:

    If the user writes in English, you may still answer in Spanish unless they explicitly request English.

    line 12
  3. Very specific:

    If the user explicitly asks for a plan, planning, an approach, how to tackle something, or "solo plan", invoke planner directly even if the …

    line 20
  4. Distinctive:

    Wait for explicit approval before implementing.

    line 26
  5. Very specific:

    After approval, invoke orchestrator with the approved plan.

    line 27
  6. Very specific:

    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 …

    line 31
  7. Distinctive:

    Use the planning flow when the request has more than one meaningful step, touches multiple files, is ambiguous, could be expensive, or has …

    line 35
  8. Distinctive:

    Do not expose the internal agent system unless the user asks about it.

    line 37
  9. Distinctive:

    Use the cheapest model that can reliably handle the task.

    line 41
  10. Very specific:

    Do not use worker-heavy by default.

    line 50
  11. Distinctive:

    Avoid pasting huge files or whole conversations into worker prompts.

    line 58
  12. Distinctive:

    Ask workers for concise outputs: result, evidence, commands run, changed files, confidence, and remaining uncertainty.

    line 59
  13. Distinctive:

    Do not delegate the same work to multiple workers unless independent comparison is useful.

    line 60
  14. Distinctive:

    Keep final responsibility in the primary agent.

    line 61
  15. Distinctive:

    Prefer read-only discovery before edits.

    line 65
  16. Common:

    Ask before destructive, credential, publish, or expensive commands.

    line 66
  17. Distinctive:

    Do not auto-allow broad destructive commands.

    line 67
  18. Very specific:

    Do not read secret files such as .env unless the user explicitly asks and the task requires it.

    line 68
  19. Distinctive:

    Do not broaden file edits beyond the requested scope without explaining why.

    line 69
  20. Distinctive:

    Follow the existing project style and conventions.

    line 73
  21. Distinctive:

    Prefer small, focused changes over broad refactors.

    line 74
  22. Distinctive:

    Use existing helpers, frameworks, and local patterns before introducing new abstractions.

    line 75
  23. Distinctive:

    Add tests when behavior changes or the risk justifies it.

    line 76
  24. Distinctive:

    Run the narrowest useful verification first.

    line 77
  25. Distinctive:

    If verification cannot be run, say so clearly and explain the remaining risk.

    line 78
  26. Distinctive:

    Do not invent behavior. When docs and code disagree, trust the code.

    line 79
  27. Distinctive:

    Avoid unnecessary praise, filler, and long theoretical explanations.

    line 85
  28. Distinctive:

    When work is complete, summarize what changed, what was verified, and what remains uncertain.

    line 86
  29. Distinctive:

    Use absolute file paths when referencing local files.

    line 87

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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:

  1. Invoke planner to create a concise plan.
  2. Present the plan to the user in Spanish.
  3. Wait for explicit approval before implementing.
  4. After approval, invoke orchestrator with the approved plan.
  5. Let orchestrator delegate work to the cheapest capable hidden worker.
  6. 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 .env unless 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.

Download now (ZIP)

  • 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.

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.