agentleFS
hermes-labs-aihermes-labs-ai/hermeneutic/AGENTS.md

hermeneutic

AGENTS.md9 starsChanged 3 months agoApache-2.0View on GitHub

This file is for AI coding agents and host applications that want to call the standalone hermeneutic CLI or Python library. A fixed deterministic English drift check for assistant-generated drafts. It flags eight surface shapes including completion overclaiming, relayed authority, unhedged certainty, scope expansion, and unsupported quality adjectives. It does not read the personal correction corpus or run the optional Router. Run hermeneutic gate on any assistant draft before you send it to the user when: Inspect the printed verdict…

  • Installs packages
  • 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.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    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
  1. Very specific:

    Run hermeneutic gate on any assistant draft *before* you send it to the user when:

    line 15
  2. Distinctive:

    Add the missing evidence (run the verification commands, paste the output).

    line 27
  3. Distinctive:

    Not a model evaluator. Scores individual drafts, not aggregate quality.

    line 80
  4. Distinctive:

    Not foresight. Catches drift modes seen before.

    line 81
  5. Distinctive:

    Not a replacement for human review.

    line 82
  6. Distinctive:

    Not multilingual. The fixed rules check English surface patterns.

    line 83
  7. Distinctive:

    Not proof that a caller's external Router backends or repair behavior are safe.

    line 84

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — using hermeneutic from a coding agent

This file is for AI coding agents and host applications that want to call the standalone hermeneutic CLI or Python library.

What this tool does

A fixed deterministic English drift check for assistant-generated drafts. It flags eight surface shapes including completion overclaiming, relayed authority, unhedged certainty, scope expansion, and unsupported quality adjectives. It does not read the personal correction corpus or run the optional Router.

When to invoke it

Run hermeneutic gate on any assistant draft before you send it to the user when:

  • The draft contains numeric claims (file counts, test counts, percentages, ms).
  • The draft summarizes work completed by a subagent.
  • The draft uses completion language ("done", "shipped", "all green").
  • The draft contains universal quantifiers ("every", "all", "always").
  • You want a cheap second-opinion gate that doesn't require an LLM call.

Inspect the printed verdict as well as the exit code: low-severity RISK is advisory and exits 0; medium/high RISK exits 1. A caller that chooses to hold a draft should either:

  1. Add the missing evidence (run the verification commands, paste the output).
  2. Hedge the claim ("appears to" / "based on N samples").
  3. Cut the unverifiable text.

Programmatic use

from hermeneutic import Router, PressureProbe

probe = PressureProbe(judge=your_llm_call)  # callable: prompt -> str

def repair(request, draft, reason):
    return your_llm_call(f"Revise: {reason}\n\n{draft}")

router = Router(probe=probe, repairer=repair)
result = router.gate(request=user_request, draft=your_draft)
if result.repaired:
    log(f"hermeneutic caught drift: {result.summary()}")
final = result.final_output

Calibration

PressureProbe ships with a generic "rigorous-skeptic" calibration. To make it match your team's standards, pass your own calibration text:

my_calibration = """
You are reviewing drafts for a security-critical product.
Bias toward HOLD when:
- Any security claim lacks a CVE or vendor-confirmed citation.
- Code changes touch authentication or crypto without a test diff.
"""
probe = PressureProbe(judge=your_llm_call, calibration=my_calibration)

Mining your own logs

Mine your own chat logs to build a personal corpus and look for candidate drift modes:

hermeneutic mine ~/your/log/dir --format claude-code --out triples.jsonl
hermeneutic bucket triples.jsonl

Mining does not change the gate. A developer may deliberately add a new pattern to src/hermeneutic/gates/regex.py only with evidence, tests, review, and a new release. The personal corpus can affect optional compile retrieval after compile-index is rerun.

What this tool is NOT

  • Not a model evaluator. Scores individual drafts, not aggregate quality.
  • Not foresight. Catches drift modes seen before; novel drifts pass through.
  • Not a replacement for human review. It's a floor-raiser.
  • Not multilingual. The fixed rules check English surface patterns.
  • Not proof that a caller's external Router backends or repair behavior are safe.

Working on this repository

Key paths: src/hermeneutic/ (package source), tests/ (pytest suite), scripts/smoke-installed-cli.sh (post-install CLI smoke test), evals/ (committed receipts that numeric claims must trace to).

python3 -m pip install -e ".[dev]"
ruff check src tests
python3 -m pytest -ra
python3 -m build
python3 -m pip install --force-reinstall dist/*.whl
bash scripts/smoke-installed-cli.sh

Definition of done: ruff check src tests and pytest -ra pass; every behavior change has a test; numeric claims in docs trace to a committed evals/ receipt; no existing gate rule was loosened to silence a false positive without mined evidence. See CLAUDE.md for the full agent protocol.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.