CommandCodeAI / CommandCodeAI/command-code
Support a configurable Command Code home directory.
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Feature Description
Command Code currently stores user-level data in ~/.commandcode with no way to change the base directory.
Add a COMMANDCODE_HOME environment variable, defaulting to ~/.commandcode, and resolve all user-level paths relative to it.
Example:
COMMANDCODE_HOME="${XDG_CONFIG_HOME}/commandcode" cmd
Use Case
Users following the XDG Base Directory Specification, using encrypted or separate storage, or managing multiple environments need control over where Command Code stores its data.
This also avoids placing application-specific directories directly under $HOME.
Additional Context
Other coding agents already provide this:
- Codex:
CODEX_HOME - Claude Code:
CLAUDE_CONFIG_DIR - pi:
PI_CODING_AGENT_DIR
The default ~/.commandcode location should remain unchanged for backwards compatibility. Project-local .commandcode directories should continue working as they do currently.
How important is this to you?
Blocking adoption or production use
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位解析 ~/.commandcode 当前用户级路径和 cmd 入口点的代码。确认 COMMANDCODE_HOME 会覆盖默认值,所有用户级路径都使用它,默认值保持不变,并且项目本地的 .commandcode 目录继续正常工作。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100