autocontext-consumer
Skill1.3k starsChanged 9 months agoApache-2.0View on GitHub
Use when an agent needs to USE knowledge Autocontext already produced - find which scenarios have knowledge, read the playbook and lessons for one, understand the on-disk file and folder layout, and move knowledge between checkouts. Host-agnostic; requires only the autoctx CLI and the filesystem.
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.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autocontext-creatorSkill
- autocontextSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 26
Do not use this skill to run scenarios or judge output.
- Distinctive: line 81
Import one somewhere else.
- Distinctive: line 92
Use these rather than copying the directory by hand: the package carries the metadata that makes the knowledge legible on the far side.
- Distinctive: line 97
When a result is surprising, the generation JSON is the level that explains it:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
Autocontext: Using Existing Knowledge
Overview
Autocontext writes what it learns to a knowledge directory. This skill covers
reading and moving that knowledge. To produce it, use autocontext-creator.
Nothing here assumes a particular agent host, and most of it is plain file reading - the layout is documented below precisely so an agent can go straight to the file it wants.
When to Use
- You want to know whether Autocontext has learned anything about a task.
- You want the current playbook or lessons for a scenario.
- You want to move knowledge from one checkout or machine to another.
Do not use this skill to run scenarios or judge output. That is
autocontext-creator.
Where Knowledge Lives
The root defaults to ./knowledge and moves with AUTOCONTEXT_KNOWLEDGE_ROOT.
Inside it, each scenario owns a directory:
<knowledge_root>/
<scenario>/
playbook.md the current approach, rewritten as the loop learns
lessons.json accumulated lessons, newest last
hints.md hints carried into the next attempt
mutation_log.jsonl one line per change, append-only
package_metadata.json present once the scenario has been exported
reports/<run_id>.md per-run written reports
analytics/ cross-scenario analytics
_hub/ shared research hub state
_evaluator_epochs/ evaluator versioningDirectories starting with _ are shared across scenarios rather than owned by
one. playbook.md is the file to read first: it is the current answer, where
lessons.json is the history of how it got there.
Reading Knowledge
The playbook and lessons are plain files. Read them directly:
cat "${AUTOCONTEXT_KNOWLEDGE_ROOT:-knowledge}/grid_ctf/playbook.md"An absent file means nothing has been learned for that scenario yet. That is a normal state, not an error.
Finding Runs
autoctx list --json
autoctx status "$RUN_ID" --json
autoctx show "$RUN_ID"list is the entry point when you do not know what exists.
Moving Knowledge Between Checkouts
Export a scenario's knowledge as a portable package:
autoctx export --scenario grid_ctf --output grid_ctf_package.json --jsonImport one somewhere else. The package file is a positional argument, not a flag, and it is required:
autoctx import-package grid_ctf_package.json --json--conflict decides what happens when the target scenario already has
knowledge: overwrite, merge, or skip. --scenario imports under a
different name than the package was exported from.
Use these rather than copying the directory by hand: the package carries the metadata that makes the knowledge legible on the far side.
Reading a Generation in Detail
When a result is surprising, the generation JSON is the level that explains it:
autoctx replay "$RUN_ID" --generation 1What Not to Assume
- Knowledge is scenario-scoped. A playbook for one scenario says nothing about another.
lessons.jsonis append-only. The last entries are the newest; do not assume the file is ordered by importance.- An empty playbook is meaningful. It means the loop has not yet found an approach worth keeping, which is different from the scenario not existing.
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.

