Live Session View
The Dashboard tab shows a live feed of your active Claude Code session:
Real-Time Metrics
CodeFire polls the session JSONL file every 2 seconds and displays:- Context usage — Current tokens vs. 200k limit with visual meter
- Cost — Estimated spend based on model pricing
- Messages — Total user + assistant messages
- Tools — Number of tool invocations (Read, Edit, Bash, etc.)
- Elapsed time — How long the session has been running
CodeFire reads only new bytes from the session file on each poll, making monitoring lightweight even for large sessions.
Tool Usage Breakdown
Expand the “Tool Usage & Files” section to see:- Bar chart of tool invocations (Read, Edit, Bash, Glob, etc.)
- Files changed — List of files the agent has touched
- Tool counts — How many times each tool was called
Activity Feed
The live feed shows a chronological stream of events:- 🔵 User messages — Your prompts to the agent
- 🟢 Assistant text — Claude’s responses
- 🟣 Tool use — Each tool invocation with context (file path, command, etc.)
Session History
The Sessions tab shows all past sessions for the current project:
Session List
Each session displays:- Session ID and slug (human-readable name)
- Started and ended timestamps
- Model used (Opus, Sonnet, Haiku)
- Git branch the session ran on
- Token usage (input, output, cache creation, cache read)
- Estimated cost in USD
- Message count and tool count
Session Details
Click a session to view:- Full conversation (user prompts and assistant responses)
- Tool usage patterns (which tools were called and how often)
- Files changed (complete list with diffs)
- Cost breakdown (input, output, cache creation, cache read)
- Timeline of events
Cost Tracking
CodeFire calculates cost using model-specific pricing:| Model | Input | Output | Cache Write | Cache Read |
|---|---|---|---|---|
| Opus | $15/M tokens | $75/M tokens | $18.75/M tokens | $1.50/M tokens |
| Sonnet | $3/M tokens | $15/M tokens | $3.75/M tokens | $0.30/M tokens |
| Haiku | $0.25/M tokens | $1.25/M tokens | $0.30/M tokens | $0.03/M tokens |
How It Works
CodeFire parses Claude Code’s session JSONL files:- Project discovery — Scans
~/.claude/projects/to find all projects - Session import — Parses
.jsonlfiles to extract metadata and token usage - Live monitoring — Watches active session files for new events
- Incremental updates — Reads only new bytes (not the entire file) on each poll
Session File Format
Claude Code writes each event as a JSON line:- Session metadata (ID, slug, model, git branch)
- Token usage (input, output, cache)
- Tool invocations (name, input parameters)
- Files changed (from Read, Edit, Write tools)
Inactivity Detection
CodeFire considers a session ended if no new events appear for 2 minutes. When a session ends:- Live monitoring stops
- Final token counts and cost are calculated
- Session is marked as complete in the history
Session Search
Filter sessions by:- Date range — Last 7 days, last month, custom range
- Model — Opus, Sonnet, Haiku
- Git branch — Filter by branch name
- Cost — Sessions above/below a cost threshold
Best Practices
Monitor context usage during long sessions
Monitor context usage during long sessions
Keep an eye on the context meter. If it approaches 200k tokens, consider starting a new session to avoid hitting the limit.
Review tool usage to understand agent behavior
Review tool usage to understand agent behavior
Check which tools the agent called most frequently. Heavy Bash usage might indicate complex workflows; heavy Read usage suggests exploration.
Track costs per client or project
Track costs per client or project
Use CodeFire’s per-project cost tracking to understand spend patterns and bill clients accurately.
Export session history for analysis
Export session history for analysis
Sessions are stored in SQLite (
~/Library/Application Support/CodeFire/codefire.db). Query directly for custom reports.Agent Status Bar
When Claude Code is running, CodeFire displays an agent status bar in the terminal panel:- 🟢 Active — Claude is running
- 🟡 Thinking — Claude is processing your request
- 🔴 Error — Claude encountered an error
Related Features
Project Management
View sessions grouped by project
Task Tracking
Link sessions to specific tasks
Terminal
Launch Claude sessions from the integrated terminal
Git Integration
See which git branch each session ran on
