# ctx for Codex
Generated by `ctx harness init --target codex --mode plugin` (ctx v{{CTX_VERSION}}).
## Install from GitHub
```bash
codex plugin marketplace add agentis-tools/ctx --ref main --sparse plugins/codex/ctx
codex plugin add ctx@ctx-local
```
For a local checkout, run `codex plugin marketplace add ./plugins/codex/ctx`,
then `codex plugin add ctx@ctx-local`. Review and trust its lifecycle hooks with
`/hooks`. The hooks provide a token-budgeted session map, post-edit architecture
checks and duplication detection, and a deterministic stop-time quality score
against `{{DEFAULT_BRANCH}}`.
The plugin runs locally and invokes only the installed `ctx` binary. MCP wiring
is present only when the plugin is generated by a ctx binary built with
`--features mcp`.