autocontext
AGENTS.md1.3k starsChanged 9 months agoApache-2.0View on GitHub
Use this file as the first pointer for coding agents and automation that need to work in or against this repo. Most repo-level commands in the READMEs assume one of those package directories as the current working directory. Implement one runtime first unless cross-runtime parity is user-visible in the same release. If parity is deferred, say where and why in the PR. If you change public commands, environment variables, package names, or agent-facing workflows, update the relevant docs in the…
- Installs packages
Trending
More talk lately.thin dataabout the whole repository
Who's talking about greyhaven-ai/autocontext
- A Hacker News story“AutoContext: closed-loop system for improving agent behavior over repeated runs”Hacker News · Mar 14, 2026 · 2 points
- sudosubin/agents.nix“agent-skills.github.greyhaven-ai.autocontext: 0.11.0 → 0-unstable-2026-08-15”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.greyhaven-ai.autocontext: init at 0.11.0”GitHub · Sep 27, 2026
- usemonkci/autocontext“use-monkci-runner”GitHub · Jun 1, 2026
- danwritecode/looper-rs“Behavioral multi-turn harness for prompt refinement”GitHub · Mar 18, 2026
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
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 repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- autocontext-consumerSkill
- autocontext-creatorSkill
- autocontextSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Use this file as the first pointer for coding agents and automation that need to work in or against this repo.
- Very specific: line 14
Run Python commands from autocontext/.
- Very specific: line 15
Run Node/TypeScript commands from ts/.
- Very specific: line 16
Run TUI-related commands from ts/.
- Distinctive: line 63
If you change public commands, environment variables, package names, or agent-facing workflows, update the relevant docs in the same change:
- Very specific: line 86
Before restoring deleted modules to make CI green, check whether autocontext/src/ still imports them.
- Distinctive: line 87
If only tests are failing, prefer rewriting or deleting the tests instead of restoring removed modules.
- Distinctive: line 88
Treat importable module paths as compatibility surfaces until callers are rewired or the removal is explicitly accepted as breaking.
≈ “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.
Files
Agent Guide
Use this file as the first pointer for coding agents and automation that need to work in or against this repo.
Pick The Right Surface
- Full autocontext control plane:
autocontext/ - Node/TypeScript toolkit and CLI:
ts/ - Interactive terminal UI:
ts/src/tui/ - External agent usage guide:
autocontext/docs/agent-integration.md
Working Directories
- Run Python commands from
autocontext/. - Run Node/TypeScript commands from
ts/. - Run TUI-related commands from
ts/.
Most repo-level commands in the READMEs assume one of those package directories as the current working directory.
Setup
Python:
cd autocontext
uv venv
source .venv/bin/activate
uv sync --group devTypeScript:
cd ts
npm installParity-Last Changes
Implement one runtime first unless cross-runtime parity is user-visible in the same release. If parity is deferred, say where and why in the PR.
Common Checks
Python:
cd autocontext
uv run ruff check src tests
uv run mypy src
uv run pytestTypeScript:
cd ts
npm run lint
npm testPublic Docs To Keep In Sync
If you change public commands, environment variables, package names, or agent-facing workflows, update the relevant docs in the same change:
README.mddocs/README.mdautocontext/README.mdts/README.mdexamples/README.mdautocontext/docs/agent-integration.mdCONTRIBUTING.mdCHANGELOG.md
Key References
- Repo overview:
README.md - Docs overview:
docs/README.md - Contributor workflow:
CONTRIBUTING.md - Python package guide:
autocontext/README.md - TypeScript package guide:
ts/README.md - Copy-paste examples:
examples/README.md - External agent guide:
autocontext/docs/agent-integration.md
Intentional Deletions
- Before restoring deleted modules to make CI green, check whether
autocontext/src/still imports them. - If only tests are failing, prefer rewriting or deleting the tests instead of restoring removed modules.
- Treat importable module paths as compatibility surfaces until callers are rewired or the removal is explicitly accepted as breaking.
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.

