Skip to main content

Agents see files. You see architecture. dotscope gives agents the architecture.

Project description

Dotscope: The Physics Engine for AI Coding Agents

AI agents operate blind. They process code as flat text, fundamentally unaware of the structural gravity and blast radius of the files they intend to modify. They hallucinate architectural boundaries, break implicit contracts, and fail silently because they simply do not possess the mathematical context of your repository.

Dotscope is a structural compiler that force-feeds physical topology into their reasoning loop. Supported natively via the Model Context Protocol (MCP) on Cursor, Windsurf, and Claude Desktop, Dotscope guarantees that agents stop hallucinating state and start adhering to the strict architectural boundaries of your application.


The Magic: Frictionless UX

You do not need to teach your AI a new paradigm. The AI simply searches the codebase exactly as it normally does.

However, under the hood, Dotscope's Semantic Interceptor hijacks the query. It intercepts the natural language request and instantly enriches the return payload with the precise structural reality of the targets. The agent reads the code, and mathematically understands the blast radius simultaneously.

Because Dotscope operates an Immortal Matrix—a standalone background double-buffered architecture—the graph is never stale. Saving a file natively updates the dependency mapping behind the scenes instantly.


The Proof: Unfakeable Rigor

Dotscope isn't a wrapper; it is an optimized topological execution plane engineered to map planetary-scale structures.

The Titan Metric Benchmark:

  • Sustained Load: 100,000 files, 50,000 commits evaluated.
  • Execution Time: ~32 seconds initial ingestion.
  • Memory Ceiling: Bounded strictly to 208MB RAM.

The system natively absorbs IDE "save-spam" and completely eliminates memory-tearing across agents seamlessly via Read-Copy-Update epoch locks.


Quick Start (3-Step Installation)

It is brain-dead simple to bind Dotscope to your repository locally.

# 1. Install the core toolkit
pip install dotscope

# 2. Bind your repository and implicitly launch the tracking plane
dotscope init

# 3. Connect to your Agent
# Dotscope automatically generates the `.cursorrules` or `.windsurfrules` constraints required to orient the AI.

The Flex: Under the Hood

For the Systems Engineers: Dotscope borrows its architectural fundamentals straight from High-Frequency Trading (HFT) infrastructure.

Instead of forcing your AI to ping slower Python GIL-bound scripts or bloated Language Servers that take 30 seconds to cold-start, Dotscope relies on a standalone local Rust Daemon performing continuous AST ingestion in the background.

  1. The Write-Plane: A compiled dotscope_daemon.exe uses notify to debounce IDE file-write spikes into a Token Bucket, safely calculating zero-latency $O(V + E)$ dependency subgraphs gracefully.
  2. The Read-Plane: We leverage standard C-aligned memory mapping (memmap2) to deploy double-buffered matrices (topology_A.bin / topology_B.bin). The Python MCP read-plane structurally casts these zero-copy bounds into memory in exactly 0 CPU cycles.
  3. Multi-Version Concurrency Control (MVCC): Your AI reads from an immortal control.mmap atomic semaphore. If the agent queries the repo while a massive file modification is resolving, a local Unix-style blocking socket catches the Python process and formally halts the AI's thread natively until the matrix mathematically resolves. Zero hallucinogenic state is explicitly enforced at the OS level.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

dotscope-1.6.0-cp310-abi3-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10+Windows x86-64

File details

Details for the file dotscope-1.6.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: dotscope-1.6.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for dotscope-1.6.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a314dacc437bebf6c5d8c7321cc8d4747052123891fa8045b2b16db49198f229
MD5 c55c1d846092e1e37d9e222dff750b6b
BLAKE2b-256 18e67e548e40a14d7ead91768b440a28591991fc304d2084eb4380753b150242

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