Skip to content

Optimize agent prompts and trim leader/tool configs#195

Draft
00JackLu wants to merge 1 commit into
mainfrom
feature/optimize_prompt
Draft

Optimize agent prompts and trim leader/tool configs#195
00JackLu wants to merge 1 commit into
mainfrom
feature/optimize_prompt

Conversation

@00JackLu

@00JackLu 00JackLu commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes unused/disabled agent configs (coder_agent, rag_agent, web_search_agent)
  • Significantly trims and restructures leader_prompts.py, extracting shared workflow guidance into a new copilotj/multiagent/prompts/workflow_definition.py module
  • Slims down tool_agent.toml, research_agent.toml, and removes success_case.toml
  • Minor supporting tweaks to leader_multiagent.py, tools.py, and workflow_tools.py

Why

Reduce prompt size/duplication across the leader and executor agents to lower token overhead and improve maintainability, consolidating shared workflow instructions into one module instead of repeating them per-agent config.

Notes for reviewers

  • This branch's history was previously reverted and then reapplied (see 06f4f53); the resulting tree is functionally equivalent to the pre-revert state, just squashed into a single clean commit on top of current main.
  • No uncommitted changes were pending; branch was already pushed.

Test plan

  • just test
  • just lint
  • Manual smoke test of leader agent flow via just dev-server

Restores the four changes that were reverted after the original PR merge:
- Remove unused agent configs and trim active agent configurations
- Improve agent behavior, macro timeout guidance, and IjImage info attribute
- Refactor leader prompts and extract workflow definition to dedicated module
- Remove IjImage info/ImageDescription changes

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@00JackLu 00JackLu changed the base branch from main to dev July 3, 2026 02:17
@yzx9 yzx9 changed the base branch from dev to main July 3, 2026 02:28
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