Agent skill

Autocontext for Hermes

by greyhaven-ai in greyhaven-ai/autocontext

Lets a Hermes agent run Autocontext scenarios, inspect Hermes curator state, export reusable knowledge and prepare local MLX or CUDA training data through the autoctx CLI.

Apache-2.0Auto-check passedAgent Workflows

Install Autocontext for Hermes

skills CLI
$ npx skills add greyhaven-ai/autocontext --skill autocontext -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install greyhaven-ai/autocontext autocontext --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/greyhaven-ai/autocontext.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/autocontext .claude/skills/autocontext && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
autocontext
GitHub stars
1.3k
Token cost
~2.5k tokens
SKILL.md length
1,042 words
Files
5 (incl. references)
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Lets a Hermes agent run Autocontext scenarios, inspect Hermes curator state, export reusable knowledge and prepare local MLX or CUDA training data through the autoctx CLI.

  • Works in 5 steps: Treating Autocontext as the Hermes… → Starting with MCP in an unconfigured… → Mutating ~/.hermes/skills after… → …
  • Running an Autocontext scenario from Hermes and reading the result
  • SKILL.md covers Overview, When to Use, Integration Surface Order and CLI Quick Start, plus 9 more sections
  • Calls uv; needs AUTOCONTEXT_AGENT_API_KEY

What it does

Autocontext is described as a control plane for evaluating agent behavior, keeping useful run artifacts, exporting training data and distilling stable behavior into local runtimes. This skill covers using it from Hermes when the work calls for measurement, replay, datasets, local MLX or CUDA training, or read-only analysis of how Hermes skills are curated.

The command line comes first: the autoctx CLI runs from a checkout of Autocontext through uv, for example to inspect Hermes skill and curator state as JSON without changing anything. MCP is optional and only worth using when it is already configured and typed schemas help. Hermes Curator keeps ownership of changing Hermes skills, so the agent inspects, evaluates, replays, exports and recommends, and edits skills only when you ask. Reference notes cover CLI, curator, local training and MCP workflows.

When your agent uses it

  • Running an Autocontext scenario from Hermes and reading the result
  • Checking Hermes Curator reports, skill usage counters or pinned state
  • Exporting solved knowledge as a reusable package
  • Preparing data for local MLX or CUDA training

Example prompts

  • “Inspect my Hermes profile's curator state and show the result as JSON.”
  • “Run an Autocontext scenario from my checkout and report whether it succeeded.”
  • “Export the knowledge Autocontext has solved so far into a reusable package.”
  • “Prepare training data for a local MLX run from the latest Autocontext runs.”

Requirements

  • A checkout of Autocontext with uv installed
  • A Hermes agent profile

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Treating Autocontext as the Hermes Curator. Autocontext should inspect and recommend; Hermes Curator owns skill mutation.
  2. Starting with MCP in an unconfigured environment. Use the CLI first unless MCP is already present and helpful.
  3. Mutating ~/.hermes/skills after inspection. autoctx hermes inspect is read-only; keep it that way during analysis.
  4. Training on raw curator artifacts without a target. First decide whether the target is ranking, consolidation classification, pruning…
  5. Forgetting --json when Hermes needs to parse command output.

What it can do on your machine

Read from SKILL.md and the folder at commit f72c154. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • AUTOCONTEXT_AGENT_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Autocontext for Hermes loads about 2.5k tokens when it runs, and up to ~4.8k if it reads all its reference files. Until then it costs about 55 tokens; SKILL.md has 1,042 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~55
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from greyhaven-ai/autocontext at commit f72c154, republished under its Apache-2.0 licence (© greyhaven-ai). 1,042 words, ~2,496 tokens.

Download SKILL.mdSave it as .claude/skills/autocontext/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
autocontext
description
Use when a Hermes agent needs to evaluate agent behavior, run Autocontext scenarios, inspect Hermes curator state, export reusable knowledge, or prepare local MLX/CUDA training data through the autoctx CLI.
version
1.0.0
author
Autocontext
license
Apache-2.0

Autocontext

Overview

Autocontext is a control plane for evaluating agent behavior, preserving useful run artifacts, exporting training data, and distilling stable behavior into local runtimes. In Hermes, use this skill when the work calls for measurement, replay, datasets, local MLX/CUDA training, or read-only analysis of Hermes skill curation.

Hermes Curator owns Hermes skill mutation. Autocontext should inspect, evaluate, replay, export, and recommend. Do not use Autocontext as a replacement for Hermes Curator, and do not edit Hermes skills directly unless the user explicitly asks for that operation.

When to Use

  • You need to run an Autocontext scenario from Hermes and inspect the result.
  • You need machine-readable status for runs, solved knowledge, or training jobs.
  • You need to inspect Hermes v0.12 Curator reports, skill usage counters, pinned state, or skill provenance.
  • You need to export Autocontext knowledge into a reusable package or skill-like artifact.
  • You need to prepare data for local MLX or CUDA training.
  • You need to decide whether MCP is useful in a configured environment.

Do not use this skill for normal Hermes memory updates, direct skill consolidation, or user-local skill deletion. Those are Hermes Curator responsibilities.

Integration Surface Order

Use the CLI first. The autoctx CLI is the default surface because Hermes agents can run it with normal terminal tools, see stdout and stderr, preserve logs, and debug failures without special host configuration.

MCP is optional. Use MCP when the environment already has Autocontext MCP configured and the task benefits from typed schemas, constrained invocation, or tool discovery. Do not require MCP just to wrap a command that the CLI already exposes cleanly.

Use a native Hermes runtime or OpenAI-compatible gateway when Autocontext is calling Hermes as an agent provider. Use a Hermes plugin emitter only when the user specifically needs high-fidelity live traces beyond read-only import of existing Hermes artifacts.

CLI Quick Start

From a checkout of Autocontext:

bash
cd autocontext
uv run autoctx --help

Inspect Hermes skill and curator state without modifying Hermes:

bash
uv run autoctx hermes inspect --json

For a custom profile or test fixture:

bash
uv run autoctx hermes inspect --home "$HERMES_HOME" --json

Install or refresh this skill into a Hermes profile:

bash
uv run autoctx hermes export-skill --output ~/.hermes/skills/autocontext/SKILL.md --json

If the file already exists and the user wants to replace it:

bash
uv run autoctx hermes export-skill --output ~/.hermes/skills/autocontext/SKILL.md --force --json

Running Autocontext From Hermes

Use --json whenever Hermes needs to parse the result.

bash
RUN_ID="hermes_$(date +%s)"
uv run autoctx run grid_ctf --iterations 3 --run-id "$RUN_ID" --json
uv run autoctx status "$RUN_ID" --json
uv run autoctx replay "$RUN_ID" --generation 1

For a plain-language task:

bash
uv run autoctx solve "Improve the support-triage response policy." --iterations 3 --json

For one-shot judgment or improvement:

bash
uv run autoctx judge --task-prompt "..." --output "..." --rubric "..." --json
uv run autoctx improve --task-prompt "..." --rubric "..." --rounds 3 --json

Hermes Runtime Configuration

When Autocontext should call a Hermes-served model through an OpenAI-compatible gateway:

bash
export AUTOCONTEXT_AGENT_PROVIDER=openai-compatible
export AUTOCONTEXT_AGENT_BASE_URL=http://localhost:8080/v1
export AUTOCONTEXT_AGENT_API_KEY=no-key
export AUTOCONTEXT_AGENT_DEFAULT_MODEL=hermes-3-llama-3.1-8b
uv run autoctx solve "..." --iterations 3 --json

Keep provider configuration outside the skill when possible. The user or profile should own secrets, base URLs, and model names.

Working With Hermes Curator

Hermes v0.12 writes Curator reports under ~/.hermes/logs/curator/<timestamp>/run.json and REPORT.md. It tracks skill usage in ~/.hermes/skills/.usage.json, and protects bundled or hub-installed skills through .bundled_manifest and .hub/lock.json.

Use:

bash
uv run autoctx hermes inspect --json

Read the output as an inventory:

  • agent_created_skill_count means Curator-eligible user or agent skills.
  • bundled_skill_count and hub_skill_count are upstream-owned skills and should not be pruned by Autocontext.
  • pinned_skill_count identifies skills Curator and agents should not modify.
  • curator.latest.counts summarizes the latest consolidation, pruning, and archive activity.

Autocontext can use these signals for reports, datasets, and recommendations. Hermes Curator remains the writer for Hermes skill lifecycle changes.

Privacy Before Session and Trajectory Ingest

Curator decision reports are decision metadata and safe to import without redaction. Session and trajectory imports are different: they contain raw model prompts and responses, which may include secrets, tokens, or content the operator did not intend for external storage.

Before recommending or running autoctx hermes ingest-sessions or autoctx hermes ingest-trajectories, explain the privacy tradeoff: the importer is read-only against ~/.hermes, but the output JSONL contains the same content unless redaction is applied. Default is --redact standard (Anthropic/OpenAI keys, bearer tokens, emails, IPs, env values, paths, high-risk file refs). --redact strict adds user-defined regexes. --redact off writes raw content and the importer surfaces an explicit opt-in marker. Sessions in particular live in a SQLite store: an unwarranted ingest creates a new copy of every prompt and response. Prefer --dry-run first when the operator is unsure of the blast radius.

