@link-assistant/hive-mind 1.11.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 1.11.1
4
+
5
+ ### Patch Changes
6
+
7
+ - de2cc28: Use .gitkeep by default for --tool agent/opencode/codex instead of CLAUDE.md
8
+
9
+ When using non-Claude tools (agent, opencode, codex), the system now defaults to creating a `.gitkeep` file for task details instead of `CLAUDE.md`. This prevents pollution of CLAUDE.md, which has special meaning for Claude Code as a project-level instruction file.
10
+
11
+ **Tool-Specific Defaults:**
12
+ - `--tool claude`: defaults to `--claude-file` (existing behavior)
13
+ - `--tool agent/opencode/codex`: defaults to `--gitkeep-file`
14
+
15
+ Users can still explicitly override defaults with `--claude-file` or `--gitkeep-file` flags regardless of the selected tool.
16
+
3
17
  ## 1.11.0
4
18
 
5
19
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
@@ -130,12 +130,12 @@ export const createYargsConfig = yargsInstance => {
130
130
  })
131
131
  .option('claude-file', {
132
132
  type: 'boolean',
133
- description: 'Create CLAUDE.md file for task details (default, mutually exclusive with --gitkeep-file)',
133
+ description: 'Create CLAUDE.md file for task details (default for --tool claude, mutually exclusive with --gitkeep-file)',
134
134
  default: true,
135
135
  })
136
136
  .option('gitkeep-file', {
137
137
  type: 'boolean',
138
- description: 'Create .gitkeep file instead of CLAUDE.md (mutually exclusive with --claude-file)',
138
+ description: 'Create .gitkeep file instead of CLAUDE.md (default for --tool agent/opencode/codex, mutually exclusive with --claude-file)',
139
139
  default: false,
140
140
  })
141
141
  .option('auto-gitkeep-file', {
@@ -477,6 +477,20 @@ export const parseArguments = async (yargs, hideBin) => {
477
477
  argv.model = 'grok-code';
478
478
  }
479
479
 
480
+ // Tool-specific defaults for --claude-file and --gitkeep-file
481
+ // For non-Claude tools, use .gitkeep by default to avoid polluting CLAUDE.md
482
+ // (CLAUDE.md has special meaning for Claude Code as a project-level instruction file)
483
+ // See: https://github.com/link-assistant/hive-mind/issues/1158
484
+ const claudeFileExplicitlyProvided = rawArgs.includes('--claude-file') || rawArgs.includes('--no-claude-file');
485
+ const gitkeepFileExplicitlyProvided = rawArgs.includes('--gitkeep-file') || rawArgs.includes('--no-gitkeep-file');
486
+
487
+ if (argv.tool !== 'claude' && !claudeFileExplicitlyProvided && !gitkeepFileExplicitlyProvided) {
488
+ // User did not explicitly provide either option, so use the correct defaults for non-Claude tools
489
+ // Non-Claude tools (agent, opencode, codex) should use .gitkeep by default
490
+ argv.claudeFile = false;
491
+ argv.gitkeepFile = true;
492
+ }
493
+
480
494
  // Validate mutual exclusivity of --claude-file and --gitkeep-file
481
495
  // Check if both are explicitly enabled (user passed both --claude-file and --gitkeep-file)
482
496
  if (argv.claudeFile && argv.gitkeepFile) {