llm_fs_analyze_context
Scans workspace files to generate a compact context summary, enabling cheap models to make informed routing decisions. Run after project setup or major changes.
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 |