You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Request]: Lead agents with bounded project context and on-demand discovery #344
The runtime already has the right low-token retrieval path: urlcode context / MCP get_context returns a compact project summary, constraints and exact verification commands. The generated AGENTS.md instead first tells an agent to run the broad urlcode capabilities and urlcode recipes list catalogs, then introduces MCP context below. docs/AI-AUTHORING.md likewise begins with a long document reading order before later saying to run context first.
That makes the inexpensive path easy to miss. The relevant surfaces are materially different: the compact llms.txt is about 3,000 estimated tokens, AGENTS.md about 1,100, the packaged skill about 2,200, and llms-full.txt about 57,000. An agent should not need to preload a framework catalog to add one route.
Proposed behavior and alternatives
Make the first authoring step one bounded query: MCP get_context when registered, otherwise urlcode context --project DIR (with --budget when appropriate). Then retrieve only what the task demands: get_capability/capabilities NAME, get_schema, search_recipes, explain, and, when operator-provided, get_extensions.
Update the generated AGENTS.md, packaged skill and opening of AI-AUTHORING so they agree on this progressive-disclosure order. Keep complete catalogs, the compact llms.txt index and llms-full.txt available as deliberate fallback/reference material; do not hide capability limits or turn context into an unbounded schema dump.
Acceptance evidence: a representative authoring task starts with bounded context, uses only task-relevant follow-up retrieval, and records its tool-output/token footprint alongside the existing benchmark work (#310/#173).
Shipped in #353: the generated AGENTS.md, both skills (and the plugin copy) and the opening of docs/AI-AUTHORING.md now lead with one bounded query (MCP get_context, else urlcode context --project DIR with --budget), then task-scoped retrieval; catalogs, llms.txt and llms-full.txt remain as fallback/reference. Keeping this open: the acceptance evidence (tool-output and token footprint of a real authoring task) needs real-model runs and is left to the benchmark work in #310 and #173.
Implemented in #353: generated AGENTS.md, the packaged skill and docs/AI-AUTHORING.md now lead with one bounded context query, checked by test/bounded-context-first.test.ts. The benchmark token-footprint evidence is not recorded here; track it with #310/#173.
Activity
jimhoyd commentedon Sep 20, 2026
Progress: an agent has started on this; a PR will be linked here when it opens.
Lead agent guidance with one bounded context query, then task-scoped …
Lead agent guidance with one bounded context query, then task-scoped …
jimhoyd commentedon Sep 21, 2026
Shipped in #353: the generated AGENTS.md, both skills (and the plugin copy) and the opening of docs/AI-AUTHORING.md now lead with one bounded query (MCP get_context, else urlcode context --project DIR with --budget), then task-scoped retrieval; catalogs, llms.txt and llms-full.txt remain as fallback/reference. Keeping this open: the acceptance evidence (tool-output and token footprint of a real authoring task) needs real-model runs and is left to the benchmark work in #310 and #173.
jimhoyd commentedon Sep 22, 2026
Implemented in #353: generated AGENTS.md, the packaged skill and docs/AI-AUTHORING.md now lead with one bounded context query, checked by test/bounded-context-first.test.ts. The benchmark token-footprint evidence is not recorded here; track it with #310/#173.