Repository navigation
Hydra 0.2.0: every coding tool, local telemetry
Hydra now works beyond Claude Code. It joins Codex, Cursor, OpenCode, Gemini CLI and Antigravity through an MCP server and each tool's own hooks, and it records local telemetry so you can see what it saves.
Install
npx hydra-nanoHeads up: the installer now edits other tools' settings
For every coding tool it finds, the installer adds Hydra's MCP server, plus its test/build hook where the tool has hooks:
| Tool | What Hydra adds |
|---|---|
| Codex | [mcp_servers.hydra] in ~/.codex/config.toml, hooks in ~/.codex/hooks.json (trust them with /hooks) |
| Cursor | ~/.cursor/mcp.json, ~/.cursor/hooks.json |
| OpenCode | mcp.hydra in opencode.json(c), ~/.config/opencode/plugins/hydra.js |
| Gemini CLI | mcpServers.hydra and a BeforeTool hook in ~/.gemini/settings.json |
| Antigravity | ~/.gemini/antigravity/mcp_config.json, and the skill |
Every edited file is backed up once as <file>.before-hydra, and only Hydra's own entries change. A JSON file with comments is left alone, and the entry to add by hand is printed instead. To skip this, run the installer with --no-agents. To undo it, run hydra agents remove.
Status: Claude Code is tested. Codex lists Hydra's MCP server and OpenCode connects to it. Cursor, Gemini CLI and Antigravity are in preview.
New
- MCP server (
hydra mcp, stdio, no dependencies) with three tools:hydra_git,hydra_runandhydra_os.hydra_runaccepts only one recognised test or build command; it refuses shell operators, redirection and env prefixes. hydra agents install|remove|statusmanages Hydra in each tool.- Local telemetry in
~/.hydra/ledger.jsonl, which never leaves your machine; setHYDRA_TELEMETRY=0to turn it off.hydra improvereads it and shows, for each head and each tool, which calls returned more than the raw output, the latency, and whether agents followed the hooks.
Fixed
- A short passing test run comes back as its output alone, and replies drop the program's directory. One run that came back at 53 tokens from 29 now comes back at 29.
- The test hook no longer stops commands whose quoted text or heredoc data mentions
pytest. - The test suite no longer writes fixture calls into your ledger.
- The bootstrap test passes on macOS.
Docs
The README is rewritten, and the full detail now lives in docs/how-it-works.md and docs/evaluations.md.