@codyswann/lisa 2.173.0 → 2.173.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.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/plugins/lisa/.claude-plugin/plugin.json +2 -2
  3. package/plugins/lisa/.codex-plugin/plugin.json +1 -1
  4. package/plugins/lisa/hooks/enforce-team-first.sh +29 -14
  5. package/plugins/lisa-agy/plugin.json +1 -1
  6. package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
  7. package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
  8. package/plugins/lisa-cdk-agy/plugin.json +1 -1
  9. package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
  10. package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
  11. package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
  12. package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
  13. package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
  14. package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
  15. package/plugins/lisa-expo-agy/plugin.json +1 -1
  16. package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
  17. package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
  18. package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
  19. package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
  20. package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
  21. package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
  22. package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
  23. package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
  24. package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
  25. package/plugins/lisa-nestjs-agy/plugin.json +1 -1
  26. package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
  27. package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
  28. package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
  29. package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
  30. package/plugins/lisa-openclaw-agy/plugin.json +1 -1
  31. package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
  32. package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
  33. package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
  34. package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
  35. package/plugins/lisa-phaser-agy/plugin.json +1 -1
  36. package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
  37. package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
  38. package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
  39. package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
  40. package/plugins/lisa-rails-agy/plugin.json +1 -1
  41. package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
  42. package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
  43. package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
  44. package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
  45. package/plugins/lisa-typescript-agy/plugin.json +1 -1
  46. package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
  47. package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
  48. package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
  49. package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
  50. package/plugins/lisa-wiki-agy/plugin.json +1 -1
  51. package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
  52. package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
  53. package/plugins/src/base/.claude-plugin/plugin.json +1 -1
  54. package/plugins/src/base/hooks/enforce-team-first.sh +29 -14
package/package.json CHANGED
@@ -91,7 +91,7 @@
91
91
  "ws": ">=8.20.1"
92
92
  },
93
93
  "name": "@codyswann/lisa",
94
- "version": "2.173.0",
94
+ "version": "2.173.1",
95
95
  "description": "Claude Code governance framework that applies guardrails, guidance, and automated enforcement to projects",
96
96
  "main": "dist/index.js",
97
97
  "exports": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -64,7 +64,7 @@
64
64
  ]
65
65
  },
66
66
  {
67
- "matcher": "TeamCreate",
67
+ "matcher": "TeamCreate|Agent",
68
68
  "hooks": [
69
69
  {
70
70
  "type": "command",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Universal governance: agents, skills, commands, hooks, and rules for all projects.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -9,10 +9,13 @@
9
9
  # - UserPromptSubmit : detects /lisa:research|plan|implement|intake|debrief in the
10
10
  # raw prompt and arms enforcement for the session
11
11
  # - PreToolUse : detects the same skills via a `Skill` tool call,
12
- # arms enforcement, and blocks bypass tool calls
13
- # until ToolSearch+TeamCreate have fired in Claude
14
- # - PostToolUse : on a successful Claude TeamCreate, marks the session as
15
- # team-created (lifts enforcement)
12
+ # arms enforcement, and blocks bypass tool calls until
13
+ # the team is established i.e. until a TeamCreate
14
+ # (older Claude Code) or the first Agent spawn
15
+ # (implicit-team model, Claude Code >= 2.1.178) fires
16
+ # - PostToolUse : on a successful Claude TeamCreate OR a successful
17
+ # Agent spawn (implicit team), marks the session as
18
+ # team-established (lifts enforcement)
16
19
  # - SubagentStart : marks the new subagent session as a teammate so
17
20
  # it is exempt — teammates inherit the lead's team
18
21
  # and must never create a second team (double-create
@@ -85,7 +88,12 @@ case "$HOOK_EVENT" in
85
88
 
86
89
  PostToolUse)
87
90
  TOOL_NAME=$(printf '%s' "$INPUT" | jq -r '.tool_name // empty' 2>/dev/null || true)
88
- if [ "$TOOL_NAME" = "TeamCreate" ]; then
91
+ # A successful TeamCreate (older Claude Code) OR a successful Agent spawn
92
+ # (Claude Code >= 2.1.178, where TeamCreate/TeamDelete were removed in favor
93
+ # of the implicit-team model — the team forms automatically when the lead
94
+ # spawns its first teammate via the Agent tool) marks the session as
95
+ # team-established and lifts enforcement.
96
+ if [ "$TOOL_NAME" = "TeamCreate" ] || [ "$TOOL_NAME" = "Agent" ]; then
89
97
  ERROR=$(printf '%s' "$INPUT" | jq -r '.tool_response.error // empty' 2>/dev/null || true)
90
98
  IS_ERROR=$(printf '%s' "$INPUT" | jq -r '.tool_response.is_error // empty' 2>/dev/null || true)
91
99
  if [ -z "$ERROR" ] && [ "$IS_ERROR" != "true" ]; then
@@ -136,9 +144,12 @@ if [ -f "$TEAM_FLAG" ]; then
136
144
  exit 0
137
145
  fi
138
146
 
139
- # These two are the path forward; never block them.
147
+ # These are the path forward; never block them.
148
+ # - ToolSearch / TeamCreate : the older explicit-team path (Claude Code < 2.1.178)
149
+ # - Agent : the implicit-team path (Claude Code >= 2.1.178) —
150
+ # spawning the first teammate IS what forms the team
140
151
  case "$TOOL_NAME" in
141
- ToolSearch|TeamCreate)
152
+ ToolSearch|TeamCreate|Agent)
142
153
  exit 0
