DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to check local Codex or Claude sessions for duplicate retries with Agent Measure

Inspect your own Codex or Claude Code session logs for duplicate records, retry amplification and token anomalies.

Short answer: Run pip install agentmeasure to install the CLI; then run agentmeasure demo to see the output on a bundled synthetic session with no account and no upload; run agentmeasure check to inspect your default seven-day window of local sessions. All steps.

  • Money
  • Intermediate
  • 15 minutes
  • From the README
  • Claude Code
  • Codex

Credentials. Session logs can contain prompts, code and file content, so review the output before you share anything outside your machine.

Who it is forA developer or team lead who runs Codex or Claude Code daily and suspects that retries or duplicate records are inflating token usage.

The problemSession logs show more usage than expected, and it is unclear whether the extra counts come from duplicate records, retries or real work.

The outcomeA local report that flags duplicate records, retry amplification and token anomalies, with the note that missing evidence stays unknown and a retry is not automatically a second operation.

What you need first

  • Python 3.9 or newer and pip
  • A terminal on macOS, Linux or Windows
  • A vendor billing export as CSV for the recount use case, or local Codex or Claude Code session logs for the log use cases
  • Permission to read the session logs or export files you point the tool at

Steps

  1. Run pip install agentmeasure to install the CLI.
  2. Run agentmeasure demo to see the output on a bundled synthetic session with no account and no upload.
  3. Run agentmeasure check to inspect your default seven-day window of local sessions.
  4. If the check finds no logs, run agentmeasure check --all or pass an explicit --dir and --runtime. For Claude Code, run agentmeasure check --runtime claude. (inferred, check the README)
  5. Review each flagged item and treat a missing input as a gap, not a pass.

Prompt for your agent

Using the AgentMeasure repo, run `agentmeasure check --runtime claude` on this machine and report duplicate records, retry amplification and token anomalies, with any missing inputs listed separately. Verify that the report states which inputs were not found instead of marking them as passing.

Caveat. With both runtimes present, auto-discovery prefers Codex, so pass `--runtime claude` explicitly when you mean Claude Code.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for roy-tong/AgentMeasure and "Check local Codex or Claude sessions for duplicate retries"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer