{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "roy-tong-agentmeasure--compare-claude-response-usage-across-session-files",
 "repo": "roy-tong/AgentMeasure",
 "repo_url": "https://github.com/roy-tong/AgentMeasure",
 "repo_slug": "roy-tong-agentmeasure",
 "title": "Compare Claude response usage across session files",
 "page_title": "How to compare Claude response usage across session files with Agent Measure",
 "summary": "Group response IDs from two Claude session files to see repeated usage snapshots, conflicts and missing fields.",
 "who": "A developer investigating a forked or resumed Claude session whose usage totals differ between two log files.",
 "problem": "Two session files share response IDs, and the usage numbers for the same response do not match, so it is unclear which record to trust.",
 "outcome": "A JSON file grouping the response IDs with repeated usage snapshots, conflicts and missing fields, read without rewriting any log.",
 "steps": [
  "Run `pip install agentmeasure` to install the CLI.",
  "Locate the two Claude session files you want to compare, for example first-session.jsonl and fork-session.jsonl.",
  "Run `agentmeasure response-audit first-session.jsonl fork-session.jsonl --json responses.json`.",
  "Open responses.json and list each response ID with its conflicts and missing fields.",
  "Read the response-audit guide before drawing any conclusion about which snapshot is correct."
 ],
 "agent_prompt": "Using the AgentMeasure repo, run `agentmeasure response-audit <first-file.jsonl> <second-file.jsonl> --json responses.json` and summarize the conflicts and missing fields per response ID. Verify that the output does not select a winning snapshot or compute a session total.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Advanced",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The command groups and shows conflicts only, so you must decide which usage snapshot is right using your own evidence.",
 "category": "Money",
 "tags": [
  "Money"
 ],
 "lang": "python",
 "requirements": [
  "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The supplied JSONL files may contain prompt and response content, so keep the output local unless you have reviewed it."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/roy-tong-agentmeasure/compare-claude-response-usage-across-session-files/",
 "md": "https://dedupedai.com/use-cases/roy-tong-agentmeasure/compare-claude-response-usage-across-session-files/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/roy-tong-agentmeasure--compare-claude-response-usage-across-session-files.json",
 "api_version": "v1"
}
