liteagents 2.21.0 → 2.22.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/CHANGELOG.md +43 -0
- package/package.json +1 -1
- package/packages/ampcode/commands/branch-review.md +68 -15
- package/packages/ampcode/commands/release.md +55 -19
- package/packages/ampcode/commands/remember/AGENT_RULES.md +3 -3
- package/packages/ampcode/commands/stash.md +6 -5
- package/packages/claude/commands/branch-review.md +68 -15
- package/packages/claude/commands/release.md +55 -19
- package/packages/claude/commands/remember/AGENT_RULES.md +3 -3
- package/packages/claude/commands/stash.md +6 -5
- package/packages/droid/commands/branch-review.md +68 -15
- package/packages/droid/commands/release.md +55 -19
- package/packages/droid/commands/remember/AGENT_RULES.md +3 -3
- package/packages/droid/commands/stash.md +6 -5
- package/packages/opencode/command/branch-review.md +68 -15
- package/packages/opencode/command/release.md +55 -19
- package/packages/opencode/command/remember/AGENT_RULES.md +3 -3
- package/packages/opencode/command/stash.md +6 -5
|
@@ -27,7 +27,7 @@ Every task runs through three layers. Do not skip ahead to code.
|
|
|
27
27
|
- **Open questions** — unknowns that don't block; never silently assumed
|
|
28
28
|
|
|
29
29
|
Every POC result updates the PRD; one that flips the go/no-go or a module's assumption is a spec change, not a footnote.
|
|
30
|
-
2. **Verify — define "good" up front, then prove it.** Write down what success looks like *before* changing code. Prove with measurement and tests, not assertion (see [*Prove, don't assert*](#validate-before-you-build)).
|
|
30
|
+
2. **Verify — define "good" up front, then prove it.** Write down what success looks like *before* changing code. Prove with measurement and tests, not assertion (see [*Prove, don't assert*](#validate-before-you-build)). When the work is done, propose `/branch-review` — a general review plus a full `/security` audit, which reports findings and never fixes them — and then `/release`, which runs `/ship` as the mechanical pre-deploy gate. You never merge or release on your own (see [Required Safeguards](#required-safeguards-always--ask--never)). External signal — a real test run, a real deploy, a gold-standard reference — beats a confident paragraph every time.
|
|
31
31
|
3. **Environment — the standing context.** This file primes every session. Critical-path protections (secrets, auth, schema, CI) are stated as **Always / Ask / Never** below and bind you as written. Where your tool offers a permission allow/ask/deny list, mirror them there so they are enforced and not merely requested.
|
|
32
32
|
|
|
33
33
|
**Execution order — work the way a program runs, in this order, nothing skipped:**
|
|
@@ -61,7 +61,7 @@ Not courtesies. These bind you as written, whether or not your tool enforces the
|
|
|
61
61
|
- **Always** identify affected files before making changes, and explain what will change and why
|
|
62
62
|
- **Ask first** — stop and get explicit sign-off — before modifying authentication systems, database schema or migrations, CI workflows, or `.opencode/settings.json`
|
|
63
63
|
- **Never** write secrets into the tree (`.env`/`*.env`, keys, credentials). They load from the environment at runtime; only a value-less `.env.example` is committed
|
|
64
|
-
- **Never** commit to `main`. Commit to a new branch (name doesn't matter), then propose `/
|
|
64
|
+
- **Never** commit to `main`. Commit to a new branch (name doesn't matter), then propose `/branch-review` followed by `/release`; merging and releasing are my call, made by name — "approve", "good", or "go" on a draft is not that call
|
|
65
65
|
|
|
66
66
|
---
|
|
67
67
|
|
|
@@ -229,7 +229,7 @@ Also hold the line on: input validation at every trust boundary (untrusted uploa
|
|
|
229
229
|
|
|
230
230
|
**Verify at two moments, not one.**
|
|
231
231
|
- **While building** — this list shapes the code as it's written.
|
|
232
|
-
- **Before deploy/merge** — run **`/security`**
|
|
232
|
+
- **Before deploy/merge** — run **`/branch-review`**, whose second stage runs **`/security`** in full; `/release` then runs **`/ship`** as the mechanical pre-deploy gate. A Critical/High finding blocks the ship; lower-severity findings get logged and triaged, not silently shipped. Proactively remind the user to run them whenever a change touches auth, data access, endpoints, secrets, or untrusted input.
|
|
233
233
|
|
|
234
234
|
---
|
|
235
235
|
|
|
@@ -15,11 +15,12 @@ Save session context for compaction recovery or handoffs.
|
|
|
15
15
|
- **Escalate, never assume.** Anything the subagent cannot do, cannot verify, or that this
|
|
16
16
|
spec does not cover → report it back to the orchestrator (the main session) rather than
|
|
17
17
|
improvising. Never widen scope beyond writing the file and counting the backlog.
|
|
18
|
-
- **
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
- **Explicitly select your tool's mid tier.** State the tier on the spawn — do not omit it
|
|
19
|
+
and rely on a default. An omitted tier inherits the *parent's* tier, which is not the same
|
|
20
|
+
thing as the balanced one. Pick the judgment-capable tier that is cheaper and faster than
|
|
21
|
+
your top reasoning tier. **Not the cheapest/fastest tier**: on judgment work it measurably
|
|
22
|
+
degrades (misclassification rates several times higher). Choose by tier, not by a vendor
|
|
23
|
+
model name copied from this file — names drift, and this command ships to several tools.
|
|
23
24
|
- **Background dispatch where supported.** Run the write-up subagent in the background
|
|
24
25
|
(non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to
|
|
25
26
|
writing inline (today's behavior) if your tool has no subagent or background-dispatch
|