@taco-ai/sidecar-win32-x64 0.1.0
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/agents/builtin/explorer.md +46 -0
- package/agents/builtin/verification.md +139 -0
- package/bin/taco-sidecar-node.exe +0 -0
- package/bin/taco-sidecar.cmd +6 -0
- package/lib/index.mjs +1088 -0
- package/manifest.json +9 -0
- package/package.json +27 -0
- package/skills/builtin/fan-out-agents/SKILL.md +187 -0
package/manifest.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sidecarVersion": "0.1.0",
|
|
3
|
+
"nodeVersion": "22.21.1",
|
|
4
|
+
"nodePinned": "22.21.1",
|
|
5
|
+
"target": "x86_64-pc-windows-msvc",
|
|
6
|
+
"bundleSha256": "455840825730f251b3420eb1d032773aa631cde4b9afa7222f4ecf2660433a9e",
|
|
7
|
+
"runtimeSha256": "471961cb355311c9a9dd8ba417eca8269ead32a2231653084112554cda52e8b3",
|
|
8
|
+
"builtAt": "2026-08-14T09:08:35.204Z"
|
|
9
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taco-ai/sidecar-win32-x64",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Taco sidecar Node runtime for win32 x64",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"os": [
|
|
7
|
+
"win32"
|
|
8
|
+
],
|
|
9
|
+
"cpu": [
|
|
10
|
+
"x64"
|
|
11
|
+
],
|
|
12
|
+
"bin": {
|
|
13
|
+
"taco-sidecar-node": "./bin/taco-sidecar-node.exe"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"bin",
|
|
17
|
+
"lib",
|
|
18
|
+
"agents",
|
|
19
|
+
"skills",
|
|
20
|
+
"manifest.json"
|
|
21
|
+
],
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"repository": "github:niuma996/taco",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fan-out-agents
|
|
3
|
+
description: Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies. Dispatches one `agent` tool call per problem domain inside a single turn so each spawns its own sub-session and they execute concurrently. Inline only — must not be loaded as a subagent skill.
|
|
4
|
+
runAs: inline
|
|
5
|
+
inlineOnly: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Fan-Out Agents
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
You delegate independent tasks to specialised subagents by issuing multiple `agent` tool calls in the **same assistant turn**. Each call spawns its own sub-session with an isolated tool whitelist; they run concurrently through the harness's parallel-execution path. You construct exactly what each subagent needs — they never inherit your session context or history, which keeps your main context free for coordination.
|
|
13
|
+
|
|
14
|
+
When you have multiple unrelated failures (different test files, different subsystems, different bugs), investigating them sequentially wastes turns. Each investigation is independent and can happen in parallel.
|
|
15
|
+
|
|
16
|
+
**Core principle:** dispatch one `agent` call per independent problem domain, all inside one turn. The harness runs them concurrently — your turn does not block on each one in series.
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
```dot
|
|
21
|
+
digraph when_to_use {
|
|
22
|
+
"Multiple failures?" [shape=diamond];
|
|
23
|
+
"Are they independent?" [shape=diamond];
|
|
24
|
+
"Investigate sequentially" [shape=box];
|
|
25
|
+
"One agent per problem domain" [shape=box];
|
|
26
|
+
"Can they work in parallel?" [shape=diamond];
|
|
27
|
+
"Sequential dispatch across turns" [shape=box];
|
|
28
|
+
"Fan-out in one turn" [shape=box];
|
|
29
|
+
|
|
30
|
+
"Multiple failures?" -> "Are they independent?" [label="yes"];
|
|
31
|
+
"Are they independent?" -> "Investigate sequentially" [label="no - related"];
|
|
32
|
+
"Are they independent?" -> "Can they work in parallel?" [label="yes"];
|
|
33
|
+
"Can they work in parallel?" -> "Fan-out in one turn" [label="yes"];
|
|
34
|
+
"Can they work in parallel?" -> "Sequential dispatch across turns" [label="no - shared state"];
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Use when:**
|
|
39
|
+
- 3+ test files failing with different root causes
|
|
40
|
+
- Multiple subsystems broken independently
|
|
41
|
+
- Each problem can be understood without context from others
|
|
42
|
+
- No shared state between investigations (different files, different modules, different bugs)
|
|
43
|
+
|
|
44
|
+
**Don't use when:**
|
|
45
|
+
- Failures are related (fixing one might fix others — investigate together first)
|
|
46
|
+
- You need full-system context the subagent cannot reconstruct from a self-contained prompt
|
|
47
|
+
- Subagents would interfere with each other (editing the same files, racing on the same resource)
|
|
48
|
+
- The task is exploratory — you don't yet know what's broken
|
|
49
|
+
|
|
50
|
+
## The Pattern
|
|
51
|
+
|
|
52
|
+
### 1. Identify Independent Domains
|
|
53
|
+
|
|
54
|
+
Group failures by what's broken:
|
|
55
|
+
- File A tests: tool-approval flow
|
|
56
|
+
- File B tests: batch-completion behaviour
|
|
57
|
+
- File C tests: abort functionality
|
|
58
|
+
|
|
59
|
+
Each domain is independent — fixing the tool-approval flow does not affect abort tests.
|
|
60
|
+
|
|
61
|
+
### 2. Pick the Right `subagent_type`
|
|
62
|
+
|
|
63
|
+
Match the subagent type by capability, not by tool overlap. The harness enforces per-depth tool whitelists; pick the narrowest type that can finish the job:
|
|
64
|
+
|
|
65
|
+
- `explorer` — read-only search/tracing; **cannot modify files** (right for diagnosis: read code, summarise findings)
|
|
66
|
+
- `verification` — adversarial tester; runs builds, tests, checks; returns PASS/FAIL/PARTIAL verdict
|
|
67
|
+
|
|
68
|
+
If neither built-in matches, list available types via the system-prompt `tool_summary` block (see `agents.list` RPC) — user-defined `.taco/agents/<name>.md` entries appear there too.
|
|
69
|
+
|
|
70
|
+
### 3. Compose Self-Contained Prompts
|
|
71
|
+
|
|
72
|
+
Each subagent gets:
|
|
73
|
+
- **Specific scope** — one file, one subsystem, one bug
|
|
74
|
+
- **Clear goal** — what "done" looks like
|
|
75
|
+
- **Constraints** — what they must NOT touch (other files, production code, etc.)
|
|
76
|
+
- **Expected output** — exact shape of the returned text
|
|
77
|
+
|
|
78
|
+
**Do not** assume the subagent knows anything about your conversation, the parent task, or sibling subagents. Each prompt is the only context they will see.
|
|
79
|
+
|
|
80
|
+
### 4. Dispatch in One Turn
|
|
81
|
+
|
|
82
|
+
Issue all `agent` calls in the same assistant message. The harness detects every call's `executionMode` and runs `Promise.all` over the batch when none are `sequential`:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
agent(subagent_type=explorer, description="...", prompt="...") # tc-1
|
|
86
|
+
agent(subagent_type=explorer, description="...", prompt="...") # tc-2
|
|
87
|
+
agent(subagent_type=explorer, description="...", prompt="...") # tc-3
|
|
88
|
+
# All three spawn concurrently. Your turn does not serialise them.
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
> **Important — keep the batch pure.** If even one call in the same turn is a `sequential` tool (most write tools, askUser, planEnter/planExit), the harness degrades the **entire batch** to sequential. If you need a sequential prerequisite, do it in the **previous** turn so the fan-out batch stays pure.
|
|
92
|
+
|
|
93
|
+
> **Important — `parentToolCallId` is unique per call.** Each `agent` invocation carries a different `toolCallId`, so the harness routes every subagent's `subagent.spawned` push and live `session.event` stream to the right card on the desktop. You do not need to coordinate IDs.
|
|
94
|
+
|
|
95
|
+
### 5. Review and Integrate
|
|
96
|
+
|
|
97
|
+
When subagents return:
|
|
98
|
+
1. Read each summary — they are independent, treat them as parallel reports.
|
|
99
|
+
2. Verify fixes do not conflict (overlapping file edits, shared test fixtures).
|
|
100
|
+
3. Run the full test suite yourself in the main session — do not delegate verification to a subagent that just made changes.
|
|
101
|
+
4. Integrate all changes.
|
|
102
|
+
|
|
103
|
+
## Agent Prompt Structure
|
|
104
|
+
|
|
105
|
+
Good prompts are:
|
|
106
|
+
|
|
107
|
+
1. **Focused** — one clear problem domain.
|
|
108
|
+
2. **Self-contained** — all context the subagent needs to understand the problem.
|
|
109
|
+
3. **Specific about output** — what the subagent should return in `resultText`.
|
|
110
|
+
|
|
111
|
+
```markdown
|
|
112
|
+
Fix the 3 failing tests in `packages/sidecar/tests/tools/agent.test.ts`:
|
|
113
|
+
|
|
114
|
+
1. "should abort tool with partial output capture" — expects 'interrupted at' in message
|
|
115
|
+
2. "should handle mixed completed and aborted tools" — fast tool aborted instead of completed
|
|
116
|
+
3. "should properly track pendingToolCount" — expects 3 results but gets 0
|
|
117
|
+
|
|
118
|
+
These are timing / race-condition issues. Your task:
|
|
119
|
+
|
|
120
|
+
1. Read the test file and understand what each test verifies.
|
|
121
|
+
2. Identify the root cause — timing issues or actual bugs?
|
|
122
|
+
3. Fix by:
|
|
123
|
+
- Replacing arbitrary timeouts with event-based waiting
|
|
124
|
+
- Fixing bugs in the abort implementation if found
|
|
125
|
+
- Adjusting test expectations if behaviour legitimately changed
|
|
126
|
+
|
|
127
|
+
Do NOT just increase timeouts — find the real issue.
|
|
128
|
+
|
|
129
|
+
Return: a short summary of root cause and the changes you made (file paths + one-line descriptions).
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Common Mistakes
|
|
133
|
+
|
|
134
|
+
**❌ Too broad:** "Fix all the failing tests" — subagent gets lost.
|
|
135
|
+
**✅ Specific:** "Fix `packages/sidecar/tests/tools/agent.test.ts`" — focused scope.
|
|
136
|
+
|
|
137
|
+
**❌ No context:** "Fix the race condition" — subagent does not know where.
|
|
138
|
+
**✅ Context:** paste the failing test names, expected vs actual values, the file path.
|
|
139
|
+
|
|
140
|
+
**❌ No constraints:** subagent may refactor everything.
|
|
141
|
+
**✅ Constraints:** "Do not change production code" or "Fix tests only".
|
|
142
|
+
|
|
143
|
+
**❌ Vague output:** "Fix it" — you do not know what changed.
|
|
144
|
+
**✅ Specific:** "Return summary of root cause and changes" — concrete deliverable.
|
|
145
|
+
|
|
146
|
+
**❌ Mixing execution modes in one batch:** adding one `edit` (sequential) call alongside three `agent` (parallel) calls makes the whole batch sequential — you lose the speedup. Keep parallel-only batches together.
|
|
147
|
+
|
|
148
|
+
## When NOT to Use
|
|
149
|
+
|
|
150
|
+
**Related failures** — fixing one may fix others. Investigate together first.
|
|
151
|
+
**Need full context** — understanding requires the entire system in view.
|
|
152
|
+
**Exploratory debugging** — you do not yet know what is broken.
|
|
153
|
+
**Shared mutable state** — subagents would race on the same files, ports, env vars.
|
|
154
|
+
|
|
155
|
+
## Real Example
|
|
156
|
+
|
|
157
|
+
**Scenario:** six test failures across three files after a major refactor.
|
|
158
|
+
|
|
159
|
+
**Failures:**
|
|
160
|
+
- `agent.test.ts`: 3 failures (timing issues)
|
|
161
|
+
- `agentContinue.test.ts`: 2 failures (tools not executing)
|
|
162
|
+
- `sessionSnapshot.test.ts`: 1 failure (execution count = 0)
|
|
163
|
+
|
|
164
|
+
**Decision:** independent domains — abort logic separate from batch completion separate from race conditions.
|
|
165
|
+
|
|
166
|
+
**Dispatch (all in one turn):**
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
agent(subagent_type=explorer, description="diag agent.test.ts timing", prompt="...paste failing test names + paths...")
|
|
170
|
+
agent(subagent_type=explorer, description="diag agentContinue batch", prompt="...paste failing test names + paths...")
|
|
171
|
+
agent(subagent_type=explorer, description="diag sessionSnapshot count", prompt="...paste failing test names + paths...")
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Integration:** all fixes independent, no conflicts, full suite green.
|
|
175
|
+
|
|
176
|
+
## Verification
|
|
177
|
+
|
|
178
|
+
After subagents return:
|
|
179
|
+
|
|
180
|
+
1. **Review each summary** — understand what changed.
|
|
181
|
+
2. **Check for conflicts** — did subagents edit the same code? (If yes, you probably should have used one subagent, not three.)
|
|
182
|
+
3. **Run the full suite yourself** — verify all fixes work together; do not trust a subagent's "PASS" report.
|
|
183
|
+
4. **Spot-check the diff** — subagents can make systematic errors (wrong import path, off-by-one in test setup).
|
|
184
|
+
|
|
185
|
+
## Mode Constraint
|
|
186
|
+
|
|
187
|
+
This skill is **inline-only**. It must be invoked through the `skill` tool's inline path so its body lands in your current context and guides the tool-call composition of the same turn. It must **not** be declared with `runAs: subagent` in its frontmatter — running it in a subagent would defeat the purpose, because the subagent would not have access to your session state and could not dispatch `agent` calls back into your session. If you see this skill executing inside a subagent, that is a misconfiguration; load it in the main session instead.
|