Agent Amplifier
LIVERuntime Amplification Layer for AI Coding Agents — Claude Code Hooks That Don't Just Block, They Amplify
Agent Amplifier is the runtime amplification layer for AI coding agents — the missing half of the hook layer. Modern coding agents (Claude Code, Cursor, Copilot, LangGraph, CrewAI, AgentScope, LangChain) all expose lifecycle hooks. The community filled them with guardrails — products whose job is to BLOCK dangerous actions. That work is necessary, but it's only half the job. Hooks can also amplify: dynamically shape WHAT the agent does next based on prompt complexity, drift signals, convergence, and budget. Agent Amplifier fills that empty slot with five deterministic Python hooks — effort router (5-tier complexity classifier), goal anchor (anti-drift re-injection), convergence detector (LTI stability), persona escalation (audit pressure per iteration), and token budget controller. Zero extra LLM calls, zero network, fail-open, AGPL-3.0. Dogfooded across 1.71 billion tokens of real coding sessions before v1.0.0 shipped on 2026-05-13. 1,741 tests, 100% branch coverage, mypy --strict.
Watch the demo
Features
Effort Router (5-Tier Classifier)
Deterministic complexity classifier routes each user prompt to one of five effort tiers (minimal, low, medium, high, ultra). Shapes phase budget + model tier suggestion without an extra LLM call.
Goal Anchor (Anti-Drift)
Re-injects the original goal every N tool calls to prevent multi-turn drift. Solves the 486M-token rabbit-hole problem at the hook layer.
Convergence Detection (LTI Stability)
Detects when agent output is substantially similar to the prior iteration. Stops the loop. Saves tokens.
Persona Escalation
Each iteration ramps audit pressure: senior dev → adversarial reviewer → red-team auditor. Catches what single-pass review misses.
Token Budget Controller
Cost-bounded amplification. Set a session budget; AA shapes phase prompts to stay within it without truncating mid-task.
7 Host Adapters
Claude Code, Cursor, GitHub Copilot, LangGraph, CrewAI, AgentScope, LangChain. One install command per host: agent-amp install <host>.
SLM Memory Provider
Built-in integration with SuperLocalMemory. recall() before each prompt, remember() at session end. Local-first, zero cloud.
Streamlit Dashboard
Live telemetry: token bar, classification distribution, persona escalation timeline. agent-amp dashboard to launch.
