Skip to content

[Gap]: give agents a redirect-focused URLCode quick path #383

Closed

Description

@jimhoyd

What you were trying to do

In the URLCode benchmark, Agent B built the pinned @jimhoyd/[email protected] Redirector task.

Where it broke down

llms.txt exists but is broad; the installed package did not provide a bounded redirect-focused starting command or recipe. The agent expanded into broad documentation/package inspection before implementing.

Observed evidence: one GPT-5.6 Terra/medium Agent B session took 412,681 ms and reported 807,280 total tokens (106,769 input, 691,200 cached input, 9,311 output).

Code or YAML you had to write by hand

The agent used declarative YAML where possible, then wrote adapter code for /users/:id -> /profiles/:id and /legacy/* -> /modern/*; it reported those shapes as not declaratively expressible in 0.4.6.

Suggested improvement

Add a redirect-focused agent entrypoint: a concise urlcode context redirects, or an early llms.txt section mapping fixed, parameterized, wildcard-suffix, query-preserving redirects and 404 behavior to exact supported YAML/recipes. Include unsupported-shape guidance and a small runnable fixture. The planned MCP server could expose this bounded task context too.

What was not verified

This is one session, not repeated evidence or a framework winner claim. The benchmark harness did not finish comparison artifacts.

Activity

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

    @jimhoyd
    CollaboratorAuthor

    Priority: highest (maintainer). An agent has started; first step is verifying which redirect shapes are actually supported in the current release, so the quick path states exact supported YAML and names the unsupported shapes instead of guessing.

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

    @jimhoyd
    CollaboratorAuthor

    Delivered in #386: urlcode context --project DIR --task redirects (and MCP get_context with task: redirects), an early redirects section in llms.txt, redirect rows moved to the top of AI-AUTHORING's handler table, and the redirect recipe extended to cover every supported shape with fixtures. Established by running the current release, not assumed: fixed, parameterized-path, fixed-depth-suffix, query-preserving and method-preserving redirects, plus site.notFound for 404s, are all supported today (the benchmark's reported parameterized-path gap did not hold). Two real gaps found and filed separately with proposed designs/security notes: #387 (wildcard-suffix path shape) and #388 (host/scheme/relative destinations, a deliberate refusal).

  5. jimhoyd commented on Sep 21, 2026

    @jimhoyd
    CollaboratorAuthor

    Benchmark evidence update: the completed Redirector v8 run was pinned to the published @jimhoyd/[email protected] package. Its Agent B feedback again found llms.txt links to package-absent docs and fell back to llms-full.txt (59,218 ms; 355,835 total tokens). Recording this only as release-specific evidence for the pre-#386 package, not as a claim that the delivered context work is absent. The benchmark review marks it duplicate and proposes a separately versioned rerun when the changes are in a published package. Public redacted evidence: https://github.com/jimhoyd-com/urlcode-benchmarks/tree/codex/benchmark-program/results/bundles/2026-09-21-redirector-sonnet-v8

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-firstdocumentationimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions