gm-kilo 2.0.892 → 2.0.894
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/memorize.md
CHANGED
|
@@ -51,6 +51,8 @@ exec:memorize
|
|
|
51
51
|
|
|
52
52
|
Line 1 of the body is the source tag (e.g. `feedback/terse-responses`, `project/merge-freeze`). Lines 2+ are the fact itself. Use kebab-case slugs.
|
|
53
53
|
|
|
54
|
+
A discipline sigil — `@<name>` as the first space-token in the invoking prompt, or a trailing `discipline=<name>` line — routes the write to that discipline's store. Without one, the write lands in the default store. Forward the sigil verbatim to `exec:memorize`; never invent or default a discipline name.
|
|
55
|
+
|
|
54
56
|
To invalidate previously-memorized content (correction or retraction):
|
|
55
57
|
|
|
56
58
|
```
|
|
@@ -9,6 +9,8 @@ allowed-tools: WebFetch, WebSearch, Bash
|
|
|
9
9
|
|
|
10
10
|
One question. One context. One file on disk. One-line return.
|
|
11
11
|
|
|
12
|
+
Two shapes of brief arrive: a live-web question owning a path under `.gm/research/<slug>/<worker-id>.md`, or a corpus chunk owning `.gm/disciplines/<name>/corpus/concise/<chunk-id>.md`. The corpus shape carries an input chunk on disk and a fact-preservation contract — every claim, number, name, caveat, and citation from the source survives the rewrite; prose density rises, content does not shrink. No fetching unless the brief asks for it. The output file looks like the live-web one but the `Sources` section points at the input chunk path and any inline citations the chunk already carried.
|
|
13
|
+
|
|
12
14
|
## Brief shape
|
|
13
15
|
|
|
14
16
|
The spawning prompt names: the question, the answer shape expected, the explicit out-of-scope boundary, and the destination path `.gm/research/<slug>/<worker-id>.md`. If any of those is missing or ambiguous, treat that as the first finding — record what was unclear and stop, rather than guessing scope.
|
package/package.json
CHANGED
|
@@ -7,6 +7,8 @@ description: Mandatory codebase search workflow. Use whenever you need to find a
|
|
|
7
7
|
|
|
8
8
|
`exec:codesearch` is the only codebase search tool. Grep, Glob, Find, Explore, raw `grep`/`rg`/`find` inside `exec:bash` are all hook-blocked. No fallback.
|
|
9
9
|
|
|
10
|
+
A `@<discipline>` first-token after the verb scopes the search to that discipline's index; absent the sigil, results fan across default plus enabled disciplines, prefixed by source.
|
|
11
|
+
|
|
10
12
|
Handles exact symbols, exact strings, file-name fragments, regex-ish patterns, natural-language queries, and PDF pages (cite `path/doc.pdf:<page>`).
|
|
11
13
|
|
|
12
14
|
Direct-read exceptions: known absolute path → `Read`. Known directory listing → `exec:nodejs` + `fs.readdirSync`.
|
|
@@ -7,6 +7,8 @@ description: EXECUTE phase AND the foundational execution contract for every ski
|
|
|
7
7
|
|
|
8
8
|
Entry: `.prd` with named unknowns. Exit: every mutable KNOWN → invoke `gm-emit`.
|
|
9
9
|
|
|
10
|
+
A `@<discipline>` sigil propagates from PLAN through every recall, codesearch, and memorize call; reads without one fan across default plus enabled disciplines, writes without one go to default only.
|
|
11
|
+
|
|
10
12
|
This skill is the execution contract for ALL phases — pre-emit witnesses, post-emit verifies, e2e checks all run on this discipline. Cross-cutting dispositions live in `gm` SKILL.md.
|
|
11
13
|
|
|
12
14
|
## Transitions
|
package/skills/planning/SKILL.md
CHANGED
|
@@ -8,6 +8,8 @@ allowed-tools: Skill, Bash, Write, Read, Agent
|
|
|
8
8
|
|
|
9
9
|
Translate the request into `.gm/prd.yml` and hand to `gm-execute`. Re-enter on any new unknown in any phase.
|
|
10
10
|
|
|
11
|
+
A `@<discipline>` sigil in the request scopes recall, codesearch, and memorize calls during PLAN to that discipline's store. Without one, retrievals fan across default plus enabled disciplines and writes land in default only.
|
|
12
|
+
|
|
11
13
|
Cross-cutting dispositions (autonomy, fix-on-sight, nothing-fake, browser-witness, scope, recall, memorize) live in `gm` SKILL.md; this skill only carries what is unique to PLAN.
|
|
12
14
|
|
|
13
15
|
## Transitions
|
package/skills/research/SKILL.md
CHANGED
|
@@ -6,8 +6,12 @@ allowed-tools: Skill, Bash, Agent, WebFetch, WebSearch, Read, Write
|
|
|
6
6
|
|
|
7
7
|
# Research
|
|
8
8
|
|
|
9
|
+
Declare the discipline before fetching anything. The first line of work names the `@<discipline>` the corpus belongs to — fresh material lives at `.gm/disciplines/<name>/corpus/raw/`, concise rewrites at `.gm/disciplines/<name>/corpus/concise/<chunk-id>.md`, the merged synthesis at `.gm/disciplines/<name>/deep-understanding.md`. A run without a discipline declaration falls back to the default store and the orchestrator says so in one line.
|
|
10
|
+
|
|
9
11
|
Lead orchestrates. Workers fetch. Findings converge on disk. The lead never reads pages — workers do.
|
|
10
12
|
|
|
13
|
+
Treat a thousand-document corpus with the same care as a codebase. Material above roughly ten pages — about eight thousand tokens — splits at paragraph boundaries into chunks each owned by one parallel `gm:research-worker` (haiku model). Each worker emits a fact-preserving concise rewrite to `corpus/concise/<chunk-id>.md` — every claim, number, name, caveat from the source survives, prose density rises, citations stay attached. Once every chunk returns, the lead merges into `deep-understanding.md` enumerating the opportunities the corpus opens and the reasonable opinionations it forces. Concise files and the merged document auto-ingest via `exec:memorize @<name>` so the next pass recalls instead of re-fetching.
|
|
14
|
+
|
|
11
15
|
Effort matches stakes. A single fact is one short fetch. A vendor comparison is a handful of workers, each owning one vendor. A landscape survey is ten or more, each owning one axis. Spending a fan-out on a fact wastes tokens; spending a fact-fetch on a landscape under-delivers.
|
|
12
16
|
|
|
13
17
|
Breadth first, depth on demand. Open with a wide sweep that maps the terrain, then commit deep dives only where the sweep surfaces something load-bearing. A narrow opening misses the alternative the user actually needed.
|