Skip to content

A second brain for Claude Code. Now for every AI coding assistant.

Coding agents re-read files they already saw, scan whole directories to find one function, and forget your conventions between sessions. OpenWolf gives Codex, OpenCode, Claude Code, and other agentic systems one persistent project brain: improved context management, optimized architecture scaffolding, and smarter token utilization. No workflow changes.

terminal
$ openwolf init
Agents detected: codex, gemini (auto-wiring)
Codex hooks registered (.codex/hooks.json)
Skills installed: /security-audit, /reframe
OpenWolf v2.0.0 initialized
Claude Code hooks registered (7 hooks)
Anatomy scan: 24 files indexed
You're ready. Use your agents as normal. OpenWolf is watching.

Coding agents are powerful. But they work blind.

An agent does not know what a file contains until it opens it. It cannot tell a 50-token config from a 2,000-token module. It reads the same file three times in one session without noticing. It has no map of your project, no memory of past corrections, no awareness of what it already tried.

OpenWolf gives every agent a project index, a learning memory, and a token-aware read layer. And in 2.0 it measures real usage from harness transcripts, so the savings are verified rather than estimated.

~66%average estimated token reduction (1.x field use)
71%repeated reads caught
2M+tokens saved

Same project. Same prompts. Different setups.

Bare agent (no OpenWolf)
~2.5M
Same project with OpenWolf
~425K

Heuristic estimates from 1.x field use. OpenWolf 2.0 measures your own numbers from harness transcripts: run openwolf report.

Features

Everything works invisibly

OpenWolf hooks into your agent's lifecycle. No commands to remember. It just makes every session smarter.

Every Agent, One Brain

Codex, OpenCode, and Claude Code share one project memory, with Cursor and Antigravity in beta. init auto-detects what you have installed and wires it. Learn once, apply everywhere.

Measured Tokens

Real usage is read from harness transcripts at session end: input, output, cache, per agent. openwolf report shows measured numbers next to the estimates. Verify, don't trust.

Context That Survives

A token-budgeted digest of your project's state is injected at every session start. Compaction is snapshotted and restored. Sessions stop starting from zero.

Symbol-Level Reads

Big files index their functions and classes with line ranges. Agents fetch one function with offset/limit instead of the whole file. Stale ranges are suppressed automatically.

Self-Learning

Every correction gets logged. Every bug fix gets remembered. Every preference gets enforced. Your agents get smarter with every session, without you repeating yourself.

Secure by Default

Loopback-only dashboard with token auth, zero shell interpolation, path traversal guards, and secret files excluded from every index. Plus bundled /security-audit and /reframe skills.

How It Works

Three steps. Then invisible.

01

Initialize

Run one command in any project. Creates .wolf/ directory, registers hooks, scans all files.

$ openwolf init
02

Work Normally

Just use claude as you always do. Hooks fire invisibly, tracking, learning, enforcing. You don't interact with any of it.

$ claude
03

Get Smarter

Every session, OpenWolf learns preferences, logs bugs, prevents repeated mistakes. View everything on the real-time dashboard.

$ openwolf dashboard
Architecture

The .wolf/ directory

Every project gets a .wolf/ folder containing state, learning memory, and configuration. Markdown is the source of truth.

anatomy-index.json

Durable project index: descriptions, token estimates, content hashes, and per-file symbols. Rendered to anatomy.md.

cerebrum.md

Learned preferences, conventions, Do-Not-Repeat mistakes. Gets smarter every session.

STATUS.md

Session handoff. The next session reaches productive context in one small read.

buglog.json

Bug encounter and resolution memory. Searchable. Prevents re-discovering the same fix.

hooks/

7 Node.js lifecycle hooks shared by all wired agents. Pure file I/O, no network, no AI calls.

token-ledger.json

Estimated and measured usage per session and per agent, straight from harness transcripts.

Hooks

The enforcement layer

Seven hooks fire on every agent action. They warn but never block. Pure Node.js. No network, no AI, no extra cost.

SessionStartsession-start.jsInjects the budgeted context digest, detects stale anatomy
PreToolUsepre-read.jsWarns on repeated reads, shows anatomy and symbol hints
PreToolUsepre-write.jsChecks cerebrum Do-Not-Repeat patterns
PostToolUsepost-read.jsEstimates and records token usage
PostToolUsepost-write.jsUpdates the anatomy store under a cross-process lock
PreCompactprecompact.jsSnapshots session state before context compaction
Stopstop.jsReads measured usage from the transcript; surfaces end-of-turn reminders

Make your coding agent smarter

One install. One init. Then it's invisible.

AGPL-3.0 · Made by Cytostack