CommandCodeAI / CommandCodeAI/command-code
learn-taste: support non-standard Claude Code config paths (e.g. CLAUDE_CONFIG_DIR)
还没有人认领这个 Issue。
- 主要语言
- 没有语言数据
- 星标
- 4k
- 派生
- 350
- PR 合并指标
- 30 天内没有已合并 PR
描述
Context: Some projects use a shared Claude Code config directory at a non-standard path (e.g. ~/Developer/Work/Busie/.claude/) instead of the default ~/.claude/.
Problem: The learn-taste command hardcodes session discovery to ~/.claude/projects/. For Busie's fe-main project, this meant only 11 sessions were found in the standard location, while 33 sessions existed at ~/Developer/Work/Busie/.claude/projects/-Users-jasonschulz-Developer-Work-Busie-fe-main/.
Workaround applied: Symlinked the non-standard sessions into the standard location:
ln -sf ~/Developer/Work/Busie/.claude/projects/-Users-jasonschulz-Developer-Work-Busie-fe-main/* ~/.claude/projects/-Users-jasonschulz-Developer-Work-Busie-fe-main/
Suggested fix: Add support for discovering sessions from non-standard Claude Code config directories. Options:
- Detect
CLAUDE_CONFIG_DIRenvironment variable if set - Add a
--claude-config-dirflag tolearn-taste - Scan for
.claude/projects/relative to the project root (e.g.../../.claude/projects/for monorepo sub-projects)
This would make taste learning work out-of-the-box for teams using shared or project-scoped Claude Code configurations.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 learn-taste 命令的会话发现逻辑入手,追踪它当前如何选择 ~/.claude/projects/。将其行为与 CLAUDE_CONFIG_DIR、--claude-config-dir 标志以及相对于项目的 .claude/projects/ 路径进行比较;当无需符号链接变通方案即可找到来自受支持的非标准位置的会话时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100