Open-Source Tool Measures AI Coding Agent Autonomy with Local Data Analysis

What Codelens-AI Does
Codelens-AI is an open-source CLI tool that reads your local Claude Code session files and correlates them with git history. Instead of just tracking cost, it analyzes how the AI agent actually works by calculating autonomy metrics based on your usage patterns.
Key Metrics and Sample Results
The creator ran the tool on 30 days of personal usage and shared these results:
- Autopilot Ratio: 7.4x — For every message sent to Claude, the agent takes 7 actions
- Self-Heal Score: 1% — Out of 6,281 bash commands, only 50 were tests or lints
- Toolbelt Coverage: 81% — The agent uses most available tools (grep, read, write, bash, search)
- Commit Velocity: 114 steps/commit — It takes 114 tool calls to produce one commit
- Overall Autonomy Score: C (36/100)
Practical Impact and Usage
These metrics revealed that while the agent works hard (7.4x Autopilot Ratio), it rarely verifies its own work (1% Self-Heal Score). This insight prompted the creator to change their prompting strategy — they now explicitly tell Claude to run tests after every edit, which increased their Self-Heal Score from 1% to approximately 15% within a few days.
Setup and Data Privacy
The tool requires zero setup: npx claude-roi. All data stays local — it parses your ~/.claude/projects/ JSONL files plus git log. There's no cloud component and no telemetry.
Development Status and Community
The tool is actively seeking feature suggestions, issues, and PRs — particularly around the scoring formula and adding support for Cursor/Codex sessions. The creator is curious what scores other people get and whether others are running this tool.
GitHub: github.com/Akshat2634/Codelens-AI
Website: https://codelensai-dev.vercel.app/
📖 Read the full source: r/ClaudeAI
👀 See Also

Maestro v1.5.0 adds Claude Code support for multi-agent orchestration
Maestro v1.5.0, an open-source multi-agent orchestration platform, now runs as a native plugin on Claude Code in addition to Gemini CLI. The update includes deeper design planning, a 42-step orchestration backbone, agent capability enforcement, and security hardening.

Claude Code hooks prevent Chrome tab interference between multiple sessions
A developer created three hooks (session-start, capture-tab-id, enforce-tab-id) that pin each Claude Code session to its own Chrome tab, preventing sessions from accidentally accessing other sessions' tabs during test runs and form fills.

agentcache: Python Library for Multi-Agent LLM Prefix Caching
agentcache is a Python library that enables multi-agent LLM frameworks to share cached prompt prefixes, achieving up to 76% cache hit rates and cutting inference time by more than half in tests with GPT-4o-mini.

ClawWatcher Reaches 200 Users, Reports $28K+ in Collective OpenClaw API Savings
ClawWatcher, a tool that tracks OpenClaw API costs in real-time, has reached 200 users. According to its creator, users have collectively saved over $28,000 in API costs, with an average cost reduction of 45%.