Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Feature Request] `.copilotignore` support

Đang mở
#963 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

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:

  1. Excluded from being indexed or used as context by the agent
  2. 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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-sdk

Tất cả issue của github/copilot-sdk

Issue tương tự

Thêm issue về Java

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.