Support a configurable Command Code home directory.

未關閉
#671 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
55/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
領域
cli

研究方向

先定位解析 ~/.commandcode 目前使用者層級路徑和 cmd 進入點的程式碼。確認 COMMANDCODE_HOME 會覆寫預設值、所有使用者層級路徑都使用它、預設值維持不變,以及專案本機的 .commandcode 目錄仍能繼續運作。

由索引模型根據 Issue 內容生成。

描述

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

主要語言
沒有語言資料
星號
4k
分支
350
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CommandCodeAI/command-code 的其他 Issue

查看 CommandCodeAI/command-code 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。