@vectorize-io/hindsight-coding-agents 0.5.2 → 0.5.3

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.
Files changed (50) hide show
  1. package/README.md +42 -8
  2. package/dist/antigravity-hook.js +286 -76
  3. package/dist/antigravity-statusline.js +17 -10
  4. package/dist/antigravity-stop-hook.js +297 -79
  5. package/dist/claude-hook.js +286 -76
  6. package/dist/claude-sessionstart-hook.js +252 -93
  7. package/dist/claude-stop-hook.js +297 -79
  8. package/dist/cline.js +74 -18
  9. package/dist/codex-hook.js +286 -76
  10. package/dist/codex-sessionstart-hook.js +252 -93
  11. package/dist/codex-stop-hook.js +297 -79
  12. package/dist/copilot-hook.js +286 -76
  13. package/dist/copilot-sessionstart-hook.js +252 -93
  14. package/dist/copilot-stop-hook.js +297 -79
  15. package/dist/cursor-hook.js +286 -76
  16. package/dist/cursor-sessionstart-hook.js +252 -93
  17. package/dist/cursor-stop-hook.js +297 -79
  18. package/dist/daemon-start.js +17 -10
  19. package/dist/dcode-hook.js +286 -76
  20. package/dist/dcode-sessionstart-hook.js +252 -93
  21. package/dist/dcode-stop-hook.js +297 -79
  22. package/dist/deepen.js +73 -19
  23. package/dist/devin-hook.js +286 -76
  24. package/dist/devin-sessionstart-hook.js +252 -93
  25. package/dist/devin-stop-hook.js +297 -79
  26. package/dist/droid-hook.js +286 -76
  27. package/dist/droid-sessionstart-hook.js +252 -93
  28. package/dist/droid-stop-hook.js +297 -79
  29. package/dist/dsh.js +111 -53
  30. package/dist/grok-hook.js +286 -76
  31. package/dist/grok-sessionstart-hook.js +252 -93
  32. package/dist/grok-stop-hook.js +297 -79
  33. package/dist/hindsight-seed.js +17 -10
  34. package/dist/index.js +113 -55
  35. package/dist/installer.js +383 -218
  36. package/dist/kilo.js +113 -55
  37. package/dist/mcp-server.js +67 -17
  38. package/dist/opencode2.js +113 -55
  39. package/dist/pi.js +112 -54
  40. package/dist/prime-agent.js +112 -54
  41. package/dist/qwen-hook.js +286 -76
  42. package/dist/qwen-sessionstart-hook.js +252 -93
  43. package/dist/qwen-stop-hook.js +297 -79
  44. package/dist/status.js +67 -17
  45. package/dist/zcode-hook.js +2920 -0
  46. package/dist/zcode-sessionstart-hook.js +3487 -0
  47. package/dist/zcode-stop-hook.js +3188 -0
  48. package/package.json +6 -3
  49. package/plugin.json +1 -1
  50. package/skill/SKILL.md +17 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectorize-io/hindsight-coding-agents",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/vectorize-io/hindsight.git",
@@ -32,6 +32,9 @@
32
32
  "hindsight-qwen-hook": "dist/qwen-hook.js",
33
33
  "hindsight-qwen-sessionstart-hook": "dist/qwen-sessionstart-hook.js",
34
34
  "hindsight-qwen-stop-hook": "dist/qwen-stop-hook.js",
35
+ "hindsight-zcode-hook": "dist/zcode-hook.js",
36
+ "hindsight-zcode-sessionstart-hook": "dist/zcode-sessionstart-hook.js",
37
+ "hindsight-zcode-stop-hook": "dist/zcode-stop-hook.js",
35
38
  "hindsight-droid-hook": "dist/droid-hook.js",
36
39
  "hindsight-droid-sessionstart-hook": "dist/droid-sessionstart-hook.js",
37
40
  "hindsight-droid-stop-hook": "dist/droid-stop-hook.js"
@@ -93,12 +96,12 @@
93
96
  "@types/node": "^26.1.0",
94
97
  "tsup": "^8.3.0",
95
98
  "typescript": "^5.6.0",
96
- "vitest": "^3.2.6"
99
+ "vitest": "^4.1.11"
97
100
  },
98
101
  "overrides": {
99
102
  "esbuild": ">=0.25.0 <1.0.0",
100
103
  "fast-uri": ">=3.1.6 <4.0.0",
101
- "hono": ">=4.12.34 <5.0.0",
104
+ "hono": ">=4.13.5 <5.0.0",
102
105
  "ip-address": ">=10.3.1 <11.0.0",
103
106
  "postcss": ">=8.5.23 <9.0.0",
104
107
  "vite": ">=6.4.3 <7.0.0"
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hindsight-coding-agents",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Long-term project memory for coding agents",
5
5
  "skills": "./skill",
6
6
  "hooks": "./hooks/hooks.json",
package/skill/SKILL.md CHANGED
@@ -209,8 +209,8 @@ hook by Codex...), so one shared config serves several agents side by side:
209
209
  | `reflectBudget` | `"high"` | reflect budget for the `hindsight_reflect` tool: `"low"`, `"mid"` or `"high"`. Drop it on a large bank where high-budget synthesis exceeds the server's wall timeout. The automatic session-start reflect always uses `"low"` to fit its hook window and is unaffected |
