Session search and unified usage analytics for coding agents
Project description
CodingAgentTools
CodingAgentTools is a focused toolbox for local AI coding workflows.
It currently ships two high-leverage commands:
find-session: search and resume sessions across Claude Code, Codex, and OpenCode.agent-usage: unified usage + estimated cost reporting across Claude Code, Codex, OpenClaw, OpenCode, and OpenWhispr.
Why this repo exists
This repository consolidates tools that were previously split across multiple projects/scripts:
find-session(now embedded here)- local
allusagescript (nowagent-usage)
The goal is one installable package, one docs surface, and one place for improvements.
Install
uv tool install .
or with pip:
pip install .
Command: find-session
Search and resume sessions across agents from one interface.
# Search current project
find-session "auth,refactor"
# Search across all projects
find-session -g
# Limit to one agent
find-session "redis" --agents codex
Supported agents:
- Claude Code (
~/.claude/projects/*.jsonl) - Codex (
~/.codex/sessions/**/rollout-*.jsonl) - OpenCode (
~/.local/share/opencode/opencode.db)
Command: agent-usage
Show token usage and estimated USD-equivalent cost by period.
# Daily usage for all sources
agent-usage
# Weekly with per-model breakdown
agent-usage weekly --breakdown
# Only OpenCode + Codex
agent-usage monthly opencode codex
Sources and aliases
claude/cccodex/cxopenclaw/oc/clawopencode/oe/codeopenwhispr/ow/whispr
Pricing model
agent-usage estimates cost from token counts using live LiteLLM pricing metadata.
- If a source already reports non-zero cost, estimated pricing is still preferred when model pricing is available.
- This avoids misleading
0totals for subscription-backed usage (for example OpenCode sessions routed through subscription plans). - For models not present in the pricing registry, the tool falls back to observed/source-reported cost when available.
References
ccusage(inspiration for usage/cost reporting style): https://github.com/ryoppippi/ccusageclaude-code-tools(Cloud/Claude Code tools reference and prior consolidation work): https://github.com/charlesnchr/claude-code-tools- LiteLLM model pricing registry: https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
Development
python3 -m pip install -e .
find-session --help
agent-usage --help
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coding_agent_tools-0.1.0.tar.gz.
File metadata
- Download URL: coding_agent_tools-0.1.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd49143704ce1159d92b89977b91f7e197f703209ba07369484031a618ee28c
|
|
| MD5 |
b56f758eaa0d4a67997cae3a48a0af6c
|
|
| BLAKE2b-256 |
51b9c451d46ebf9899f311fb702296b1535ed82ae52940499b4a0227e273202a
|
File details
Details for the file coding_agent_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: coding_agent_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
472ce3bb051d73cd4249b89016c76e2c6a7049178e295b8e216376d495025d84
|
|
| MD5 |
467b9f879450ab2da1392c4ff8b26919
|
|
| BLAKE2b-256 |
f4cf580ca193b84c2aeb53f2756af4518a0c136044106d0a3fa102f5dcdd42e0
|