codex_usage 0.1.1

Codex and Claude Code telemetry/usage parser, aggregate JSONL events into CodeAnalysis results
Documentation
{
  "extensionName": "Codex",
  "insightsVersion": "0.1.0",
  "machineId": "18f309cbbb654be69eff5ff79d2f3fa6",
  "records": [
    {
      "conversationUsage": {
        "aide-gpt-5": {
          "last_token_usage": {
            "cached_input_tokens": 13184,
            "input_tokens": 22279,
            "output_tokens": 1879,
            "reasoning_output_tokens": 1344,
            "total_tokens": 24158
          },
          "model_context_window": null,
          "total_token_usage": {
            "cached_input_tokens": 932608,
            "input_tokens": 2167953,
            "output_tokens": 140890,
            "reasoning_output_tokens": 114432,
            "total_tokens": 2308843
          }
        }
      },
      "editFileDetails": [
        {
          "characterCount": 34,
          "filePath": "/proj/ds906659/gai/claude-code/go.mod",
          "lineCount": 3,
          "newString": "module claude-code-helper\n\ngo 1.24",
          "oldString": "module claude-code-helper\n\ngo 1.24.0",
          "timestamp": 1758272776746
        },
        {
          "characterCount": 4,
          "filePath": "/proj/ds906659/gai/claude-code/.python-version",
          "lineCount": 1,
          "newString": "3.10",
          "oldString": "3.10",
          "timestamp": 1758272897080
        }
      ],
      "folderPath": "/proj/ds906659/gai/claude-code",
      "gitRemoteUrl": "https://github.com/Mai0313/claude-code",
      "readFileDetails": [
        {
          "characterCount": 1234,
          "filePath": "/proj/ds906659/gai/claude-code/go.mod",
          "lineCount": 32,
          "timestamp": 1758272584924
        },
        {
          "characterCount": 3287,
          "filePath": "/proj/ds906659/gai/claude-code/.python-version",
          "lineCount": 5,
          "timestamp": 1758272607153
        },
        {
          "characterCount": 2895,
          "filePath": "/proj/ds906659/gai/claude-code/README.zh-TW.md",
          "lineCount": 160,
          "timestamp": 1758272811684
        },
        {
          "characterCount": 2883,
          "filePath": "/proj/ds906659/gai/claude-code/README.zh-CN.md",
          "lineCount": 160,
          "timestamp": 1758272814540
        }
      ],
      "runCommandDetails": [
        {
          "characterCount": 15,
          "command": "bash -lc ls -la",
          "description": "",
          "filePath": "/proj/ds906659/gai/claude-code",
          "lineCount": 0,
          "timestamp": 1758272557804
        },
        {
          "characterCount": 304,
          "command": "bash -lc set -e\n# Latest Go version\nLATEST=$(curl -s https://go.dev/VERSION?m=text | head -n1)\necho \"LATEST_GO=$LATEST\"\n\necho '---'\n# Broader search for python version strings\nrg -n --hidden -S \"python ?(3\\.[0-9]+|[0-9]+\\.[0-9]+)\" || true\n\necho '---'\nrg -n --hidden -S \"Python[^\n]{0,40}3\\.[0-9]+\" || true",
          "description": "",
          "filePath": "/proj/ds906659/gai/claude-code",
          "lineCount": 0,
          "timestamp": 1758272650921
        },
        {
          "characterCount": 60,
          "command": "bash -lc rg -n --hidden -S \"Python|python\" | sed -n '1,200p'",
          "description": "",
          "filePath": "/proj/ds906659/gai/claude-code",
          "lineCount": 0,
          "timestamp": 1758272729763
        },
        {
          "characterCount": 138,
          "command": "bash -lc rg -n \"go [0-9]+\\.[0-9]+(\\.[0-9]+)?\" go.mod README* || true && echo '---' && rg -n \"Python 3\\.[0-9]+|python 3\\.[0-9]+\" -S || true",
          "description": "",
          "filePath": "/proj/ds906659/gai/claude-code",
          "lineCount": 0,
          "timestamp": 1758272901992
        },
        {
          "characterCount": 65,
          "command": "bash -lc rm -f TODO.md && echo removed && rg -n \"TODO.md\" || true",
          "description": "",
          "filePath": "/proj/ds906659/gai/claude-code",
          "lineCount": 0,
          "timestamp": 1758272905817
        }
      ],
      "taskId": "01996135-afde-7911-97f0-d863511eca56",
      "timestamp": 1758272958355,
      "toolCallCounts": {
        "Bash": 5,
        "Edit": 2,
        "Read": 4,
        "TodoWrite": 0,
        "Write": 2
      },
      "totalEditCharacters": 38,
      "totalEditLines": 4,
      "totalReadCharacters": 10299,
      "totalReadLines": 357,
      "totalUniqueFiles": 4,
      "totalWriteCharacters": 1468,
      "totalWriteLines": 42,
      "writeFileDetails": [
        {
          "characterCount": 742,
          "content": "\n---\n\n## 版本需求說明\n\n- Go 語言\n  - 專案 `go.mod` 目前設定:`go 1.24`\n  - 解釋:`go` 指令表示此模組使用的語言版本語意。Go 編譯器版本若低於此數字(例如 < 1.24)將可能無法正確建置;使用 1.24 或以上版本則可正常使用。\n  - 為何是 1.24:多數情況於執行 `go mod init`(或後續執行 `go mod tidy`/`go get` 於較新工具鏈)時,Go 會依當前工具鏈版本寫入/更新 `go` 指令。此專案先前工具鏈為 1.24,因此寫成 1.24(原為 `1.24.0`,已統一為 `1.24`)。\n  - 最低需求:Go 1.24(1.24 以上皆可)\n\n- Python\n  - `.python-version` 已設定為:`3.10`\n  - 專案中其他「寫死」的 Python 版本字串:\n    - `cmd/claude-code-helper/example.py:2`:`# requires-python = \">=3.12\"`(註解行,僅示例)\n    - `examples/claude_code_log.json`:文件內容示例中提到 `>=3.12` 要求(說明文字,非實際設定)\n\n- 版本設定是否由 `go mod init` 決定?\n  - 是。`go mod init` 會根據當前安裝的 Go 工具鏈自動寫入 `go` 指令;之後執行 `go mod tidy` / `go get` 等指令時,也可能將其提升至較新的語言版本。\n\n- 目前最新 Go 版本(線上查詢):`go1.25.1`(來源:`https://go.dev/VERSION?m=text`)",
          "filePath": "/proj/ds906659/gai/claude-code/README.zh-TW.md",
          "lineCount": 21,
          "timestamp": 1758272874017
        },
        {
          "characterCount": 726,
          "content": "\n---\n\n## 版本要求说明\n\n- Go 语言\n  - 项目 `go.mod` 当前设置:`go 1.24`\n  - 解释:`go` 指令声明该模块使用的语言版本语义。若编译器版本低于 1.24,可能无法正确构建;使用 1.24 及以上版本可以正常使用。\n  - 为何是 1.24:通常在执行 `go mod init`(或后续执行 `go mod tidy`/`go get` 使用较新工具链)时,Go 会依据当前工具链版本写入/更新 `go` 指令。本项目先前工具链为 1.24,因此写成 1.24(原为 `1.24.0`,已统一为 `1.24`)。\n  - 最低需求:Go 1.24(1.24 以上皆可)\n\n- Python\n  - `.python-version` 已设置为:`3.10`\n  - 其他「写死」的 Python 版本字符串:\n    - `cmd/claude-code-helper/example.py:2`:`# requires-python = \">=3.12\"`(注释行,仅示例)\n    - `examples/claude_code_log.json`:示例文本中提到 `>=3.12` 要求(说明内容,非实际配置)\n\n- 版本设置是否由 `go mod init` 决定?\n  - 是。`go mod init` 会根据当前安装的 Go 工具链自动写入 `go` 指令;之后执行 `go mod tidy` / `go get` 等命令时,也可能将其提升到较新的语言版本。\n\n- 当前最新 Go 版本(线上查询):`go1.25.1`(来源:`https://go.dev/VERSION?m=text`)",
          "filePath": "/proj/ds906659/gai/claude-code/README.zh-CN.md",
          "lineCount": 21,
          "timestamp": 1758272885257
        }
      ]
    }
  ],
  "user": "wei"
}