210
210
  | `autoReflect` | `true` | inject a one-time reflect synthesis on the session's **first prompt**. `false` = tool-only reflect: nothing is injected; the agent searches knowledge pages first and reflects only when they are too shallow |
211
211
  | `pageRefreshEveryTurns` | `10` | refetch the knowledge pages and re-inject the page roster + tool guide every N user turns |
212
- | `pageTriggerType` | `"auto-refresh"` | when NEW knowledge pages refresh, i.e. what keeping them current costs — `"auto-refresh"` after every consolidation that produced new material, `"cron"` on `pageTriggerCron` only, `"manual"` never on their own. Auto-refresh is the most current and the most expensive: one synthesis per page per consolidation. Maps to the page's `trigger.refresh_after_consolidation` in the Hindsight API (`true` for auto-refresh, `false` for manual) |
213
- | `pageTriggerCron` | — | schedule for `pageTriggerType: "cron"` — UTC, standard 5-field cron, e.g. `"0 3 * * *"`. Sets the page's `trigger.refresh_cron`, which the API treats as mutually exclusive with `refresh_after_consolidation`; a scheduled refresh is skipped when nothing changed. Write a field as `H` to give each page its own value there — see **Spreading refreshes with `H`** below |
212
+ | `pageTriggerType` | `"cron"` | when NEW knowledge pages refresh, i.e. what keeping them current costs — `"cron"` (default) on `pageTriggerCron` only and only when actually stale, `"auto-refresh"` after every consolidation that produced new material, `"manual"` never on their own. Auto-refresh is the most current and by far the most expensive: one synthesis per page per consolidation. Maps to the page's `trigger.refresh_cron`, or `trigger.refresh_after_consolidation` in the Hindsight API (`true` for auto-refresh, `false` for manual) |
213
+ | `pageTriggerCron` | `"H * * * *"` | schedule for `pageTriggerType: "cron"` — UTC, standard 5-field cron, e.g. `"0 3 * * *"`. The default is hourly, each page on its own hashed minute. Sets the page's `trigger.refresh_cron`, which the API treats as mutually exclusive with `refresh_after_consolidation`; a scheduled refresh is skipped when nothing changed. Write a field as `H` to give each page its own value there — see **Spreading refreshes with `H`** below |
214
214
  | `autoSeed` | `true` | SessionStart: auto-seed a cold repo's bank from git history |
215
215
  | `seedLimit` | `300` | auto-seed: most-recent-N-commits cap |
216
216
  | `codebaseSurvey` | `true` | SessionStart: headless survey of a cold repo's structure, run under the current harness's own CLI (claude/codex/antigravity/opencode), falling back to any available agent |
@@ -225,6 +225,12 @@ hook by Codex...), so one shared config serves several agents side by side:
225
225
  | `harnesses.<name>` | — | per-harness override of any field above |
226
226
  | `harness` | `opencode` | **deepen engine only**: which session format `--conversations` is read as |
227
227
 
228
+ By default a page refreshes **hourly, staggered**: `pageTriggerCron` is `"H * * * *"`, so every
229
+ page gets its own minute of the hour (see below) and a tick with nothing new to fold in is skipped
230
+ server-side. That keeps pages within an hour of the repo without paying auto-refresh's price — one
231
+ LLM synthesis per page per consolidation, on a repo that consolidates all day. Set
232
+ `pageTriggerType: "auto-refresh"` to go back to refreshing on every consolidation.
233
+
228
234
  `pageTriggerType`/`pageTriggerCron` decide only **when** a page refreshes. **How** it refreshes
229
235
  belongs to the server: Hindsight creates a knowledge page with a delta refresh (each pass edits the
230
236
  page instead of rebuilding it) that doesn't reflect over sibling pages, and these settings merge
@@ -254,11 +260,15 @@ problem. It never reaches the API: the plugin resolves it to an ordinary cron ex
254
260
  one you can edit. Hashing spreads pages out, it does not partition them — two pages can still land
255
261
  on the same minute, just not all of them.
256
262
 
257
- **These settings apply to pages created from here on.** Changing them does not migrate the pages a
258
- repo already has: a page keeps the trigger it was created with, so a bank seeded before you set
259
- `"manual"` keeps refreshing on every consolidation. To move an existing page, change its trigger
260
- through the API (`PATCH /knowledge-base/nodes/{id}`), an SDK, or the control plane — or delete it
261
- and let the next session seed it again.
263
+ **These settings apply to the pages a repo already has, too.** Every session compares each page
264
+ this plugin created — the seeded taxonomy and every captured initiative — against the config and
265
+ re-syncs the ones that differ, so a bank seeded before this default changed moves onto the hourly
266
+ schedule by itself, and a page you retriggered by hand in the control plane is put back on the
267
+ configured policy the next time an agent runs. The config
268
+ file is the source of truth for these pages: to give one a different schedule, change
269
+ `pageTriggerType`/`pageTriggerCron` (per bank, if it is only that repo) rather than editing the
270
+ page. Only the fields this plugin states are touched — a page's `mode`, its excluded siblings and
271
+ its minimum refresh interval are left exactly as they are.
262
272
 
263
273
  ### A bank you shape yourself — `manageBankConfig`
264
274