Remote script. The install command pipes a script from GitHub directly into sh, so review it first if you do not trust the source.
Who it is forA developer partway through a feature in Claude Code who needs to continue in OpenAI Codex, for example after hitting a usage limit or wanting a second agent's view.
The problemEach agent starts cold, so the architecture, failed approaches, and open questions must be re-explained by hand.
The outcomeCodex starts in the same directory with a handoff that states where the work stopped, what failed, and what is still open.
What you need first
- A Linux or macOS machine (native Windows is experimental; WSL2 is supported)
- At least one supported coding agent CLI installed, such as Claude Code or Codex
- A terminal with curl and sh available
Steps
- Run
curl -fsSL https://github.com/akitaonrails/ai-memory/releases/latest/download/install.sh | sh - Run
ai-memory setup - Quit Claude Code in the project directory
- Run
ai-memory run codexfrom the same directory
Prompt for your agent
Using the ai-memory repo (github.com/akitaonrails/ai-memory), set up the tool, then start <target-agent> in the project at <project-path> through `ai-memory run`. Expected output: the new agent begins with a brief that lists the last session's status, failed approaches, and open questions. Verify the brief mentions the open questions from the previous session before continuing.
Caveat. The README says AI Memory run gives Codex a private local projection of Claude's visible native history, so check what each agent can see before relying on it for sensitive work.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for akitaonrails/ai-memory and "Hand off a half-finished task from Claude Code to Codex"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer