Skip to main content

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.

CI PyPI License: MIT Python MCP

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.

V.I.S.O.R HUD Dashboard

๐Ÿš€ 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

visor_mcp-1.0.0.tar.gz (3.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visor_mcp-1.0.0-py3-none-any.whl (3.0 MB view details)

Uploaded Python 3

File details

Details for the file visor_mcp-1.0.0.tar.gz.

File metadata

  • Download URL: visor_mcp-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for visor_mcp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 601a22d5596487da7059915c541257a20550a2d3abe87ba12e590949dd9c0a40
MD5 58ae321b7a51f0b57add7125b836fa11
BLAKE2b-256 34111f9173cf0c55a69d54363c9ed34f3b605559d6fbaae7e64526cf6b1bf61e

See more details on using hashes here.

File details

Details for the file visor_mcp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: visor_mcp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for visor_mcp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00eaa6f1191335ce50f68953d9f7d8c028d4b83557119fe1669e76c10832d452
MD5 6aeec2f3561d46f671ff34645dbb9f45
BLAKE2b-256 85680fbc9315fead81c56e1306ada32dccc8e86ec3c1ceacba500d37f49ea576

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