AI-DOS — The Operating System
for AI-Driven Development

43 MCP tools, 6 sub-agent workflows, and 190+ security rules. Knowledge graphs, blast radius analysis, and closed-loop learning across Claude Code, OpenCode, Codex, Cursor, and more.

Prefer a local install? Run npx milens init --profile full --interactive

43 MCP Tools
6 Sub-agent Prompts
190+ Security Rules
7 CLI Workflows

Code intelligence that agents actually use.

Knowledge graphs, blast radius prediction, security scanning, and self-learning memory — all through a single MCP server.

🔍

Knowledge Graph

Real-time code intelligence with automatic symbol extraction, dependency resolution, and FTS5 semantic search. 1,432 symbols and 2,386 links indexed in milens itself — updated every time you save.

Explore tools →
🛡️

Security Scanner

190+ built-in rules covering OWASP Top 10. Secret detection, injection prevention, hidden Unicode, dependency auditing. Replace 10 manual grep calls with one security_scan() tool.

Security rules →
🤖

Sub-agent Workflows

7 pre-built MCP prompts: Planner, Reviewer, Tester, Architect, Security Auditor, Debugger, Dead Code Remover. Your coding agent calls 1 prompt instead of chaining 5–10 tools — saving thousands of tokens per task.

Skill catalog →

Why Teams Switch to Milens

Three reasons developers choose Milens over raw LLM coding — and stick with it.

🧠

Real Intelligence, Not Guesswork

Milens builds a SQLite knowledge graph of your entire codebase. 1,432 symbols, 2,386 links, all queryable in milliseconds. Milens answers "who calls this?" instantly.

🧬

Gets Smarter Every Session

Agents annotate discoveries. Milens remembers. Over time, patterns evolve into permanent rules. No other tool has memory.

💰

Efficient Token Usage. $1,000s Saved.

Milens' compact format uses 40-Efficient Token Usage than raw code blocks. For teams using AI daily, that's real budget impact.

Turn any codebase into an AI-ready project.

The fastest path from zero to production-grade AI coding. One command installs everything.

terminal ~ zsh
$ npx milens init --profile full

Codebase analyzed: 1,432 symbols, 2,386 links, 167 files
AGENTS.md generated with codebase context
21 skill files installed (.agents/skills/)
190+ security rules configured
7 harness adapters ready
Pre-commit hooks installed

Milens ready! Open your AI agent to start vibe coding.
1

Run one command

npx milens init --profile full analyzes your entire codebase with tree-sitter, builds a knowledge graph, and generates everything your AI agent needs.

2

Open your AI agent

AGENTS.md auto-loads with codebase context. Skills are available. Security rules are active. Your agent understands the project before the first prompt.

3

Start vibe coding

edit_check() guards every edit. impact() predicts blast radius. review_pr() assesses risk. Your agent codes safely, every session.

Milens is not one tool. It is a system with three layers.

The knowledge graph drives intelligence. The hook system drives automation. The platform drives distribution.

🧠 Intelligence Layer

The knowledge graph, semantic search, blast radius engine, and 43 MCP tools that make agents smarter.

  • Knowledge graph: FTS5 + vector search
  • Blast radius: 3-depth impact analysis
  • Memory: SQLite annotations + sessions
  • 43 MCP tools, 6 prompts

⚡ Automation Layer

Hooks, auto-annotation, watch mode, and scheduled evolution — the system learns and improves itself.

  • 6 hooks: SessionStart, SessionEnd, PreCommit, …
  • Auto-annotate changed symbols
  • Auto-recall past learnings
  • Watch mode + scheduled evolve

🌐 Platform Layer

GitHub App, 7 harness adapters, desktop dashboard, and npm distribution — reach every developer.

  • GitHub App: PR review + analyze
  • 7 harness adapters: Claude → Zed
  • Desktop dashboard: Electron
  • npm: npx milens anywhere

AI coding with Milens.

See how Milens upgrades the same workflow without forcing a tool reset.

Without Milens

  • Agent reads 15 files blindly to understand codebase
  • Editing a function — no idea what will break
  • Manual grep for secrets, injections, dead code
  • Every session starts from zero context
  • Security vulnerabilities slip through reviews
  • ~150K tokens wasted per session

With Milens

  • codebase_summary() — 500 tokens, complete overview
  • impact() — exact blast radius before every edit
  • security_scan() — 50 rules, one tool call
  • recall() — agent remembers every past lesson
  • OWASP Top 10 coverage built-in
  • significant token savings, sessions get smarter

Start with the workflows teams actually reuse.

7 pre-built sub-agent prompts. Each bundles multiple milens tools into a single, repeatable workflow.

📋

milens-plan

Implementation planning with blast radius awareness. Research → Analyze → Predict Impact → Plan Tests → Final Plan.

Most Used

milens-review

