@link-assistant/hive-mind 0.40.3 → 0.41.2

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,17 @@
1
1
  # @link-assistant/hive-mind
2
2
 
3
+ ## 0.41.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 43d5e01: Add image format validation warning to system prompts to prevent "Could not process image" errors. AI solvers are now instructed to verify image files with the 'file' command before reading them, avoiding crashes from corrupted downloads or HTML 404 pages. Includes reference to case study documenting the root cause of GitHub image processing failures.
8
+
9
+ ## 0.41.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 5d193ef: Add `--prompt-general-purpose-sub-agent` flag for Claude tool to enable general-purpose sub-agent usage prompting when processing large tasks with multiple files or folders
14
+
3
15
  ## 0.40.3
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -296,6 +296,8 @@ review --repo owner/repo --pr 456
296
296
  | `reviewers-hive.mjs` (alpha / experimental) | Review team management | Multi-agent consensus, reviewer assignment |
297
297
  | `telegram-bot.mjs` (stable) | Telegram bot interface | Remote command execution, group chat support, diagnostic tools |
298
298
 
299
+ > **Note**: For a comprehensive analysis of the "Could not process image" error in AI issue solvers, see the [Case Study: Issue #597](docs/case-studies/issue-597/README.md). The case study includes root cause analysis, timeline reconstruction, and evidence of GitHub's time-limited S3 URLs causing image processing failures. Separate tools for downloading GitHub issues and PRs with embedded images are being developed at [gh-download-issue](https://github.com/link-foundation/gh-download-issue) and [gh-download-pull-request](https://github.com/link-foundation/gh-download-pull-request).
300
+
299
301
  ## 🔧 solve Options
300
302
  ```bash
301
303
  solve <issue-url> [options]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@link-assistant/hive-mind",
3
- "version": "0.40.3",
3
+ "version": "0.41.2",
4
4
  "description": "AI-powered issue solver and hive mind for collaborative problem solving",
5
5
  "main": "src/hive.mjs",
6
6
  "type": "module",
@@ -134,7 +134,7 @@ Initial research.
134
134
  - When you start, make sure you create detailed plan for yourself and follow your todo list step by step, make sure that as many points from these guidelines are added to your todo list to keep track of everything that can help you solve the issue with highest possible quality.
135
135
  - When user mentions CI failures or asks to investigate logs, consider adding these todos to track the investigation: (1) List recent CI runs with timestamps, (2) Download logs from failed runs to ci-logs/ directory, (3) Analyze error messages and identify root cause, (4) Implement fix, (5) Verify fix resolves the specific errors found in logs.
136
136
  - When you read issue, read all details and comments thoroughly.
137
- - When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, use WebFetch tool (or fetch tool) to download the image first, then use Read tool to view and analyze it.
137
+ - When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, use WebFetch tool (or fetch tool) to download the image first, then use Read tool to view and analyze it. IMPORTANT: Before reading downloaded images with the Read tool, verify the file is a valid image (not HTML). Use a CLI tool like 'file' command to check the actual file format. Reading corrupted or non-image files (like GitHub's HTML 404 pages saved as .png) can cause "Could not process image" errors and may crash the AI solver process. If the file command shows "HTML" or "text", the download failed and you should retry or skip the image.
138
138
  - When you need issue details, use gh issue view https://github.com/${owner}/${repo}/issues/${issueNumber}.
139
139
  - When you need related code, use gh search code --owner ${owner} [keywords].
140
140
  - When you need repo context, read files in your working directory.${argv && argv.promptExploreSubAgent ? '\n - When you need to learn something about the codebase structure, patterns, or how things work, use the Task tool with subagent_type=Explore to thoroughly explore the codebase.' : ''}
@@ -144,7 +144,7 @@ Initial research.
144
144
  - When you are fixing a bug, please make sure you first find the actual root cause, do as many experiments as needed.
145
145
  - When you are fixing a bug and code does not have enough tracing/logs, add them and make sure they stay in the code, but are switched off by default.
146
146
  - When you need latest comments on pull request (sorted newest first), use appropriate GitHub API commands.
147
- - When you need latest comments on issue (sorted newest first), use appropriate GitHub API commands.
147
+ - When you need latest comments on issue (sorted newest first), use appropriate GitHub API commands.${argv && argv.promptGeneralPurposeSubAgent ? '\n - When the task is big and requires processing of lots of files or folders, you should use the `general-purpose` sub agents to delegate work. Each separate file or folder can be delegated to a sub agent for more efficient processing.' : ''}
148
148
 
149
149
  Solution development and testing.
150
150
  - When issue is solvable, implement code with tests.
@@ -246,6 +246,11 @@ export const createYargsConfig = (yargsInstance) => {
246
246
  description: 'Encourage Claude to use Explore sub-agent for codebase exploration. Only supported for --tool claude.',
247
247
  default: false
248
248
  })
249
+ .option('prompt-general-purpose-sub-agent', {
250
+ type: 'boolean',
251
+ description: 'Prompt AI to use general-purpose sub agents for processing large tasks with multiple files/folders. Only supported for --tool claude.',
252
+ default: false
253
+ })
249
254
  .parserConfiguration({
250
255
  'boolean-negation': true,
251
256
  'strip-dashed': false,
@@ -119,7 +119,7 @@ General guidelines.
119
119
  Initial research.
120
120
  - When you start, make sure you create detailed plan for yourself and follow your todo list step by step, make sure that as many points from these guidelines are added to your todo list to keep track of everything that can help you solve the issue with highest possible quality.
121
121
  - When you read issue, read all details and comments thoroughly.
122
- - When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, use WebFetch tool to download the image first, then use Read tool to view and analyze it.
122
+ - When you see screenshots or images in issue descriptions, pull request descriptions, comments, or discussions, use WebFetch tool to download the image first, then use Read tool to view and analyze it. IMPORTANT: Before reading downloaded images with the Read tool, verify the file is a valid image (not HTML). Use a CLI tool like 'file' command to check the actual file format. Reading corrupted or non-image files (like GitHub's HTML 404 pages saved as .png) can cause "Could not process image" errors and may crash the AI solver process. If the file command shows "HTML" or "text", the download failed and you should retry or skip the image.
123
123
  - When you need issue details, use gh issue view https://github.com/${owner}/${repo}/issues/${issueNumber}.
124
124
  - When you need related code, use gh search code --owner ${owner} [keywords].
125
125
  - When you need repo context, read files in your working directory.
@@ -250,6 +250,11 @@ export const createYargsConfig = (yargsInstance) => {
250
250
  description: 'Encourage Claude to use Explore sub-agent for codebase exploration. Only supported for --tool claude.',
251
251
  default: false
252
252
  })
253
+ .option('prompt-general-purpose-sub-agent', {
254
+ type: 'boolean',
255
+ description: 'Prompt AI to use general-purpose sub agents for processing large tasks with multiple files/folders. Only supported for --tool claude.',
256
+ default: false
257
+ })
253
258
  .parserConfiguration({
254
259
  'boolean-negation': true
255
260
  })