143
154
  ;;
144
155
  esac
@@ -163,21 +174,25 @@ fi
163
174
  ACTIVE_SKILL=$(cat "$SKILL_FLAG" 2>/dev/null || echo "lisa:???")
164
175
  cat >&2 <<EOF
165
176
  Blocked: this session invoked /${ACTIVE_SKILL}, which is an agent-team flow.
166
- In Claude, before any other tool call, you must:
177
+ In Claude, before any other tool call, you must establish the team by spawning
178
+ your first teammate:
167
179
 
168
- 1. ToolSearch with query: "select:TeamCreate" (load the deferred schema)
169
- 2. TeamCreate (actually create the team)
180
+ Call the \`Agent\` tool with an appropriate \`subagent_type\`.
181
+
182
+ The team forms automatically the moment the lead spawns its first teammate —
183
+ this is the implicit-team model on Claude Code >= 2.1.178, where the explicit
184
+ \`TeamCreate\`/\`TeamDelete\` tools were removed. (On older Claude Code the
185
+ \`TeamCreate\` tool path still works and is also accepted.)
170
186
 
171
187
  The current attempt to call \`${TOOL_NAME}\` is a team-bypass path. Reading
172
188
  the ticket, exploring the code, fetching context — those are tasks for the
173
- team you are about to create, not for the lead session before the team
174
- exists.
189
+ team you are about to spawn, not for the lead session before the team exists.
175
190
 
176
191
  If you are running Lisa in a non-Claude harness, this Claude enforcement hook
177
192
  should not be installed; follow the runtime-aware orchestration preamble in the
178
193
  skill instead.
179
194
 
180
- Re-read the orchestration preamble in /${ACTIVE_SKILL} and start with
181
- ToolSearch.
195
+ Re-read the orchestration preamble in /${ACTIVE_SKILL} and start by spawning a
196
+ teammate with the \`Agent\` tool.
182
197
  EOF
183
198
  exit 2
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "AWS CDK-specific Lisa plugin.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-cdk",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "AWS CDK-specific plugin",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Universal governance — agents, skills, commands, hooks, and rules for all projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Expo and React Native-specific skills, agents, rules, and MCP servers.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-expo",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Expo/React Native-specific skills, agents, rules, and MCP servers",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Harper/Fabric-specific Lisa rules for TypeScript component apps.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-harper-fabric",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Harper/Fabric-specific rules for TypeScript component apps",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "NestJS-specific skills and migration write-protection hooks.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-nestjs",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "NestJS-specific skills (GraphQL, TypeORM) and hooks (migration write-protection)",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-openclaw",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-phaser",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Phaser 4 game-development rules for TypeScript projects",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Ruby on Rails-specific skills and hooks for RuboCop and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-rails",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Ruby on Rails-specific hooks — RuboCop linting/formatting and ast-grep scanning on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "TypeScript-specific hooks for formatting, linting, and ast-grep scanning on edit.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-typescript",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "TypeScript-specific hooks — Prettier formatting, ESLint linting, ast-grep scanning, and error-suppression blocking on edit",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "Distributable LLM Wiki kernel — ingest, query, lint, and maintain a git-native markdown knowledge base across Claude and Codex.",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lisa-wiki",
3
- "version": "2.173.0",
3
+ "version": "2.173.1",
4
4
  "description": "LLM Wiki — a distributable, git-native markdown knowledge base for Claude Code and Codex",
5
5
  "author": {
6
6
  "name": "Cody Swann"
@@ -47,7 +47,7 @@
47
47
  ]
48
48
  },
49
49
  {
50
- "matcher": "TeamCreate",
50
+ "matcher": "TeamCreate|Agent",
51
51
  "hooks": [
52
52
  { "type": "command", "command": "${CLAUDE_PLUGIN_ROOT}/hooks/enforce-team-first.sh" }
53
53
  ]
@@ -9,10 +9,13 @@
9
9
  # - UserPromptSubmit : detects /lisa:research|plan|implement|intake|debrief in the
10
10
  # raw prompt and arms enforcement for the session
11
11
  # - PreToolUse : detects the same skills via a `Skill` tool call,
12
- # arms enforcement, and blocks bypass tool calls
13
- # until ToolSearch+TeamCreate have fired in Claude
14
- # - PostToolUse : on a successful Claude TeamCreate, marks the session as
15
- # team-created (lifts enforcement)
12
+ # arms enforcement, and blocks bypass tool calls until
13
+ # the team is established i.e. until a TeamCreate
14
+ # (older Claude Code) or the first Agent spawn
15
+ # (implicit-team model, Claude Code >= 2.1.178) fires
16
+ # - PostToolUse : on a successful Claude TeamCreate OR a successful
17
+ # Agent spawn (implicit team), marks the session as
18
+ # team-established (lifts enforcement)
16
19
  # - SubagentStart : marks the new subagent session as a teammate so
17
20
  # it is exempt — teammates inherit the lead's team
18
21
  # and must never create a second team (double-create
@@ -85,7 +88,12 @@ case "$HOOK_EVENT" in
85
88
 
86
89
  PostToolUse)
87
90
  TOOL_NAME=$(printf '%s' "$INPUT" | jq -r '.tool_name // empty' 2>/dev/null || true)
88
- if [ "$TOOL_NAME" = "TeamCreate" ]; then
91
+ # A successful TeamCreate (older Claude Code) OR a successful Agent spawn
92
+ # (Claude Code >= 2.1.178, where TeamCreate/TeamDelete were removed in favor
93
+ # of the implicit-team model — the team forms automatically when the lead
94
+ # spawns its first teammate via the Agent tool) marks the session as
95
+ # team-established and lifts enforcement.
96
+ if [ "$TOOL_NAME" = "TeamCreate" ] || [ "$TOOL_NAME" = "Agent" ]; then
89
97
  ERROR=$(printf '%s' "$INPUT" | jq -r '.tool_response.error // empty' 2>/dev/null || true)
90
98
  IS_ERROR=$(printf '%s' "$INPUT" | jq -r '.tool_response.is_error // empty' 2>/dev/null || true)
91
99
  if [ -z "$ERROR" ] && [ "$IS_ERROR" != "true" ]; then
@@ -136,9 +144,12 @@ if [ -f "$TEAM_FLAG" ]; then
136
144
  exit 0
137
145
  fi
138
146
 
139
- # These two are the path forward; never block them.
147
+ # These are the path forward; never block them.
148
+ # - ToolSearch / TeamCreate : the older explicit-team path (Claude Code < 2.1.178)
149
+ # - Agent : the implicit-team path (Claude Code >= 2.1.178) —
150
+ # spawning the first teammate IS what forms the team
140
151
  case "$TOOL_NAME" in
141
- ToolSearch|TeamCreate)
152
+ ToolSearch|TeamCreate|Agent)
142
153
  exit 0
143
154
  ;;
144
155
  esac
@@ -163,21 +174,25 @@ fi
163
174
  ACTIVE_SKILL=$(cat "$SKILL_FLAG" 2>/dev/null || echo "lisa:???")
164
175
  cat >&2 <<EOF
165
176
  Blocked: this session invoked /${ACTIVE_SKILL}, which is an agent-team flow.
166
- In Claude, before any other tool call, you must:
177
+ In Claude, before any other tool call, you must establish the team by spawning
178
+ your first teammate:
167
179
 
168
- 1. ToolSearch with query: "select:TeamCreate" (load the deferred schema)
169
- 2. TeamCreate (actually create the team)
180
+ Call the \`Agent\` tool with an appropriate \`subagent_type\`.
181
+
182
+ The team forms automatically the moment the lead spawns its first teammate —
183
+ this is the implicit-team model on Claude Code >= 2.1.178, where the explicit
184
+ \`TeamCreate\`/\`TeamDelete\` tools were removed. (On older Claude Code the
185
+ \`TeamCreate\` tool path still works and is also accepted.)
170
186
 
171
187
  The current attempt to call \`${TOOL_NAME}\` is a team-bypass path. Reading
172
188
  the ticket, exploring the code, fetching context — those are tasks for the
173
- team you are about to create, not for the lead session before the team
174
- exists.
189
+ team you are about to spawn, not for the lead session before the team exists.
175
190
 
176
191
  If you are running Lisa in a non-Claude harness, this Claude enforcement hook
177
192
  should not be installed; follow the runtime-aware orchestration preamble in the
178
193
  skill instead.
179
194
 
180
- Re-read the orchestration preamble in /${ACTIVE_SKILL} and start with
181
- ToolSearch.
195
+ Re-read the orchestration preamble in /${ACTIVE_SKILL} and start by spawning a
196
+ teammate with the \`Agent\` tool.
182
197
  EOF
183
198
  exit 2