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 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

mist_converters-0.1.3.tar.gz (49.3 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.3-py3-none-any.whl (54.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mist_converters-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c98228d547ec7e417adf060fd3bfa4909c246ce340998eec1c50beeb565c7f3f
MD5 fa0873710f70c4ac5ddfdd573f073399
BLAKE2b-256 0b7a03f6aaf38785a9a4a968ff5e9b5ef6e7d9fc39cb14e5b2980a00056f250c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mist_converters-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ca9817fddc96ae6a29e2e4be9ad82a70c0a9a3bda8f00376666eb909ea31960f
MD5 66962b774d6963c49fd86b06c11041ef
BLAKE2b-256 87fbb340636d212a84632a5677236e02f0370fc30a98e05dd943cfa48a524680

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