CommandCodeAI / CommandCodeAI/command-code

Support a configurable Command Code home directory.

Open
#671 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
4k
Forks
350
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the code that resolves the current ~/.commandcode user-level paths and the cmd entry point. Verify that COMMANDCODE_HOME overrides the default, all user-level paths use it, the default remains unchanged, and project-local .commandcode directories continue working.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.