agent-kernel
CLAUDE.md2 starsChanged 3 months agoApache-2.0View on GitHub
Read AGENTS.md before making any changes. It is the canonical source of truth for all shared rules, conventions, and documentation pointers. - Read AGENTS.md and the relevant docs/agent-context/ file for the topic before proposing changes. - Check existing code patterns in the target area. Do not infer repo-wide conventions from a single file. - When path-specific conventions exist (see Code conventions in AGENTS.md), follow them exactly. - Preserve invariants. Consult docs/agent-context/invariants.md before any change that touches security, tokens, policy, or…
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
18 rules. About 0 are common, 11 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Read AGENTS.md before making any changes.
- Very specific: line 8
Read AGENTS.md and the relevant docs/agent-context/ file for the topic before proposing changes.
- Distinctive: line 10
Check existing code patterns in the target area.
- Distinctive: line 12
When path-specific conventions exist (see Code conventions in AGENTS.md), follow them exactly.
- Distinctive: line 19
Use only the conventions documented in AGENTS.md.
- Very specific: line 20
Use make ci as the single validation command.
- Distinctive: line 21
Do not "clean up" or "simplify" code unless the change was requested.
- Very specific: line 26
Run make ci and confirm it passes.
- Distinctive: line 27
If a public API, workflow, invariant, or convention changed, update the relevant canonical doc in the same changeset.
- Distinctive: line 29
Verify that every changed docstring matches the final implementation.
- Distinctive: line 30
Check for dead code: unused parameters, fixtures, or helpers.
- Distinctive: line 34
When docs contradict code or each other:
- Distinctive: line 43
When a mistake or unexpected pattern is discovered during work:
- Very specific: line 45
If yes, identify the canonical home using the workflow in docs/agent-context/lessons-learned.md.
- Distinctive: line 47
Treat candidate lessons as provisional.
- Very specific: line 52
Update canonical shared docs (AGENTS.md, docs/agent-context/) first.
- Very specific: line 53
Update tool-specific files (this file, .github/copilot-instructions.md) second.
- Very specific: line 55
If a Claude-specific rule becomes shared and durable, promote it into canonical docs and remove it from .claude/.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
Claude Instructions — agent-kernel
Read AGENTS.md before making any changes. It is the canonical source of truth
for all shared rules, conventions, and documentation pointers.
Explore before acting
- Read
AGENTS.mdand the relevantdocs/agent-context/file for the topic before proposing changes. - Check existing code patterns in the target area. Do not infer repo-wide conventions from a single file.
- When path-specific conventions exist (see Code conventions in
AGENTS.md), follow them exactly.
Implement safely
- Preserve invariants. Consult
docs/agent-context/invariants.mdbefore any change that touches security, tokens, policy, or the firewall. - Use only the conventions documented in
AGENTS.md. Do not invent new ones. - Use
make cias the single validation command. Do not guess alternatives. - Do not "clean up" or "simplify" code unless the change was requested. Hidden constraints may exist.
Validate before completing
- Run
make ciand confirm it passes. - If a public API, workflow, invariant, or convention changed, update the relevant canonical doc in the same changeset.
- Verify that every changed docstring matches the final implementation.
- Check for dead code: unused parameters, fixtures, or helpers.
Handle contradictions
When docs contradict code or each other:
- Code is authoritative over docs.
- Canonical shared docs (
AGENTS.md,docs/agent-context/) are authoritative over tool-specific files. - Surface the contradiction explicitly. Do not silently pick one side.
- Fix stale docs in the same changeset when possible.
Capture lessons
When a mistake or unexpected pattern is discovered during work:
- Determine if it generalizes — would it recur in a similar task?
- If yes, identify the canonical home using the workflow in
docs/agent-context/lessons-learned.md. - Treat candidate lessons as provisional. Do not promote a fresh observation into durable guidance from a single incident.
Update order
- Update canonical shared docs (
AGENTS.md,docs/agent-context/) first. - Update tool-specific files (this file,
.github/copilot-instructions.md) second. - If a Claude-specific rule becomes shared and durable, promote it into
canonical docs and remove it from
.claude/.
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.

