📝 export: 7 files (docs)
M .claude-plugin/marketplace.json M plugins/spire/.codex-plugin/plugin.json A plugins/spire/CHANGELOG.md M plugins/spire/skills/curator/SKILL.md M plugins/spire/skills/gremlins/tests/test_store.py M plugins/spire/skills/research-tree/SKILL.md M plugins/spire/skills/research/SKILL.md
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "spire",
|
||||
"version": "0.3.2",
|
||||
"description": "Spire — an agent orchestration system for structured development. Session coordination (Igor), domain knowledge (adepts), dispatching (athanor), workpad, research, and implementation governance. Knowledge navigation via the separate tome plugin (opt-in).",
|
||||
"version": "0.4.0",
|
||||
"description": "Spire — an agent orchestration system for structured development. Session coordination (Igor), domain knowledge (adepts), dispatching (athanor), quire, research, and implementation governance. Knowledge navigation via the separate tome plugin (opt-in).",
|
||||
"author": {
|
||||
"name": "Gabor Körber",
|
||||
"email": "gab@g4b.org"
|
||||
@@ -10,7 +10,7 @@
|
||||
"interface": {
|
||||
"displayName": "Spire",
|
||||
"shortDescription": "Structured agent workflows",
|
||||
"longDescription": "Session coordination, domain knowledge, research, workpad, and implementation skills for structured development.",
|
||||
"longDescription": "Session coordination, domain knowledge, research, quire, and implementation skills for structured development.",
|
||||
"developerName": "Gabor Körber",
|
||||
"category": "Productivity",
|
||||
"capabilities": ["Skills", "Agents"],
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Spire changelog
|
||||
|
||||
Newest first. Actions you must take after an upgrade, with a check and the fix steps, are in [`UPGRADES.md`](./UPGRADES.md); Igor shows the pending ones at startup.
|
||||
|
||||
## 0.4.0
|
||||
|
||||
Spire runs on more harnesses (Codex gremlins; Claude Code, Codex, Claude Desktop and T3 Code references), the workpad becomes the quire, scope steering is explicit, and upgrade notes are checked at Igor startup.
|
||||
|
||||
### Breaking changes
|
||||
|
||||
Each one needs action after upgrading. The checks and fix steps are in [`UPGRADES.md`](./UPGRADES.md) under `0.4.0`.
|
||||
|
||||
1. **workpad is now quire.** The skill `spire:workpad` is gone; use `spire:quire`. The helper is `quire.py`, and the folder default is `docs/quire` (`QUIRE_FOLDER`, `--quire` in gitea 0.1.1). `docs/workpad` still works as a fallback; if both exist, quire wins and this is noted once. Agent files that preload `spire:workpad` lose the preload silently.
|
||||
2. **`attacker` is now `advocate`**, and the step verb "attack" is now "castigate". Saying "attack the plan" still triggers it.
|
||||
3. **Harness references moved** from `skills/implementation/references/providers/` to the plugin root `providers/` (`runtimes/`, `hosts/`). `subagent-writes.md` is folded into `providers/runtimes/claude-code/spawning.md`.
|
||||
4. **Gremlins need `--harness claude`** (or `codex`) on `init` when run from a shell with no harness marker (plain terminal, CI). Inside a harness the caller's own harness is detected (`CLAUDECODE=1` / `CODEX_THREAD_ID`).
|
||||
5. **Secret-shaped env names are scrubbed** from gremlin environments (this strips e.g. `CLAUDE_CODE_CLIENT_KEY`; unlisted `CLAUDE_CODE_*` stay). Only inherited env is scrubbed. Pass what a gremlin needs with `--pass-env NAME` at `init`.
|
||||
6. **Finish or re-init in-flight 0.3.x gremlin runs.** Templates are not frozen per run, so an old run would get the new spawn text without the old preamble's companion rules, plus the new scrub.
|
||||
|
||||
### New
|
||||
|
||||
- **Upgrade notes.** `UPGRADES.md` lists the actions each release needs. At startup Igor runs `skills/igor/upgrade-notes.sh`, shows the entries newer than this checkout's marker, and has a scout run each item's read-only check. `.spire/upgrades.lock` records what the checkout has handled; `init` writes it for new projects.
|
||||
- **Gremlins on Codex** (Codex adapter): `codex exec` with workspace-write, no network unless `init --network`, ephemeral forks. Codex gremlins do not commit (`.git` is read-only in the sandbox).
|
||||
- **Gremlins layered preamble and templates.** Briefs carry only standing rules or the task; handoff notes live in `notes/<J>.md` and the Athanor copies them into the run log.
|
||||
- **Session titles** for gremlin calls on Claude: `🐾 …` (who/what). Codex has no name flag; its title is train line 1.
|
||||
- **Harness references** for the Claude Code and Codex runtimes and the Claude Desktop and T3 Code hosts, with host detection from tool names. Igor journals the runtime/host pair at setup. The Athanor reads the runtime file only.
|
||||
- **Scope levels**: `Scope: minimal | medium | high` (default medium) in `## Build`, the `Go:` line or briefs. It sets how much capability a go builds, not how many checks run. At `high`, plans add a "Proposed beyond the goal" list. Deferrals need a reason other than size. The old `Scope:` label for search reach is now `Reach:`.
|
||||
- **`designer` agent** (Opus 5.5) writes one buildable design.
|
||||
- **Codex-safe pointers**: fallback sentences wherever skills point at `${CLAUDE_PLUGIN_ROOT}`, `agents/openai.yaml` for curator and init, Codex notes on `!cmd` lines.
|
||||
- Optional Build keys reserved in the blank igor `project.md` and in init/project: fork owner model, assertion pattern, parallel tests (no reader yet; setting them changes nothing). Adept status is optional.
|
||||
- Size guard test for Igor's SKILL.md.
|
||||
- Claude Code limits in `providers/runtimes/claude-code/spawning.md` (Limits): 20 concurrent subagents per session (`CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS`) and the nesting depth of 3. The Athanor reads the cap, keeps each wave and what it may start at least 3 below it, and re-dispatches refused blocks in the next wave.
|
||||
|
||||
### Fixes
|
||||
|
||||
- Igor: mindset inlined (the `@references/mindset.md` line never expanded); stance lines restored; review fixes from the tightening pass.
|
||||
- Igor stop rule: authorized pushes during quire or ticket upkeep no longer stop the run; review-before-main applies to cycle code only.
|
||||
- Prompt-audit fixes: README tables, `enabledPlugins` form, pin list, project description, harness-notes pointer, Igor startup order, research-tree under the Athanor.
|
||||
- Gremlins preamble: the handoff block's "Deviations from plan" line asks for the cause, matching the run log.
|
||||
- `init` refuses a `--pass-env` argument that is an env value, without echoing it.
|
||||
- Adepts roster: `WORKPAD_FOLDER` and `just quire-folder` routes, order edges, portable label regex.
|
||||
- `research-tree` and `svg` descriptions say when to load instead of listing trigger phrases (trigger eval: no worse than the old text).
|
||||
- `research`: workflow-script `agentType` names the type as the agent-type list shows it (bare, or namespaced `spire:scout` etc. under a plugin install).
|
||||
|
||||
### Known gaps
|
||||
|
||||
- The `--agent spire:igor` preload path (main-thread `skills:`) is unverified: it never loaded in `-p` probes.
|
||||
- `${CLAUDE_PLUGIN_ROOT}` in agent bodies from a marketplace cache install is unverified (it expanded only with `--plugin-dir`). Check after install.
|
||||
- Codex reads skills literally (no variable substitution, no plugin agents). The one-line fallback sentences were tested once. Igor under Codex is unsupported in 0.4.0.
|
||||
- Interactive Codex with nested caller rights, and the macOS host checks for T3 Code and Claude Desktop, are not yet probed.
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: curator
|
||||
description: >
|
||||
Compress accreted refinement sections in workpad documents. Takes a file,
|
||||
Compress accreted refinement sections in quire documents. Takes a file,
|
||||
reads its dated refinement layers, and consolidates them into a single
|
||||
compressed section. Human-triggered only.
|
||||
disable-model-invocation: true
|
||||
@@ -17,7 +17,7 @@ Accretion is how the lab remembers; curation is how it stays readable. Igor appe
|
||||
|
||||
**Procedure**:
|
||||
|
||||
1. Read the target file. Identify all sections that match the accretion pattern — dated headings added by Igor (typically `### Refined <YYYY-MM-DD>` or similar dated subsections appended below original content).
|
||||
1. Read the target file. Identify all sections that match the accretion pattern — dated headings added by Igor (typically `## Refinement <YYYY-MM-DD>: <topic>`, or similar dated subsections appended below original content).
|
||||
2. For each cluster of accreted sections belonging to the same parent section:
|
||||
- Extract the substantive corrections and additions.
|
||||
- Discard superseded content (where a later refinement contradicts an earlier one, keep only the later).
|
||||
@@ -38,6 +38,6 @@ Accretion is how the lab remembers; curation is how it stays readable. Igor appe
|
||||
|
||||
## Scope
|
||||
|
||||
This skill operates on individual files — workpad documents, adept CLAUDEs, skill files. It does not touch the wiki or knowledge layer; that is Tome's domain.
|
||||
This skill operates on individual files — quire documents, adept CLAUDEs, skill files. It does not touch the wiki or knowledge layer; that is Tome's domain.
|
||||
|
||||
**Adept knowledge docs** (`key-files.md`, `conventions.md`, `architecture.md`, `gotchas.md`, etc.) accrete refinement sections and are curator targets. `handoff.md` and `journal/` entries are **not** curator targets — `handoff.md` is overwritten by the living adept, and journals are append-only session records.
|
||||
|
||||
@@ -91,7 +91,7 @@ class ResolverTest(_Scratch):
|
||||
self.unset_scratch()
|
||||
code, tickets = self.repo("code"), self.repo("code-tickets")
|
||||
self.chdir(code / "src")
|
||||
run = tickets / "workpad" / "logs" / "2026-10-24-10-x" / "run.md"
|
||||
run = tickets / "quire" / "logs" / "2026-10-24-10-x" / "run.md"
|
||||
self.assertEqual(self.scratch_of(run), code / ".spire" / "scratch")
|
||||
run.parent.mkdir(parents=True)
|
||||
self.assertEqual(self.scratch_of(run), code / ".spire" / "scratch")
|
||||
@@ -100,7 +100,7 @@ class ResolverTest(_Scratch):
|
||||
"""(b4) run log in no repo, cwd in one: the cwd's checkout. cwd in none: (b) or (c)."""
|
||||
self.unset_scratch(GIT_CEILING_DIRECTORIES=str(self.tmp))
|
||||
code = self.repo("code")
|
||||
run = self.tmp / "tickets" / "workpad" / "logs" / "x" / "run.md"
|
||||
run = self.tmp / "tickets" / "quire" / "logs" / "x" / "run.md"
|
||||
run.parent.mkdir(parents=True)
|
||||
self.chdir(code / "src")
|
||||
self.assertEqual(self.scratch_of(run), code / ".spire" / "scratch")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: research-tree
|
||||
description: Orchestrate multi-topic research as a dependency tree of parallel phases — not a flat fan-out of independent agents. Use this skill whenever the user asks for "research", "deep research", "investigate", "survey", or "look into" a topic that has multiple sub-topics, or when a question is broad enough that a single agent would either skim or take forever. Trigger especially when the user says things like "research X and Y and Z", "find out everything about…", "do a deep dive on…", or when prior research has surfaced new questions that need follow-up. Composes with the `workpad` skill for file placement.
|
||||
description: Orchestrate multi-topic research as a dependency tree of parallel phases — not a flat fan-out of independent agents. Use whenever a research request spans several sub-topics (some depending on others' answers), is too broad for one agent to cover in depth, or follows up questions that earlier research raised. Composes with the `quire` skill for file placement.
|
||||
---
|
||||
|
||||
# Research Tree
|
||||
@@ -36,18 +36,18 @@ Phase 1 (parallel) Phase 2 (parallel) Phase 3 (parallel) Su
|
||||
|
||||
## Planning the tree
|
||||
|
||||
Before spawning a single agent, plan the tree explicitly. Write the plan down — usually in the workpad as a brainstorm or design note — so you and the user can sanity-check it.
|
||||
Before spawning a single agent, plan the tree explicitly. Write the plan down — usually in the quire as a brainstorm or design note — so you and the user can sanity-check it.
|
||||
|
||||
1. **List the sub-topics** the question needs answered, including ones you are unsure about; merge or drop the redundant ones before step 2, since each sub-topic costs an agent.
|
||||
2. **For each sub-topic, ask: "what would I need to know first?"** Draw an arrow from each prerequisite topic to the dependent topic. This produces a dependency graph, not yet a tree.
|
||||
3. **Break cycles.** If A needs B and B needs A, you have a cycle. Resolve it by inserting a new, smaller intermediate topic that both can build on (e.g. "shared definitions and ground truth for X"), or by deciding which direction is the dominant dependency and demoting the other to a follow-up question for phase N+2.
|
||||
4. **Group into phases by depth.** Topics with no prerequisites are phase 1. Topics whose prerequisites are all in phase 1 are phase 2. And so on.
|
||||
5. **Sanity-check phase widths.** A phase with one topic is fine but suspicious — can it merge with the next phase? A phase with fifteen topics is a sign you haven't decomposed dependencies enough. Aim for 2–6 per phase typically.
|
||||
6. **Confirm the plan with the user** before launching. The plan itself is the most important artifact — a wrong tree wastes the most expensive resource (agent time on the wrong questions).
|
||||
6. **Confirm the plan with the user** before launching (under an Athanor, or with no user in the loop: take the default and note it instead of asking). The plan itself is the most important artifact — a wrong tree wastes the most expensive resource (agent time on the wrong questions).
|
||||
|
||||
## Running the phases
|
||||
|
||||
Use the workpad's `research/` folder, almost always inside a dated subfolder for the whole tree:
|
||||
Use the quire's `research/` folder, almost always inside a dated subfolder for the whole tree:
|
||||
|
||||
```
|
||||
research/
|
||||
@@ -96,4 +96,4 @@ If the summary turned out hard to write, that's a signal — see the contradicti
|
||||
## What this skill does *not* govern
|
||||
|
||||
- The internal structure of an individual research report — that's the agent's call, plus project conventions.
|
||||
- Whether the workpad itself exists / where it lives — defer to the `workpad` skill.
|
||||
- Whether the quire itself exists / where it lives — defer to the `quire` skill.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
name: research
|
||||
description: Governs how research is conducted — bounded agent spawning, no recursive sub-agents, web content downloaded as markdown and scanned locally. Use whenever launching research agents, fetching web content for analysis, or when another skill (like research-tree) is about to spawn agents that touch the web. Composes with workpad for output placement and research-tree for multi-topic structure.
|
||||
description: Governs how research is conducted — bounded agent spawning, no recursive sub-agents, web content downloaded as markdown and scanned locally. Use whenever launching research agents, fetching web content for analysis, or when another skill (like research-tree) is about to spawn agents that touch the web. Composes with quire for output placement and research-tree for multi-topic structure.
|
||||
---
|
||||
|
||||
# Research Governance
|
||||
|
||||
This skill regulates **how** research agents behave. It does not replace research-tree (which governs the **structure** of multi-topic research) or workpad (which governs **where** output goes). It layers on top of both.
|
||||
This skill regulates **how** research agents behave. It does not replace research-tree (which governs the **structure** of multi-topic research) or quire (which governs **where** output goes). It layers on top of both.
|
||||
|
||||
**Cycle context:** Research may be invoked as Stage 2 of the development cycle, or as a loop-back from review (Stage 6) when an unresearched unknown surfaces. Its output feeds into design (Stage 3).
|
||||
|
||||
@@ -32,7 +32,7 @@ When spawning research agents (via the Agent tool or workflow scripts):
|
||||
- Use `subagent_type: "scout"` for quick fact extraction from a page or file
|
||||
- Use `subagent_type: "search"` for code/file lookups and symbol tracing
|
||||
- Use `subagent_type: "researcher"` for complex topics that need a written report
|
||||
- In workflow scripts, use `agentType: 'scout'`, `'search'`, or `'researcher'` accordingly
|
||||
- In workflow scripts, pass `agentType` in `agent()` options with the name your agent-type list shows: bare (`'scout'`, `'search'`, `'researcher'`) or, under a plugin install, namespaced (`'spire:scout'`, `'spire:search'`, `'spire:researcher'`)
|
||||
|
||||
The **orchestrator** (you, the main agent, or the workflow script) is the only entity that decides how many agents run. Individual research agents never make that decision.
|
||||
|
||||
@@ -75,7 +75,7 @@ The division of responsibility:
|
||||
| How deep to go on one topic | The individual agent |
|
||||
| Whether to fetch a web page | The individual agent |
|
||||
| Whether to spawn another agent | **Never the individual agent** |
|
||||
| Where to write output | Workpad skill |
|
||||
| Where to write output | Quire skill |
|
||||
|
||||
### 4. Phases gate runaway growth
|
||||
|
||||
@@ -85,19 +85,19 @@ When using research-tree's phased approach:
|
||||
- **Trim the next phase** if earlier phases already answered some questions. Don't launch agents for topics that are already covered.
|
||||
- **Cap total agents.** A typical research tree should use 3–12 agents total across all phases. If you're planning more than 15, the decomposition is too fine-grained — consolidate topics.
|
||||
|
||||
### 5. Research output goes to the workpad
|
||||
### 5. Research output goes to the quire
|
||||
|
||||
Compose with the workpad skill:
|
||||
Compose with the quire skill:
|
||||
|
||||
- Individual agent reports → `research/<dated-subfolder>/phase-N-<topic>.md`
|
||||
- Summary/index → `research/<dated-subfolder>/index.md`
|
||||
- If no workpad exists, ask the user before creating one
|
||||
- If no quire exists, ask the user before creating one
|
||||
|
||||
## Applying this skill
|
||||
|
||||
When you are about to do research — whether triggered by the user saying "research", "investigate", "look into", or by another skill like research-tree — apply these rules:
|
||||
|
||||
1. **Plan first.** List the topics and how many agents you need. Share with the user.
|
||||
1. **Plan first.** List the topics and how many agents you need. Share the plan with the user before launching; under an Athanor, or with no user in the loop, take the default and note it instead of asking.
|
||||
2. **Instruct each agent.** Every agent prompt must include: the specific research question, where to write output, and the constraint that it must not spawn sub-agents.
|
||||
3. **Use the search agent for lookups.** For "find where X is defined" or "what files reference Y", use `subagent_type: "search"` — it is tool-restricted and cannot spawn agents by design.
|
||||
4. **Fetch web content through the agent, not through sub-agents.** The agent doing the research fetches the pages it needs directly.
|
||||
@@ -106,5 +106,5 @@ When you are about to do research — whether triggered by the user saying "rese
|
||||
## What this skill does NOT govern
|
||||
|
||||
- The internal structure of a research tree (phases, dependencies) — that's research-tree
|
||||
- Where files go — that's workpad
|
||||
- Where files go — that's quire
|
||||
- Whether to do research at all — that's your judgment as orchestrator
|
||||
|
||||
Reference in New Issue
Block a user