Synapse
Fast, local, zero-cost structural context engine for AI coding agents.
⚡ 5-Second Quickstart
Install Synapse and automatically configure your IDE (Cursor, Claude Code, Cline, Windsurf):
pip install synap-git
synap install
Done. Synapse indexes your repository with Tree-sitter, installs zero-daemon Git hooks for automatic reindexing, and registers MCP server endpoints.
Why Synapse?
| Feature | Synapse | Repomix | Aider | Cursor / Cline Default |
|---|---|---|---|---|
| API Cost | 100% Free (Zero) | 100% Free | Burns Tokens | Cloud Token Usage |
| Graph Intelligence | AST Symbol & Edge Graph | None (Flat Dump) | Repo Map (CTags) | Vector Embeddings |
| Code Skeletonization | 85% Token Reduction | None (Raw Code) | Line Truncation | Chunk Slicing |
| Git Blast Radius | Instant Callers & Tests | None | Diff Only | None |
| Architectural Hubs | Personalized PageRank | None | Static Frequency | None |
| Working Memory | Persistent Checkpoints | None | Ephemeral Chat | Ephemeral Session |
| Runtime Footprint | Zero-Daemon Hook Mode | CLI Only | CLI Process | Background Indexer |
Architecture
flowchart TD
A[AI Coding Agent / IDE<br>Cursor · Claude Code · Cline · Aider] -->|MCP stdio / CLI| B[Synapse Engine]
B --> C[AST Skeletonizer<br>85% Token Reduction]
B --> D[Git State & Blast Radius<br>Diff Line -> Callers -> Tests]
B --> E[Graph Engine & PageRank<br>Architectural Hubs]
B --> F[Working Memory & Lessons<br>Checkpoints & Anti-Regressions]
C & D & E & F --> G[(Local SQLite WAL DB<br>.synap/synap.db)]
For database schemas and CTE traversal queries, see Architecture Internals.
Essential CLI Commands
# Print token-bounded startup context (< 750 tokens)
synap context
# Check modified symbols, direct callers, and impacted tests
synap blast
# Run only tests impacted by dirty git blast radius
synap test
# Deep structural symbol inspection (callers, dependencies, tests)
synap explain my_function
# Export token-budgeted prompt pack with AST skeletons (< 8k tokens)
synap pack
# Inspect structural AST skeleton of any file (strips bodies, keeps types/docstrings)
synap skeleton src/my_module.py
# Discover top architectural hubs via PageRank
synap hubs
# Search repository with hybrid structural ranking
synap search "authentication flow"
# Verify environment and system health
synap doctor
Shorthand aliases supported: synap ctx, synap blast, synap t, synap ex <sym>, synap sk <file>, synap hubs, synap doc.
MCP Tools for AI Agents
When registered via synap install, AI agents gain direct access to these MCP tools:
| MCP Tool | Purpose |
|---|---|
get_session_preamble() |
Token-optimized session startup context (< 750 tokens: active branch, dirty files, blast radius, hubs, lessons). |
get_skeleton(file_path) |
Extracts function signatures, types, and docstrings without function bodies (85% token savings). |
get_blast_radius() |
Computes impact radius of uncommitted git changes down to callers and test files. |
get_callers(symbol) |
Finds all functions and modules that call or depend upon a symbol. |
get_callees(symbol) |
Finds all functions and symbols called by a given symbol. |
read_symbol(symbol) |
Reads exact lines and code of a specific function or class without reading the entire file. |
get_diff() |
Unified git diff of uncommitted or staged changes. |
get_test_recommendations() |
Discovers impacted test suites and provides recommended pytest commands. |
create_checkpoint(doing) |
Saves thought process and dirty working state before complex refactors. |
restore_checkpoint(id) |
Restores past checkpoint context after agent context compaction or memory wipes. |
remember(key, content) |
Stores operational observations and environment facts in persistent memory. |
License
MIT © Saahil Pal
Metadata
Release files for synap-git 2.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| synap_git-2.7.0.tar.gz | 139.5 kB | With provenance | Details for synap_git-2.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synap_git-2.7.0-py3-none-any.whl | Python 3 | none | any | Details for synap_git-2.7.0-py3-none-any.whl |
Total release size: 282.8 kB
Release files / synap_git-2.7.0.tar.gz
| Download URL | synap_git-2.7.0.tar.gz |
|---|---|
| Size | 139.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60c6677cf9b87d660bcf7b817e26a105f3a0fbac76367c25bef34c3c5cc72233
|
|
BLAKE2b-256 checksum How to use checksums |
af0e703ddfedbce8d0d7df13c9027f91265b6393cd6c19d2b77cf13bf3166993
|
| 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 12, 2026.
Transparency logRelease files / synap_git-2.7.0-py3-none-any.whl
| Download URL | synap_git-2.7.0-py3-none-any.whl |
|---|---|
| Size | 143.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2150a947b621a6b8f892831cf8b0e55a2d1b5ae9af1bc7a37a45454f9cdc41c7
|
|
BLAKE2b-256 checksum How to use checksums |
196afef4765c013619f12c8098a3569fe4aaba4ed239fbf4b8390a2f6a745397
|
| 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 12, 2026.
Transparency logSecurity for synap-git 2.7.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
Both files in this release have been uploaded with provenance metadata.
Attestation for synap_git-2.7.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 Nov 12, 2026.
Transparency logA 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.