oh-my-customcode 0.86.1 → 0.87.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/dist/cli/index.js CHANGED
@@ -2301,7 +2301,7 @@ var init_package = __esm(() => {
2301
2301
  workspaces: [
2302
2302
  "packages/*"
2303
2303
  ],
2304
- version: "0.86.1",
2304
+ version: "0.87.1",
2305
2305
  description: "Batteries-included agent harness for Claude Code",
2306
2306
  type: "module",
2307
2307
  bin: {
package/dist/index.js CHANGED
@@ -1974,7 +1974,7 @@ var package_default = {
1974
1974
  workspaces: [
1975
1975
  "packages/*"
1976
1976
  ],
1977
- version: "0.86.1",
1977
+ version: "0.87.1",
1978
1978
  description: "Batteries-included agent harness for Claude Code",
1979
1979
  type: "module",
1980
1980
  bin: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "0.86.1",
6
+ "version": "0.87.1",
7
7
  "description": "Batteries-included agent harness for Claude Code",
8
8
  "type": "module",
9
9
  "bin": {
@@ -64,7 +64,7 @@ disableSkillShellExecution: true # Disable inline shell execution in skills (v2
64
64
 
65
65
  > **Note**: When `disableSkillShellExecution` is enabled (v2.1.91+), skills that rely on inline shell execution (e.g., `codex-exec`, `gemini-exec`, `rtk-exec`) will have their shell blocks disabled. This is a security hardening option.
66
66
 
67
- > **Note**: `isolation`, `background`, `maxTurns`, `maxTokens`, `mcpServers`, `hooks`, `permissionMode`, `disallowedTools`, `limitations` are supported in Claude Code v2.1.63+. Hook types `PostCompact`, `Elicitation`, `ElicitationResult` require v2.1.76+. `CwdChanged`, `FileChanged` hook events and `managed-settings.d/` drop-in directory require v2.1.83+. Conditional `if` field for hooks requires v2.1.85+. `PermissionDenied` hook event requires v2.1.88+. Monitor tool and subprocess sandboxing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`, `CLAUDE_CODE_SCRIPT_CAPS`) added in v2.1.98+. Settings resilience (unrecognized hook event names no longer cause settings.json to be ignored) improved in v2.1.101+.
67
+ > **Note**: `isolation`, `background`, `maxTurns`, `maxTokens`, `mcpServers`, `hooks`, `permissionMode`, `disallowedTools`, `limitations` are supported in Claude Code v2.1.63+. Hook types `PostCompact`, `Elicitation`, `ElicitationResult` require v2.1.76+. `CwdChanged`, `FileChanged` hook events and `managed-settings.d/` drop-in directory require v2.1.83+. Conditional `if` field for hooks requires v2.1.85+. `PermissionDenied` hook event requires v2.1.88+. Monitor tool and subprocess sandboxing (`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`, `CLAUDE_CODE_SCRIPT_CAPS`) added in v2.1.98+. Settings resilience (unrecognized hook event names no longer cause settings.json to be ignored) improved in v2.1.101+. PreCompact hook block support (exit 2 / `{"decision":"block"}`) added in v2.1.105+. Skill description listing cap raised from 250 to 1,536 characters in v2.1.105+. Plugin `monitors` manifest key for background monitors added in v2.1.105+.
68
68
 
69
69
  ## Hook Event Types
70
70
 
@@ -113,6 +113,16 @@ All supported hook event types in Claude Code. Agents and skills can reference t
113
113
 
114
114
  The `defer` decision allows headless sessions to pause at a tool call for human review.
115
115
 
116
+ ### PreCompact Hook Return Values
117
+
118
+ | Return | Behavior | CC Version |
119
+ |--------|----------|------------|
120
+ | `exit 0` | Allow compaction | All |
121
+ | `exit 2` + stderr | Block compaction with message | v2.1.105+ |
122
+ | `{"decision": "block"}` | Block compaction (JSON response) | v2.1.105+ |
123
+
124
+ PreCompact hooks can now prevent context compaction, useful for preserving critical context during multi-step workflows.
125
+
116
126
  ### Hook Matcher Syntax
117
127
 
118
128
  ```yaml
@@ -298,7 +308,7 @@ Default: `core` (when field is omitted)
298
308
 
299
309
  ### Context Fork Criteria
300
310
 
301
- Use `context: fork` for multi-agent orchestration skills only. Cap: **12 total**. Current: 9/12 (secretary/dev-lead/de-lead/qa-lead-routing, dag-orchestration, task-decomposition, worker-reviewer-pipeline, pipeline-guards, deep-plan).
311
+ Use `context: fork` for multi-agent orchestration skills only. Cap: **12 total**. Current: 12/12 (secretary/dev-lead/de-lead/qa-lead-routing, dag-orchestration, task-decomposition, worker-reviewer-pipeline, pipeline-guards, deep-plan, professor-triage, evaluator-optimizer, sauron-watch).
302
312
 
303
313
  <!-- DETAIL: Context Fork decision table
304
314
  | Use context:fork | Do NOT use context:fork |
@@ -75,6 +75,10 @@ EnterWorktree(name: "feature-x")
75
75
  # Creates .claude/worktrees/feature-x with a new branch based on HEAD
76
76
  # Session working directory switches to the worktree
77
77
 
78
+ EnterWorktree(path: "/absolute/path/to/existing-worktree")
79
+ # Switches into an existing worktree of the current repository (v2.1.105+)
80
+ # No new branch is created — uses the worktree as-is
81
+
78
82
  ExitWorktree()
79
83
  # Returns to the main repository
80
84
  # Prompts to keep or remove the worktree
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.86.1",
3
- "lastUpdated": "2026-04-13T00:00:00.000Z",
2
+ "version": "0.87.1",
3
+ "lastUpdated": "2026-04-14T00:00:00.000Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "rules",