Open source · Local-first · Privacy by design

A fitness tracker for your AI coding sessions

AgentFit tracks your Claude Code and Codex sessions, then scores your Human-AI coding proficiency using the CRAFT framework — five behavioral dimensions you can actually improve.

View on GitHub
$npx agentfit
localhost:3000
AgentFit dashboard showing CRAFT score, daily cost, tool usage, and session analytics

The Framework

Five dimensions of Human-AI proficiency

Inspired by DORA Metrics and Microsoft's SPACE framework. Behavioral signals from your logs — no surveys, no guesswork.

C

Context

How effectively you engineer context for the AI

CLAUDE.md usage, memory writes, cache hit rate

R

Reach

How broadly you leverage available capabilities

Tool diversity, subagent usage, skill adoption

A

Autonomy

How independently the agent works for you

Message ratio, interruption rate, delegation

F

Flow

How consistently you maintain a coding rhythm

Streak length, daily consistency, active days

T

Throughput

How much output you get for your investment

Cost efficiency, output volume, error rate

Scoring: Each dimension is 0–100. Autonomy weighs 25%, Context/Reach/Throughput 20% each, Flow 15%.

What You Get

All your metrics, straight from local session logs

Auto-Sync from Logs

Reads Claude Code and Codex conversation logs automatically. No setup, no surveys — real data from real work.

CRAFT Coach

Personalized coaching with letter grades, actionable tips, achievement badges, and behavioral insights.

14+ Dashboard Views

Token breakdowns, tool usage patterns, project analytics, personality fit — every angle covered.

Privacy-First

All data stays on your machine in a local SQLite database. Nothing leaves your device.

Community Plugins

Extensible architecture lets anyone build custom analysis views and ship insights as a plugin.

Community LeaderboardsComing soon

Share your metrics to compare with the community. See how your CRAFT score stacks up.

Get Started

One command. That's it.

Requires Node.js 20+. Works with Claude Code and Codex out of the box.

Or download the desktop app →
npxnpx agentfit
curlcurl -fsSL https://raw.githubusercontent.com/harrywang/agentfit/main/setup.sh | bash
gitgit clone https://github.com/harrywang/agentfit.git && cd agentfit && npm start