autocontext-creator
Skill1.3k starsChanged 9 months agoApache-2.0View on GitHub
Use when an agent needs to CREATE knowledge with Autocontext - run a scenario or plain-language task through the improvement loop, judge or improve a single output, and inspect what the run produced. Host-agnostic; requires only the autoctx CLI.
- Reads credentials
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-consumerSkill
- autocontextSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are 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.
2
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 look up existing knowledge.
- Very specific: line 30
Every command below accepts --json.
- Distinctive: line 52
When there is no scenario, describe the task:
- Distinctive: line 110
Keep secrets and base URLs in the environment or the user's profile, never in a skill file.
- Distinctive: line 123
Treat run artifacts as you would any local file containing the task text and model output - they contain whatever you put in the prompt.
≈ “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: Creating Knowledge
Overview
Autocontext runs an improvement loop over a task and writes what it learned to
disk. This skill covers producing that knowledge. To read knowledge that
already exists, use autocontext-consumer instead.
Nothing here assumes a particular agent host. The only requirement is that you
can run autoctx and read its output.
When to Use
- You have a task and want Autocontext to improve an approach to it over several generations.
- You have one output and one rubric, and want it scored or improved without a full loop.
- You want to see what a finished run produced.
Do not use this skill to look up existing knowledge. That is autocontext-consumer.
Always Pass --json When Parsing
Every command below accepts --json. Use it whenever you intend to read the
result programmatically; the human-readable form is not a stable interface.
Running a Scenario
autoctx run grid_ctf --iterations 3 --json--iterations is the number of generations. Each one produces a candidate, scores it,
and folds what it learned into the knowledge for that scenario.
Give the run an id you choose when you need to refer back to it:
RUN_ID="my_run_$(date +%s)"
autoctx run grid_ctf --iterations 3 --run-id "$RUN_ID" --json
autoctx status "$RUN_ID" --jsonStarting From a Plain-Language Task
When there is no scenario, describe the task:
autoctx solve "Improve the support-triage response policy." --iterations 3 --jsonScoring or Improving a Single Output
For one-shot work, without a loop:
autoctx judge --task-prompt "..." --output "..." --rubric "..." --json
autoctx improve --task-prompt "..." --rubric "..." --rounds 3 --jsonjudge scores an output you already have. improve iterates on it.
Seeing What a Run Produced
autoctx list --json
autoctx status "$RUN_ID" --json
autoctx show "$RUN_ID"
autoctx replay "$RUN_ID" --generation 1show renders the run's artifacts. replay prints the JSON for one generation,
which is the level to inspect when a score looks wrong.
Watching a Run in Flight
autoctx watch "$RUN_ID"Creating a New Scenario
autoctx scenario create --list
autoctx scenario create --template content-generation --name support-contentScaffolds from the template library. Use this when the task recurs and deserves
a named scenario rather than a one-off solve.
Choosing a Provider
Autocontext defaults to a hosted Anthropic model. To point it somewhere else, including a local server, set the provider before running:
export AUTOCONTEXT_AGENT_PROVIDER=openai-compatible
export AUTOCONTEXT_AGENT_BASE_URL=http://localhost:11434/v1
export AUTOCONTEXT_AGENT_API_KEY=no-key
export AUTOCONTEXT_LOCAL_MODEL=llama3.1
autoctx run grid_ctf --iterations 3 --jsonKeep secrets and base URLs in the environment or the user's profile, never in a skill file.
Before a Long Run
autoctx run preflights every endpoint it will use and refuses to start on a
dead endpoint, a rejected credential, or a model the server does not serve.
That check is why a misconfigured run fails in seconds rather than after
spending tokens. --skip-preflight exists but wastes that protection.
Privacy
Runs write to the local knowledge root and stay there. Nothing is uploaded. Treat run artifacts as you would any local file containing the task text and model output - they contain whatever you put in the prompt.
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.

