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 Distributions

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

Built Distributions

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

dotscope-1.7.0-cp310-abi3-win_amd64.whl (2.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

dotscope-1.7.0-cp310-abi3-manylinux_2_34_x86_64.whl (2.6 MB view details)

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

dotscope-1.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

dotscope-1.7.0-cp310-abi3-macosx_11_0_arm64.whl (2.4 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

dotscope-1.7.0-cp310-abi3-macosx_10_12_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: dotscope-1.7.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dotscope-1.7.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8bf423d7c31fb132084e560aaaa0864351093b89c4426d69f3e923f2f4eb4ac7
MD5 90e8fc28ae905fbe7413280f3786c23a
BLAKE2b-256 5bcd651f4127972251e78f0406c4ce4a9db19a6d40e31012db1040a07e3bc267

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.7.0-cp310-abi3-win_amd64.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.

File details

Details for the file dotscope-1.7.0-cp310-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for dotscope-1.7.0-cp310-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f5a7584705784a29b82ec07ec89b04830a91cba577049322ca449686acb15e31
MD5 ff96556ade9461c82bddbe1e0afa6924
BLAKE2b-256 2b1ac220f9d6677ed1e898503602c9f7dd171defe9ad3de28095a05a77e6aac9

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.7.0-cp310-abi3-manylinux_2_34_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.

File details

Details for the file dotscope-1.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for dotscope-1.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 82c2bf05ad49231a7313c5d69c526498df2a2579b5bda2ede634cb33d0ebff16
MD5 cc0b774694ee7267cb7009997ac42039
BLAKE2b-256 a98ba9171089199282d329467de7f667c285257f38f55b453bf69b0b96733ee4

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.7.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.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.

File details

Details for the file dotscope-1.7.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for dotscope-1.7.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5d660f3ceaa190330f1ed3d7ab6dff1169bca1ecf4f91b90ab5ecdbc1801093c
MD5 a22082fd320206c3a70b3e9925d82169
BLAKE2b-256 1630e5a643cb115ea2557fdcf3bc016d018faae7e894c75ac6a18d62b9e1d695

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.7.0-cp310-abi3-macosx_11_0_arm64.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.

File details

Details for the file dotscope-1.7.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for dotscope-1.7.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f215edb18f57f29f22a6314490ff7b2e4dd7d3e989042bcc34bbb6cc51fe49a3
MD5 19f1ba94078961914bd636a4723a5729
BLAKE2b-256 aee6b208f75b07203dbae1786a3f1e6e735fbe5ba65a1ef552aa11d5d262cc2d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dotscope-1.7.0-cp310-abi3-macosx_10_12_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