Phoenix — AI skill for Claude Code
Persistent memory for AI coding CLIs with zero token overhead.
How to install Phoenix
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open khangbdd/phoenix and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Phoenix does
Persistent memory for AI coding CLIs with **zero token overhead**.
Alternatives in AI
- Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
- Agentmemory — #1 Persistent memory for AI coding agents based on real-world benchmarks 1.9k ★
- Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
README
Phoenix Memory
Persistent memory for AI coding CLIs with **zero token overhead**.
Works with **Claude Code**, **Codex**, and **Gemini CLI** — all three support both MCP tools and auto-logging hooks.
How it works
Claude Code / Codex / Gemini CLI
│
├── MCP tools (model calls these on purpose)
│ initialize_session — start or warm-start a session
│ create_manual_checkpoint — save a milestone summary
│ get_resume_packet — reload context from a previous session
│ get_handoff_packet — export conversation for another CLI
│
└── Hooks (runtime fires these automatically, 0 tokens)
PostToolUse / AfterTool → phoenix-log — saves every tool call + result
Stop / SessionEnd → phoenix-log — saves transcript snapshot
│
▼
SQLite (~/.phoenix_memory/state.db)
Install
Requires **Python 3.11+** ([download](https://www.python.org/downloads/))
git clone git@github.com:khangbdd/phoenix.git && cd phoenix
./setup.sh
source ~/.zshrc # or restart your terminal
After that `phoenix-server`, `phoenix-log`, and `phoenix` work globally.
Wire up your CLI
Claude Code
**MCP server** — `~/.claude.json`:
{
"mcpServers": {
"phoenix-memory": { "command": "phoenix-server" }
}
}
**Hooks** — `~/.claude/settings.json`:
{
"hooks": {
"PostToolUse": [
{ "matcher": ".*", "hooks": [{"type": "command", "command": "phoenix-log post_tool_use"}] }
],
"Stop": [
{ "hooks": [{"type": "command", "command": "phoenix-log stop"}] }
]
}
}
Codex
**MCP server** — `~/.codex/config.toml`:
[mcp_servers.phoenix-memory]
command = "phoenix-server"
args = []
**Enable hooks feature**:
codex features list | rg codex_hooks
If the command above returns nothing/false, run:
codex features enable codex_hooks
**Hooks** — `~/.codex/hooks.json`:
{
Related Skills
Create AI Memory
Persistent, agent-agnostic session memory for AI coding CLIs (Claude Code, Codex, Gemini, Cursor, opencode). O
Graymatter
30 sec to give your AI agents persistent memory. Reduce 90% token consumption while also maintaining quality.
Awareness SDK
Local-first AI agent memory — one command, 13+ IDEs, works offline. Persistent memory for Claude Code, Cursor,
Rememb
Persistent memory for AI agents — local, portable, zero config. Works with Cursor, Windsurf, Claude via MCP.
Auton
auton — autonomous AI agent with persistent memory, goals, scheduling, MCP, and messaging (Slack, Telegram, Wh
Kojo
Mobile remote control for AI coding CLIs (Claude Code, Codex, Grok Build) — with persistent multi-device AI ag
Related Agents
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple
Rememora Triage
Use this agent when triaging issues, feature requests, or bugs for the Rememora project — a cross-agent persis
Memory Manager
Invoke when the user wants to save brand knowledge to persistent memory, search past campaign learnings, sync