CommandCodeAI / CommandCodeAI/command-code
Feature request: .commandcode/rules/ always-on project rules (like grok)
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 4k
- Fork
- 350
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Problem
Command Code loads AGENTS.md memory files, but nested/directory rules are loaded only on demand (when a file under that directory is referenced). There is no always-on project-rules mechanism equivalent to grok rules loading (AGENTS.md / CLAUDE.md / .grok/rules/*.md from repo root down, every session).
This means conventions that must apply globally to every session (orchestration roles, code-style rules) cannot live in a directory the agent is not currently touching — they silently do not load.
Proposed feature
- Support a
.commandcode/rules/directory that loads every*.mdfile inside it on every session (like grok .grok/rules/), in addition to AGENTS.md. - Load these rules always, not on-demand — project conventions, not directory-scoped context.
- Scope by directory tree like grok: deeper directories take precedence on conflicts (nearest wins).
- Keep AGENTS.md behavior unchanged;
.commandcode/rules/is additive.
Why it matters
Right now the only way to make a nested rules file always-on is to manually @path-import it from the root AGENTS.md. A dedicated always-on rules directory makes the intent explicit and keeps multi-file conventions organized without editing the root file.
Example
repo/
AGENTS.md
.commandcode/rules/
orchestrator.md # always loaded
code-style.md # always loaded
Alternatives considered
- Using @path imports from the root AGENTS.md (works, but requires hand-editing the root file and does not scale).
- Nested AGENTS.md files (load only on-demand, not always).
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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.
Hướng nghiên cứu
Bắt đầu bằng cách truy vết hành vi tải AGENTS.md hiện có và cách các quy tắc lồng nhau hiện được tải theo yêu cầu. Sử dụng bố cục .commandcode/rules/ được đề xuất và mức ưu tiên của thư mục gần nhất làm tiêu chí chấp nhận; được xem là hoàn tất khi mọi quy tắc Markdown phù hợp đều được tải trong mỗi phiên, trong khi hành vi của AGENTS.md vẫn không thay đổi.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- cli, developer-experience
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- 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
- 48/100