CommandCodeAI / CommandCodeAI/command-code

Feature request: .commandcode/rules/ always-on project rules (like grok)

未关闭
#617 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
没有语言数据
星标
4k
派生
350
PR 合并指标
30 天内没有已合并 PR

描述

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

  1. Support a .commandcode/rules/ directory that loads every *.md file inside it on every session (like grok .grok/rules/), in addition to AGENTS.md.
  2. Load these rules always, not on-demand — project conventions, not directory-scoped context.
  3. Scope by directory tree like grok: deeper directories take precedence on conflicts (nearest wins).
  4. 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).

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先跟踪现有的 AGENTS.md 加载行为,以及当前如何按需加载嵌套规则。使用提议的 .commandcode/rules/ 布局和最近目录优先级作为验收标准;完成意味着每个匹配的 Markdown 规则都会在每个会话中加载,同时 AGENTS.md 的行为保持不变。

由索引模型根据 Issue 内容生成。

评估

领域
cli, developer-experience
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。