Show full SKILL.md (399 more words)Show less

Training Path

For Autocontext-owned runs, export training data and train locally:

bash
uv run autoctx export-training-data --scenario grid_ctf --all-runs --output training/grid_ctf.jsonl
uv run autoctx train --scenario grid_ctf --data training/grid_ctf.jsonl --backend mlx --time-budget 300 --json
uv run autoctx train --scenario grid_ctf --data training/grid_ctf.jsonl --backend cuda --time-budget 300 --json

Use MLX on Apple Silicon hosts. Use CUDA on Linux GPU hosts with a CUDA-enabled PyTorch install. Do not run host-GPU training inside a sandbox unless the user has already provided a host bridge or direct GPU access.

For Hermes Curator artifacts, train a narrow read-only advisor from exported decision rows:

bash
uv run autoctx hermes export-dataset --kind curator-decisions --home ~/.hermes --output training/hermes-curator-decisions.jsonl --json
uv run autoctx hermes train-advisor --data training/hermes-curator-decisions.jsonl --logistic --checkpoint training/hermes-advisor.json --json
uv run autoctx hermes recommend --home ~/.hermes --advisor training/hermes-advisor.json --output training/hermes-recommendations.jsonl --json

Use --baseline first for the majority-class floor. Use --mlx on Apple Silicon or --cuda on PyTorch/CUDA hosts when the optional extra is installed. Curator reports are decision traces; they are best suited for advisor/ranker/classifier training, not full autonomous skill mutation.

MCP Workflow When Configured

MCP is optional. If the user has already configured Autocontext MCP, prefer it for structured tool calls that are easier or safer than shell commands. Otherwise, stay with the CLI.

Check the local integration guide before inventing tool names:

bash
uv run autoctx serve mcp --help

Use MCP only when it adds value beyond the CLI: stable schemas, lower parsing burden, managed tool discovery, or a host policy that disallows shell access.

Common Pitfalls

  1. Treating Autocontext as the Hermes Curator. Autocontext should inspect and recommend; Hermes Curator owns skill mutation.
  2. Starting with MCP in an unconfigured environment. Use the CLI first unless MCP is already present and helpful.
  3. Mutating ~/.hermes/skills after inspection. autoctx hermes inspect is read-only; keep it that way during analysis.
  4. Training on raw curator artifacts without a target. First decide whether the target is ranking, consolidation classification, pruning advice, or model-routing advice.
  5. Forgetting --json when Hermes needs to parse command output.

Verification Checklist

  • Use autoctx hermes inspect --json before making claims about local Hermes skill state.
  • Confirm pinned skills are not modified.
  • Confirm bundled and hub skills are treated as upstream-owned.
  • Prefer CLI commands for first-run workflows.
  • Use MCP only when configured and materially better for the task.
  • Keep Hermes Curator as the system of record for Hermes skill lifecycle changes.

References

Progressive-disclosure docs available alongside this skill. Load only when relevant.

  • references/hermes-curator.md — How Hermes Curator and autocontext cooperate; who owns what; the read-only-first rule.
  • references/cli-workflows.md — Exact autoctx commands for inventory, curator ingest, dataset export, judging, replay.
  • references/mcp-workflows.md — MCP server setup, CLI-to-MCP tool name mapping, when to prefer MCP over CLI.
  • references/local-training.md — How autocontext-exported datasets feed local MLX/CUDA advisor training; what the advisor predicts; expected scope.

Operators can write all references next to this skill via autoctx hermes export-skill --with-references --output <dir>/SKILL.md.

© greyhaven-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/autocontext of greyhaven-ai/autocontext.

  • SKILL.md
  • references/cli-workflows.md
  • references/hermes-curator.md
  • references/local-training.md
  • references/mcp-workflows.md

Open the folder on GitHubat commit f72c154

Compare with similar skills

