INDEX
Keep existing sources authoritative. CTX404 routes to them.
$ ctx404 --explain
Run one command in a new or existing repository. CTX404 preserves what is already there, installs project governance and creates an indexed context system built to travel with your code.
$ claude
› /ctx404
$ ctx404 --why
CTX404 began with a practical frustration: the same work continued across an office machine, a home machine and multiple Claude Code chats — but the project's rules, decisions and current state had to be explained again and again.
Global memories did not travel reliably with the code, repository conventions drifted, and expensive models spent time rediscovering files instead of solving the hard problem. Claudney created CTX404 so the repository itself could carry a compact, versionable and selective record of what matters.
Not artificial memory. A survival protocol for project context.
The session ends. The context survives.
No magical memory. Magic is still in public beta.LIFECYCLE
New repository: initialize Git directly. Existing repository: preserve it and begin context from now. Native /init and recap remain your choice.
Governance, indexed JSON state, history, hooks, agents and deterministic helpers are written locally.
Claude refines scope and rules from your intent and verified repository evidence—not guesses.
The skill leaves. The repository maintains its own compact context across chats and machines.
ARCHITECTURE
The smallest resumable state: status, last completion, next step and active topics.
A compact map for finding relevant topics without loading the whole repository.
Detailed context loaded only when the current task needs it.
Append-only checkpoints that preserve verified changes without bloating startup context.
An ownership map that points to existing sources instead of manufacturing a second truth.
.claude/context/
├── current.json // resume first
├── index.json // route next
├── history.jsonl // audit when needed
└── topics/*.md // load selectively
INSTALL
REQUIREMENTS · CHECK FIRST
Claude Code · Python 3python · Git git
python --version
git --version
claude --version
Clone the repository, read the launcher and Python installer, then run the local file you reviewed. No blind pipe required.
git clone --depth 1 https://github.com/claudneysessa/ctx404.git
cd ctx404
# read install.sh or install.ps1 + scripts/install.py
python scripts/install.py --force
Review source on GitHub ↗
02 / ONE-COMMAND CONVENIENCE · executes remote code
curl -fsSL https://raw.githubusercontent.com/claudneysessa/ctx404/main/install.sh | shInstalls only SKILL.md, scripts/, assets/ and references/ in your user-level Claude skills directory. Replacement is transactional.
Already using CTX404? A global update never overlays the project. Use /ctx404 upgrade for a versioned plan, explicit approval, local backup, doctor validation and automatic rollback on failure. Chained: v0.2 to v0.4.0-beta.3.
Restart the session when /ctx404 finishes. The protocol file and the SessionStart and PreToolUse hooks are read only when a session starts, so the session that just installed them keeps running without them and records nothing. Same after /ctx404 upgrade.
HONEST LIMITS
$ git checkout -b your-signal
CTX404 is a public beta. Issues, compatibility reports and focused pull requests are welcome in English or Portuguese.