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. Resync boundaries after heavy structural refactoring
dotscope sync

# 4. 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.

Scaling to the Swarm (Coming Soon)

Local .mmap daemons are built for isolated IDEs. But when you deploy autonomous agents at planetary scale, the physics must scale with them.

Dotscope Pro: The Genesis Matrix

Open-source Dotscope calculates the physical layout of your local codebase in realtime. Dotscope Pro is the global intelligence vector. By connecting to the Pro WebSocket, your agents don't have to compile graphs from scratch; they instantly stream pre-compiled structural fingerprints from over 10,000 top-tier open-source architectural hubs. Your agent doesn't just know how you construct code, it mathematically recognizes how the planet constructs it natively across boundaries.

Dotswarm: Fleet Telemetry & Swarm Locks

What happens when you deploy 50 autonomous agents against a single enterprise monorepo infrastructure? They clobber each other's execution states. Dotswarm lifts our zero-latency local MVCC synchronization primitives directly into a distributed backend. It formally enforces Swarm Locks across distributed memory pools, guaranteeing massive AI fleets can orchestrate cross-repository execution simultaneously without triggering catastrophic merge collisions.

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

dotscope-1.6.11.tar.gz (278.8 kB view details)

Uploaded Source

Built Distributions

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

dotscope-1.6.11-cp310-abi3-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

dotscope-1.6.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

File details

Details for the file dotscope-1.6.11.tar.gz.

File metadata

  • Download URL: dotscope-1.6.11.tar.gz
  • Upload date:
  • Size: 278.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for dotscope-1.6.11.tar.gz
Algorithm Hash digest
SHA256 f717359676368b21e826bc9d9c17369875ee55ee04526cb2a6fa89e2d37e141c
MD5 86e23386e811fae0dc3f58a2db490616
BLAKE2b-256 c1400f8e61a1b44d9bbb6b79531bc71ebd2c278a3e3136f35e1a6e3b166bdddc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dotscope-1.6.11-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 62cd51283f9c3aa4acbfab3989f56ba7d51f832ee8ad279a07a83f21bdf535e0
MD5 a7b14c528c6ed08821ae9caed29888d1
BLAKE2b-256 1295f6fd56e228150b33e11e5900a31753a31368e6ba9a68a7ed3376aac38aad

See more details on using hashes here.

File details

Details for the file dotscope-1.6.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for dotscope-1.6.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b78ff23cf8fc30db9054a74d17af9ba597c77df69016629054571be57c2d1db
MD5 3340b2504c664a76d50aece7b087c9f0
BLAKE2b-256 ffbc2b76f9f15dc17dacb966d1a6ac1d3af38228551095257db5f5497b2dd68f

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.6.11-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: python-publish.yml on nxrobins/dotscope

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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