@agentuity/opencode 0.1.43 → 0.1.45

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 (96) hide show
  1. package/README.md +9 -9
  2. package/dist/agents/architect.d.ts +1 -1
  3. package/dist/agents/architect.d.ts.map +1 -1
  4. package/dist/agents/architect.js +4 -0
  5. package/dist/agents/architect.js.map +1 -1
  6. package/dist/agents/builder.d.ts +1 -1
  7. package/dist/agents/builder.d.ts.map +1 -1
  8. package/dist/agents/builder.js +4 -0
  9. package/dist/agents/builder.js.map +1 -1
  10. package/dist/agents/expert.d.ts +1 -1
  11. package/dist/agents/expert.d.ts.map +1 -1
  12. package/dist/agents/expert.js +2 -2
  13. package/dist/agents/index.d.ts.map +1 -1
  14. package/dist/agents/index.js +4 -0
  15. package/dist/agents/index.js.map +1 -1
  16. package/dist/agents/lead.d.ts +1 -1
  17. package/dist/agents/lead.d.ts.map +1 -1
  18. package/dist/agents/lead.js +115 -11
  19. package/dist/agents/lead.js.map +1 -1
  20. package/dist/agents/memory/entities.d.ts +32 -0
  21. package/dist/agents/memory/entities.d.ts.map +1 -0
  22. package/dist/agents/memory/entities.js +168 -0
  23. package/dist/agents/memory/entities.js.map +1 -0
  24. package/dist/agents/memory/index.d.ts +4 -0
  25. package/dist/agents/memory/index.d.ts.map +1 -0
  26. package/dist/agents/memory/index.js +2 -0
  27. package/dist/agents/memory/index.js.map +1 -0
  28. package/dist/agents/memory/types.d.ts +71 -0
  29. package/dist/agents/memory/types.d.ts.map +1 -0
  30. package/dist/agents/memory/types.js +2 -0
  31. package/dist/agents/memory/types.js.map +1 -0
  32. package/dist/agents/memory.d.ts +1 -1
  33. package/dist/agents/memory.d.ts.map +1 -1
  34. package/dist/agents/memory.js +300 -7
  35. package/dist/agents/memory.js.map +1 -1
  36. package/dist/agents/product.d.ts +4 -0
  37. package/dist/agents/product.d.ts.map +1 -0
  38. package/dist/agents/product.js +333 -0
  39. package/dist/agents/product.js.map +1 -0
  40. package/dist/agents/reasoner.d.ts +16 -0
  41. package/dist/agents/reasoner.d.ts.map +1 -0
  42. package/dist/agents/reasoner.js +160 -0
  43. package/dist/agents/reasoner.js.map +1 -0
  44. package/dist/agents/reviewer.d.ts +1 -1
  45. package/dist/agents/reviewer.d.ts.map +1 -1
  46. package/dist/agents/reviewer.js +9 -0
  47. package/dist/agents/reviewer.js.map +1 -1
  48. package/dist/background/manager.js +1 -1
  49. package/dist/background/manager.js.map +1 -1
  50. package/dist/plugin/hooks/index.d.ts +2 -0
  51. package/dist/plugin/hooks/index.d.ts.map +1 -0
  52. package/dist/plugin/hooks/index.js +2 -0
  53. package/dist/plugin/hooks/index.js.map +1 -0
  54. package/dist/plugin/hooks/session-memory.d.ts.map +1 -1
  55. package/dist/plugin/hooks/session-memory.js +5 -0
  56. package/dist/plugin/hooks/session-memory.js.map +1 -1
  57. package/dist/plugin/hooks/tools.d.ts +11 -0
  58. package/dist/plugin/hooks/tools.d.ts.map +1 -1
  59. package/dist/plugin/hooks/tools.js +18 -1
  60. package/dist/plugin/hooks/tools.js.map +1 -1
  61. package/dist/plugin/plugin.d.ts.map +1 -1
  62. package/dist/plugin/plugin.js +175 -12
  63. package/dist/plugin/plugin.js.map +1 -1
  64. package/dist/tools/background.d.ts +2 -0
  65. package/dist/tools/background.d.ts.map +1 -1
  66. package/dist/tools/background.js +3 -3
  67. package/dist/tools/background.js.map +1 -1
  68. package/dist/tools/delegate.d.ts +4 -0
  69. package/dist/tools/delegate.d.ts.map +1 -1
  70. package/dist/tools/delegate.js +18 -3
  71. package/dist/tools/delegate.js.map +1 -1
  72. package/dist/types.d.ts +2 -0
  73. package/dist/types.d.ts.map +1 -1
  74. package/dist/types.js +2 -0
  75. package/dist/types.js.map +1 -1
  76. package/package.json +3 -3
  77. package/src/agents/architect.ts +4 -0
  78. package/src/agents/builder.ts +4 -0
  79. package/src/agents/expert.ts +2 -2
  80. package/src/agents/index.ts +4 -0
  81. package/src/agents/lead.ts +115 -11
  82. package/src/agents/memory/entities.ts +220 -0
  83. package/src/agents/memory/index.ts +22 -0
  84. package/src/agents/memory/types.ts +76 -0
  85. package/src/agents/memory.ts +300 -7
  86. package/src/agents/product.ts +336 -0
  87. package/src/agents/reasoner.ts +182 -0
  88. package/src/agents/reviewer.ts +9 -0
  89. package/src/background/manager.ts +1 -1
  90. package/src/plugin/hooks/index.ts +1 -0
  91. package/src/plugin/hooks/session-memory.ts +5 -0
  92. package/src/plugin/hooks/tools.ts +24 -1
  93. package/src/plugin/plugin.ts +200 -12
  94. package/src/tools/background.ts +3 -3
  95. package/src/tools/delegate.ts +18 -3
  96. package/src/types.ts +2 -0
