agent-kernel
Copilot instructions2 starsChanged 3 months agoApache-2.0View on GitHub
Canonical rules: AGENTS.md. This file projects review-critical rules that must be visible during GitHub PR review. Flag these in every PR — CI does not catch them: Canonical checklist: docs/agent-context/review-checklist.md Non-negotiable. Violations silently degrade security: Full list: docs/agent-context/invariants.md
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Very specific: line 11
No security bypass vectors: whitespace-only justification, truncated JSON, bare int() on untrusted input.
- Distinctive: line 12
No dead code: unused parameters, fixtures, or helpers.
- Distinctive: line 13
No backward-compat breaks: adding required methods to an existing Protocol breaks downstream.
- Distinctive: line 21
If a docstring changed, verify it matches the final code.
- Distinctive: line 39
Follow conventions in AGENTS.md.
- Distinctive: line 42
No new dependencies without justification.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
Copilot Instructions — agent-kernel
Canonical rules:
AGENTS.md. This file projects review-critical rules that must be visible during GitHub PR review.
Review checklist
Flag these in every PR — CI does not catch them:
- Docstrings and descriptions must match actual implementation.
- No security bypass vectors: whitespace-only justification, truncated JSON, bare
int()on untrusted input. - No dead code: unused parameters, fixtures, or helpers.
- No backward-compat breaks: adding required methods to an existing Protocol breaks downstream.
- Naming consistent: use capability, principal, grant, Frame — never synonyms.
Canonical checklist: docs/agent-context/review-checklist.md
Code and docs reviewed together
- PRs that change public APIs, workflows, invariants, review rules, or path conventions must include doc updates.
- If a docstring changed, verify it matches the final code.
- Code is authoritative over docs. Fix stale docs in the same PR.
- Surface contradictions explicitly. Do not silently work around them.
Invariants
Non-negotiable. Violations silently degrade security:
- Firewall always mediates:
RawResult → Frame. Never bypass. - Token verification before every invocation. Never skip.
- Non-admin principals never get
rawresponse mode. - Policy rule ordering is security-critical — a rule placed before sensitivity checks creates a silent bypass.
- New
SensitivityTagvalues need a matching policy rule, or the tag is silently ignored.
Full list: docs/agent-context/invariants.md
Convention discipline
- Follow conventions in
AGENTS.md. Do not invent new ones. make ciis the single pre-push command. Do not guess alternatives.- Custom exceptions from
errors.pyonly. Never raise bareValueError/KeyErrorto callers (catching stdlib internally to remap is fine). - No new dependencies without justification.
Canonical sources
| Topic | File |
| All shared rules | AGENTS.md |
| Hard invariants | docs/agent-context/invariants.md |
| Full review checklist | docs/agent-context/review-checklist.md |
| Workflows & commands | docs/agent-context/workflows.md |
| Recurring mistakes | docs/agent-context/lessons-learned.md |
| Architecture intent | docs/agent-context/architecture.md |
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.

