Spatial Context Theory
Where humans provide intent and AI provides speed. A shared visual language for building software together.
Works with

See your entire system at a glance. View Modules link to detail views.
You're using Claude Code, Cursor, or Windsurf. The AI is fast. But something's wrong.
On small tasks, it's brilliant. On complex codebases, it starts guessing. It hallucinates files that don't exist. It misses dependencies. It suggests changes that break things three services away.
The model isn't broken. The context is.
You're feeding it the Forest when it needs the Leaf.
This is the Complexity Wall - the point where AI error rates climb faster than the value AI provides. Every team hits it eventually. Most blame the model. The model isn't the problem.
Views give AI precision context instead of brute force.
Instead of feeding the AI your entire codebase, you show it exactly what's relevant for this task.
High-Level View
Your architecture at the repo level. 18 microservices = 18 modules. The shape of the system.
Module View
Drill into one service. Its internal structure, components, files.
Sub Views
Different perspectives - functional flows, feature groupings, component relationships.
The Lasso
Select exactly the components relevant to this feature. That selection becomes the context.
Precision scope. The Leaf, not the Forest.
Developers using AI coding tools who've noticed accuracy drops as projects grow.
Engineering Leaders whose AI pilots worked in demos but struggle in production codebases.
Architects managing microservices, monorepos, or legacy systems where tribal knowledge matters.
If your codebase has grown past the point where "just feed it everything" works, this research is for you.
Spatial Context Theory addresses four problems that emerge when AI works with insufficient or noisy context:
When a human prompts an AI, neither side has visibility into what the other truly understands. Visual structure solves this by creating mutual visibility - the human and the AI see the same map.
When context is incomplete, AI systems infer. Inference at scale means hallucination at scale. Explicit pointers replace guessing with precision.
Current approaches feed AI everything and hope the model figures out what matters. Views provide precision scope - the "Leaf" rather than the "Forest."
As applications grow, brute-force context breaks down. Spatial structure scales because it's hierarchical - complexity is managed through layers of Views.
Views connects to Claude Code, Cursor, and Windsurf via MCP. The AI can read your Views, and update them as it builds.
Humans provide Intent. AI provides Speed.
Select
Lasso the relevant components from a View. Seconds, not minutes. Create Feature.
Align
Chat with the AI for two minutes. The UX nuance, the edge cases, the human judgment.
Build
The AI executes and creates the Feature Doc from the View, the chat, and the State.
As the AI builds, it enriches the context. Updates metadata. Refreshes pointers. The map heals itself. The more you build, the stronger the context becomes.
By passing the "Leaf" instead of the "Forest", teams see 60-80% reduction in token consumption while improving accuracy.
| Metric | Brute Force | Spatial Context |
|---|---|---|
| Prompt Density | 80% Noise | 100% Signal |
| Token Consumption | Linear growth with repo | Fixed to feature scope |
| Documentation Debt | Accumulates indefinitely | Eliminated - docs are generated |
I've spent 30 years building systems that scale - from an ISP I grew in a garage to £6M ARR, to leading 56 engineers as VP Engineering at Napster.
I don't have a degree. I have ADHD.
While the world sees rows of text, I see Spatial Structures - 3D maps of intent. I kept this private for years. Now I realise it's my unfair advantage.
I'm releasing this research as Open Source because progress happens faster when knowledge is shared.
The core context layer is open source. MIT License.
For Pro features and Enterprise capabilities:
Interested in the research? Building something similar? Want to contribute?
→ tony@spatialthinking.aiSpatial Context Theory - is all you need.