Skip to main content

Decoder: GPS Navigation for Codebases

PyPI version VS Code Marketplace License CI

Inspired by debuggers, decoder is a static call graph analysis tool for Python. It maps how your code connects, tracing those connections from the routing layer to service layer and across the codebase, without the runtime execution a debugger would require.

Unlike grep, which matches text, decoder traces a symbol's call chain and shows what calls it and what it calls. It also tracks conditionals, loops, and try/except blocks, so you see the full nested context of your methods or functions.

Under the hood, decoder parses the Python Abstract Syntax Tree (AST) to generate a relational graph, persisted in a local SQLite index (.decoder/index.db).

Interfaces:

  • For AI: An MCP server that exposes the codebase's topology, allowing LLMs to perform targeted graph traversals rather than iterative grep and file reads, significantly reducing token consumption and latency

  • For engineers: A CLI and VS Code extension that enables interactive trace exploration

decoder-mcp

decoder-vsc-demo

MCP Server

cd your-project
pip install mcp-server-decoder
decoder index .
claude mcp add decoder -- mcp-server-decoder

Verify it's connected. In Claude, run:

/mcp
# then, "MCP Status"

You should see decoder listed with its available tools.

Tools Available

Tool Parameters Description
decoder_callers name Find what calls a function
decoder_callees name Find what a function calls
decoder_trace name, max_depth? Trace full call tree
decoder_find query, type? Search for symbols
decoder_stats - View index statistics

CLI

Install:

pip install decoder-graph

Index your codebase:

decoder index .

Trace a function or method in your code:

decoder trace create_todo

Example output:

Call tree for create_todo
routes/todos.py:34

Callees:
└─ validate_request [if request.data] routes/todos.py:12
└─ TodoService.create services/todo.py:45
   └─ TodoRepository.save [in try] repositories/todo.py:23
      └─ Session.add db/session.py:67

VS Code Extension

Decoder includes a VS Code extension for interactive call graph exploration.

Installation

Install in VS Code | VS Code Marketplace

Usage

Before using the extension, index your codebase:

decoder index .

Then in VS Code:

  • Right-click any function to:
    • Show Callers
    • Show Callees
    • Trace Call Tree
  • Explore call trees in the Decoder sidebar
  • Step through execution paths using the Trace Player

Features

  • Show Callers / Callees
  • Hierarchical Call Tree View
  • Trace Player with Code Highlighting
  • Playback Controls (Play, Pause, Step)

Configuration

{
  "decoder.pythonPath": "python",
  "decoder.playSpeed": 1500
}

Execution Context Detection

Decoder annotates calls with execution context, mapping the conditions that trigger each call.

Annotation Meaning
[if condition] Inside an if/else block
[in loop] Inside a for/while loop
[in try] Inside a try block
[in except] Inside an exception handler

Contributing

Contributions are welcome, please see CONTRIBUTING.md for guidelines.

License

MIT

Metadata

Release files for decoder-graph 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for decoder-graph 0.2.0
File Size Uploaded Provenance
decoder_graph-0.2.0.tar.gz 1.0 MB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for decoder-graph 0.2.0
File Interpreter ABI Platform
decoder_graph-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / decoder_graph-0.2.0.tar.gz

Download URL decoder_graph-0.2.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
1f7a7763561eddb97f0424e32b4074ac5ed9f9aa52c143f18b87e71070d3eba1
BLAKE2b-256 checksum
How to use checksums
7f1aa4f4bd8bc233ce9a0e9a3ce0413511a6b4b7e9ad6e7a6ea87c899ef05a53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.

Transparency log

Release files / decoder_graph-0.2.0-py3-none-any.whl

Download URL decoder_graph-0.2.0-py3-none-any.whl
Size 36.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72beddd1b88da841acb6edbc1ce7f6d32bf02eb60b47d241764413bf28f906c4
BLAKE2b-256 checksum
How to use checksums
8f8d8d87ef5ff2adf54a5aa79fd4a5ce16f1d2bcb2a4c20cbeb7689416d98cc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.

Transparency log

Security for decoder-graph 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for decoder_graph-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page