Architecture + directives + behavioral profile → one token-optimized payload → Claude Code, Cursor, Windsurf, Cline, Copilot, Continue. Supports Next.js, Express, Fastify, Hono, React, Drizzle, Prisma, and any language via plugins.
Run sigil context --tokens 4000 — your AI receives a unified, token-optimized context with architecture and your directives baked in.
Run sigil graph to launch an interactive force-directed graph of your entire codebase.
Open live demo → · Cal.com: 1,072 components · 67 routes · 1,676 exports · parsed in 5.8s
Add one line to your AI tool config. Sigil automatically provides architecture + directives on every session — no manual steps, always fresh.
AI reads architecture + directives on session start in <100ms. Entities, routes, patterns, and your rules — everything, instantly.
File watcher auto-updates context when you save. Your AI never works with stale architecture.
AI can search your context: "find all auth routes" or "what components use UserCard" — answered from the architectural graph.
What coding with AI looks like — without Sigil, and with it.
Define directives, extract architecture, visualize it, query it, track drift — all from the terminal.
Define AI rules with priority, category, and conditions. Global directives cascade into every project. Project directives override globals.
Extracts architecture, loads directives, detects installed AI tools, and configures all of them in one command.
Launch an interactive dependency graph. Click nodes, search, filter by type. Handles 1000+ node codebases.
Detect architectural drift. See what changed structurally — added entities, modified props, removed routes.
Ask questions about your architecture. Traverses the call graph, finds dependencies, traces paths.
Real scenarios where structured context changes everything.
Define "never hardcode secrets" once. It applies everywhere — Claude Code, Cursor, Windsurf, Cline, Copilot, Continue. Global directives cascade into every project. Project directives override when needed.
Large codebase? Sigil prunes intelligently. Critical directives always included. Architecture fills the remaining budget. Your AI gets the maximum context that fits — not a raw dump that overflows.
Sigil detects unreferenced functions, imported-but-never-called symbols, and env vars that are defined but unused (or used but undefined). Deep static analysis, no runtime needed.
New to a project with hundreds of files? Launch the interactive graph. Click through components, trace dependencies, understand the architecture visually — without reading a single line of code.
Existing tools solve pieces of the puzzle. Sigil is the complete picture.
| Feature | Sigil | repomix | aider repo-map | Cursor Indexing |
|---|---|---|---|---|
| Structured output | ✓ YAML/JSON | ✗ flat text | ~ tree-sitter map | ✗ proprietary |
| Architecture-aware | ✓ entities, routes, patterns, call graphs | ✗ file dump | ~ symbols only | ~ basic |
| AI Directives | ✓ priority, conditional, inherited | ✗ | ✗ | ~ .cursorrules only |
| Token-optimized | ✓ budget-aware pruning | ✗ | ✗ | ✗ |
| Interactive graph | ✓ force-directed | ✗ | ✗ | ✗ |
| Drift detection | ✓ structural diff | ✗ | ✗ | ✗ |
| Auto-configures AI tools | ✓ 6 tools | ✗ | ✗ | ✓ self only |
| Behavioral profiles | ✓ global + local | ✗ | ✗ | ✗ |
| MCP server (auto-context) | ✓ resource + tools | ✗ | ✗ | ✗ |
| Global + project rules | ✓ directives with inheritance | ✗ | ✗ | ✗ |
| Plugin system | ✓ any language | ✗ | ✗ | ✗ |
| Open source | ✓ MIT | ✓ MIT | ✓ Apache 2.0 | ✗ proprietary |
Define rules globally, override per-project. Priority-based pruning under token pressure. Conditional by language/framework.
Architecture + directives in one budget-aware payload. Critical rules never pruned.
Not a flat text dump — structured architecture with entities, components, routes, and relationships.
Force-directed visualization of your entire codebase. Click, search, filter by type.
Compare snapshots to see what changed structurally — added entities, modified props, removed routes.
Claude Code, Cursor, Windsurf, Cline, Copilot, Continue — one command configures all.
One config line. AI gets full architecture on every session. Auto-updates on file changes.
Define your identity, style, and workflow rules globally. Every project, every AI tool.
Supports Next.js, Express, Fastify, Hono, Drizzle, Prisma out of the box. Add any language via plugins.
Use it everywhere. Embed it in anything. No vendor lock-in.
Live from the GitHub repository.