Skill-Orchestrated Context Intelligence Engine for AI coding agents
Project description
V.I.S.O.R.
AI is wasting 60% of your tokens reading the wrong code. V.I.S.O.R. fixes that.
Visual Intelligence System for Orchestrated Reasoning
V.I.S.O.R. is a Skill-Orchestrated Context Intelligence Engine โ a local-first MCP server that indexes your codebase via Tree-sitter AST parsing, ranks code with a multi-signal scoring engine, and delivers surgical context to AI coding agents. It works with Antigravity, VS Code, Cursor, and Claude Code.
๐ Install in 30 Seconds
pip install visor-mcp
visor init
# Done. Your AI agent now has V.I.S.O.R.
visor init auto-detects your IDE (Antigravity, Cursor) and writes the MCP config for you.
Why V.I.S.O.R.?
Every time your AI agent searches for context, it burns tokens reading irrelevant files. V.I.S.O.R. eliminates this waste:
| Without V.I.S.O.R. | With V.I.S.O.R. |
|---|---|
| Agent greps 20+ files blindly | Agent gets 3-5 precise snippets |
| ~12,000 tokens per context fetch | ~2,300 tokens (80% reduction) |
| No reasoning โ just raw search | Every selection is explainable |
| Stale context โ hallucinations | Drift detection prevents errors |
โจ Key Features
๐ง Context Intelligence Engine
The build_context tool is the core differentiator. It doesn't just search โ it reasons:
- Intent Classification โ Detects if you're debugging, refactoring, or exploring, and adjusts weights dynamically
- 5-Signal Scoring โ Combines embedding similarity, exact match, co-location, dependency proximity, and recency
- Explainable Decisions โ Every node includes human-readable reasoning for why it was selected
- Token Metrics โ Shows exact reduction percentage vs. naive full-file approach
โก Skill Execution Layer
Pre-loaded strategies that change how V.I.S.O.R. retrieves context:
| Skill | Intent | Behavior |
|---|---|---|
bug-fixer |
BUG_FIX | Boosts dependency chains + recently modified files |
architecture-explainer |
EXPLAIN | Heavy embedding similarity for broad understanding |
refactor-assistant |
REFACTOR | Wide dependency graph + exact symbol matching |
performance-optimizer |
BUG_FIX | Hotspot detection via extreme recency weighting |
Skills are defined as JSON strategies and stored in SQLite. Create your own via add_custom_skill.
๐ Semantic AST Indexing
Powered by Tree-sitter, V.I.S.O.R. indexes 9 languages out of the box. Symbols are embedded using all-MiniLM-L6-v2 and stored in a local SQLite + sqlite-vec vector store.
| Language | Extensions | Status |
|---|---|---|
| Python | .py |
โ |
| TypeScript | .ts, .tsx |
โ |
| JavaScript | .js, .jsx |
โ |
| Go | .go |
โ |
| Rust | .rs |
โ |
| Java | .java |
โ |
| C | .c, .h |
โ |
| C++ | .cpp, .cc, .cxx, .hpp |
โ |
Want more? Adding a new language is ~15 lines of code. See CONTRIBUTING.md.
๐ 3D WebGPU Developer HUD
A real-time force-directed graph visualization of your codebase architecture, embedded directly in your IDE sidebar. Displays live telemetry: Agent Context Burn, Graph Scale, and Drift Alerts.
โ ๏ธ Drift Detection
Dual-mode detection (SHA-256 hash comparison or file changelog timestamps) warns agents before they hallucinate from stale context.
๐ ๏ธ CLI
visor context "how is authentication handled" # General context query
visor fix "login crash on null user" # Bug-fixer skill
visor explain "database client" # Architecture-explainer skill
visor trace src/auth.py src/db/client.py # Trace architectural path
visor drift # Check for drift
visor init # Auto-configure for your IDE
๐ ๏ธ MCP Tool Suite
V.I.S.O.R. exposes 16 MCP tools across 5 categories. See docs/MCP_TOOLS.md for the full API reference.
๐ง Intelligence
| Tool | Description |
|---|---|
build_context(query, skill?) |
Ranked context with scoring, reasoning, metrics, and prompt export |
๐ Search
| Tool | Description |
|---|---|
search_codebase(query) |
Semantic vector search across AST nodes |
get_symbol_context(symbol) |
Find all definitions with file + line range |
get_file_context(path) |
Full AST symbol listing for a file |
๐บ๏ธ Graph Analysis
| Tool | Description |
|---|---|
get_dependency_chain(symbol) |
Transitive import chain (BFS depth 5) |
impact_analysis(file_path) |
Downstream blast radius |
trace_route(source, target) |
Shortest path between files |
dead_code_detection() |
Files with zero incoming edges |
โ ๏ธ Drift Detection
| Tool | Description |
|---|---|
get_drift_report(files, loaded_at, hashes?) |
Hash or timestamp-based drift detection |
๐งฉ Memory & Skills
| Tool | Description |
|---|---|
store_memory(role, content) |
Persist conversation with embedding |
add_custom_skill(name, desc, content, strategy?) |
Create a skill with optional JSON strategy |
list_custom_skills() |
List all skills with strategies |
delete_custom_skill(id) |
Remove a skill |
๐ฆ Example Output
$ visor fix "authentication crash"
============================================================
V.I.S.O.R. Context Intelligence Engine
============================================================
Query: authentication crash
Intent: BUG_FIX
Skill: bug-fixer
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Tokens without V.I.S.O.R.: 11,400
Tokens with V.I.S.O.R.: 2,180
Reduction: 80.9%
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Selected 4 nodes (truncated=False):
[2.8500] src/auth/jwt.py:verify_token
โ Matched query token in symbol name
โ Co-located in same file as top semantic hit
โ Recently modified file (boosted)
[2.1200] src/auth/middleware.py:auth_guard
โ Reachable via dependency chain
โ Semantic similarity (score: 0.375)
============================================================
๐ Documentation
| Document | Description |
|---|---|
docs/ARCHITECTURE.md |
System design, data flow, DB schema |
docs/MCP_TOOLS.md |
Complete MCP tool API reference |
docs/FAQ.md |
Frequently asked questions |
docs/TROUBLESHOOTING.md |
Common issues and solutions |
CONTRIBUTING.md |
How to contribute (add languages, tools, skills) |
CHANGELOG.md |
Release history |
๐ค Contributing
V.I.S.O.R. welcomes contributions! The easiest way to start is by adding a new language โ it's ~15 lines and a great first issue.
git clone https://github.com/dibun75/visor.git
cd visor && uv sync --dev
uv run pytest tests/ -v
See CONTRIBUTING.md for the full guide.
๐ Compatibility
| IDE | Support | Method |
|---|---|---|
| Google Antigravity | โ Full | MCP config + Extension |
| VS Code | โ Full | MCP config + Extension |
| Cursor | โ MCP tools | MCP config |
| Claude Code | โ MCP tools | MCP config |
License
MIT ยฉ Arunav Mandal
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 visor_mcp-1.0.1.tar.gz.
File metadata
- Download URL: visor_mcp-1.0.1.tar.gz
- Upload date:
- Size: 769.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
005acb3e46143bf9d754954efee4726accbc1133cf62f4e87bc3fa3fc2e8ab3c
|
|
| MD5 |
6956f1a9a2ca91af0b35d65b11e766be
|
|
| BLAKE2b-256 |
934203515f0595bfcaca6acdceebfd8d1ef83e3d39d01c4c5c9f812b7a7ca321
|
Provenance
The following attestation bundles were made for visor_mcp-1.0.1.tar.gz:
Publisher:
publish.yml on dibun75/visor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
visor_mcp-1.0.1.tar.gz -
Subject digest:
005acb3e46143bf9d754954efee4726accbc1133cf62f4e87bc3fa3fc2e8ab3c - Sigstore transparency entry: 1331591471
- Sigstore integration time:
-
Permalink:
dibun75/visor@9f35268df4a9d542f69195be1cf8df5760526c00 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/dibun75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9f35268df4a9d542f69195be1cf8df5760526c00 -
Trigger Event:
release
-
Statement type:
File details
Details for the file visor_mcp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: visor_mcp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 777.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acf94041440f5f44314c0c3f43769d2ac9444d51268f9ef615ff0acaaa98a9ce
|
|
| MD5 |
b4558da61c14f8d52413d32ea7d6acf8
|
|
| BLAKE2b-256 |
11548314c9ecf06cc3d83e16031673c34399b3cd2486439298dd70225148bd17
|
Provenance
The following attestation bundles were made for visor_mcp-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on dibun75/visor
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
visor_mcp-1.0.1-py3-none-any.whl -
Subject digest:
acf94041440f5f44314c0c3f43769d2ac9444d51268f9ef615ff0acaaa98a9ce - Sigstore transparency entry: 1331591576
- Sigstore integration time:
-
Permalink:
dibun75/visor@9f35268df4a9d542f69195be1cf8df5760526c00 -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/dibun75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9f35268df4a9d542f69195be1cf8df5760526c00 -
Trigger Event:
release
-
Statement type: