Overview
Thescan command discovers:
- Projects - Git repositories with AI tool sessions
- Sessions - Chat sessions from all enabled AI tools
- Tool usage - Which tools are active in each project
Command Syntax
Scan only this project path instead of all tools.
Suppress output.
Suppress interactive output (same as
--quiet).Examples
Full scan
Scan all enabled tools and discover projects:Scan specific project
Scan a single project directory:Quiet mode (for scripts)
What Scan Does
1. Tool Discovery
For each enabled tool, oobo reads:| Tool | Read Location | Read-Only |
|---|---|---|
| Cursor | ~/Library/Application Support/Cursor/User/workspaceStorage/*/state.vscdb | ✓ |
| Claude Code | ~/Library/Application Support/Claude/claude_desktop_config.json | ✓ |
| Gemini CLI | ~/.gemini/sessions/ | ✓ |
| OpenCode | ~/.config/opencode/sessions/ | ✓ |
| Codex CLI | ~/.codex/history/ | ✓ |
| Aider | ~/.aider/ | ✓ |
| Copilot | VS Code workspace storage | ✓ |
| Windsurf | ~/Library/Application Support/Windsurf/ | ✓ |
| Zed | ~/.config/zed/ | ✓ |
| Trae | ~/.trae/sessions/ | ✓ |
Oobo never writes to AI tool directories. All reads are read-only.
2. Project Detection
Oobo identifies projects by:- Git root - Directories with
.git - Session project path - Embedded in session metadata
- Workspace storage - Tool-specific project tracking
- ID (slug) - Unique identifier (e.g.,
myapp-1234567890) - Name - Directory name
- Path - Absolute path
- Git remote - Remote URL (if available)
- Tools - List of detected tools
3. Session Indexing
For each new session, oobo:- Reads metadata - Session ID, timestamps, tool, mode
- Stores in database - Local SQLite at
~/.oobo/oobo.db - Computes tokens - Runs
oobo indexfor new sessions - Links to project - Associates session with project
4. Auto-Indexing
After discovery,scan automatically runs oobo index on new sessions to compute:
- Token counts (input/output)
- Model information
- Duration
- Files touched
- Tool/function calls
Scan Results
What the numbers mean:
- Projects found - Git repos with AI sessions
- Sessions found - Total sessions across all tools
- New sessions - Sessions not yet in database
- Indexed - Sessions with computed token stats
Use Cases
Initial setup
Run after installing oobo or adding a new AI tool:Daily sync
Run periodically to catch new sessions:Add new project
When you start using AI tools in a new project:Refresh after tool update
If an AI tool updates and changes session storage:Scripted discovery
For automation:Performance
Speed
- Fast - Only scans tool directories (no git traversal)
- Incremental - Skips already-indexed sessions
- Parallel - Scans multiple tools concurrently
Storage
- Local only - All data stays in
~/.oobo/oobo.db - No network - Unless remote server is configured
Frequency
Recommended:- After setup - Initial discovery
- Weekly - Catch new sessions
- After tool changes - When you install/update AI tools
What Gets Indexed
Per Session
- Session ID (UUID)
- Tool/source (cursor, claude, etc.)
- Project path
- Session name/title
- Mode (chat, composer, agent, etc.)
- Created/updated timestamps
- Message count
- First message preview
Per Project
- Project ID (slug)
- Name (directory name)
- Absolute path
- Git remote URL
- Tools detected
- Last seen timestamp
Scan vs Index
| Command | Purpose | What it does |
|---|---|---|
scan | Discover sessions | Finds new sessions, adds to DB |
index | Compute analytics | Calculates tokens, duration, costs |
scan runs index automatically on new sessions.
Ignored Projects
To stop tracking a project:scan.
To re-enable:
Troubleshooting
No sessions found
If scan finds 0 sessions:- Check tool config - Verify tools are enabled in
~/.oobo/config.toml - Use the tools - Create at least one session
- Check paths - Ensure tools are in standard locations
Missing project
If a project isn’t discovered:- Check git - Ensure directory has
.git - Use AI tool - Create at least one session in the project
- Scan manually -
oobo scan --project /path/to/project
Sessions not indexed
If sessions appear but have no token counts:Aider hint
If you see:Privacy
- Read-only - Never writes to AI tool directories
- Local first - All data stays in
~/.oobo/ - No telemetry - Oobo does not phone home
- Secret redaction - Sessions are scrubbed before any sharing
Next Steps
Projects
Browse discovered projects
Sessions
View indexed sessions
