Skip to main content

Convert Claude Code session logs (.jsonl) into AgenticGraph JSON

Project description

mist-converters — Claude Code Converter

Converts Claude Code session logs (.jsonl files) into AgenticGraph JSON files that capture every LLM call, tool use, thinking step, and subagent invocation as a structured graph.


Requirements

  • Python 3.9+
  • pip

Installation

pip install git+https://github.com/AI-Agentic-Tools-Benchmarking/mist-converters.git@claude-convert

This installs the mist-convert CLI command directly — no cloning needed.


Running

Convert all projects under ~/.claude/projects (default):

mist-convert

Custom projects directory

Pass the path to your .claude/projects directory:

mist-convert /path/to/your/.claude/projects

Single project directory

mist-convert --dir /path/to/single/project

Output

All JSON files are written to claude_code/output/ inside the directory from which you run the script. For example, if you run the script from /home/user/mist-converters, the output will be at /home/user/mist-converters/claude_code/output/. Please send us this full path once the conversion is complete.

claude_code/
└── output/
    └── <project-name>/
        └── <session-id>.json

Each JSON file is an AgenticGraph for one session:

{
  "name": "...",
  "description": "...",
  "stages": [ ... ],
  "edges": [ { "from": "...", "to": "..." }, ... ]
}

Project structure

mist-converters/
├── Converter/
│   ├── run_all_projects.sh       ← entry point
│   ├── dir_claude_code_parser.py ← main parser
│   └── tokenizer_utils.py
├── Builder/
│   └── stage.py                  ← AgenticGraph data model
├── token_utils.py                ← tiktoken-based token counter
└── requirements.txt

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

mist_converters-0.1.1.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

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

mist_converters-0.1.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file mist_converters-0.1.1.tar.gz.

File metadata

  • Download URL: mist_converters-0.1.1.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mist_converters-0.1.1.tar.gz
Algorithm Hash digest
SHA256 35fe32f655af373befb1b2e29aca27d9c3b53fa4032b59310c0d2788624647e1
MD5 361ae143df3d8522470d96465669594f
BLAKE2b-256 baa2883261dfadf8fe07bce0825e13e86ddc872c1e4c86e2d288af757f93c8f2

See more details on using hashes here.

File details

Details for the file mist_converters-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mist_converters-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b23eb76668ac3e12423ff06421ab5790eef1818870ea785b1ffffe606bd29192
MD5 b02337d3dc7b008401c8f34c085647b1
BLAKE2b-256 65129ee4ea2868b2f0cac9b0e67bcb5eece92ef4fe248df7808d892ca555aaf1

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