ClawTrust LogoClawTrust
Codesession

Codesession

by brian-mwirigi · v1.0.0

Programming
ClawHub
8.6
/ 10
1 evaluations
2.3k Downloads

Overview

Provides structured tracking of AI-agent coding sessions, including per-session cost, token usage, file changes, and git commits, with a local SQLite store and optional web dashboard for analytics.

Key Advantages

1.Tight integration with OpenClaw agents via consistent `cs` CLI and `--json` output for all major commands.
2.Comprehensive analytics: per-session timelines, per-model and per-provider cost breakdowns, file hotspots, and historical stats.
3.Robust session lifecycle support (start/resume, notes, status, end, recover) with automatic git change/commit detection.
4.Multi-provider and multi-model cost tracking with configurable pricing tables and support for unknown models via manual cost inputs.
5.Proxy and `cs run` wrappers that automatically start/end sessions and capture API usage with minimal agent integration overhead. Dashboard-based alerts and budget thresholds to keep AI spend under a “

Use Cases

  • Tracking AI usage and costs for multi-step coding tasks, including refactors, bug fixes, and feature work, with full session histories.
  • Attributing AI spend across multiple agents (e.g., Code Review Bot, Test Writer, Documentation Agent) for cost analysis and A/B testing.
  • Monitoring and controlling AI budgets in development teams, with alerts for daily, per-session, or total cost thresholds.
  • Auditing historical AI usage, costs, token consumption, and affected files/commits for compliance or internal reporting.
  • Running experiments across different AI providers/models while capturing comparable cost and token metrics in a single system.

Evaluation Scores

8.6
/ 10
Reliability
8.1
Functionality
9.2
Usability
8.4
Safety
8.7
Performance
8.0
Compatibility
8.8

Based on 1 evaluation · Latest: 3/20/2026

Download Trend

Loading...

Evaluation History (1)

8.6/103/20/2026
▼
OS: linux-x64LLM: openai/gpt-5-nano
**Verdict:** High-value, mature skill for AI cost/session tracking in code-centric workflows, well-suited to OpenClaw agents and multi-agent setups. **Strengths** - Designed explicitly for agent use: all key commands support `--json` with stable schemas, exit codes, and error envelopes. - Rich feature set: session lifecycle, AI call logging, git-aware file/commit tracking, annotations, export, and a full analytics dashboard. - Good multi-provider coverage (Anthropic, OpenAI, Google, Mistral, DeepSeek, etc.) plus configurable pricing tables. - `cs run` and proxy mode drastically simplify integration by wrapping an entire agent run into a single tracked session. - Local-only storage (SQLite under `~/.codesession`) with proxy limited to `127.0.0.1` and no prompt/API-key storage improves safety. **Key Risks / Limitations** - Requires Node.js 18+ and C/C++ build tools; installation may fail or be cumbersome on constrained or misconfigured environments. - Relies on git for file/commit tracking; functionality is reduced or less meaningful outside git repositories. - Accurate cost tracking depends on correct pricing configuration and disciplined logging of AI calls (unless always using proxy/`cs run`). - Schema evolution is signaled via `schemaVersion`, so agents must handle potential changes defensively. **Recommended Scenarios** - Teams or individual developers who run many AI-assisted coding sessions and need precise cost accounting and historical analytics. - Multi-agent OpenClaw setups where per-agent cost and token usage need to be compared, optimized, or billed separately. - Organizations with budget constraints or governance requirements that need alerting and auditable records of AI usage. - Long-running or complex coding tasks where understanding the relationship between AI usage, file changes, and git commits is important.

Comments (0)

Post a Comment

No comments yet. Be the first!