This walkthrough uses real CLI output captured against repos/angular-spotify during the Phase 10 proof rerun.
Run it from the repo root with CODEBASE_ROOT pointed at the frozen sample repo.
$env:CODEBASE_ROOT='C:\Users\bitaz\Repos\codebase-context\repos\angular-spotify'
node dist/index.js map --jsonCaptured output excerpt:
{
"project": "angular-spotify",
"architecture": {
"layers": [
{ "name": "libs", "fileCount": 252 },
{ "name": "apps", "fileCount": 6 }
]
},
"activePatterns": [
{ "name": "Effect", "adoption": "100%", "trend": "Rising" },
{ "name": "Standalone", "adoption": "100%", "trend": "Rising" },
{ "name": "RxJS", "adoption": "98%", "trend": "Rising" }
],
"bestExamples": [
{ "file": "src/lib/card.component.ts", "score": 4, "reason": "Angular TestBed" }
]
}What this shows:
- The first call gives a compact conventions map instead of raw grep output.
- The response already includes architecture layers, active patterns, and a concrete best example.
$env:CODEBASE_ROOT='C:\Users\bitaz\Repos\codebase-context\repos\angular-spotify'
node dist/index.js search --query "auth headers" --intent edit --limit 3 --jsonCaptured output excerpt:
{
"status": "success",
"searchQuality": { "status": "ok", "confidence": 1 },
"preflight": {
"ready": true,
"warnings": [
"Index is aging (>24h) — results may not reflect recent changes"
],
"patterns": {
"do": [
"Constructor injection — 85% adoption",
"Standalone — 100% adoption",
"RxJS — 98% adoption"
]
},
"bestExample": "src/lib/card.component.ts"
},
"results": [
{
"file": "C:\\Users\\bitaz\\Repos\\codebase-context\\repos\\angular-spotify\\libs\\web\\auth\\util\\src\\lib\\interceptors\\auth.interceptor.ts:10-42",
"type": "interceptor:core"
}
]
}What this shows:
- Search remains the second step after the map.
intent=editadds preflight evidence instead of forcing a separate call.- The response stays compact while still surfacing a best example and impact hints.
$env:CODEBASE_ROOT='C:\Users\bitaz\Repos\codebase-context\repos\angular-spotify'
node dist/index.js patterns --category state --jsonCaptured output excerpt:
{
"patterns": {
"stateManagement": {
"primary": {
"name": "RxJS",
"frequency": "98%",
"trend": "Rising"
},
"alsoDetected": [
{
"name": "Signals",
"frequency": "2%",
"trend": "Rising"
}
]
}
}
}What this shows:
- The tool distinguishes dominant patterns from emerging ones.
- The map/search story is backed by direct pattern evidence rather than generic prose.
- These excerpts were captured from the current local proof run and will change if the frozen sample repo or index state changes.
- The benchmark gate is still
pending_evidence, so this walkthrough demonstrates shipped behavior, not a released performance claim.