Skip to main content

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 allusage script (now agent-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 / cc
  • codex / cx
  • openclaw / oc / claw
  • opencode / oe / code
  • openwhispr / 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 0 totals 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

Development

python3 -m pip install -e .
find-session --help
agent-usage --help

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coding_agent_tools-0.1.0.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coding_agent_tools-0.1.0-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

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

Hashes for coding_agent_tools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 afd49143704ce1159d92b89977b91f7e197f703209ba07369484031a618ee28c
MD5 b56f758eaa0d4a67997cae3a48a0af6c
BLAKE2b-256 51b9c451d46ebf9899f311fb702296b1535ed82ae52940499b4a0227e273202a

See more details on using hashes here.

File details

Details for the file coding_agent_tools-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for coding_agent_tools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 472ce3bb051d73cd4249b89016c76e2c6a7049178e295b8e216376d495025d84
MD5 467b9f879450ab2da1392c4ff8b26919
BLAKE2b-256 f4cf580ca193b84c2aeb53f2756af4518a0c136044106d0a3fa102f5dcdd42e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page