Automated PR risk assessment. Scores every changed symbol CRITICAL/HIGH/MEDIUM/LOW based on heat, dependents, and test coverage.

Team Favorite
🧪

milens-tdd

Test-driven development enforcer. Find coverage gaps → generate test plans → implement → verify. Keep tests first, coverage visible.

Essential
🔒

milens-security

OWASP Top 10 audit. Secret detection, injection scanning, hidden Unicode, dependency audit — all in one prompt.

Security
♻️

milens-refactor

Safe refactoring with dead code detection. Find unused symbols → verify with context → check blast radius → clean up.

Advanced
🐛

milens-debugger

Root cause analysis with execution tracing. Context → Trace → Impact → Relationship → Root Cause.

Advanced

What developers say.

"Milens cut our token waste by 70%. The knowledge graph means agents understand the codebase instantly instead of reading 15 files blind. The ROI was visible in the first session."

Developer, SaaS Startup

"The blast radius analysis alone saved us from 3 production incidents this month. Knowing exactly what breaks before we change a hub function is a game-changer."

Tech Lead, Fintech

"We replaced 10 manual security grep calls with one security_scan tool. 50 rules, OWASP mapped, zero false positives on our codebase. It just works."

Security Engineer

190+ rules scan every session.

Built-in security engine covering OWASP Top 10. Secrets, injections, hidden Unicode, dangerous patterns — caught before they reach production.

🔑

Secret Detection

AWS keys, GitHub tokens, OpenAI API keys, private keys, hardcoded passwords. 10 rules with confidence scores. 10 rules

💉

Injection Prevention

SQL injection, XSS, command injection, eval(), exec(), dangerous DOM APIs. 9 rules covering OWASP A03:2021. 9 rules

👻

Hidden Unicode

Zero-width characters, bidi override attacks, homoglyph detection. Catches prompt injection vectors that are invisible to the human eye. 4 rules

Choose the tier that matches your team.

One install path. Start free on public repos, move to Pro for private repositories and team automation.

Free

$0 / month

Best for OSS maintainers and evaluation on public repos.

  • All 43 MCP tools
  • 6 sub-agent prompts
  • 190+ security rules
  • Knowledge graph + semantic search
  • CLI tools (workflow, init, hooks)
  • AGENTS.md auto-generator
  • Public repository support
  • Community support
Get Started Free

Free proves fit, Pro supports real teams.
OSS stays free. The core is MIT-licensed forever.

Frequently Asked Questions.

Milens is AI-DOS — the Operating System for AI-Driven Development. It builds a SQLite knowledge graph of your codebase (functions, classes, imports, calls, and inheritance chains) and exposes it through 43 MCP tools. Your AI agent queries the graph instead of reading files blind. The system learns from every session via annotations that can auto-promote to permanent rules.

Three key differences. First: knowledge graph vs grep. Tools like Copilot and Cursor search files blindly; Milens pre-indexes everything into a graph — "who calls this?" is one API call, not 5 greps and 8 file reads. Second: blast radius before every edit. Before modifying any function, Milens shows exactly what will break (depth-3 impact analysis). Third: memory across sessions. Annotations persist in SQLite. Over time, patterns auto-promote to permanent rules. No other tool has memory.

No. Zero network. Zero telemetry. Zero data leaving your machine. The knowledge graph is stored in a local .milens/ SQLite database inside your repo (gitignored). The MCP server binds to 127.0.0.1 only. Optional embeddings are generated locally via Xenova transformers — no API calls. Milens is MIT-licensed and fully auditable.

190+ built-in security rules mapped to OWASP Top 10 across 9 categories: secret detection (AWS keys, tokens, passwords), injection prevention (SQL, XSS, command), hidden Unicode attacks (zero-width chars, bidi override), dangerous patterns, insecure config, data leaks, weak crypto, auth issues, and path traversal. Offline CVE database audits dependencies across 5 ecosystems (npm, Python, Rust, Go, Java). One security_scan() call replaces 10 manual greps.

Yes — this is the core innovation. Every session, your agent calls annotate() to record discoveries (bugs, caveats, patterns). Next session, recall() retrieves them. Each recall boosts confidence (+0.05). When confidence reaches 0.8, milens evolve auto-promotes the annotation to a permanent SKILL.md file that enforces the rule for every future session. It's a real self-improving system, not just a prompt wrapper.

One command: npx milens init --profile full. This analyzes your codebase, builds a knowledge graph, generates AGENTS.md with full context, installs 13+ skill files, configures 190+ security rules, and sets up pre-commit hooks. Then connect your AI agent via MCP (7 editors supported). The built-in file watcher auto-reindexes on every save — no manual steps needed. Open your agent and start coding smarter.

Works With Your Existing Tools

Milens integrates with every major AI coding harness via adapter packs. One MCP server, everywhere.