@taco-ai/sidecar-win32-x64 0.1.0 → 0.1.2
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 -46
- package/agents/builtin/reviewer.md +54 -0
- package/agents/builtin/verification.md +139 -139
- package/lib/index.mjs +420 -396
- package/manifest.json +4 -3
- package/package.json +1 -1
- package/skills/builtin/create-skill/SKILL.md +85 -0
- package/skills/builtin/deep-review/SKILL.md +194 -0
- package/skills/builtin/fan-out-agents/SKILL.md +187 -187
package/manifest.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sidecarVersion": "0.1.
|
|
2
|
+
"sidecarVersion": "0.1.2",
|
|
3
3
|
"nodeVersion": "22.21.1",
|
|
4
4
|
"nodePinned": "22.21.1",
|
|
5
5
|
"target": "x86_64-pc-windows-msvc",
|
|
6
|
-
"bundleSha256": "
|
|
6
|
+
"bundleSha256": "66a06e3597c8f385224587a4b59569d716aae775afd246b7ee8a3376770bc711",
|
|
7
7
|
"runtimeSha256": "471961cb355311c9a9dd8ba417eca8269ead32a2231653084112554cda52e8b3",
|
|
8
|
-
"
|
|
8
|
+
"daemonMode": true,
|
|
9
|
+
"builtAt": "2026-09-01T13:00:19.495Z"
|
|
9
10
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-skill
|
|
3
|
+
description: Use when creating a new skill, adding scripts or reference files to one, editing an existing skill's behavior, or troubleshooting why a skill isn't loading or triggering.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Creating a skill
|
|
7
|
+
|
|
8
|
+
A skill is a `SKILL.md` plus optional supporting files. The runtime watches the skills directories, so saving is enough — no install step, no restart.
|
|
9
|
+
|
|
10
|
+
## Start here: what the model sees, and when
|
|
11
|
+
|
|
12
|
+
The `description` is always in context; the body is loaded only after invocation. So the description is a **trigger**, not a summary. A description that describes the procedure trains the model to act from the description and never read the body.
|
|
13
|
+
|
|
14
|
+
```yaml
|
|
15
|
+
# Bad — summarizes the workflow
|
|
16
|
+
description: Reads the changelog, groups commits by type, writes release notes.
|
|
17
|
+
|
|
18
|
+
# Good — names the situations that should fire it
|
|
19
|
+
description: Use when drafting release notes, summarizing what shipped, or turning a commit range into a changelog entry.
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Where it goes
|
|
23
|
+
|
|
24
|
+
Read the resolved paths off the `skill` tool's description rather than guessing — they depend on `TACO_HOME` and the workspace. The default is the user-wide `$TACO_HOME/skills/` (typically `~/.taco/skills/`), so the skill is available across every workspace. Drop the file under `<workspace>/.taco/skills/` only when the user explicitly asks for a project-local skill.
|
|
25
|
+
|
|
26
|
+
The directory name should equal `name` in the frontmatter — a mismatch doesn't drop the skill, but it surfaces as an `invalid_metadata` diagnostic, and the skill falls back to the directory name when `name` is absent. What actually drops a skill is a missing or empty `description`.
|
|
27
|
+
|
|
28
|
+
## Layout for a skill with scripts
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
release-notes/
|
|
32
|
+
├── SKILL.md
|
|
33
|
+
├── references/
|
|
34
|
+
│ └── format.md # loaded on demand, keeps SKILL.md small
|
|
35
|
+
└── scripts/
|
|
36
|
+
└── collect.py # deterministic work, not model work
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
The loader reads exactly one `SKILL.md` per directory and stops descending once it finds one, so `scripts/` and `references/` are never mistaken for skills. Name them anything; only `SKILL.md` is special.
|
|
40
|
+
|
|
41
|
+
**Reference supporting files by relative path** (`scripts/collect.py`). The runtime tells the model the skill's own location, so relative paths resolve without you hardcoding an absolute path that breaks on another machine.
|
|
42
|
+
|
|
43
|
+
### What belongs in a script vs. in the body
|
|
44
|
+
|
|
45
|
+
Put it in a script when the work is deterministic and the model would only be transcribing: parsing a file format, computing a diff, validating a schema, calling an API with fixed logic. Scripts do not consume context and cannot drift.
|
|
46
|
+
|
|
47
|
+
Keep it in the body when the work requires judgment: deciding what matters, phrasing something, choosing between approaches.
|
|
48
|
+
|
|
49
|
+
A skill that says "read every file in src/ and summarize" burns context. A skill that says "run `scripts/collect.py` and interpret the output" does not.
|
|
50
|
+
|
|
51
|
+
### Making scripts actually runnable
|
|
52
|
+
|
|
53
|
+
Say which interpreter and where to run from, because the model has to construct a real command:
|
|
54
|
+
|
|
55
|
+
```markdown
|
|
56
|
+
Run from the skill directory:
|
|
57
|
+
`python3 scripts/collect.py --since HEAD~20`
|
|
58
|
+
|
|
59
|
+
Outputs JSON on stdout: `{"commits": [...], "range": "..."}`.
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Document the output shape. Otherwise the model guesses at parsing and misreads failures.
|
|
63
|
+
|
|
64
|
+
Scripts execute through the `shell` tool. If a skill declares `allowedTools`, that list is a **filter** — omit `shell` and the scripts silently become unrunnable. Simplest correct choice: don't set `allowedTools` at all, and the skill inherits the normal toolset.
|
|
65
|
+
|
|
66
|
+
## Two execution modes, one asymmetry that matters
|
|
67
|
+
|
|
68
|
+
By default a skill runs **inline**: its body is injected into the current session, so it sees your conversation and can use the full toolset.
|
|
69
|
+
|
|
70
|
+
With `runAs: subagent`, the body becomes a fresh session's prompt. Cleaner for big mechanical jobs, but the subagent starts with no conversation context and cannot invoke skills itself. Reach for it when the skill is self-contained and verbose; stay inline otherwise.
|
|
71
|
+
|
|
72
|
+
If a skill only makes sense inline — because it needs to see the conversation, or dispatches subagents of its own — mark it `inlineOnly: true` so a subagent invocation fails loudly instead of running a broken shape.
|
|
73
|
+
|
|
74
|
+
## The loop
|
|
75
|
+
|
|
76
|
+
1. Write the description first. That is what determines whether the skill ever fires.
|
|
77
|
+
2. Write the body. Push deterministic work into `scripts/`, long reference material into `references/`.
|
|
78
|
+
3. Save. Reload is automatic (~300ms) — no restart.
|
|
79
|
+
4. Check what loaded. The user sees `skills.list` diagnostics rendered in the desktop app's skills pane — YAML that didn't parse, a same-name skill shadowing yours, or a bad frontmatter value — and the sidecar also logs them. If you're running this, you can't call `skills.list` yourself (it's an RPC, not a tool), so check the sidecar log or ask the user what the pane shows. Read the diagnostic before re-reading your file.
|
|
80
|
+
5. Invoke it with the `skill` tool. Run any scripts end to end — a script that fails on a real path is the most common defect, and it never shows up until you run it.
|
|
81
|
+
6. Watch a couple of real uses and tighten what the model got wrong. Reload is fast enough to iterate in one sitting.
|
|
82
|
+
|
|
83
|
+
## When it doesn't fire
|
|
84
|
+
|
|
85
|
+
The skill loaded (it's in `skills.list` with no diagnostics) but the model never reaches for it. That's a description problem, not a body problem: it doesn't name the situation the user is actually in. Rewrite it around the user's symptoms and vocabulary, not your internal name for the task.
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: deep-review
|
|
3
|
+
description: Use when reviewing a change too large or too interconnected for one pass — many files, several modules, or high blast radius. Dispatches 2-5 `reviewer` subagents in a single turn, each carrying a different lens (concern, module, or role), then cross-checks their findings against each other and the actual files and synthesizes one ranked review. Optionally pairs with `verification` to empirically settle testable claims. Inline only.
|
|
4
|
+
runAs: inline
|
|
5
|
+
inlineOnly: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Deep Review
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
One reviewer reading a 40-file change reads it once, in one order, with one set of priors. It will find what that order surfaces and miss what it doesn't. This skill splits the same body of work across 2-5 `reviewer` subagents, each given a **different lens**, dispatched in one turn so they run concurrently.
|
|
13
|
+
|
|
14
|
+
**Core principle:** the reviewers deliberately overlap. This is the opposite of `fan-out-agents`, where the domains must be independent and non-overlapping. Here, several reviewers reading the same file through different lenses is the entire point — an architecture lens and a correctness lens looking at the same function are asking different questions and will find different defects.
|
|
15
|
+
|
|
16
|
+
Corroboration is a by-product: when two independent lenses flag the same line, confidence rises sharply.
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
**Use when:**
|
|
21
|
+
- The change spans many files, or several modules with real coupling between them
|
|
22
|
+
- Blast radius is wide — touching permissions, auth, data handling, migrations, shared primitives
|
|
23
|
+
- The work is done and you want a genuine adversarial pass before declaring it complete
|
|
24
|
+
- A single review pass already happened and felt thin relative to the risk
|
|
25
|
+
|
|
26
|
+
**Don't use when:**
|
|
27
|
+
- The change is small or self-contained — review it inline; five subagents on a 20-line diff is pure overhead
|
|
28
|
+
- Nothing is written yet — this reviews work, it does not design it
|
|
29
|
+
- You want tests run, builds checked, or endpoints exercised — that is `verification`, not `reviewer`. Reviewers are read-only and reason about code; they do not prove runtime behavior
|
|
30
|
+
- You have not yet determined what changed — scope it first (see Step 1)
|
|
31
|
+
|
|
32
|
+
## The Pattern
|
|
33
|
+
|
|
34
|
+
### 1. Scope the change yourself, first
|
|
35
|
+
|
|
36
|
+
Establish the file list in your **own** session before dispatching anything:
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
git diff --stat main...HEAD
|
|
40
|
+
git diff --name-only main...HEAD
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Do **not** delegate this. If each reviewer runs its own `git diff`, they each burn turns rediscovering the same list, and worse, they may disagree about the boundary and review different things while reporting as if they reviewed the same change.
|
|
44
|
+
|
|
45
|
+
Hand every reviewer an explicit file list. A reviewer that has to guess its own scope will guess differently from its siblings.
|
|
46
|
+
|
|
47
|
+
### 2. Choose the split axis
|
|
48
|
+
|
|
49
|
+
Pick **one** axis. Mixing axes produces reviewers whose coverage overlaps in unpredictable ways and leaves gaps neither of you notices.
|
|
50
|
+
|
|
51
|
+
**By concern** — the default. Best when the change is cohesive but risky:
|
|
52
|
+
|
|
53
|
+
| Lens | Asks |
|
|
54
|
+
|---|---|
|
|
55
|
+
| Architecture | Do the seams belong where they are? Is a boundary being violated? Is this the right layer? |
|
|
56
|
+
| Implementation | Is this code correct? Off-by-one, inverted conditions, null handling, races |
|
|
57
|
+
| Ripple effects | What else calls this? What contracts changed? Who breaks downstream? |
|
|
58
|
+
| User experience | What does a user actually see when this fails, is slow, or is misused? |
|
|
59
|
+
|
|
60
|
+
**By module** — best when the change spans subsystems with distinct conventions. One reviewer per module, each given only its own file subset plus the interface it shares with the others. Say explicitly where each module's boundary is so cross-module contract breaks land with exactly one reviewer, not zero.
|
|
61
|
+
|
|
62
|
+
**By role** — best when the change crosses a stack boundary. An architect, a frontend developer, a backend developer read the same diff with genuinely different instincts about what is dangerous.
|
|
63
|
+
|
|
64
|
+
These three are examples, not a fixed menu. Invent the axis that matches where the risk actually concentrates in *this* change — a migration might split into "data safety / rollback path / query performance"; a permissions change into "escalation / bypass / audit trail".
|
|
65
|
+
|
|
66
|
+
### 3. Choose the context mode per lens
|
|
67
|
+
|
|
68
|
+
`reviewer` defaults to `context: fork`, so it sees a transcript of this conversation and can weigh the result against the intent that was discussed. That is right for some lenses and wrong for others. Set `context` explicitly per call:
|
|
69
|
+
|
|
70
|
+
| Lens type | Mode | Why |
|
|
71
|
+
|---|---|---|
|
|
72
|
+
| Intent alignment, architecture, UX-against-stated-requirements | `fork` | Needs to know what was asked for and which tradeoffs were accepted; judging seams without knowing the intent produces style opinions |
|
|
73
|
+
| Correctness, security, ripple effects | `independent` | A clean-room read. Should discover call sites rather than be told about them, and must not inherit the author's rationalizations for why an edge case is fine |
|
|
74
|
+
|
|
75
|
+
Deliberately mixing both gives you an intent-aware reading *and* an unanchored one. That contrast is often where the real findings are: something the conversation treated as settled that a clean-room reader immediately questions.
|
|
76
|
+
|
|
77
|
+
Note that `fork` costs more — each forked reviewer carries a transcript snapshot. Prefer `independent` when the lens does not genuinely need the conversation.
|
|
78
|
+
|
|
79
|
+
### 4. Compose the prompts
|
|
80
|
+
|
|
81
|
+
Every reviewer needs four things. The lens is the only variable; keep the rest parallel across calls so their reports are comparable.
|
|
82
|
+
|
|
83
|
+
1. **Its lens, stated as the question it should be asking** — not just a label
|
|
84
|
+
2. **The explicit file list** it owns (and, for module splits, the boundary)
|
|
85
|
+
3. **A cap on output** — "at most 6 findings, most severe first". Five uncapped reports will flood your context and bury the real findings
|
|
86
|
+
4. **The report shape** — severity, `file:line`, one-sentence defect, concrete failure scenario
|
|
87
|
+
|
|
88
|
+
State what is out of scope too. A reviewer told only "review the auth change" will also tell you about naming and formatting.
|
|
89
|
+
|
|
90
|
+
### 5. Dispatch in one turn
|
|
91
|
+
|
|
92
|
+
Issue every `agent` call in the same assistant message. The `agent` tool is `executionMode: parallel`, so the harness runs the batch concurrently:
|
|
93
|
+
|
|
94
|
+
```text
|
|
95
|
+
agent(subagent_type=reviewer, context=fork, description="architecture lens", prompt="...")
|
|
96
|
+
agent(subagent_type=reviewer, context=independent, description="correctness lens", prompt="...")
|
|
97
|
+
agent(subagent_type=reviewer, context=independent, description="ripple lens", prompt="...")
|
|
98
|
+
agent(subagent_type=reviewer, context=fork, description="UX lens", prompt="...")
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> **Keep the batch pure.** If any call in the turn is a sequential tool (most write tools, `askUser`, `planEnter`/`planExit`), the harness degrades the **whole batch** to sequential and you lose the concurrency. Do sequential prerequisites — including the Step 1 `git diff` — in an earlier turn.
|
|
102
|
+
|
|
103
|
+
> **Reviewers cannot fan out further.** The `agent` tool is removed at depth ≥ 1, so a reviewer cannot spawn sub-reviewers. All dispatch happens from here.
|
|
104
|
+
|
|
105
|
+
**Why 2-5.** Below 2 there is no second perspective and you should review inline. Above 5, lenses start restating each other, and the dedup and integration burden grows faster than the coverage does. Scale to blast radius, not to file count: a 60-file mechanical rename needs 2 lenses; a 12-file permissions change may deserve 5.
|
|
106
|
+
|
|
107
|
+
### 6. Deduplicate, corroborate, rank
|
|
108
|
+
|
|
109
|
+
The reports arrive as independent opinions of varying quality. Your job is synthesis, not concatenation.
|
|
110
|
+
|
|
111
|
+
1. **Merge by `file:line`.** The same defect will arrive from several lenses in different words.
|
|
112
|
+
2. **Treat corroboration as confidence, not as a vote.** Two lenses independently reaching the same line is strong signal. But do **not** discard single-lens findings — a privilege-escalation bug is *supposed* to be visible only to the lens looking for it. Unanimity is not the bar; being right is. Judge a lone finding on its stated failure scenario.
|
|
113
|
+
3. **Verify anything you intend to act on.** Reviewers reason about code without running it, so they produce confident-sounding findings that do not reproduce. Open the file and confirm the defect exists before you fix or report it.
|
|
114
|
+
4. **Discard what does not survive.** A finding you could not confirm is not a finding; say you could not confirm it rather than passing it along hedged.
|
|
115
|
+
5. **Rank by severity across all lenses,** not per-lens — the user wants one ordered list.
|
|
116
|
+
6. **Account for coverage.** If a lens returned nothing, or hit its turn cap, or came back obviously thin, say so. A silent gap reads as "this area is clean" when it actually means "nobody looked".
|
|
117
|
+
|
|
118
|
+
### 7. Optionally pair with `verification`
|
|
119
|
+
|
|
120
|
+
Reviewers claim; `verification` proves. Where a HIGH finding asserts something testable — "this crashes on empty input", "this races under concurrent calls" — dispatch `verification` in a **following** turn to actually run it:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
agent(subagent_type=verification, description="probe empty-input crash", prompt="...reproduce, report PASS/FAIL...")
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
This has to be a later turn because the prompt depends on what the review pass returned. `verification` holds a writable shell (it needs one to run builds and write scratch scripts to `/tmp`), unlike `reviewer` — which is why it can empirically settle a claim the reviewers could only argue about.
|
|
127
|
+
|
|
128
|
+
Skip this when the findings are structural (a misplaced boundary, a leaked abstraction) — there is nothing to execute.
|
|
129
|
+
|
|
130
|
+
When a `verification` verdict contradicts a reviewer, **the verdict wins**: it ran the code, the reviewer only read it. Drop the finding and say it did not reproduce. Do not keep it hedged as "possible issue" — a claim that was tested and failed to reproduce is resolved, not uncertain.
|
|
131
|
+
|
|
132
|
+
### 8. Deliver one synthesized review
|
|
133
|
+
|
|
134
|
+
Your final message is the review. It replaces the subagent reports — the user does not see them, so anything you do not carry forward is lost.
|
|
135
|
+
|
|
136
|
+
Report, in this order:
|
|
137
|
+
|
|
138
|
+
1. **One-line verdict** — the headline: is this safe to land, and if not, what is the single worst problem.
|
|
139
|
+
2. **Confirmed findings, ranked by severity across all lenses.** For each: severity · `file:line` · the defect in one sentence · the concrete failure scenario. Note which lenses raised it only when corroboration is what makes it credible.
|
|
140
|
+
3. **What was checked and found clean** — one line per lens. This is what makes the review auditable rather than a list of complaints.
|
|
141
|
+
4. **Coverage gaps** — lenses that returned thin, capped out, or were not run; claims you could not confirm either way; anything a follow-up pass should pick up.
|
|
142
|
+
|
|
143
|
+
Attribute a finding to a lens only when it carries information ("both the architecture and ripple lenses independently flagged this boundary"). Otherwise drop the attribution — which subagent found it is your bookkeeping, not the user's.
|
|
144
|
+
|
|
145
|
+
Keep the whole thing proportional to what was actually found. Five reviewers returning nothing serious should produce a short answer that says so plainly, not a long one padded to look like the effort was worth it.
|
|
146
|
+
|
|
147
|
+
## Prompt Template
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
Review this change through the RIPPLE EFFECTS lens only.
|
|
151
|
+
|
|
152
|
+
Files changed (authoritative — do not re-derive):
|
|
153
|
+
packages/sidecar/src/runtime/agentSpawner.ts
|
|
154
|
+
packages/sidecar/src/agents/types.ts
|
|
155
|
+
packages/sidecar/src/tools/agent.ts
|
|
156
|
+
|
|
157
|
+
Your lens — ask only these questions:
|
|
158
|
+
- Who calls the functions whose signatures changed, and do all call sites still hold?
|
|
159
|
+
- Which persisted shapes (session metadata, wire types) changed, and can old data still be read?
|
|
160
|
+
- What did this change make dead, and what now has two sources of truth?
|
|
161
|
+
|
|
162
|
+
Explicitly out of scope: naming, formatting, test coverage, architectural taste.
|
|
163
|
+
Other reviewers are covering architecture and correctness — do not duplicate them.
|
|
164
|
+
|
|
165
|
+
Return at most 6 findings, most severe first. For each:
|
|
166
|
+
severity (HIGH/MEDIUM/LOW) · file:line · one-sentence defect · concrete failure scenario
|
|
167
|
+
If a question above is clean, say so in one line. Do not pad the list.
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
## Common Mistakes
|
|
171
|
+
|
|
172
|
+
**❌ Same prompt, different `subagent_type`** — the lens must live in the prompt. Sending four identical prompts gets four near-identical reports.
|
|
173
|
+
|
|
174
|
+
**❌ Letting each reviewer scope itself** — they diverge on the boundary and you cannot tell which parts got reviewed.
|
|
175
|
+
|
|
176
|
+
**❌ Uncapped output** — five reviewers each returning twenty findings buries the three that mattered.
|
|
177
|
+
|
|
178
|
+
**❌ Concatenating reports as your answer** — the user asked for a review, not five reviews. Dedupe, verify, rank.
|
|
179
|
+
|
|
180
|
+
**❌ Reporting per-lens sections** — "Architecture lens found… Correctness lens found…" pushes your dedup work onto the reader and hides that two lenses flagged the same line. Rank by severity across all lenses instead.
|
|
181
|
+
|
|
182
|
+
**❌ Staying silent about a lens that returned nothing** — indistinguishable from that area being clean. Say which lenses came back empty.
|
|
183
|
+
|
|
184
|
+
**❌ Trusting a finding you never opened the file to confirm** — reviewers reason without running anything and are confidently wrong at a steady rate.
|
|
185
|
+
|
|
186
|
+
**❌ Mixing axes** — "architecture, correctness, and also the auth module" leaves coverage gaps nobody notices.
|
|
187
|
+
|
|
188
|
+
**❌ Using this on a small diff** — the coordination cost exceeds the benefit. Review it yourself.
|
|
189
|
+
|
|
190
|
+
**❌ Expecting reviewers to run tests** — `reviewer` is read-only by construction (its shell is swapped for a read-only broker). Use `verification` for anything that must actually execute.
|
|
191
|
+
|
|
192
|
+
## Mode Constraint
|
|
193
|
+
|
|
194
|
+
This skill is **inline-only**. Its body must land in your current context so it can shape the tool calls of the same turn. It must not run as a subagent: a subagent cannot see your session state, and the `agent` tool is stripped at depth ≥ 1, so it could not dispatch the fan-out at all. If you find this skill executing inside a subagent, that is a misconfiguration — load it in the main session instead.
|