Skip to main content

vibesequence

PyPI Downloads Tests License: MIT Analyzes Python, TypeScript and Go Zero dependencies Works with Claude Code GitHub stars OpenSSF Scorecard CodeQL Dependency scan Release security

Website · How it works · Benchmark

Turn your codebase into zoomable sequence diagrams that show when a user does X, who calls whom, and in what order. Use them as a map while you build, review or learn the code, on your own or with an AI assistant.

Inspired by graphify, which turns a codebase into a knowledge graph so an AI assistant can navigate it without re-reading every file. vibesequence takes the same idea and adds what a graph leaves out: the order of calls and the branches around them (if, loops, error handling), drawn as user sequence diagrams that you and the assistant can both read.

vibesequence demo

Why

When an AI assistant edits your code, it is hard to see what actually changed in the behavior. vibesequence reads your code (no running it), finds the entry points (HTTP routes, CLI commands, handlers), and draws each one as a sequence diagram:

  • Zoom between package, module, class and function level. Click a blue call to open it on its own.
  • Play a flow arrow by arrow, with the file:line of each step.
  • Live: while the AI edits, changed steps turn green and you can play only the changes.
  • AI friendly: the same flow is available as compact text, so your assistant reads one diagram instead of eight files.

Supports Python (stdlib only), TypeScript / JavaScript (Next.js, Express) and Go (net/http, Gin, Echo, Chi, Fiber, Cobra).

Does it save tokens?

We benchmarked Claude Code on the same tasks with and without vibesequence. Every run passed in both setups.

task type input tokens cost turns
understanding a flow ("what happens when…", "what breaks if I change…") −23% −18% 8 → 4
small edits +19% +15% 5.5 → 6

Impact questions save the most: one vibesequence callers call replaced 6–7 greps and reads (−53% tokens). For edits, the agent still has to read the files it changes, so on the tiny example projects the map is extra overhead. Full method, per-task results and caveats: docs/benchmark.

Install

From PyPI:

pip install vibesequence
pip install "vibesequence[ts]"   # with TypeScript / JavaScript support
pip install "vibesequence[go]"   # with Go support

Quick start

vibesequence build .        # parse the repo into vibesequence-out/
vibesequence serve          # open the viewer at http://127.0.0.1:8765

Try it on the bundled examples: clone this repo and run vibesequence build examples.

Commands

command what it does
vibesequence build . parse the repo into vibesequence-out/ (incremental)
vibesequence serve live viewer; source links open your editor
vibesequence list list all flows
vibesequence show "POST /orders" one flow as Mermaid (--format text for the AI-friendly tree)
vibesequence callers OrderRepo.create who calls this, and which flows are affected
vibesequence diff which flows changed in the last build
vibesequence install add instructions to CLAUDE.md + a Claude Code hook that shows changed flows after each edit

Viewer shortcuts

Space play · ← → step · [ ] level · Z zen · D dark mode · \ sidebar · ⌘+scroll zoom · drag to pan

Roadmap

  • Go: tree-sitter extractor, entry points for net/http, Gin, Echo, Chi, Fiber and Cobra commands
  • Java: Spring controllers
  • Smarter resolution: return-type inference, dependency injection, interface → implementations
  • Diff against a git ref: review a PR as sequence changes, not line changes
  • MCP server: let the assistant call list_flows / show_flow instead of reading files
  • Runtime traces (optional): mark the paths that actually ran

Verify a release

Every GitHub Release carries the built wheel and sdist with signed build provenance, a ClamAV scan and VirusTotal links in the release notes. Check a downloaded file came from this repo's CI:

gh attestation verify vibesequence-<version>-py3-none-any.whl --repo monkeymars/vibesequence

To report a vulnerability, see SECURITY.md.

Contributing

Open for contributions! Pick a roadmap item, fix a bug, or improve the docs. Issues and pull requests are welcome.

  • New language: add one extractor class in vibesequence/extractors/ that outputs ModuleFacts (see extractors/base.py). The resolver, viewer and CLI work without changes.
  • Set up: clone the repo and run pip install -e ".[ts,go]".
  • Run the tests before opening a PR: python tests/test_flow.py
  • Not sure where to start? Open an issue and say what you want to build.

Learn more

How the engine turns code into sequence diagrams (extract → resolve → expand → project → render), plus live mode, editor links and the AI hook: docs/how-it-works.md.

Metadata

Release files for vibesequence 0.2.2

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

Source distribution (sdist)

Source distribution for vibesequence 0.2.2
File Size Uploaded Provenance Actions
vibesequence-0.2.2.tar.gz 78.6 kB With provenance Details for vibesequence-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vibesequence 0.2.2
File Interpreter ABI Platform Actions
vibesequence-0.2.2-py3-none-any.whl Python 3 none any Details for vibesequence-0.2.2-py3-none-any.whl

Total release size: 158.2 kB

Release files / vibesequence-0.2.2.tar.gz

Download URL vibesequence-0.2.2.tar.gz
Size 78.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6761b085ae6b562fb0788d9c9d988b35282a19700f8dff35f1c3559dd1435491
BLAKE2b-256 checksum
How to use checksums
fe2dac79803f428a6446aff70bb3f122c3c554fc739466b77f1723b667be2316
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Release files / vibesequence-0.2.2-py3-none-any.whl

Download URL vibesequence-0.2.2-py3-none-any.whl
Size 79.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4def8df77c8aff9c009709c6d8fa2b2c1a4aa7912c7bdfc08d70fe800a52cbe
BLAKE2b-256 checksum
How to use checksums
aff6ea32cc3e43690dc6a7042ea651c4aee5a6d3782be25e66e36823826f904c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 9, 2026.

Transparency log

Security for vibesequence 0.2.2

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vibesequence-0.2.2.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 Nov 9, 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.

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