llm_fs_analyze_context
Analyze workspace files to generate a compact semantic summary for routing context. Scans project files and stores summary in ~/.llm-router/context_summary.json for automatic use by routing tools.
Instructions
Analyze workspace files to build a routing context summary.
Scans key files (package.json, pyproject.toml, go.mod, Cargo.toml, README, open TODOs) and produces a compact semantic summary stored in ~/.llm-router/context_summary.json. Subsequent routing decisions inject this summary into the system prompt so cheap models have workspace context.
Call this once at the start of a project session or after major refactors. The summary is automatically used by llm_route and llm_auto — no further action required.
Args: path: Workspace root to analyze (default: current directory). max_files: Maximum files to read (default: 20).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| max_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |