Fondamenta ArchCode Zero-dependency codebase intelligence for AI agents and humans. Static analysis → structured Markdown → readable by any LLM. No graph database, no MCP server, no cloud service. Just .md files committed to your repo. Why? Every AI coding tool (Claude Code, Cursor, Copilot) needs to understand your codebase. Current solutions require running servers or databases. Fondamenta ArchCode generates…
Zero-dependency codebase intelligence for AI agents and humans. Static analysis → structured Markdown → readable by any LLM. 8 code health agents included.
Zero-dependency codebase intelligence for AI agents and humans.
Static analysis → structured Markdown → readable by any LLM. No graph database, no MCP server, no cloud service. Just .md files committed to your repo.
Why?
Every AI coding tool (Claude Code, Cursor, Copilot) needs to understand your codebase. Current solutions require running servers or databases. Fondamenta ArchCode generates structured Markdown files that any LLM can read natively — no special tools needed.
npx fondamenta-archcode analyze
That’s it. Your .planning/ directory now contains a complete architectural analysis.
What it generates
.planning/
├── DEPENDENCY-MAP.md # Architecture overview, impact areas
└── dependencies/
├── pages-atomic.md # Every page: imports, auth, data fetching
├── components-atomic.md # Every component: props, state, hooks, used-by
├── api-routes-atomic.md # Every API route: methods, auth, models
├── lib-atomic.md # Every utility: exports, imports, env vars
├── schema-crossref-atomic.md # DB models, fields, relations, enums
└── component-graph.md # Visual dependency tree
Each file is:
Human-readable — open in any editor, review in any PR
AI-readable — any LLM understands Markdown natively
Grep-friendly — find anything with standard tools
Git-friendly — meaningful diffs when your code changes
Oversized files, god components, unprotected mutation routes
security-scanner
Auth gaps, env var leaks, insecure patterns
schema-drift
Code↔schema model mismatches
performance-sentinel
Heavy pages, unnecessary client components, API waterfalls
convention-enforcer
Naming, barrel exports, auth pattern consistency
impact-analyzer
Fan-in/out hotspots, hub components, bridge files
fondamenta diff
fondamenta diff # Show what changed
fondamenta diff --ci # Exit code 1 if outdated (for CI)
fondamenta watch
fondamenta watch # Watch and regenerate on changes
fondamenta watch --debounce 1000 # Custom debounce (ms)
fondamenta ai-context
fondamenta ai-context --claude # Generate/update CLAUDE.md
fondamenta ai-context --cursor # Generate .cursorrules
fondamenta ai-context --copilot # Generate .github/copilot-instructions.md
fondamenta ai-context --all # All of the above
Manual Sections
Fondamenta preserves human-written content across regenerations. Add manual sections using markers:
<!-- MANUAL-START:my-notes -->
Your custom notes here — they survive `fondamenta analyze`
<!-- MANUAL-END:my-notes -->
Or use the split-point pattern — everything after ## Manual Notes is preserved:
## /dashboard
(auto-generated content above)
## Manual Notes
Your custom architecture notes here — preserved across regeneration.
Disable with --no-preserve-manual.
Incremental Mode
Only regenerate documentation for files changed since last commit:
fondamenta analyze --incremental
Uses git diff to detect changed .ts/.tsx/.vue files and skips unchanged files. Combined with writeIfChanged (always active), only files with actual content changes are written to disk — zero noise in git diffs.
Automation
Cron (recommended for servers)
# Regenerate every 6 hours
30 */6 * * * cd /path/to/project && fondamenta analyze > /dev/null 2>&1
评论