Govern What AI Is Allowed to See
β‘ One-Line Install:
curl -sSL https://contextdigger.com/install.sh | bash
Installs the ContextDigger CLI. Works for updates too.
π§ First commands to try:
cd your-project cdg init cdg dig backend-api This creates a governed context bundle under .cdg/context/backend-api.txt that any coding assistant can read.
The Philosophy: Managing AI Attention
ContextDigger introduces context aperture management, adjusting your AI focus for maximum clarity and precision.
Introducing industry-standard terminology:
Context Aperture β’ Attention Budget β’ Focus Discipline
Designed from the perspective of Autistic Intelligence, a mind that performs brilliantly with the right slice of input and becomes fragile under overload, ContextDigger treats context as something to be governed and protected, not flooded.
β The Problem: Attention Dilution
Wide aperture = diluted attention. AI transformer models exhibit measurable accuracy degradation when context exceeds optimal thresholds:
- β’ Attention dilution - 176 files spreads AI attention too thin (8% per file)
- β’ Wide aperture - Everything visible, nothing sharp
- β’ Exceeded attention budget - AI "skims" rather than deeply understands
- β’ Poor context scoping - No discipline around what's relevant
β The Solution: Aperture Control
Narrow aperture = concentrated attention. ContextDigger enforces focus discipline:
- β Context aperture: f/15 - Optimal 15-file focus depth
- β Attention budget management - Stay within 12K optimal token range
- β Guided context scoping - Auto-analysis suggests natural boundaries
- β Focus discipline - Intentional constraints enable precision
π‘ The Core Insight
Like photography, AI context benefits from aperture control, not maximum exposure but optimal exposure.
When you exceed your attention budget, ContextDigger does not block you. It adjusts your context aperture, analyzing your files using 4 parallel strategies (directory, naming, role, imports) to suggest natural focus boundaries. Pick one, and you are working at optimal resolution in 30 seconds.
"More context β better results. Focused context = precision. This is the foundation of focus discipline in AI-assisted development."
Start Here
Choose the path that matches what you need right now.
Understand AI Basics
Learn how tokens, context windows, and attention really work when you ask an AI to help with code.
Learn Context Governance
Go deeper on Context Aperture, Attention Budgets, and what happens when Aperture is exceeded.
Run a Hands-on Lab
Add rate limiting to a checkout API and see how governed bundles change AI behavior in practice.
Understanding Context, Budgets, and AI Governance
Not sure what "budget", "refusal", or "context" mean? Or why they matter for AI tools? We explain everything in plain language.
See It In Action
Real scenarios where ContextDigger transforms your workflow
Sarah: Salesforce Developer
From vague AI answers to exact code suggestions
β The Problem
Task: Add validation for Account.Industry field in her Salesforce org's test suite.
First Attempt: Sarah opens Claude Code, copies all 176 Apex test files from her /force-app/tests folder, and asks:
The Frustration:
- β"Which Account test file?" - Claude did not say
- βGeneric code - does not match her org test patterns
- β10 minutes wasted - manually searching 176 files for AccountFieldTest.cls
- β$0.74 per question - all 176 files processed for a generic answer
β The Solution
Sarah installs ContextDigger: curl install.sh | bash
Second Attempt: Sarah copies the 23-file context to Claude Code and asks the same question:
The Result: Exact file (AccountFieldTest.cls), exact line (47), code that matches her org's patterns (TestDataFactory), proper assertions. Copy-paste ready.
Before ContextDigger: 176 files β generic answer β 10 min wasted β $0.74/question
After ContextDigger: 23 files β exact answer β 30 seconds β $0.03/question (96% cheaper)
The Insight: Sarah didn't know context overload was the problem until ContextDigger showed her
Marcus: React Developer
From vague answers to architectural clarity in 30 seconds
β The Problem
Task: Marcus joins a React app and needs to understand: "How does the session timeout work in our authentication flow?"
First Attempt: Opens Cursor, copies all 500+ component files from src/components/
The Frustration:
- β"Which components handle timeout?" - Cursor did not say
- βGeneric tutorial code - not their actual implementation
- β500 files is too much context - AI could not find the pattern
- β15 minutes of manual browsing through src/components/auth/
π‘ The Discovery: A teammate mentions ContextDigger manages attention budget automatically
β The Solution
Marcus installs ContextDigger: curl install.sh | bash
Second Attempt: Marcus copies the 14-file context to Cursor
The Result: Exact files (SessionManager.tsx, AuthContext.tsx, SessionWarning.tsx), exact line (34), architectural understanding of the timeout flow. Marcus understands the entire auth system in 30 seconds.
Before: 500 files β generic tutorial β 15 min wasted β no real answer
After: 14 files β exact architecture β 30 seconds β complete understanding
The Insight: Marcus didn't know where auth components were; ContextDigger's hierarchical tree showed him the entire structure
Aisha: Python Backend Developer
From generic Django tutorials to exact model implementation
β The Problem
Task: Aisha inherits a Django project and needs to: "Add email verification to the User model"
First Attempt: Opens ChatGPT, copies all 45 Python files from backend/ directory (models, views, controllers all mixed)
The Frustration:
- "Which file is the User model?" - ChatGPT could not find it
- Suggested django-allauth - but project uses custom auth
- 45 mixed files confused the AI - models, views, serializers all blended
- 20 minutes manually searching for user_model.py
π‘ The Discovery: Aisha reads about ContextDigger's file intelligence extraction (no AI needed, just regex)
β The Solution
Aisha installs ContextDigger: curl install.sh | bash
Second Attempt: Aisha copies the 12-file model context to ChatGPT
The Result: Exact file (user_model.py), exact line (12), approach that matches their custom auth system (not generic django-allauth). ChatGPT even referenced their UserSerializer because it saw the actual project structure.
Before: 45 mixed files β generic tutorial β 20 min searching β wrong library suggested
After: 12 isolated models β exact implementation β matches custom auth β copy-paste ready
The Insight: ContextDigger's file intelligence (Purpose, Role, Imports) separated models from views WITHOUT Aisha reading any code
David: Full-Stack TypeScript Developer
From manual file hunting to surgical precision in one command
β The Problem
Task: David needs to: "Add OAuth2 refresh token logic to our authentication service"
The Manual Approach: David knows auth lives in src/services/auth/ somewhere, but the backend-services folder has 80+ TypeScript files (auth, payments, notifications, email, etc.)
The Frustration:
- 10 minutes manually browsing to find the 8 auth service files
- Tries VS Code + Copilot with all 80 service files β vague answer
- "Should I use passport-jwt or jsonwebtoken?" - Copilot does not know their stack
- Generic OAuth2 tutorial code - does not match their TypeScript types
π‘ The Discovery: David learns ContextDigger supports glob patterns. He can create a sub area with surgical precision.
β The Solution
David installs ContextDigger: curl install.sh | bash
The Power User Move: David knows exactly what he wants. He skips the suggestions and uses a glob pattern.
Second Attempt: David copies the 8-file context to VS Code + Copilot
The Result: Exact implementation using TokenManager.ts, SessionStore.ts, and JwtValidator.ts. Copilot understood the architecture and used the existing TypeScript types. Copy and paste ready.
Before: 80 files OR 10 min manual search β generic OAuth2 tutorial β wrong types
After: One glob command β 8 exact files β TypeScript implementation using actual services
The Insight: David knew the structure; ContextDigger's glob patterns gave him surgical control without browsing
Context-Free Code Intelligence
Eliminate context window limits forever. ContextDigger indexes your entire codebase locally using AST parsing, enabling instant symbol lookups, cross project search, and semantic code queries with zero tokens used and zero latency.
See How ContextDigger Transforms Your Workflow
From unbounded AI scanning to governed context bundles. Watch how ContextDigger enforces Context Aperture and Attention Budgets across your workflow with any AI tool.
Stop losing time every time you switch code areas.
Start working with governed context and clear boundaries.
π₯ Built for Solo Developers & Teams
π€ Built for Your Individual Workflow
π Built for Learning & Growth
ContextDigger keeps your personal exploration organized. Track your own progress, maintain context, and sync across your machines.
ContextDigger adapts to your workflow. Use it solo or enable git-based team collaboration with zero server setup.
Get visibility into how your team understands the codebase and where features are actually implemented.
Coordinate documentation efforts across your team and track which code areas have been documented.
Perfect for onboarding, studying open source projects, or exploring new frameworks. Learn at your own pace with structured guidance.
Individual Developers
- β Bookmark important code locations
- β Track your exploration history
- β Sync discoveries across machines via git
- β Keep everything private if you prefer
Development Teams
- β See what teammates are working on (via git sync)
- β Share bookmarks and code area discoveries
- β Decentralized - no server setup required
- β Team sync via git push/pull workflow
Team Collaboration Via Git
No configuration, no servers, no accounts. Just commit your .cdg/ directory and your team can pull your discoveries.
Everything You Need to Govern Context in Large Codebases
Auto-discovery, bookmarks, history tracking, and context preservation
Auto-discovery, bookmarks, history tracking, git-based team sharing, and more
Understand architecture, dependencies, and team activity at a glance
Map code structure, track documentation coverage, and maintain accuracy
Structured exploration, guided discovery, and progressive understanding
Team visibility, knowledge distribution, and exploration metrics
Auto-Discovery
Automatically detects logical code areas based on directory structure and content analysis
Automatically maps your product's architecture and identifies feature boundaries
Automatically discovers code areas that need documentation and organizes content structure
Precision Bookmarks
Mark important locations and jump back instantly from anywhere in the codebase
Mark code sections you've documented and track what still needs coverage
Save important discoveries and build your personal learning roadmap
History Tracking
See where you've been, what you've explored, and pick up where you left off
Monitor team exploration patterns and identify which code areas are well-understood
Track your learning progress and see how your understanding has grown over time
Context Preservation
Never lose your place. ContextDigger remembers your exploration path
Maintain context across features, dependencies, and team handoffs
Zero Friction
Commands run instantly without approval prompts. One-line installation
Privacy First
Your data stays local. Share with team via git or keep it private
Your data stays local. Share with team via git workflow or keep it private
Ready to Navigate with Precision?
Ready to Collaborate More Effectively?
Ready to Understand Your Product Better?
Ready to Document More Efficiently?
Ready to Learn Faster?
Ready to Get Team Visibility?
Install ContextDigger in less than a minute and start exploring your codebase more effectively.
Install ContextDigger and start sharing knowledge with your team via git.
Install ContextDigger and get visibility into your product's architecture and team's code exploration.
Install ContextDigger and create better documentation faster with automatic code discovery.
Install ContextDigger and start learning complex codebases with structured guidance.
Install ContextDigger and monitor your team's codebase knowledge distribution.
Want to talk about ContextDigger?
If you have questions about context governance, Autistic Intelligence, or using ContextDigger with your tools, you can reach Sam directly through a short message.
Open the contact page β