agentleFS
crazysscrazyss/linux-kernel-crash-debug/.agents/rules/agents.md

linux-kernel-crash-debug / rules

AGENTS.md9 starsChanged 8 months agoMIT-0View on GitHub

  • Deletes or force-pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. rohitg00/awesome-claude-code-toolkit★ 2.7k100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository3 other files it gives its agents.

The file

Show its rules and text

We split this agents.md into the rules it gives an agent

16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈15

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use a subagent for tasks that require focused expertise (security audit, performance analysis, test generation).

    line 4
  2. Distinctive:

    Use a subagent when the main task would exceed the context window if done inline.

    line 5
  3. Distinctive:

    Use a subagent for parallel work streams that do not depend on each other.

    line 6
  4. Distinctive:

    Do not use a subagent for simple, single-step tasks.

    line 7
  5. Very specific:

    Use /compact when approaching 60% of the context window.

    line 17
  6. Distinctive:

    Prefer reading specific file sections over entire files.

    line 18
  7. Distinctive:

    Use glob and grep to find relevant code before reading full files.

    line 20
  8. Distinctive:

    Start with the high-level structure before diving into details.

    line 23
  9. Distinctive:

    If a step fails, the previous steps should still be valid.

    line 31
  10. Distinctive:

    Use checklists to track progress on multi-step tasks.

    line 32
  11. Distinctive:

    Never run destructive commands (rm -rf, DROP TABLE, force push) without explicit confirmation.

    line 35
  12. Distinctive:

    Prefer reversible changes.

    line 37
  13. Distinctive:

    When uncertain, ask rather than guess.

    line 38
  14. Distinctive:

    When presenting options, list tradeoffs for each.

    line 42
  15. Distinctive:

    If something will take multiple steps, outline them upfront with estimated effort.

    line 43
  16. Distinctive:

    After completing a task, summarize what changed and what to verify.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Agent Rules

When to Use Subagents

  • Use a subagent for tasks that require focused expertise (security audit, performance analysis, test generation).
  • Use a subagent when the main task would exceed the context window if done inline.
  • Use a subagent for parallel work streams that do not depend on each other.
  • Do not use a subagent for simple, single-step tasks. The overhead is not worth it.

Subagent Design

  • Give each subagent a clear, single responsibility and a defined scope.
  • Specify the tools the subagent is allowed to use. Restrict to the minimum needed.
  • Provide the subagent with relevant context, not the entire conversation history.
  • Set explicit success criteria: what output is expected and in what format.

Token Budget Management

  • Track approximate token usage across the session.
  • Use /compact when approaching 60% of the context window.
  • Prefer reading specific file sections over entire files.
  • Summarize findings instead of copying large code blocks verbatim.
  • Use glob and grep to find relevant code before reading full files.

Progressive Disclosure

  • Start with the high-level structure before diving into details.
  • Show the plan before executing it. Get confirmation on the approach.
  • Report progress incrementally: what was done, what is next.
  • Surface important decisions that need human input early in the process.

Task Decomposition

  • Break complex tasks into 3-7 sequential steps.
  • Each step should produce a verifiable intermediate result.
  • If a step fails, the previous steps should still be valid.
  • Use checklists to track progress on multi-step tasks.

Safety and Guardrails

  • Never run destructive commands (rm -rf, DROP TABLE, force push) without explicit confirmation.
  • Validate assumptions before acting on them. Read the code before modifying it.
  • Prefer reversible changes. Commit before refactoring so rollback is easy.
  • When uncertain, ask rather than guess. A wrong assumption costs more than a clarifying question.

Communication Style

  • Be direct and specific. State what you did, what you found, and what you recommend.
  • When presenting options, list tradeoffs for each. Recommend one with reasoning.
  • If something will take multiple steps, outline them upfront with estimated effort.
  • After completing a task, summarize what changed and what to verify.

Download now (ZIP)

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.