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 mist-converters
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mist_converters-0.1.4.tar.gz.
File metadata
- Download URL: mist_converters-0.1.4.tar.gz
- Upload date:
- Size: 61.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37ba4a85d3221bfa9940f8147326872f2f181a3236d6dde96c33115d465683d6
|
|
| MD5 |
8daa2b98207d3d0e6bb5dd488f588723
|
|
| BLAKE2b-256 |
b60fe022ee5daf463c03c6cc4f5919ca65927fe7ced29f8df879651a6e8250d6
|
File details
Details for the file mist_converters-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mist_converters-0.1.4-py3-none-any.whl
- Upload date:
- Size: 67.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fd8c5c02253c2d4606a9dc666b264ba1b26acbe3780432549dabd7ad2bf1e07
|
|
| MD5 |
b34a131ac6e1acb5c570e380e8961c19
|
|
| BLAKE2b-256 |
0a61009d4ee6f3489c103b242c19a56f83b340d6c2cb17ff2edddedd9e4af6ac
|