[Feature Request] `.copilotignore` support
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- git
- Lĩnh vực
- ai-infra-agents, devtools
Hướng nghiên cứu
Không có tệp triển khai, bài kiểm thử hoặc điểm vào nào được nêu. Trước tiên, hãy lần theo cách SDK cung cấp các tệp dự án làm ngữ cảnh cho agent và cho phép chỉnh sửa tệp, sau đó so sánh hành vi được yêu cầu với ngữ nghĩa của .gitignore. Công việc được xem là hoàn tất khi một định dạng tệp ignore được ghi nhận trong tài liệu loại các tệp khớp khỏi ngữ cảnh và bảo vệ chúng khỏi việc agent sửa đổi, với phạm vi bao phủ cả hai hành vi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Note: I'm not 100% sure this is the right repo for this request — please feel free to redirect if needed.
Summary
It would be useful to have a way to tell the agent which files and folders it should ignore — both as a knowledge source and as targets for modification. Something similar to how .gitignore works, maybe called .copilotignore.
Motivation
In a typical project, there are often files that exist for process/tooling reasons, archived versions, duplicates, or backups that aren't relevant to the active codebase. Right now, the agent picks these up as context, which can lead to:
- Confusion from stale or duplicate content influencing suggestions
- Unintended edits to files that should be left alone
- Noise in context that dilutes the quality of responses
Proposed Solution
A .copilotignore file (or similar) at the project root that follows the same syntax as .gitignore. Any file or folder listed would be:
- Excluded from being indexed or used as context by the agent
- Protected from being modified by the agent
Why This Matters
This would give developers more control over what the agent "sees" and touches, making it more predictable and easier to use in messy real-world projects.
Happy to discuss or provide more context if helpful. Thanks!
- Ngôn ngữ chính
- Java
- Star
- 10.5k
- Fork
- 1.5k
- Merge trung bình
- 1 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 131
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/copilot-sdk
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/copilot-sdk#2709 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
github/copilot-sdk#2673 ·
-
bug testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-sdk#2628 ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/copilot-sdk#2627 · 1 bình luận ·
-
agentic-workflows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
github/copilot-sdk#2493 ·
Tất cả issue của github/copilot-sdk
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
elastic/gradle-plugins#157 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cryptomator/hub#497 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
johanhaleby/occurrent#1120 ·