Autocontext for Hermes next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Autocontext for Hermes compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Autocontext for Hermes this skillgreyhaven-ai/autocontext1.3k—~2.5kAutomated safety check: PassApache-2.0
Octocode Graph Eval Loopbgauryy/octocode949—~1.6kAutomated safety check: PassMIT
Benchmark Agentsvercel/vercel-plugin301—~3.6kAutomated safety check: PassCustom licence
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Darwin Skill Optimizeralchaincyf/darwin-skill6.2k1 repos~4.7kAutomated safety check: PassMIT
Open-Science Skill Creatoraipoch/open-science5.5k—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Octocode Graph Eval Loop

    bgauryy/octocode

    Runs a measurable keep-or-discard improvement loop against a runnable sensor, from framing a goal and KPI through baseline, judging and held-out verification.

    949 GitHub stars~1.6k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Benchmark Agents

    vercel/vercel-plugin

    Official

    Advanced AI agent benchmark scenarios that push Vercel's cutting-edge platform features — Workflow SDK, AI Gateway, MCP, Chat SDK, Queues, Flags, Sandbox, and multi-agent orchestration.

    301 GitHub stars~3.6k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Darwin Skill Optimizer

    alchaincyf/darwin-skill

    Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.

    6.2k GitHub starsUsed in 1 repo~4.7k tokens
    Agent WorkflowsAuto-check passed
  • Open-Science Skill Creator

    aipoch/open-science

    Creates, revises, evaluates and publishes skills in the Open-Science app through its native host.skills composer, with optional test prompts and benchmarks.

    5.5k GitHub stars~1.7k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Skillshare

    runkids/skillshare

    Manage skills, agents, extras, hooks, plugins, and MCP connection settings with the Skillshare CLI.

    2.8k GitHub stars~2.2k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from greyhaven-ai/autocontext

  • Autocontext

    greyhaven-ai/autocontext

    Runs LLM-based rubric judging on agent output and loops revise-and-rejudge rounds until a quality threshold is met.

    1.3k GitHub stars~892 tokensUpdated 4 days ago
    Auto-check passed
  • Autocontext Knowledge Reader

    greyhaven-ai/autocontext

    Reads and moves the playbooks and lessons that Autocontext has already learned, using the autoctx CLI and plain files on disk.

    1.3k GitHub stars~934 tokensUpdated 4 days ago
    Auto-check passed
  • Autocontext Knowledge Creator

    greyhaven-ai/autocontext

    Runs the `autoctx` CLI to improve an approach to a task over several generations, score or refine a single output and inspect what a run produced.

    1.3k GitHub stars~964 tokensUpdated 4 days ago
    Auto-check passed
  • Grid CTF Strategy Playbook

    greyhaven-ai/autocontext

    Operational notes for generating, evaluating and debugging strategies in the autocontext grid_ctf scenario, with tier rules and parameter ranges that worked or failed.

    1.3k GitHub stars~1.3k tokensUpdated 4 days ago
    Auto-check passed

Questions about Autocontext for Hermes

What does Autocontext for Hermes do?

Lets a Hermes agent run Autocontext scenarios, inspect Hermes curator state, export reusable knowledge and prepare local MLX or CUDA training data through the autoctx CLI. Autocontext is described as a control plane for evaluating agent behavior, keeping useful run artifacts, exporting training data and distilling stable behavior into local runtimes. This skill covers using it from Hermes when the work calls for measurement, replay, datasets, local MLX or CUDA training, or read-only analysis of how Hermes skills are curated.

When should I use Autocontext for Hermes?

Autocontext for Hermes fits situations like: running an Autocontext scenario from Hermes and reading the result; checking Hermes Curator reports, skill usage counters or pinned state; exporting solved knowledge as a reusable package; preparing data for local MLX or CUDA training.

How do I install Autocontext for Hermes in Claude Code?

Run `npx skills add greyhaven-ai/autocontext --skill autocontext -a claude-code`. Or copy the skill folder (skills/autocontext in greyhaven-ai/autocontext) into .claude/skills/autocontext in your project. Claude Code loads it when a task matches its description.

How do I install Autocontext for Hermes in Codex?

Run `npx skills add greyhaven-ai/autocontext --skill autocontext -a codex`. Or copy the skill folder (skills/autocontext in greyhaven-ai/autocontext) into .agents/skills/autocontext in your project. Codex loads it when a task matches its description.

Can I use Autocontext for Hermes in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add greyhaven-ai/autocontext --skill autocontext -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/autocontext, .gemini/skills/autocontext, .github/skills/autocontext and .opencode/skills/autocontext in your project.

What does Autocontext for Hermes need to run?

Going by SKILL.md and its folder, Autocontext for Hermes needs the command-line tools its instructions call (uv) and credentials named AUTOCONTEXT_AGENT_API_KEY. Our summary lists: A checkout of Autocontext with uv installed; A Hermes agent profile.

Does Autocontext for Hermes access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Autocontext for Hermes safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Autocontext for Hermes use?

Autocontext for Hermes is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Autocontext for Hermes use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.3k tokens, read only when the agent opens those files.

What are the alternatives to Autocontext for Hermes?

Skills that share tags, products or a category with Autocontext for Hermes: Octocode Graph Eval Loop (bgauryy/octocode, 949 stars), Benchmark Agents (vercel/vercel-plugin, 301 stars), MCP Server Builder (anthropics/skills, 180k stars) and Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Autocontext for Hermes?

greyhaven-ai (a GitHub organization) maintains it in greyhaven-ai/autocontext, which has 1,305 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 7, 2026.

Source: greyhaven-ai/autocontext on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.