| generated-by | milens |
| name | milens-orchestrator |
| description | Code intelligence for the orchestrator area — symbols, dependencies, and entry points |
Orchestrator
Working with this area
When working with code in orchestrator/, follow these mandatory safety rules:
Before editing any symbol in this area:
- Call
mcp_milens_impact({target: "<symbol>", repo: "<workspaceRoot>"}) — check blast radius
- If depth-1 dependents > 5 → STOP and warn before proceeding
- Call
mcp_milens_context({name: "<symbol>", repo: "<workspaceRoot>"}) — see all callers/callees
Before committing changes in this area:
- Call
mcp_milens_detect_changes({repo: "<workspaceRoot>"}) — verify scope
- If unexpected files changed → STOP and report
Key tools for this area:
| Task | Tool |
|---|
| Find all references | mcp_milens_context |
| Check edit safety | mcp_milens_edit_check |
| Text search across files | mcp_milens_grep |
| See file symbols | mcp_milens_get_file_symbols |
Edit-safety enforcement
A PreToolUse hook (warn mode by default) reminds you if no milens safety check (impact/context/overview/guard_edit_check/edit_check/smart_context) was called before an Edit/Write/MultiEdit. Opt-in strict deny mode is available via milens hooks guard-set-mode --mode strict. Both modes consume the check after one edit. See .milens/hook-state/config.json. Known caveat: the underlying PreToolUse deny mechanism has at least one reliability issue (https://github.com/anthropics/claude-code/issues/4362).
Overview
Contains 23 symbols (7 exported) across 2 files.
Key Symbols
Orchestrator [class] (src/orchestrator/orchestrator.ts:46) — 6 refs
OrchestratorReport [interface] (src/orchestrator/reporter.ts:4) — 5 refs
formatReport [function] (src/orchestrator/reporter.ts:17) — 4 refs
OrchestratorConfig [interface] (src/orchestrator/orchestrator.ts:20) — 2 refs
ImpactSnapshot [interface] (src/orchestrator/orchestrator.ts:28) — 2 refs
ReportOptions [interface] (src/orchestrator/reporter.ts:13) — 2 refs
ImpactDiff [interface] (src/orchestrator/orchestrator.ts:35) — 1 refs
Entry Points
Orchestrator [class] — 6 incoming references
OrchestratorReport [interface] — 5 incoming references
formatReport [function] — 4 incoming references
snapshot [method] — 3 incoming references
run [method] — 3 incoming references
Dependencies
- store:
Database, findSymbolByName, findUpstream, getTestCoverageGaps, findDeadCode
- analyzer:
reviewPr, ReviewResult, SymbolRisk
- root:
CodeSymbol
Used By
- root:
Orchestrator, subscribe, runAndFormat
- server:
Orchestrator, loadSnapshots, snapshot, persistSnapshots, compare, runAndFormat
- test:
Orchestrator, formatReport, OrchestratorReport, subscribe, run, snapshot, compare, cancel (+3 more)
Files
- src/orchestrator/orchestrator.ts
- src/orchestrator/reporter.ts