Skip to content

[Request]: Lead agents with bounded project context and on-demand discovery #344

Closed

Description

@jimhoyd

Problem or use case

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).

Activity

  1. added
    documentation
    ai-first
    in-progress
    on Sep 20, 2026
  2. jimhoyd commented on Sep 20, 2026

    @jimhoyd
    CollaboratorAuthor

    Progress: an agent has started on this; a PR will be linked here when it opens.

  3. removed
    in-progress
    on Sep 21, 2026
  4. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    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.

  5. jimhoyd commented on Sep 22, 2026

    @jimhoyd
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions