Repository navigation
Claude is stateless. Your project isn't.
v2.0.0 makes it intelligent.
v1.0 gave Claude memory and enforcement.
v2.0 gives Claude self-awareness and autonomy.
What's new in v2.0.0
Self-Model Engine
Claude learns its own failure patterns on your project.
After enough sessions it knows what it handles well, what
it consistently gets wrong, what conditions cause loops.
Every session injects pre-emptive warnings before Claude
makes the same mistake again.
Codebase Map
Before any file edit, OptimusPrime scans what already
exists — utilities, installed deps, patterns in use,
things this project never uses. Ponytail tells Claude
to check if something exists. OptimusPrime tells Claude
what it would find.
Pre-Response Intelligence
Fires before Claude even responds to your message. Reads
what you asked, checks against the self-model and decision
history, injects warnings before Claude forms its approach.
The earliest possible intervention point.
Living Task Document
Maintained in real time during a session. Updated after
every significant tool call. Claude never loses the thread
of a long task.
Convention Extractor
Reads your actual codebase and extracts implicit rules —
naming patterns, error handling style, testing approach.
Not documentation you wrote. Conventions inferred from
real code. Checked after every file write.
op watch — Live Dashboard
Real-time terminal dashboard alongside Claude Code.
Tokens, cost, scope violations, decisions, loops, active
skills, self-model confidence. Updates every 3 seconds.
op autopilot — Pre-Session Brief
Before you open Claude Code, reads git diff, last snapshot,
open TODOs, known risks, and writes a ready-to-paste first
message. Every session starts oriented.
op replay — Session Debugger
Step through any past session like a debugger. Every
decision, every failure, every scope block, every loop
caught. See exactly where tokens were wasted.
op diff-intel — Between-Session Intelligence
Analyzes what changed in git since your last session.
Flags out-of-scope changes, rejected deps re-added,
test count drops, decision contradictions.
Conductor — Agentic Loop with Full Guardrails
You define a goal. Conductor breaks it into subtasks,
runs Claude headlessly on each, evaluates every output,
escalates when stuck, continues autonomously when not.
The entire enforcement stack acts as guardrails:
- Scope contract enforced during autonomous execution
- Loop detection escalates instead of burning tokens
- Self-model warnings injected before each subtask
- Done checker runs before marking anything complete
op conductor start --goal "refactor auth to use JWT"
op conductor resume --context "use RS256 not HS256"
op conductor statusBenchmarks
| Metric | Result |
|---|---|
| Output compression | 63.9% (non-destructive) |
| Scope guard | 78.7ms avg (n=1000) |
| Loop detection | 100% accuracy |
| Decision search | 0.03ms avg |
| Self-model build | 2.6ms avg |
| Codebase map scan | 334ms first, 2.18ms warm |
| Conductor plan | 0.001s avg |
Numbers
- 374 tests passing
- 16 benchmarks all green
- 13 sessions to build
- 167 decisions logged during its own build
- Built with itself from session one
Install
git clone https://github.com/aarshsharma2803-stack/optimusprime
cd optimusprime
bash install.shMIT License.