Skip to content

Commit 786da96

Browse files
yethikrishnaclaude
andcommitted
fix: add context-pruner to all team agent spawnableAgents
Senior engineers and other team agents were failing with "Agent type senior-engineer is not allowed to spawn child agent type context-pruner" because context-pruner was missing from their spawnableAgents list. Added to all 12 agents. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0dff93b commit 786da96

12 files changed

Lines changed: 12 additions & 0 deletions

agents/team/director.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const director: AgentDefinition = {
6767
'directory-lister',
6868
'researcher-web',
6969
'researcher-docs',
70+
'context-pruner',
7071
],
7172

7273
systemPrompt: `You are an Engineering Director Agent within a LevelCode swarm team. You manage multiple teams and ensure cross-team alignment and delivery.

agents/team/junior-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const juniorEngineer: AgentDefinition = {
5656
'directory-lister',
5757
'glob-matcher',
5858
'commander',
59+
'context-pruner',
5960
],
6061

6162
systemPrompt: `You are a Junior Engineer Agent within a LevelCode swarm team. You handle well-scoped implementation tasks under the guidance of more senior engineers.

agents/team/manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const manager: AgentDefinition = {
5252
spawnableAgents: [
5353
'senior-engineer',
5454
'team-mid-level-engineer',
55+
'context-pruner',
5556
],
5657

5758
systemPrompt: `You are a Manager Agent responsible for overseeing a group of engineers within a LevelCode swarm team.

agents/team/mid-level-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const midLevelEngineer: AgentDefinition = {
5656
'directory-lister',
5757
'glob-matcher',
5858
'commander',
59+
'context-pruner',
5960
],
6061

6162
systemPrompt: `You are a Mid-Level Engineer Agent within a LevelCode swarm team. You are a capable individual contributor who handles a wide range of implementation tasks independently.

agents/team/principal-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const principalEngineer: AgentDefinition = {
6969
'commander',
7070
'researcher-web',
7171
'researcher-docs',
72+
'context-pruner',
7273
],
7374

7475
systemPrompt: `You are a Principal Engineer Agent within a LevelCode swarm team. You are the highest-level technical individual contributor, responsible for setting architectural direction and solving the hardest engineering problems.

agents/team/scientist.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const scientist: AgentDefinition = {
6262
'commander',
6363
'researcher-web',
6464
'researcher-docs',
65+
'context-pruner',
6566
],
6667

6768
systemPrompt: `You are a Scientist Agent within a LevelCode swarm team. You investigate technical problems through experimentation, measurement, and systematic analysis.

agents/team/senior-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const definition: SecretAgentDefinition = {
6363
'directory-lister',
6464
'glob-matcher',
6565
'commander',
66+
'context-pruner',
6667
),
6768

6869
systemPrompt: `You are Atlas, a Senior Engineer operating within a LevelCode team. You are a strong individual contributor with deep technical expertise who takes ownership of complex engineering tasks.

agents/team/senior-staff-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ const seniorStaffEngineer: AgentDefinition = {
6565
'commander',
6666
'researcher-web',
6767
'researcher-docs',
68+
'context-pruner',
6869
],
6970

7071
systemPrompt: `You are a Senior Staff Engineer Agent within a LevelCode swarm team. You are one of the most technically experienced ICs, responsible for driving large-scale technical initiatives and providing cross-team technical leadership.

agents/team/staff-engineer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ const staffEngineer: AgentDefinition = {
6262
'directory-lister',
6363
'glob-matcher',
6464
'commander',
65+
'context-pruner',
6566
],
6667

6768
systemPrompt: `You are a Staff Engineer Agent within a LevelCode swarm team. You are a senior technical leader who drives complex engineering initiatives and sets technical direction within your domain.

agents/team/sub-manager.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const subManager: AgentDefinition = {
6060
'directory-lister',
6161
'glob-matcher',
6262
'commander',
63+
'context-pruner',
6364
],
6465

6566
systemPrompt: `You are a Sub-Manager Agent (Team Lead) within a LevelCode swarm team. You coordinate a small group of engineers on a focused workstream.

0 commit comments

Comments
 (0)