Skip to content

Return compact search_agents results by default - #868

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7619-return-search_agents-as-id-and-description-by-default
Sep 10, 2026
Merged

Return compact search_agents results by default#868
TheGreatAxios merged 1 commit into
mainfrom
cl-7619-return-search_agents-as-id-and-description-by-default

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Default search_agents results are id, description, and small spawn metadata. Full director/system-prompt bodies return only when include_body is true.

A lookup for "counsel greybeard" used to dump on the order of 100k characters of prompt text into the parent transcript. That payload then became a one-line pager-dead wait_agents / read_file loop. Spawn only needs the id.

  • Compact cards stay well under the leisure/pager budget for a typical director search.
  • include_body: true still injects the truncated body for the rare case that needs it.
  • spawn_agent still dispatches from the compact id; profile load at spawn is unchanged.
  • Prompts, CHANGELOG, and ARCHITECTURE/PLUGINS copy match the compact default.

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check passes
  • bun test src/agent/agent-search.test.ts covers default omit and opt-in full body

Fixes CL-7619

@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

CL-7619

Default output is id, description, and spawn metadata so a director lookup does not dump every profile body into the parent transcript. Pass include_body=true to include the loaded system prompt, still truncated.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7619-return-search_agents-as-id-and-description-by-default branch from cbeeaa6 to f3fb374 Compare September 10, 2026 14:14
@TheGreatAxios
TheGreatAxios merged commit bf385d1 into main Sep 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant