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

feat(context): discover hierarchical AGENTS.md instructions

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
devtools

Hướng nghiên cứu

Start at WorkspaceContext.build(), which currently loads AGENTS.md from the repository root and requested working directory. Trace how workspace instructions are represented, then cover the repository-root and nested src/AGENTS.md cases without scanning the entire repository. Done means applicable instructions are associated with their directory scope and both root-only and nested behavior have tests.

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

Mô tả

Problem

"WorkspaceContext.build()" only loads "AGENTS.md" from the repository root and the requested working directory.

Coding-agent repositories commonly use hierarchical instruction files where more specific directories contain additional rules for the code below them.

For example:

repo/
├── AGENTS.md
├── src/
│ ├── AGENTS.md
│ └── feature.py

When the agent edits "src/feature.py", the instructions in "src/AGENTS.md" are currently not included in the workspace context.

Expected behavior

Discover applicable "AGENTS.md" files along the path from the repository root to the active workspace/file location and include them according to their directory scope.

More-specific instructions should be distinguishable from repository-wide instructions.

Acceptance criteria

  • Root-level "AGENTS.md" continues to work.
  • Nested "AGENTS.md" files are discovered.
  • Instructions are associated with their directory scope.
  • The implementation avoids recursively scanning the entire repository.
  • Tests cover root-only and nested instruction files.
Ngôn ngữ chính
Python
Star
1.2k
Fork
218
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 rasbt/mini-coding-agent

Tất cả issue của rasbt/mini-coding-agent

Issue tương tự

Thêm issue về Python

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.