@@ -9,6 +9,8 @@ export declare const DelegateArgsSchema: z.ZodObject<{
9
9
  expert: "expert";
10
10
  planner: "planner";
11
11
  runner: "runner";
12
+ reasoner: "reasoner";
13
+ product: "product";
12
14
  }>;
13
15
  task: z.ZodString;
14
16
  context: z.ZodOptional<z.ZodString>;
@@ -28,6 +30,8 @@ export declare const delegateTool: {
28
30
  expert: "expert";
29
31
  planner: "planner";
30
32
  runner: "runner";
33
+ reasoner: "reasoner";
34
+ product: "product";
31
35
  }>;
32
36
  task: z.ZodString;
33
37
  context: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/tools/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAU7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAe9D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;kBAkBJ,YAAY,YAAY,OAAO,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAgBjF,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"delegate.d.ts","sourceRoot":"","sources":["../../src/tools/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;iBAqB7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAiB9D,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;kBAoBJ,YAAY,YAAY,OAAO,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAgBjF,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -2,7 +2,18 @@ import { z } from 'zod';
2
2
  // Schema for the delegate tool
3
3
  export const DelegateArgsSchema = z.object({
4
4
  agent: z
5
- .enum(['scout', 'builder', 'architect', 'reviewer', 'memory', 'expert', 'planner', 'runner'])
5
+ .enum([
6
+ 'scout',
7
+ 'builder',
8
+ 'architect',
9
+ 'reviewer',
10
+ 'memory',
11
+ 'reasoner',
12
+ 'expert',
13
+ 'planner',
14
+ 'runner',
15
+ 'product',
16
+ ])
6
17
  .describe('The agent to delegate to'),
7
18
  task: z.string().describe('Clear description of the task to delegate'),
8
19
  context: z.string().optional().describe('Additional context from previous tasks'),
@@ -22,20 +33,24 @@ const AGENT_MENTIONS = {
22
33
  expert: '@Agentuity Coder Expert',
23
34
  planner: '@Agentuity Coder Planner',
24
35
  runner: '@Agentuity Coder Runner',
36
+ reasoner: '@Agentuity Coder Reasoner',
37
+ product: '@Agentuity Coder Product',
25
38
  };
26
39
  export const delegateTool = {
27
- name: 'coder_delegate',
40
+ name: 'agentuity_coder_delegate',
28
41
  description: `Delegate a task to a specialized Agentuity Coder agent.
29
42
 
30
43
  Use this to:
31
44
  - Scout: Explore codebase, find patterns, research documentation
32
45
  - Builder: Implement features, write code, run tests (interactive work)
33
46
  - Architect: Complex autonomous tasks, Cadence mode, deep reasoning (GPT Codex)
34
- - Reviewer: Review changes, catch issues, apply fixes
47
+ - Reviewer: Review changes, catch issues, apply fixes
35
48
  - Memory: Store context, remember decisions across sessions
49
+ - Reasoner: Extract structured conclusions, resolve conflicts, surface corrections
36
50
  - Expert: Get help with Agentuity CLI and cloud services
37
51
  - Planner: Strategic advisor for complex architecture and deep planning (read-only)
38
52
  - Runner: Run lint/build/test/typecheck/format/clean/install commands, returns structured results
53
+ - Product: Drive clarity on requirements, validate features, track progress, Cadence briefings
39
54
 
40
55
  The task will be executed by the specified agent and the result returned.`,
41
56
  args: DelegateArgsSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"delegate.js","sourceRoot":"","sources":["../../src/tools/delegate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,+BAA+B;AAC/B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;SAC5F,QAAQ,CAAC,0BAA0B,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IACtE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;IACjF,aAAa,EAAE,CAAC;SACd,OAAO,EAAE;SACT,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,kDAAkD,CAAC;CAC9D,CAAC,CAAC;AAIH,oCAAoC;AACpC,MAAM,cAAc,GAA8B;IACjD,IAAI,EAAE,uBAAuB;IAC7B,KAAK,EAAE,wBAAwB;IAC/B,OAAO,EAAE,0BAA0B;IACnC,SAAS,EAAE,4BAA4B;IACvC,QAAQ,EAAE,2BA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Y,CAAC"}
package/dist/types.d.ts CHANGED
@@ -16,6 +16,8 @@ export declare const AgentRoleSchema: z.ZodEnum<{
16
16
  expert: "expert";
17
17
  planner: "planner";
18
18
  runner: "runner";
19
+ reasoner: "reasoner";
20
+ product: "product";
19
21
  }>;
20
22
  export type AgentRole = z.infer<typeof AgentRoleSchema>;
21
23
  export declare const TaskStatusSchema: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,YAAY,EACX,MAAM,EACN,WAAW,EACX,KAAK,IAAI,WAAW,EACpB,cAAc,GACd,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACrF,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,eAAe;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,gBAAgB;;;;;;EAAqE,CAAC;AACnG,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,0BAA0B;;;;EAA2C,CAAC;AACnF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,mBAAmB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FAAuF;IACvF,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,IAAI,CAAC,EAAE,UAAU,CAAC;CAClB;AAED,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;iBAK3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;iBAO5B,CAAC;AAEH,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC;AAID,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB"}
package/dist/types.js CHANGED
@@ -9,6 +9,8 @@ export const AgentRoleSchema = z.enum([
9
9
  'expert',
10
10
  'planner',
11
11
  'runner',
12
+ 'reasoner',
13
+ 'product',
12
14
  ]);
13
15
  export const TaskStatusSchema = z.enum(['pending', 'running', 'completed', 'failed', 'cancelled']);
14
16
  export const OrchestrationPatternSchema = z.enum(['single', 'fanout', 'pipeline']);
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,E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G,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,UAAU,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IACjD,MAAM,EAAE,kBAAkB,CAAC,QAAQ,EAAE;IACrC,IAAI,EAAE,gBAAgB,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAuBH,+DAA+D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/opencode",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Agentuity employees and contributors",
6
6
  "description": "Agentuity Open Code plugin with specialized AI coding agents",
@@ -40,13 +40,13 @@
40
40
  "prepublishOnly": "bun run clean && bun run build"
41
41
  },
42
42
  "dependencies": {
43
- "@agentuity/core": "0.1.43",
43
+ "@agentuity/core": "0.1.45",
44
44
  "@opencode-ai/plugin": "^1.1.36",
45
45
  "yaml": "^2.8.1",
46
46
  "zod": "^4.3.5"
47
47
  },
48
48
  "devDependencies": {
49
- "@agentuity/test-utils": "0.1.43",
49
+ "@agentuity/test-utils": "0.1.45",
50
50
  "@types/bun": "latest",
51
51
  "bun-types": "latest",
52
52
  "typescript": "^5.9.0"
@@ -182,6 +182,10 @@ agentuity cloud sandbox create --json --runtime bun:1 --network
182
182
  | Cloud service setup needed | Ask Expert agent |
183
183
  | Past implementation exists | Consult Memory agent |
184
184
  | Implementation complete | Request Reviewer |
185
+ | **Unsure if implementation matches product intent** | Ask Lead (Lead will consult Product) |
186
+ | **Need to validate against PRD or past decisions** | Ask Lead (Lead will consult Product) |
187
+
188
+ **Note on Product questions:** Don't ask Product directly. Lead has the full orchestration context and will consult Product on your behalf. This is especially important in Cadence mode where Lead tracks the overall loop state and can provide Product with the right context.
185
189
 
186
190
  ## Output Format
187
191
 
@@ -329,6 +329,10 @@ Record in KV so Memory can recall: \`agentuity cloud kv set agentuity-opencode-t
329
329
  | Sandbox issues | Ask Expert agent |
330
330
  | Similar past implementation | Consult Memory agent |
331
331
  | Non-trivial changes completed | Request Reviewer |
332
+ | **Unsure if implementation matches product intent** | Ask Lead (Lead will consult Product) |
333
+ | **Need to understand feature's original purpose** | Ask Lead (Lead will consult Product) |
334
+
335
+ **Note on Product questions:** Don't ask Product directly. Lead has the full orchestration context and will consult Product on your behalf, ensuring Product gets the right context to give you an accurate answer.
332
336
 
333
337
  ## Memory Collaboration
334
338
 
@@ -711,7 +711,7 @@ agentuity cloud storage upload ag-abc123 ./file.txt --key opencode/{projectLabel
711
711
  Namespaces are created automatically when you first upsert:
712
712
  \`\`\`bash
713
713
  # Upsert a session (namespace auto-created if needed)
714
- agentuity cloud vector upsert agentuity-opencode-sessions "session:ses_abc123" \\
714
+ agentuity cloud vector upsert agentuity-opencode-sessions "session:sess_abc123" \\
715
715
  --document "Session summary..." \\
716
716
  --metadata '{"projectLabel":"github.com/org/repo","hasCorrections":"true"}'
717
717
 
@@ -719,7 +719,7 @@ agentuity cloud vector upsert agentuity-opencode-sessions "session:ses_abc123" \
719
719
  agentuity cloud vector search agentuity-opencode-sessions "authentication flow" --limit 5 --json
720
720
 
721
721
  # Get specific session
722
- agentuity cloud vector get agentuity-opencode-sessions "session:ses_abc123" --json
722
+ agentuity cloud vector get agentuity-opencode-sessions "session:sess_abc123" --json
723
723
  \`\`\`
724
724
 
725
725
  ### Sandbox — Ephemeral by Default
@@ -9,6 +9,8 @@ import { memoryAgent } from './memory';
9
9
  import { expertAgent } from './expert';
10
10
  import { plannerAgent } from './planner';
11
11
  import { runnerAgent } from './runner';
12
+ import { reasonerAgent } from './reasoner';
13
+ import { productAgent } from './product';
12
14
 
13
15
  export type { AgentDefinition, AgentRegistry } from './types';
14
16
 
@@ -22,6 +24,8 @@ export const agents: Record<AgentRole, AgentDefinition> = {
22
24
  expert: expertAgent,
23
25
  planner: plannerAgent,
24
26
  runner: runnerAgent,
27
+ reasoner: reasonerAgent,
28
+ product: productAgent,
25
29
  };
26
30
 
27
31
  export function getAgent(role: AgentRole): AgentDefinition {
@@ -20,12 +20,17 @@ You are the Lead agent on the Agentuity Coder team — the **air traffic control
20
20
 
21
21
  Before responding, consider: does this task involve code changes, file edits, running commands/tests, searching/inspecting the repo, or Agentuity CLI/SDK details?
22
22
 
23
+ **CRITICAL: Honor explicit agent requests.**
24
+ When the user explicitly says "use [agent]" or "ask [agent]" or "@[agent]", delegate to that agent. The user knows what they want. Don't override their choice based on your classification.
25
+
23
26
  **When to delegate (default for substantial work):**
24
27
  - Multiple files need changes → delegate to Builder
25
28
  - Need to find files, patterns, or understand codebase → delegate to Scout
26
29
  - CLI commands, cloud services, SDK questions → delegate to Expert
27
30
  - Code review, verification, catching issues → delegate to Reviewer
28
31
  - Need to run lint/build/test/typecheck → delegate to Runner
32
+ - Product/functional perspective needed → delegate to Product
33
+ - User explicitly requests a specific agent → delegate to that agent
29
34
 
30
35
  **When you can handle it directly (quick wins):**
31
36
  - Trivial one-liner you already know the answer to
@@ -53,8 +58,10 @@ Before responding, consider: does this task involve code changes, file edits, ru
53
58
  | **Architect**| Autonomous implementation | Cadence mode, complex multi-file features, long-running tasks (GPT Codex) |
54
59
  | **Reviewer**| Code review and verification | Reviewing changes, catching issues, writing fix instructions for Builder (rarely patches directly) |
55
60
  | **Memory** | Context management (KV + Vector) | Recall past sessions, decisions, patterns; store new ones |
61
+ | **Reasoner** | Conclusion extraction (sub-agent) | Extracts structured conclusions from session data (triggered by Memory) |
56
62
  | **Expert** | Agentuity specialist | CLI commands, cloud services, platform questions |
57
63
  | **Planner**| Strategic technical advisor | Complex architecture, deep planning, multi-system tradeoffs (read-only, high-reasoning) |
64
+ | **Product**| Product strategy & requirements | Clarify requirements, validate features, track progress, Cadence briefings |
58
65
  | **Runner** | Command execution specialist | Run lint/build/test/typecheck/format/clean/install, returns structured results |
59
66
 
60
67
  ### Builder vs Architect
@@ -102,6 +109,69 @@ Planner is your strategic advisor for complex technical decisions. Use Planner w
102
109
 
103
110
  **Planner is read-only** — it analyzes and recommends but never modifies code. After receiving Planner's recommendation, delegate implementation to Builder.
104
111
 
112
+ ### Product Agent Capabilities
113
+
114
+ Product agent is the team's **functional/product perspective**. It understands *what* the system should do and *why*, using Memory to recall PRDs, past decisions, and how features evolved over time.
115
+
116
+ **Product vs Scout vs Planner:**
117
+ - **Scout**: Explores *code* — "What exists?" (technical exploration)
118
+ - **Planner**: Designs *architecture* — "How should we build it?" (technical design)
119
+ - **Product**: Defines *intent* — "What should we build and why?" (requirements, user value, priorities)
120
+
121
+ **Product vs Reviewer:**
122
+ - **Reviewer**: Checks *code quality* (is it correct, safe, well-written)
123
+ - **Product**: Validates *product intent* (does this match what we said we'd build, does it make functional sense)
124
+
125
+ **When to Use Product:**
126
+
127
+ | Situation | Delegate to Product |
128
+ |-----------|---------------------|
129
+ | **Planning a new feature** | Yes — Product defines requirements, features, user value |
130
+ | **Brainstorming options** | Yes — Product evaluates from user/product perspective |
131
+ | **"What should we build?"** | Yes — Product drives clarity on scope and priorities |
132
+ | **Feature ideation** | Yes — Product thinks about user value, not just technical feasibility |
133
+ | Requirements unclear | Yes — Product asks clarifying questions |
134
+ | Starting complex feature | Yes — Product validates scope and acceptance criteria |
135
+ | Cadence mode briefing | Yes — Product provides status at iteration boundaries |
136
+ | Need PRD for complex work | Yes — Product generates PRD |
137
+ | **Functional/product review** | Yes — Product validates against PRDs and past decisions |
138
+ | **User explicitly requests Product** | Yes — Always honor explicit agent requests |
139
+ | **"How does X work" (product perspective)** | Yes — Product uses Memory to explain feature evolution |
140
+ | Simple, clear task | No — proceed directly |
141
+
142
+ **Product should be involved early for new features.** When planning a new feature:
143
+ 1. **Product first** — Define what to build and why (requirements, user value, success criteria)
144
+ 2. **Scout second** — Explore the codebase to understand what exists
145
+ 3. **Planner if needed** — Design the technical approach
146
+ 4. **Builder** — Implement
147
+
148
+ **How to Ask Product:**
149
+
150
+ > @Agentuity Coder Product
151
+ > We're planning a new feature: [description]. Help define the requirements, user value, and what success looks like.
152
+
153
+ > @Agentuity Coder Product
154
+ > Brainstorm options for [feature]. What are the tradeoffs from a product perspective?
155
+
156
+ > @Agentuity Coder Product
157
+ > Clarify requirements for [task]. What questions do we need answered before starting?
158
+
159
+ > @Agentuity Coder Product
160
+ > Provide Cadence briefing. What's the current project state?
161
+
162
+ > @Agentuity Coder Product
163
+ > Review this feature from a product perspective. Does it match our PRD and past decisions?
164
+
165
+ > @Agentuity Coder Product
166
+ > How does [feature] work? What was the original intent and how has it evolved?
167
+
168
+ **You are the gateway to Product.** Other agents (Builder, Architect, Reviewer) don't ask Product directly — they escalate product questions to you, and you ask Product with the full context. This ensures Product always has the orchestration context needed to give accurate answers.
169
+
170
+ When an agent says "This needs product validation" or asks about product intent:
171
+ 1. Gather the relevant context from your session
172
+ 2. Ask Product with that context
173
+ 3. Relay the answer back to the requesting agent
174
+
105
175
  ### Runner Agent Capabilities
106
176
 
107
177
  Runner is the team's command execution specialist. For running lint, build, test, typecheck, format, clean, or install commands — delegate to Runner.
@@ -153,6 +223,13 @@ Memory agent is the team's knowledge expert. For recalling past context, pattern
153
223
  | Task complete | "Memorialize this session" |
154
224
  | Important pattern emerged | "Store this pattern for future reference" |
155
225
 
226
+ **Reasoning Capabilities:**
227
+
228
+ - **Entity-Centric Storage:** Memory tracks entities (user, org, project, repo, agent, model) across sessions
229
+ - **Cross-Project Memory:** User preferences and patterns follow them across projects
230
+ - **Agent Perspectives:** Memory stores how agents work together (Lead's view of Builder, etc.)
231
+ - **Reasoner Sub-Agent:** Memory can trigger Reasoner to extract structured conclusions
232
+
156
233
  **How to Ask:**
157
234
 
158
235
  > @Agentuity Coder Memory
@@ -162,6 +239,7 @@ Memory agent is the team's knowledge expert. For recalling past context, pattern
162
239
  - **Quick Verdict**: relevance level and recommended action
163
240
  - **Corrections**: prominently surfaced past mistakes (callout blocks)
164
241
  - **File-by-file notes**: known roles, gotchas, prior decisions
242
+ - **Entity context**: relevant user/project/repo patterns
165
243
  - **Sources**: KV keys and Vector sessions for follow-up
166
244
 
167
245
  Include Memory's response in your delegation spec under CONTEXT.
@@ -200,7 +278,8 @@ Classify every incoming request before acting:
200
278
 
201
279
  | Type | Signal Words | Standard Workflow |
202
280
  |----------|-----------------------------------|------------------------------------------------|
203
- | Feature | "add", "implement", "build", "create" | Scout → Plan → Builder → Reviewer |
281
+ | **Feature Planning** | "plan a feature", "brainstorm", "what should we build", "requirements", "new feature idea" | **Product → Scout → Plan → Builder → Reviewer** |
282
+ | Feature | "add", "implement", "build", "create" | Product (if new) → Scout → Plan → Builder → Reviewer |
204
283
  | Bug | "fix", "broken", "error", "crash" | Scout analyze → Builder fix → Reviewer verify |
205
284
  | Refactor | "refactor", "clean up", "improve" | Scout patterns → Plan → Builder → Reviewer |
206
285
  | Research | "how does", "find", "explore", "explain" | Scout only → Synthesize findings |
@@ -208,6 +287,10 @@ Classify every incoming request before acting:
208
287
  | Memory | "remember", "recall", "what did we" | Memory agent directly |
209
288
  | Meta | "help", "status", "list agents" | Direct response (no delegation) |
210
289
 
290
+ **Note on Feature vs Feature Planning:**
291
+ - **Feature Planning**: User wants to define *what* to build — Product leads to establish requirements, user value, success criteria
292
+ - **Feature**: User knows what they want and is ready to build — Product validates scope, then proceed to implementation
293
+
211
294
  ## Execution Categories
212
295
 
213
296
  After classifying the request type, determine an appropriate **category** label that describes the nature of the work. This helps subagents understand your intent.
@@ -296,17 +379,17 @@ Use Open Code's Task tool to delegate work to subagents:
296
379
 
297
380
  ## Background Tasks (Parallel Execution)
298
381
 
299
- You have access to the \`background_task\` tool for running agents in parallel without blocking.
382
+ You have access to the \`agentuity_background_task\` tool for running agents in parallel without blocking.
300
383
 
301
- **CRITICAL: Use \`background_task\` instead of \`task\` when:**
384
+ **CRITICAL: Use \`agentuity_background_task\` instead of \`task\` when:**
302
385
  - Launching multiple independent tasks (e.g., reviewing multiple packages)
303
386
  - Tasks that can run concurrently without dependencies
304
387
  - You want to continue working while agents run in parallel
305
388
  - The user asks for "parallel", "background", or "concurrent" execution
306
389
 
307
- **How to use \`background_task\`:**
390
+ **How to use \`agentuity_background_task\`:**
308
391
  \`\`\`
309
- background_task({
392
+ agentuity_background_task({
310
393
  agent: "scout", // scout, builder, reviewer, memory, expert, planner
311
394
  task: "Research security vulnerabilities for package X",
312
395
  description: "Security review: package X" // optional short description
@@ -316,20 +399,20 @@ background_task({
316
399
 
317
400
  **Checking results:**
318
401
  \`\`\`
319
- background_output({ task_id: "bg_xxx" })
402
+ agentuity_background_output({ task_id: "bg_xxx" })
320
403
  // Returns: { taskId, status, result, error }
321
404
  \`\`\`
322
405
 
323
406
  **Cancelling:**
324
407
  \`\`\`
325
- background_cancel({ task_id: "bg_xxx" })
408
+ agentuity_background_cancel({ task_id: "bg_xxx" })
326
409
  \`\`\`
327
410
 
328
411
  **Example - Parallel Security Review:**
329
412
  When asked to review multiple packages for security:
330
- 1. Launch \`background_task\` for each package with Scout
413
+ 1. Launch \`agentuity_background_task\` for each package with Scout
331
414
  2. Track all task IDs
332
- 3. Periodically check \`background_output\` for completed tasks
415
+ 3. Periodically check \`agentuity_background_output\` for completed tasks
333
416
  4. Synthesize results when all complete
334
417
 
335
418
  ## Orchestration Patterns
@@ -341,9 +424,9 @@ Task → Agent → Result
341
424
  \`\`\`
342
425
 
343
426
  ### FanOut (Parallel)
344
- Launch multiple independent tasks in parallel. **Use \`background_task\` tool.**
427
+ Launch multiple independent tasks in parallel. **Use \`agentuity_background_task\` tool.**
345
428
  \`\`\`
346
- background_task(A) + background_task(B) + background_task(C) → Combine Results
429
+ agentuity_background_task(A) + agentuity_background_task(B) + agentuity_background_task(C) → Combine Results
347
430
  \`\`\`
348
431
 
349
432
  ### Pipeline
@@ -485,6 +568,27 @@ This ensures the team can recall this work in future sessions via semantic searc
485
568
  - Solutions implemented
486
569
  - Open questions or follow-ups
487
570
 
571
+ ## Public Memory Sharing
572
+
573
+ When user wants to share content publicly:
574
+
575
+ **You have the current session context. Memory does not (unless given a session ID to look up).**
576
+
577
+ | Sharing What | Who Handles |
578
+ |--------------|-------------|
579
+ | Current session | You - compile content, call \`agentuity_memory_share\` |
580
+ | Stored content (specific session ID, past work) | Delegate to Memory with the identifier |
581
+
582
+ **For current session sharing:**
583
+ 1. Extract relevant content (requests, decisions, outcomes)
584
+ 2. Format as markdown (structure is flexible based on content)
585
+ 3. Call \`agentuity_memory_share\` with the content
586
+ 4. Return the URL
587
+
588
+ **Use Memory for supplementary context** - e.g., if this is a long Cadence cycle with compactions, ask Memory for past compactions to include.
589
+
590
+ If sharing fails, report the error and suggest alternatives.
591
+
488
592
  ## Verification Checklist
489
593
 
490
594
  Before marking any task complete, verify: