Quickstart
Time: Under 2 minutes. Prerequisites: Python 3.10+ on macOS or Linux (Windows support is planned)
1. Install
Section titled “1. Install”pipx install sessionfsThis installs two commands: sfs (CLI) and sfsd (daemon). See Installation for alternative methods (brew, curl, pip).
2. Run the Setup Wizard
Section titled “2. Run the Setup Wizard”sfs initThe wizard auto-detects which AI coding tools you have installed and asks which ones to track. It then starts the daemon, installs the MCP server for your tools, and — if you have existing sessions — captures your most recent one on the spot:
✓ Captured your most recent session: "Debug auth middleware" (claude-code, 47 messages)Then it prints the payoff:
Now ask your agent: "what did we do last session?"Because MCP was installed in the same wizard step, you can ask that question immediately — your agent reads the captured session and picks up right where you left off.
If you have no existing sessions yet, the wizard prints a graceful fallback and your first session will be captured automatically when you use your AI tool next.
The daemon watches your AI tools in the background using filesystem events (not polling). Negligible CPU overhead. It automatically detects and captures sessions from all nine supported tools:
- Claude Code
- Codex CLI
- Gemini CLI
- Copilot CLI
- Cursor IDE
- Amp
- Cline
- Roo Code
- Kilo Code
3. Ask Your Agent
Section titled “3. Ask Your Agent”Open Claude Code (or whichever tool you use) and ask:
“what did we do last session?”
Your agent reads the captured session via MCP and catches up without you re-explaining anything.
4. Use Your Tools Normally
Section titled “4. Use Your Tools Normally”No behavior change required. Just use your AI coding tools the way you always do. SessionFS captures sessions silently in the background.
5. Browse Your Sessions
Section titled “5. Browse Your Sessions”sfs list Sessions (12)┌──────────────┬─────────────┬────────┬──────────┬───────────────────────┐│ ID │ Tool │ Model │ Messages │ Title │├──────────────┼─────────────┼────────┼──────────┼───────────────────────┤│ ses_a1b2c3d4 │ claude-code │ opus-4 │ 47 │ Debug auth flow ││ ses_e5f6a7b8 │ gemini-cli │ gem-2 │ 23 │ Add rate limiting ││ ses_c9d0e1f2 │ codex-cli │ codex │ 31 │ Refactor DB schema ││ ses_g3h4i5j6 │ cursor │ son4.5 │ 8 │ Fix CI pipeline │└──────────────┴─────────────┴────────┴──────────┴───────────────────────┘Filter and sort:
sfs list --since 24hsfs list --tool claude-code --sort tokens6. Resume a Session
Section titled “6. Resume a Session”Resume in the same tool or a different one:
# Resume in Claude Code (default)sfs resume ses_a1b2c3d4
# Resume a Cursor session in Codexsfs resume ses_g3h4i5j6 --in codex
# Resume any session in Gemini CLIsfs resume ses_e5f6a7b8 --in geminiFour tools support resume: Claude Code, Codex, Gemini CLI, and Copilot CLI. Sessions from capture-only tools (Cursor, Amp, Cline, Roo Code, Kilo Code) can be resumed in any of the four bidirectional tools. See Installation for details on supported tools.
Troubleshooting
Section titled “Troubleshooting”Run the health check first:
sfs doctorThis runs 9 diagnostic checks — including capture health, which detects when a tool’s format change breaks capture — and auto-repairs common issues (broken indexes, stale locks, permission problems).
“No sessions found” after sfs list
Make sure the daemon is running and at least one AI tool has been used:
sfs daemon statusIf the daemon shows 0 sessions, try importing existing sessions:
sfs import --from claude-codeDaemon won’t start
Check the logs:
sfs daemon logsCommon causes:
- Another
sfsdprocess is already running (ps aux | grep sfsd) - The
~/.sessionfs/directory doesn’t exist or isn’t writable
Daemon is running but not detecting sessions
sfs daemon statusIf a watcher shows degraded or broken, check sfs daemon logs --lines 100.
What’s Next
Section titled “What’s Next”Once you’re capturing sessions, explore these features:
# Search across all sessionssfs search "rate limiting"
# Get a quick summary of any sessionsfs summary ses_abc
# Audit a session for hallucinationssfs audit ses_abc --model gpt-4o
# Set up project knowledge base and wikisfs project initsfs project edit
# Install MCP server (68 tools) so AI agents# can search sessions, query the knowledge base, and read wiki pagessfs mcp install --for claude-code
# Enable automatic cloud syncsfs auth loginsfs sync auto --mode all
# Hand off a session to a teammatesfs handoff ses_abc --to colleague@company.comSee the full CLI Reference for all commands and options.