github / github/copilot-cli

Support explicit inline custom agent invocation and agent chaining within prompts

Đang mở
#4,208 0 bình luận 4 reaction 0 người được giao Xem trên GitHub
area:agents
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the feature or problem you'd like to solve

Copilot CLI currently supports custom agents from .github/agents, but there is no clear, concise way to explicitly invoke a specific agent in the middle of a prompt while preserving the current conversation context and accumulated results. Today, users can select an agent before a task or rely on automatic delegation. However, complex workflows often require intentionally switching between specialized agents during a single task. For example, I may want to: Analyze a codebase using the default agent. Pass the findings to a custom architecture-review agent. Pass the review results to a migration-planning agent. Generate implementation tasks using another specialized agent. The lack of an explicit inline invocation mechanism makes these multi-agent workflows harder to express, less predictable, and more dependent on model inference.

### Proposed solution

Add inline agent invocation syntax that allows users to explicitly delegate part of a workflow to a named custom agent while preserving prior context and generated artifacts.

### Example prompts or workflows

// assuming that '$' would be a trigger to call existing agents selection, like '@' does for files

> Analyze the repository and identify technical debt.
>
> $agent: architecture-review
> Review the findings and propose architectural improvements.
>
> $agent: migration-planner
> Create a phased migration plan based on the review.

### Additional context

Custom agents are one of the most powerful extensibility features in Copilot CLI. Explicit agent invocation would make agent-based workflows easier to discover, document, reproduce, and share among team members.

It would also reduce ambiguity around whether Copilot has actually used a particular custom agent or simply attempted to perform the task itself. For advanced users who invest in creating specialized agents, deterministic invocation would significantly improve confidence and workflow predictability.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Issue nêu .github/agents và cơ chế chọn custom-agent hiện có làm điểm bắt đầu; hãy kiểm tra cách các prompt chọn agent và cách ngữ cảnh cuộc hội thoại cùng các tạo tác được tạo ra được duy trì. Xác định và xác thực cú pháp inline để gọi các agent có tên và nối chuỗi kết quả của chúng, với việc hoàn tất được thể hiện bằng cách workflow mẫu hoạt động một cách có thể dự đoán.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
shell
Lĩnh vực
ai, cli
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.