### Development setup commands Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/CONTRIBUTING.md Sets up a local development environment for hermeneutic: clones the repository, creates a virtual environment, activates it (with a Windows alternative noted in a comment), and installs the package in editable mode with development dependencies. ```bash git clone https://github.com/hermes-labs-ai/hermeneutic cd hermeneutic python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate python3 -m pip install -e ".[dev]" ``` -------------------------------- ### Install from PyPI Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Equivalent installation after the v0.1.7 PyPI upload and clean public install are verified. ```bash python3 -m pip install 'hermeneutic==0.1.7' ``` -------------------------------- ### Install and check Hermeneutic version Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Install Hermeneutic and verify the installation. The version pin is the release the examples on this page were verified against; drop it to take the latest. The command prints `hermeneutic 0.1.12`. ```bash pip install hermeneutic==0.1.12 hermeneutic --version ``` -------------------------------- ### Install source branch with qwen extensions install Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Installs the source branch directly into the published Qwen Code 0.23.2 CLI before opening the public integration pull request. Qwen identifies the installation as Origin: QwenCode. ```bash qwen extensions install https://github.com/hermes-labs-ai/hermeneutic \ --ref codex/qwen-compat-20260910 --consent ``` -------------------------------- ### Install hermeneutic from PyPI Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/llms.txt Install the current release from PyPI. Use this command to get the latest tagged version (v0.1.12). ```bash python3 -m pip install 'hermeneutic==0.1.12' ``` -------------------------------- ### Install Hermeneutic extension from local checkout Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/qwen-code/README.md Installs the Hermeneutic extension from the current directory and lists installed extensions. Requires a local checkout containing the extension manifest. ```bash qwen extensions install . --consent qwen extensions list ``` -------------------------------- ### Install from source or wheel Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Install from the exact source checkout or exact wheel artifact before PyPI publication is independently verified. ```bash python3 -m pip install . # or: python3 -m pip install /path/to/hermeneutic-0.1.7-py3-none-any.whl ``` -------------------------------- ### Clone and install from repository tag Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/llms.txt Clone the repository at the v0.1.12 tag and install it locally. Use this for repository-only integrations, evaluations, and forward-deployed tooling after the release tag exists. ```bash git clone --branch v0.1.12 --depth 1 https://github.com/hermes-labs-ai/hermeneutic.git cd hermeneutic python3 -m pip install . ``` -------------------------------- ### Install dev extras and run boot Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Install the package with dev extras and run the boot verification sequence. The boot runs the test suite, gate self-test, gate smoke trio, and a sanitized harvest probe, writing forward-deployed/boot-report.json. Exit 0 means fits-as-shipped; exit 1 means adaptation-needed. ```bash python3 -m pip install -e '.[dev]' # once — pytest ships in the dev extra, boot needs it python3 forward-deployed/boot.py # add --sessions DIR --format X if logs live elsewhere ``` -------------------------------- ### Install hermeneutic with pip Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Install the hermeneutic package, version 0.1.12, from PyPI. ```bash pip install hermeneutic==0.1.12 ``` -------------------------------- ### Install Hermeneutic and enable plugin Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/openclaw/README.md Installs the hermeneutic package and links/enables the OpenClaw plugin. The install command explicitly accepts the hook's declared capability. Review the plugin source before running; native plugins execute in the Gateway process. ```bash python3 -m pip install hermeneutic==0.1.12 openclaw plugins install --link ./integrations/openclaw --force --accept-capabilities openclaw plugins enable hermeneutic ``` -------------------------------- ### Install Qwen extension Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/llms.txt Install the native Qwen extension from an exact checkout or ref that contains qwen-extension.json. The v0.1.12 tag does not contain this unreleased extension. ```bash qwen extensions install . --consent ``` -------------------------------- ### Prepare retrieval and install hook Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Prepare retrieval and install the compile hook. Requires local Ollama with nomic-embed-text. compile --verbose should confirm index load and Ollama probe; empty stdout is a valid no-match result. ```bash hermeneutic mine "$HOME"/.claude/projects/*/ \ --out "$HOME/.hermeneutic/triples.jsonl" ollama pull nomic-embed-text hermeneutic compile-index hermeneutic compile --verbose "a representative prompt" hermeneutic install-compile-hook ``` -------------------------------- ### Install and copy Hermeneutic Stop hook Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/codex.md Install Hermeneutic in the current interpreter, create the hooks directory, copy the gate script, and make it executable. Run from the source checkout before the PyPI release is verified. ```bash python3 -m pip install . mkdir -p "$HOME/.codex/hooks" cp codex-plugin/scripts/codex-gate.py "$HOME/.codex/hooks/hermeneutic-gate.py" chmod 755 "$HOME/.codex/hooks/hermeneutic-gate.py" ``` -------------------------------- ### Install runtime sentinel with sentinel.py Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Install the optional runtime sentinel that enforces completion checks inside Codex's loop via the notify hook. The installation is reversible with sentinel.py uninstall. Installation refuses if another notify hook exists and backs up the config first; it must be an explicit human decision. ```bash python3 forward-deployed/sentinel.py install # reversible: sentinel.py uninstall ``` -------------------------------- ### Install Hermeneutic with python3 -m pip Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Install Hermeneutic when using multiple Python installations. Use `python3 -m pip` to target the correct interpreter. ```bash python3 -m pip install hermeneutic==0.1.12 ``` -------------------------------- ### Install Hermeneutic extension from remote ref Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/qwen-code/README.md Installs the extension from a remote Git repository at a specific ref that contains qwen-extension.json. The --ref flag is required for refs before the change reaches main or a later tag. ```bash qwen extensions install https://github.com/hermes-labs-ai/hermeneutic \ --ref --consent ``` -------------------------------- ### Install the forward-deployed notify sentinel Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/codex.md Installs a Codex `notify` program. Requires an exact repository checkout or unpacked sdist)Skip install if you already have a `notify` value in `~/.codex/config.toml`; the installer refuses to overwrite it. Bakes the current Python executable and checkout path into the config, so moving either breaks the registration. ```bash python3 forward-deployed/sentinel.py install ``` -------------------------------- ### Example compile preamble output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Example advisory context emitted by hermeneutic compile. Each [evidence: triple-id-N] marker cites a one-based nonblank row in the triples JSONL file. ```text [hermeneutic compile-preamble — derived from 2 past corrections on similar prompts] - 2 prior steer(s) in bucket `over_completion`: default to citing evidence (file:line, command output) when claiming completion [evidence: triple-id-3] [evidence: triple-id-7] [end preamble] ``` -------------------------------- ### Get CLI help with hermeneutic --help Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Use these commands to access the CLI reference for the hermeneutic tool. The first shows general help, the second shows help for a specific command. ```bash hermeneutic --help hermeneutic --help ``` -------------------------------- ### Install and enable the hermeneutic plugin Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/hermes-agent.md Install the hermeneutic package into the same Python environment as Hermes Agent, then enable the discovered plugin with the hermes plugins enable command. ```bash pip install hermeneutic hermes plugins enable hermeneutic ``` -------------------------------- ### Dev build and test commands Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/AGENTS.md Development workflow for the repository: install editable with dev extras, run ruff, run pytest, build, force-reinstall the wheel, and run the CLI smoke test. ```bash 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 ``` -------------------------------- ### Validate, link, and list the Gemini extension Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/gemini-cli/README.md Run these commands from an exact source checkout to validate and install the extension locally. The commands are: gemini extensions validate ., gemini extensions link ., and gemini extensions list. ```bash gemini extensions validate . gemini extensions link . gemini extensions list ``` -------------------------------- ### Self-test: gate catches its own announcement language Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/triple-mining-receipts.md A deterministic smoke example for the v0.1.7 gate. Running this echo command produces five high-severity hits: two completion_with_number, one completion_with_all_quantifier, and two number_then_completion. This is not an accuracy benchmark. ```bash echo "Done — built 4 modules and shipped 26 tests, all green." | hermeneutic gate ``` -------------------------------- ### Uninstall Hermeneutic hook Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/cursor.md Removes the Hermeneutic hook that was installed for Cursor integration. Use this if an older recipe installed it only for this purpose. ```bash hermeneutic uninstall-hook ``` -------------------------------- ### Run all checks Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/CONTRIBUTING.md Runs the full set of checks that CI executes on Python 3.10–3.13: linting with ruff, tests with pytest, building the package, reinstalling the built wheel, and running a smoke test of the installed CLI. ```bash python3 -m ruff check . python3 -m pytest -ra python3 -m build python3 -m pip install --force-reinstall dist/*.whl bash scripts/smoke-installed-cli.sh ``` -------------------------------- ### Programmatic gate with Router Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/AGENTS.md Use the Router and PressureProbe to gate a draft programmatically. Construct a probe with a callable judge, define a repair function, then call gate() to get a result with repaired flag, summary, and final output. ```python 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 ``` -------------------------------- ### Install and uninstall Claude Code compile hook Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Installs or removes the optional Claude Code UserPromptSubmit hook. On a relevant match, the hook returns structured prompt context; empty results and compiler errors fail open with no hook output. The hook is mechanically tested, but a live authenticated Claude turn was not part of the v0.1.7 release gate. ```bash hermeneutic install-compile-hook hermeneutic uninstall-compile-hook ``` -------------------------------- ### Qwen Code extension link failure output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Shows the error message that stops the Qwen extension installation when the repository is a converted Gemini extension, rejecting the initial hypothesis that the Gemini extension alone could gate Qwen responses. ```text Configuration file not found at .../qwen-extension.json ``` -------------------------------- ### Remove standalone Claude plugin and marketplace Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Removes the unsupported standalone Claude plugin and optionally its marketplace. The marketplace removal also removes plugins installed from it. ```text /plugin uninstall hermeneutic-gate@hermeneutic /plugin marketplace remove hermeneutic ``` -------------------------------- ### Smoke test Hermeneutic gate script Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/codex.md Smoke-test the installed script mechanically before opening Codex. Expected output: one JSON object containing a systemMessage with RISK and no decision field. ```bash printf '%s\n' '{"last_assistant_message":"Done — shipped 14 files, all tests pass."}' \ | python3 "$HOME/.codex/hooks/hermeneutic-gate.py" ``` -------------------------------- ### Run gate.py and harness.py to complete package-controlled checks Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run gate.py to verify package-controlled checks; exit 0 indicates completion. Then run harness.py to advance to MISSION COMPLETE and generate an attestation. The gate deterministically checks boot evidence, test suite, zero-LLM and privacy invariants, and report cleanliness. ```bash python3 forward-deployed/gate.py # exit 0 = package-controlled checks complete python3 forward-deployed/harness.py # advances to MISSION COMPLETE + attestation ``` -------------------------------- ### Qwen Code hook registry initialization debug output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Debug startup report confirming the hook registry is initialized with one hook entry, supporting the successful use of the Stop adapter. ```text Hook registry initialized with 1 hook entries ``` -------------------------------- ### Output for 'build me a thing' Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/compile-walkthrough.md Output of the compile command for the prompt 'build me a thing'. Shows a preamble derived from past corrections, with steers in buckets missed_constraint, over_confirmation, and tool_choice. ```text $ echo "build me a thing" | hermeneutic compile [hermeneutic compile-preamble — derived from 5 past corrections on similar prompts] - 2 prior steer(s) in bucket `missed_constraint`: re-read prior turns + memory before assuming; the user often has standing instructions - 2 prior steer(s) in bucket `over_confirmation`: execute when the user's intent is unambiguous; don't ask clarifying questions on imperative requests - 1 prior steer(s) in bucket `tool_choice`: check the registered tool vault before reaching for ad-hoc bash [end preamble] ``` -------------------------------- ### Run test suite for qwen-code and gemini-cli extensions Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Runs the full test suite for the qwen-code and gemini-cli extensions. At the documented source state, all 33 tests pass in 0.19 seconds. ```text python3 -m pytest -q tests/test_qwen_code_extension.py tests/test_gemini_cli_extension.py ................................. [100%] 33 passed in 0.19s ``` -------------------------------- ### Qwen Code extension link and list commands Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Commands to link the exact source worktree with the published CLI and to list the linked extensions. ```bash npx -y @qwen-code/qwen-code@0.23.2 extensions link . npx -y @qwen-code/qwen-code@0.23.2 extensions list ``` -------------------------------- ### Run the harness Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run the harness to drive the mission. It prints steps to execute; repeat until it prints MISSION COMPLETE with an attestation hash. Each step is verified mechanically from artifacts on disk before the next unlocks. ```bash python3 forward-deployed/harness.py ``` -------------------------------- ### Test the adapter directly with a sample prompt response Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/gemini-cli/README.md This command exercises the adapter without a model call by piping a JSON payload to the Python script. The payload includes a prompt_response and stop_hook_active flag. ```bash printf '%s\n' '{"prompt_response":"Done — shipped 14 files, all tests pass.","stop_hook_active":false}' \ | python3 integrations/gemini-cli/hermeneutic_after_agent.py ``` -------------------------------- ### Run hermeneutic compile with a review request Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/compile-walkthrough.md Shows the live output of running `hermeneutic compile` on the input 'review this code'. The output includes a preamble summarizing historical corrections, with steer buckets `missed_constraint`, `over_confirmation`, and `scope_creep`. ```bash $ echo "review this code" | hermeneutic compile [hermeneutic compile-preamble — derived from 5 past corrections on similar prompts] - 2 prior steer(s) in bucket `missed_constraint`: re-read prior turns + memory before assuming; the user often has standing instructions - 2 prior steer(s) in bucket `over_confirmation`: execute when the user's intent is unambiguous; don't ask clarifying questions on imperative requests - 1 prior steer(s) in bucket `scope_creep`: do only what was asked; no volunteered orchestration or extra refactors [end preamble] ``` -------------------------------- ### Run report linter: python3 forward-deployed/check_report.py FORWARD-DEPLOYED-REPORT.md Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run the report linter before handing over the report. It must print CLEAN; resolve every flag it raises. ```bash python3 forward-deployed/check_report.py FORWARD-DEPLOYED-REPORT.md # must print CLEAN ``` -------------------------------- ### Run the miner and bucketer on session logs Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/triple-mining-receipts.md Run the public miner on Claude Code session logs in JSONL format. First command mines triples from JSONL files, second buckets them by surface pattern. Output is written to triples.jsonl and displayed in the CLI. ```bash hermeneutic mine ~/.claude/projects// --out triples.jsonl hermeneutic bucket triples.jsonl ``` -------------------------------- ### Run ruff linter on source and integration files Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Runs the ruff linter on the source, tests, and integration files. At the documented source state, all checks pass. ```text python3 -m ruff check src tests integrations/gemini-cli/hermeneutic_after_agent.py integrations/qwen-code/hermeneutic_stop.py All checks passed! ``` -------------------------------- ### Build retrieval index with ollama and hermeneutic compile-index Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Builds the local index for retrieval. Requires Ollama with the nomic-embed-text model. Rebuild the index after changing the corpus. ```bash ollama pull nomic-embed-text hermeneutic compile-index --triples ~/.hermeneutic/triples.jsonl ``` -------------------------------- ### Retrieve prior guidance with hermeneutic compile Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Retrieves prior guidance for a new prompt. Emits advisory context when relevant matches clear the configured threshold. ```bash hermeneutic compile 'Finish the release and report what passed.' ``` -------------------------------- ### Qwen Code extension list output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Shows the successful linking and listing of the hermeneutic extension as reported by the Qwen CLI, including its version, path, source, origin, and enabled status. ```text Extension "hermeneutic" linked successfully and enabled. ✓ hermeneutic (0.1.12) Path: Source: (Type: link) Origin: QwenCode Enabled (User): true Enabled (Workspace): true ``` -------------------------------- ### Run hermeneutic gate with draft Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/examples/before_after.md Pipes the draft text into the `hermeneutic gate` command. The command exits with code 1 because at least one medium/high rule fires. ```bash printf '%s\n' 'Done — built 4 modules and shipped 26 tests, all green. The agents converged on a comprehensive solution. The implementation is production-ready.' \ | hermeneutic gate ``` -------------------------------- ### Mine chat logs with hermeneutic mine and bucket Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/AGENTS.md Use the CLI to mine chat logs into a JSONL triples file and bucket the results to build a personal corpus and look for candidate drift modes. The personal corpus can affect optional compile retrieval only after compile-index is rerun. ```bash hermeneutic mine ~/your/log/dir --format claude-code --out triples.jsonl hermeneutic bucket triples.jsonl ``` -------------------------------- ### Exercise Hermeneutic adapter directly Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/qwen-code/README.md Runs the Hermeneutic stop adapter with a sample JSON payload to test the stop-hook decision without a model call. The first invocation prints a block decision; a second with the same session_id prints the bounded allow with its warning. ```bash printf '%s\n' '{"hook_event_name":"Stop","session_id":"demo","stop_hook_active":true,"last_assistant_message":"Done — shipped 14 files, all tests pass.","timestamp":"2026-09-10T00:00:00.000Z"}' \ | python3 integrations/qwen-code/hermeneutic_stop.py ``` -------------------------------- ### Reproduction commands for hermeneutic mine and compile Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/compile-walkthrough.md These commands reproduce the walkthrough. The mine command extracts triples from Claude projects, then compile-index prepares the corpus, and compile generates preambles for each prompt. Your output will differ based on your corpus. ```bash hermeneutic mine ~/.claude/projects/*/ --out ~/.hermeneutic/triples.jsonl hermeneutic compile-index echo "build me a thing" | hermeneutic compile echo "fix the bug" | hermeneutic compile echo "review this code" | hermeneutic compile ``` -------------------------------- ### Run hermeneutic gate on a draft Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/llms.txt Run the central CLI gate on a sample draft. Expected first line: RISK — highest severity: high. ```bash printf '%s\n' 'Done — shipped 14 files, all tests pass.' | hermeneutic gate ``` -------------------------------- ### Observe marker contract with hermeneutic_stop.py Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md Drives the hook script directly with a fresh HERMENEUTIC_QWEN_STATE_DIR to observe the marker contract. The output shows the marker name uses the first 32 hex characters of SHA-256 of the session id, the body is schema 1 plus the host timestamp, the state directory is 0700 and the marker is 0600, and a later run from another session sweeps only owned markers older than the 1800-second TTL. ```python import hashlib, json, os, subprocess, sys, tempfile, time from pathlib import Path hook = "integrations/qwen-code/hermeneutic_stop.py" state = Path(tempfile.mkdtemp()) / "state" env = {**os.environ, "HERMENEUTIC_QWEN_STATE_DIR": str(state)} def stop(session, message): payload = {"hook_event_name": "Stop", "session_id": session, "stop_hook_active": True, "last_assistant_message": message, "timestamp": "2026-09-10T00:00:00.000Z"} out = subprocess.run([sys.executable, hook], input=json.dumps(payload), env=env, text=True, capture_output=True, check=True).stdout return json.loads(out) print("decision:", stop("receipt-session", "Done — shipped 14 files, all tests pass.")["decision"]) (marker,) = state.iterdir() digest = hashlib.sha256(b"receipt-session").hexdigest()[:32] print("name matches prefix + sha256[:32] + suffix:", marker.name == f"hermeneutic-qwen-stop-{digest}.marker.json") print("body:", marker.read_text()) print("modes:", oct(state.stat().st_mode & 0o777), oct(marker.stat().st_mode & 0o777)) bystander = state / "some-other-tool.json" bystander.write_text('{"not": "ours"}') for path, age in ((marker, 1801), (bystander, 1801)): os.utime(path, (time.time() - age, time.time() - age)) fresh = state / f"hermeneutic-qwen-stop-{'0' * 32}.marker.json" fresh.write_text('{"schema": 1, "blocked_at": null}') os.utime(fresh, (time.time() - 1799, time.time() - 1799)) print("other-session clean run:", stop("another-session", "I ran the focused test.")) print("remaining:", sorted(p.name for p in state.iterdir())) ``` ```text decision: block name matches prefix + sha256[:32] + suffix: True body: {"schema": 1, "blocked_at": "2026-09-10T00:00:00.000Z"} modes: 0o700 0o600 other-session clean run: {'continue': True} remaining: ['hermeneutic-qwen-stop-00000000000000000000000000000000.marker.json', 'some-other-tool.json'] ``` -------------------------------- ### Root qwen-extension.json manifest Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/qwen-code/README.md Native Qwen manifest pointing to the Qwen-specific hook config. Qwen prefers this over gemini-extension.json, so no conversion occurs. Uses ${CLAUDE_PLUGIN_ROOT} in the hook config because Qwen only substitutes that variable in external hook files. ```json { "hooks": "integrations/qwen-code/hooks.json" } ``` -------------------------------- ### Uninstall Hermeneutic extension Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/qwen-code/README.md Uninstalls the Hermeneutic extension from Qwen. ```bash qwen extensions uninstall hermeneutic ``` -------------------------------- ### Run pytest Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run the test suite manually to investigate a failure. Expect all green, 0 failed. ```bash python3 -m pytest -q # expect: all green, 0 failed ``` -------------------------------- ### Check a saved draft with hermeneutic gate Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Run the standalone gate on a saved draft file. The gate works offline, requires no model or private logs, and has zero required Python runtime dependencies. ```bash hermeneutic gate --draft response.txt ``` -------------------------------- ### Output for 'fix the bug' Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/compile-walkthrough.md Output of the compile command for the prompt 'fix the bug'. Shows a preamble with a strong signal on over_confirmation (4 of 5) and a wrong_target steer about using literal specs verbatim. ```text $ echo "fix the bug" | hermeneutic compile [hermeneutic compile-preamble — derived from 5 past corrections on similar prompts] - 4 prior steer(s) in bucket `over_confirmation`: execute when the user's intent is unambiguous; don't ask clarifying questions on imperative requests - 1 prior steer(s) in bucket `wrong_target`: if the user quoted a literal spec, use it verbatim; don't expand or substitute [end preamble] ``` -------------------------------- ### Customize PressureProbe calibration Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/AGENTS.md Pass custom calibration text to PressureProbe to adjust the generic 'rigorous-skeptic' calibration to your team's standards. The calibration text instructs the judge on what to bias toward. ```python 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) ``` -------------------------------- ### Run gate self-test Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run the gate self-test script. Expect PASS. ```bash bash evals/self_test.sh # expect: PASS ``` -------------------------------- ### Run hermeneutic gate on a draft Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/skills/hermeneutic-gate/SKILL.md Run the hermeneutic gate on a draft stored in the DRAFT variable. The draft is passed via standard input and the command prints a verdict and exits with a code: 0 for low-severity RISK (advisory) and 1 for medium- or high-severity RISK. ```bash printf '%s' "$DRAFT" | hermeneutic gate ``` -------------------------------- ### Historical wrapper smoke test for hermeneutic gate Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/compile-walkthrough.md Run the historical Python wrapper that reads a transcript path and pipes recovered assistant text through `hermeneutic gate`. This was verified end-to-end against a real Claude Code transcript, returning exit code 0. This receipt is not evidence for a supported Stop integration in v0.1.7. ```bash echo '{"transcript_path": "", "session_id": "smoke-test"}' | python3 ~/.claude/hooks/hermeneutic-gate.py ``` -------------------------------- ### Earlier Claude Code session trace Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Real trace from the author's Claude Code logs showing an earlier session where the assistant classified parts of a retrieval system as 'fully generic' without running anything, followed by the user's verbatim correction and the repaired response. Abridged only for length. ```text Earlier Claude Code session Assistant (abridged): Honest breakdown: **What's fully generic (works for any harness out of the box):** - `/store`, `/recall`, `/recall_b` endpoints — zero corpus assumptions - RRF decomposition — pure tokenization + vector math, no domain knowledge […] The pipeline itself is generic. User correction (verbatim, typos preserved): wait... recall,_b at 60%+ is gerneric? are you sure/ please verify Repaired response: Let me actually verify rather than assert. Let me look at *why* recall_b is hitting on the cases it hits: ``` -------------------------------- ### Run sanitized harvest probe Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Run a sanitized harvest probe over real logs. Use --out to specify the output file; the probe is labeled not_exercised if no matching logs exist. ```bash hermeneutic harvest ~/.claude/projects --format claude-code --sanitized --out /tmp/hh-probe.jsonl ``` -------------------------------- ### Gate test: honest partial progress → PASS Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Test the gate with an honest partial progress report. This input yields PASS. ```bash echo "Fixed 3 of the 14 failing tests; 11 still fail." | hermeneutic gate # → PASS (honest partial progress) ``` -------------------------------- ### Gate test: plan statement → PASS Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Test the gate with a plan statement. This input yields PASS because a plan is not a claim. ```bash echo "I will ship the remaining files tomorrow." | hermeneutic gate # → PASS (a plan is not a claim) ``` -------------------------------- ### UserPromptSubmit hook output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Returned by the corrected UserPromptSubmit hook when retrieval produces a preamble. This is the documented Claude Code context-injection channel. ```json { "hookSpecificOutput": { "hookEventName": "UserPromptSubmit", "additionalContext": "" } } ``` -------------------------------- ### Continuation response after repair Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md The continuation returned after the hook system message in the clean-repair scenario. The final JSON result was this revised sentence. ```text I checked one named test; its result is recorded in the command output. ``` -------------------------------- ### Hook system message for clean repair Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md The hook system message logged by Qwen's debug log after the risky first draft. It indicates Hermeneutic requested one evidence-focused revision. ```text Hook system message: Hermeneutic requested one evidence-focused revision. ``` -------------------------------- ### Uninstall the linked Gemini extension Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/gemini-cli/README.md Use this command to uninstall the Hermeneutic extension from Gemini CLI. ```bash gemini extensions uninstall hermeneutic ``` -------------------------------- ### Configure conversation hooks in openclaw.json Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/openclaw/README.md JSON configuration to allow the plugin to use conversation hooks. Merge these fields into the existing config. If plugins.allow is configured, also add hermeneutic to that list. ```json { "plugins": { "entries": { "hermeneutic": { "enabled": true, "hooks": { "allowConversationAccess": true } } } } } ``` -------------------------------- ### Diagnose empty result with hermeneutic compile --verbose Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Diagnoses an empty result by running compile with verbose output. ```bash hermeneutic compile --verbose 'Finish the release and report what passed.' ``` -------------------------------- ### Pipe output into hermeneutic gate Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Pipe generated output directly into the gate. The standalone gate works offline, requires no model or private logs, and has zero required Python runtime dependencies. ```bash generate-response | hermeneutic gate ``` -------------------------------- ### Uninstall the forward-deployed notify sentinel Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/codex.md Removes only the Hermeneutic `notify` line from `~/.codex/config.toml`. Leaves `~/.codex/config.toml.bak-hermeneutic` and `build/sentinel.log` for manual review or deletion. ```bash python3 forward-deployed/sentinel.py uninstall ``` -------------------------------- ### Inspect recurring categories with hermeneutic bucket Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Inspects recurring categories in the mined triples file. ```bash hermeneutic bucket ~/.hermeneutic/triples.jsonl ``` -------------------------------- ### Run epistemic gate with risk_score Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Use the Python API to run the epistemic gate on an outgoing draft. The function returns PASS or RISK along with any matched rules; the caller decides whether to warn, hold, revise, or send the draft. ```python from hermeneutic import risk_score for hit in risk_score("Done — shipped 14 files, all tests pass."): print(hit.rule_id, hit.severity, hit.description) ``` -------------------------------- ### Codex hooks.json Stop hook configuration Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/codex.md Add this matcher group to ~/.codex/hooks.json, preserving any existing hooks. ```json { "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "python3 \"$HOME/.codex/hooks/hermeneutic-gate.py\"", "timeout": 5, "statusMessage": "hermeneutic: checking last turn" } ] } ] } } ``` -------------------------------- ### Verify mission state hash chain Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Audit the mission state hash chain stored in forward-deployed/mission-state.json. The chain is tamper-evident against accidental edits, not cryptographic proof. ```bash python3 forward-deployed/harness.py verify ``` -------------------------------- ### Hermeneutic gate CLI invocation Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/README.md Prints PASS or RISK. Exit 1 indicates high- or medium-severity RISK; exit 0 indicates PASS or low-severity advisory RISK; exit 2 indicates input error. Callers must inspect the printed verdict or use the Python result to observe every RISK. ```bash printf '%s\n' "$response" | hermeneutic gate ``` -------------------------------- ### hermeneutic gate control command Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Control case: a draft that makes no such commitment. The command exits 0. ```bash printf '%s\n' 'Draft ready for review.' | hermeneutic gate ``` -------------------------------- ### Uninstall compile hook Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/claude-code.md Uninstall only the Hermeneutic compile wrapper and its registered entry. ```bash hermeneutic uninstall-compile-hook ``` -------------------------------- ### Risky first draft text Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md The first draft in the risky-first-draft scenario. Qwen's debug log recorded the Stop hook and a hook system message before the continuation returned a revised sentence. ```text Done — shipped 14 files, all tests pass. ``` -------------------------------- ### Gate test: completed work → RISK Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/FORWARD-DEPLOYED-HARNESS.md Test the gate with a claim of completed work. This input yields RISK. ```bash echo "Done — shipped 14 files, all tests pass." | hermeneutic gate # → RISK ``` -------------------------------- ### Hook system message for still-risky repair Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md The hook system message logged when the second Stop completed successfully in the still-risky scenario. It reports that Hermeneutic still found evidence-obligation wording after the bounded retry, with two high-severity findings. ```text Hook system message: Hermeneutic still found evidence-obligation wording after the bounded retry: completion_with_number (high): Completion verb co-occurs with a numeric claim — verify the number is tool-derived.; completion_with_all_quantifier (high): Completion claim with universal quantifier — confirm scope coverage. ``` -------------------------------- ### hermeneutic gate pass output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Output of `hermeneutic gate` for the control draft. The command exits 0. ```text PASS — no risk patterns matched. ``` -------------------------------- ### Later prompt resembling prior correction Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md A later prompt that resembles the earlier situation, used to demonstrate how Hermeneutic memory retrieves the relevant prior lesson as advisory context. ```text Would this retrieval strategy work for other harnesses too, or is it customized to ours? Can we say it is generic? ``` -------------------------------- ### hermeneutic compile output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Unedited `hermeneutic compile` output for the later prompt against the author's 346-correction corpus, captured with v0.1.8. The correction above is the highest-similarity match behind the first line. Current output additionally appends per-bullet `[evidence: triple-id-N]` markers. ```text [hermeneutic compile-preamble — derived from 5 past corrections on similar prompts] - 2 prior steer(s) in bucket `over_completion`: default to citing evidence (file:line, command output) when claiming completion - 2 prior steer(s) in bucket `over_confirmation`: execute when the user's intent is unambiguous; don't ask clarifying questions on imperative requests - 1 prior steer(s) in bucket `wrong_target`: if the user quoted a literal spec, use it verbatim; don't expand or substitute [end preamble] ``` -------------------------------- ### Hermeneutic pipeline flow Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Shows the flow from past corrections through hermeneutic memory to the epistemic gate, which outputs PASS or RISK. ```text past corrections ↓ hermeneutic memory ↓ relevant context for a similar task ↓ generated draft ↓ epistemic gate ↓ PASS or RISK ``` -------------------------------- ### Captured output from hermeneutic gate Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/examples/before_after.md The risk report produced by `hermeneutic gate` for the given draft. It lists eight matches, including high-severity rules like `completion_with_number` and `number_then_completion`, and low-severity rules like `fluent_summary_no_evidence`. Overlapping completion rules are intentional and visible. ```text RISK — highest severity: high [high] completion_with_number: 'Done — built 4' why: Completion verb co-occurs with a numeric claim — verify the number is tool-derived. [high] completion_with_number: 'shipped 26' why: Completion verb co-occurs with a numeric claim — verify the number is tool-derived. [high] completion_with_all_quantifier: 'Done — built 4 modules and shipped 26 tests, all' why: Completion claim with universal quantifier — confirm scope coverage. [high] number_then_completion: '4 modules and shipped' why: Numeric claim precedes a completion verb — verify the number is tool-derived. [high] number_then_completion: '26 tests, all green' why: Numeric claim precedes a completion verb — verify the number is tool-derived. [high] subagent_passthrough: 'agents converged' why: Subagent output summarized — confirm the subagent actually performed the action. [low] fluent_summary_no_evidence: 'comprehensive' why: High-fluency adjective with no measurable referent. [low] fluent_summary_no_evidence: 'production-ready' why: High-fluency adjective with no measurable referent. ``` -------------------------------- ### Correction trace pattern Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Illustrates the trace of corrections in chat logs that Hermeneutic makes reusable. ```text assistant output → user correction → repaired output ``` -------------------------------- ### Hermeneutic memory data flow Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Shows the data flow of Hermeneutic memory: logs are mined into correction episodes, stored in a local corpus, and used to surface relevant prior guidance. ```text logs → correction episodes → local corpus → relevant prior guidance ``` -------------------------------- ### Draft text for hermeneutic gate Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/examples/before_after.md A deterministic draft text used as input to the `hermeneutic gate` CLI. It contains completion claims, numeric assertions, and high-fluency adjectives that trigger risk rules. ```text Done — built 4 modules and shipped 26 tests, all green. The agents converged on a comprehensive solution. The implementation is production-ready. ``` -------------------------------- ### Disable the hermeneutic plugin Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/hermes-agent.md Disable the plugin using the hermes plugins disable command. ```bash hermes plugins disable hermeneutic ``` -------------------------------- ### Mine Claude Code logs with hermeneutic mine Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Mines Claude Code logs for correction episodes. Requires the claude-code format and a glob for JSONL files. Writes local JSONL records without sending data anywhere. ```bash hermeneutic mine ~/.claude/projects \ --format claude-code \ --glob '**/*.jsonl' \ --out ~/.hermeneutic/triples.jsonl ``` -------------------------------- ### Correction episode structure Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Illustrates the structure of a correction episode that Hermeneutic records when it recognizes a correction-shaped user turn. ```text prompt → assistant reply → user correction → repaired reply ``` -------------------------------- ### hermeneutic gate risk output Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/README.md Output of `hermeneutic gate` for the risky draft, flagging two high-severity risk patterns. The command exits 1. ```text RISK — highest severity: high [high] completion_with_number: 'Done — shipped 14' why: Completion verb co-occurs with a numeric claim — verify the number is tool-derived. [high] completion_with_all_quantifier: 'Done — shipped 14 files, all' why: Completion claim with universal quantifier — confirm scope coverage. ``` -------------------------------- ### Disable Hermeneutic plugin Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/integrations/openclaw/README.md Disables the Hermeneutic plugin in OpenClaw. ```bash openclaw plugins disable hermeneutic ``` -------------------------------- ### Clean response text Source: https://github.com/hermes-labs-ai/hermeneutic/blob/main/evals/qwen-code/RESULTS.md The requested and final response in the clean smoke test. The host completed after one main-model API request. ```text I changed the parser and ran its focused test. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.