Claude Code
Hooks & agentsEnd-to-end TRW integration for local CLI workflows that lean on hooks and durable instructions.
- Best for
- Local CLI workflows that want repo-native hooks, agents, and guidance
TRW writes
Docs
TRW is the engineering operating layer that sits above your coding client. Install it once, choose the surfaces you actually use, and give each session access to explicitly recorded project knowledge, structured execution, and validation receipts.
Read in this order
1-line installer
The fastest path to a working TRW setup — installs trw-mcp from PyPI, records the target profiles you select, and applies dedicated client wiring where it exists.
curl -fsSL https://trwframework.com/install.sh | bashClient coverage
Keep the tools already used by the repository. Select one profile or several in the same setup pass, then review the files each integration can actually write.
7 current installer profiles
Claude Code, Cursor IDE, Cursor CLI, OpenCode, Codex CLI, GitHub Copilot CLI, and Antigravity CLI can be selected for new setups.
MCP Tools
What each tool does, when it appears, and the edges that matter in real work.
Skills
Repeatable workflows for delivery, PRDs, auditing, review, and sprint operations.
Agents
Focused teammates for implementation, research, testing, review, and requirements work.
Hooks
Optional client adapters for reminders, telemetry, snapshots, and supported early gates.
What changes after install
Agents explicitly record learnings and checkpoints; later sessions call TRW to retrieve a bounded, relevant set and re-check it against the current repository. Validation receipts keep the handoff inspectable instead of asking you to trust narration.
Explicitly recorded learnings can surface as bounded candidates when a later session calls trw_session_start or trw_recall.
Quick fixes stay fast. High-risk changes get checkpoints, validation, review, and durable handoff.
TRW treats build results, review gates, and persisted state as the definition of done.
Checkpoints and run state survive context compaction, interrupted sessions, and handoffs.
Without TRW vs With TRW
Without durable context, every session spends energy reconstructing state. With TRW, the repo can retain selected learnings, checkpoints, and validation history for explicit recall.
Install flow
The source-available trw-mcp package supports an unauthenticated install. Create or sign in to an account when you want the authenticated full-framework installer path.
The shell bootstrap can install trw-mcp with --allow-unauthenticated, or authenticate and download the full Python installer for guided setup.
First-time installs let you select every client surface you want TRW to configure in this repo, including more than one.
Open a configured client, call trw_session_start(), verify recalled candidates, and explicitly record learnings, checkpoints, and delivery evidence worth preserving.
What gets added to your repo
.trw/config.yaml
Project-local TRW configuration, including your selected target_platforms.
.trw/
Runs, learnings, analytics, and the local operating layer that survives session boundaries.
Client-specific instruction surfaces
Examples: CLAUDE.md, .cursor/rules/, .codex/INSTRUCTIONS.md, ANTIGRAVITY.md, or .github/copilot-instructions.md.
Supported clients
Current profiles are separated from retired ones, which cannot be selected and remain listed only so existing installs stay cleanable. Integration depth varies by client: inspect the files each profile writes before standardizing a team workflow.
End-to-end TRW integration for local CLI workflows that lean on hooks and durable instructions.
TRW writes
TRW translated into Cursor’s IDE rules, hooks, MCP config, and editor-first automation.
TRW writes
TRW adapted for headless Cursor runs where explicit permissions and CLI-safe defaults matter.
TRW writes
TRW translated into OpenCode’s instruction, command, and agent surfaces.
TRW writes
TRW adapted to Codex’s workflow and context constraints without changing the core loop.
TRW writes
TRW translated into GitHub-native repo instructions, hooks, and agent surfaces.
TRW writes
TRW writes Antigravity-native instructions, MCP registration, subagents, and supported hooks.
TRW writes
The Aider target was retired because it never had a native adapter. Current installation rejects the identifier.
TRW writes
Next stops
Quickstart gets you in. Concepts explains the model. Configuration and troubleshooting answer the operational questions that usually show up next.
See the installer flow, the verification checklist, and the first-session walkthrough.
Understand sessions, runs, learnings, ceremony, and the compounding memory loop.
Learn how target_platforms, build thresholds, and platform settings actually behave.
Fix install issues, MCP connection problems, and client-specific startup failures.