Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a67096ea67 |
No files matched your search
@@ -3,8 +3,9 @@
|
|||||||
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
"description": "AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.",
|
||||||
"version": "0.7.0",
|
"version": "0.7.0",
|
||||||
"owner": {
|
"owner": {
|
||||||
"name": "Mortis",
|
"name": "Defame1297",
|
||||||
"url": "https://git.rkdr.net/Mortis/"
|
"email": "[email protected]",
|
||||||
|
"url": "https://git.rkdr.net/Defame1297/"
|
||||||
},
|
},
|
||||||
"plugins": [
|
"plugins": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"timeout": 380
|
"timeout": 380
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"_apm_source": "Mortis/Holocron/plugins/kyberforge"
|
"_apm_source": "Defame1297/holocron/plugins/kyberforge"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
+1
-1
@@ -12,4 +12,4 @@
|
|||||||
ignore = dirty
|
ignore = dirty
|
||||||
[submodule "docs/wiki"]
|
[submodule "docs/wiki"]
|
||||||
path = docs/wiki
|
path = docs/wiki
|
||||||
url = https://git.rkdr.net/Mortis/Holocron.wiki.git
|
url = git@git.rkdr.net:Defame1297/holocron.wiki.git
|
||||||
@@ -54,7 +54,7 @@ Read these on demand:
|
|||||||
|
|
||||||
### Issue tracker
|
### Issue tracker
|
||||||
|
|
||||||
Issues and PRs live in Gitea (`Mortis/Holocron`), reached through the `gitea-*` skills. See `docs/agents/issue-tracker.md`.
|
Issues and PRs live in Gitea (`Defame1297/holocron`), reached through the `gitea-*` skills. See `docs/agents/issue-tracker.md`.
|
||||||
|
|
||||||
### Triage labels
|
### Triage labels
|
||||||
|
|
||||||
|
|||||||
+1
-48
@@ -105,53 +105,6 @@ irreversible or high-stakes actions — architecture changes, production deploym
|
|||||||
configuration.
|
configuration.
|
||||||
_Avoid_: manual approval, gated action
|
_Avoid_: manual approval, gated action
|
||||||
|
|
||||||
**Human on the loop**:
|
|
||||||
Agents advance a work item from stage to stage unprompted and stop only at a **Gate**; the human
|
|
||||||
approves rather than orchestrates. Contrasts with **HITL**, where the human starts or approves each
|
|
||||||
step in the session itself.
|
|
||||||
_Avoid_: autonomous mode, autopilot
|
|
||||||
|
|
||||||
**Gate**:
|
|
||||||
A point a work item cannot pass until a human records approval in the issue tracker — a label or a
|
|
||||||
PR review approval. Agents read gates and never set them. A **Mandatory gate** is one nothing can
|
|
||||||
skip.
|
|
||||||
_Avoid_: checkpoint, approval step (a **Gate** is tracker state; a **HITL** pause is not)
|
|
||||||
|
|
||||||
### Delivery team
|
|
||||||
|
|
||||||
**Stage**:
|
|
||||||
One step of the delivery flow — spec, tickets, implement, review, verify — run as its own fresh
|
|
||||||
session that starts from tracker pointers and ends with a **Handoff comment**.
|
|
||||||
_Avoid_: phase, step
|
|
||||||
|
|
||||||
**Stage lead**:
|
|
||||||
The agent a **Stage** session runs as. Its body is the stage's flow; skills supply the know-how. It
|
|
||||||
is the only part of its stage that dispatches subagents, and no agent spans stages.
|
|
||||||
_Avoid_: lead, orchestrator agent, manager
|
|
||||||
|
|
||||||
**Role agent**:
|
|
||||||
A delivery-team agent defined by its function — planner, test author, implementer, QA, reviewer,
|
|
||||||
operator — not by a tool; it loads skills on demand. A role agent may itself be a **Stage lead**.
|
|
||||||
_Avoid_: specialist agent (implies a tool specialist), worker, persona
|
|
||||||
|
|
||||||
**Handoff comment**:
|
|
||||||
The fixed-shape tracker comment that ends every **Stage** — decisions, rejected options, evidence,
|
|
||||||
the pointer the next stage starts from, and open questions. The next stage reads it first.
|
|
||||||
_Avoid_: summary, status update
|
|
||||||
|
|
||||||
**Acceptance check**:
|
|
||||||
What the test author writes before any implementation, from a ticket's acceptance criteria: a
|
|
||||||
failing test where a test can express the criterion, otherwise a post-merge assertion about the
|
|
||||||
applied state with the reason no test applies. The operator verifies the assertions; the reviewer
|
|
||||||
judges the reasons.
|
|
||||||
_Avoid_: test case, verification step
|
|
||||||
|
|
||||||
**Odd job**:
|
|
||||||
A one-off operator action that is not the effect of a merge, such as an ad-hoc playbook run. It
|
|
||||||
reaches the operator directly on the human's instruction, skipping planner, implementer and reviewer,
|
|
||||||
and runs only in a **HITL** session.
|
|
||||||
_Avoid_: manual apply, ad-hoc task
|
|
||||||
|
|
||||||
### Documents
|
### Documents
|
||||||
|
|
||||||
**AGENTS.md**:
|
**AGENTS.md**:
|
||||||
@@ -194,7 +147,7 @@ The cross-provider term for a tracked unit of work. Gitea is this repo's canonic
|
|||||||
_Avoid_: ticket, card, task
|
_Avoid_: ticket, card, task
|
||||||
|
|
||||||
**Family prefix**:
|
**Family prefix**:
|
||||||
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`, `delivery-`) marking a group of
|
The shared first segment of a skill name (`git-`, `gitea-`, `apm-`, `agentsmd-`) marking a group of
|
||||||
siblings. No bare skill name is a **Family prefix** of another: `forge` exists, so no skill is named
|
siblings. No bare skill name is a **Family prefix** of another: `forge` exists, so no skill is named
|
||||||
`forge-*`, because a prefix that matches a live sibling reads as ownership rather than membership.
|
`forge-*`, because a prefix that matches a live sibling reads as ownership rather than membership.
|
||||||
_Avoid_: namespace, category
|
_Avoid_: namespace, category
|
||||||
|
|||||||
@@ -141,7 +141,3 @@ The pre-push `run-tests` failed 2 of 3 full runs, on a different suite each time
|
|||||||
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
||||||
|
|
||||||
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
||||||
|
|
||||||
## 2026-11-13 — Hook-exported GIT_DIR turned test fixtures loose on the real repo
|
|
||||||
|
|
||||||
Under the `run-tests` pre-push hook, git exports `GIT_DIR` to the hook, so a bats fixture's `git -C "$tmp" init/commit/update-ref` hit this repo instead of its temp dir: 84 failures, `core.bare=true` and an emptied index on every push. The 2026-07-05 "repo root is a bare checkout" entry was likely this bug's symptom, not the repo's real shape. Fix: `tests/run-tests.sh` unsets git's repo-locating env vars before any suite runs. Rule: a test that builds its own repo must never inherit the caller's git environment.
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2026 Defame1297
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
+567
-567
File diff suppressed because it is too large.
Load diff
@@ -16,24 +16,24 @@ targets:
|
|||||||
- claude
|
- claude
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/bin
|
path: plugins/bin
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/core
|
path: plugins/core
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/git
|
path: plugins/git
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/gitea
|
path: plugins/gitea
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/kyberforge
|
path: plugins/kyberforge
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/lint
|
path: plugins/lint
|
||||||
# Third-party skills (Matt Pocock's) arrive transitively through this
|
# Third-party skills (Matt Pocock's) arrive transitively through this
|
||||||
# wrapper rather than as direct entries, so the marketplace and this repo
|
# wrapper rather than as direct entries, so the marketplace and this repo
|
||||||
# consume them by the same path. The pins live in plugins/mattpocock/apm.yml:
|
# consume them by the same path. The pins live in plugins/mattpocock/apm.yml:
|
||||||
# third-party content is pinned, unlike the first-party entries above,
|
# third-party content is pinned, unlike the first-party entries above,
|
||||||
# which stay unpinned for default-branch parity.
|
# which stay unpinned for default-branch parity.
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/mattpocock
|
path: plugins/mattpocock
|
||||||
mcp: []
|
mcp: []
|
||||||
|
|
||||||
@@ -68,8 +68,9 @@ marketplace:
|
|||||||
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
description: AI development skills for Claude Code, and for GitHub Copilot through apm — factory, design, implement, review, and cross-cutting workflows.
|
||||||
version: 0.7.0
|
version: 0.7.0
|
||||||
owner:
|
owner:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
|
|
||||||
# Default tag pattern used to resolve version ranges for each package.
|
# Default tag pattern used to resolve version ranges for each package.
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
# First-party delivery team replaces mattpocock's delivery chain
|
|
||||||
|
|
||||||
We will replace `mattpocock`'s delivery chain (`to-spec`, `to-tickets`, `triage`, `implement`,
|
|
||||||
`implement-spec`, `code-review`, `tdd`) with a first-party team package. Upstream's stages are skills,
|
|
||||||
not agents, and most are hand-invoked, so no agent can chain them; forking would keep that shape.
|
|
||||||
Delivery runs as one fresh session per **Stage** (spec → tickets → implement → review → verify), each
|
|
||||||
started as its **Stage lead** agent, whose body is the stage flow and which loads skills for the
|
|
||||||
know-how. There is no lead spanning stages: work passes only through tracker issues, blocking links,
|
|
||||||
branches and PRs, each stage ending with a **Handoff comment**, and **Gates** (spec approved, PR
|
|
||||||
approved) are human-set tracker state. `mattpocock`'s thinking tools (`wayfinder`, `grilling`,
|
|
||||||
`research`, …) stay as a dependency. Decided in holocron#170.
|
|
||||||
|
|
||||||
## Considered Options
|
|
||||||
|
|
||||||
- **One LLM lead across all stages, dispatching leaf role agents** (the first resolution of #170):
|
|
||||||
rejected — the orchestrator becomes a long-running context, and a lead in front of single-role
|
|
||||||
stages only adds a lossy hand-off. Practice puts the orchestrator in the main session.
|
|
||||||
- **A lead skill plus a thin agent wrapper**: rejected once v1 targeted Claude Code and Copilot CLI,
|
|
||||||
which both start a main session as a custom agent that can dispatch subagents.
|
|
||||||
- **A custom driver script chaining stages**: rejected — sequencing will come from Gitea Actions on
|
|
||||||
gate events (run mode, later); v1 is step mode, the human launching each stage.
|
|
||||||
|
|
||||||
## Consequences
|
|
||||||
|
|
||||||
- We own the chain's maintenance from now on; upstream improvements arrive only by deliberate porting.
|
|
||||||
- Only the implement stage has a team: test author → implementer (tests read-only) → QA, sequential.
|
|
||||||
After the first push the implement-stage lead opens a draft PR (Gitea `WIP:` title prefix, which
|
|
||||||
blocks merge) and QA judges that PR's CI checks; when QA passes, the lead removes `WIP:`, and that
|
|
||||||
hand-off starts the review stage. Most repos run CI on PRs, not branch pushes, so the draft PR keeps
|
|
||||||
QA before review without changing any consuming repo's workflows.
|
|
||||||
- The test author always writes **Acceptance checks**: failing tests where a test applies, otherwise
|
|
||||||
post-merge assertions with a stated reason, which the operator verifies and the reviewer judges.
|
|
||||||
- Agents never duplicate deterministic checks: pre-commit hooks gate commits, CI (on the PR) runs
|
|
||||||
tests, lint, Molecule and plan/diff output; QA, reviewer and operator add only judgement.
|
|
||||||
- *Amended 2026-11-22 (holocron#173): QA ran on the pushed branch before the PR opened, and CI was
|
|
||||||
required on branch push as well as PR; both moved to the draft PR, and acceptance checks were
|
|
||||||
added.*
|
|
||||||
- Claude Code and Copilot CLI are the tested targets; other runtimes are best effort.
|
|
||||||
- Infra applies happen by merge (GitOps for Flux, Ansible and OpenTofu alike), so the PR gate is the
|
|
||||||
apply gate; the operator verifies and opens revert PRs, never reverting on its own.
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
# Credentials, not hooks, are the agent safety boundary
|
|
||||||
|
|
||||||
The infra packages (`ansible`, `gitops`, `k8s`, later `tofu`) and the `delivery` team keep agents
|
|
||||||
safe by what they cannot do, not by what they are told: stage sessions hold no apply credentials, no
|
|
||||||
vault password and no Secret read, and every infra change applies by merge after a human approves the
|
|
||||||
PR. Hooks and skill instructions sit above that boundary as guardrails, because every provider
|
|
||||||
documents hooks as a guardrail rather than a security boundary and a hook "ask" works only in Claude
|
|
||||||
Code and Copilot CLI. Decided in holocron#172.
|
|
||||||
|
|
||||||
## Action tiers
|
|
||||||
|
|
||||||
Every package skill classifies each command it drives into one tier:
|
|
||||||
|
|
||||||
- **Read** — lint, syntax check, dry run, diff, `kubectl get/describe/logs`, `flux get`, `flux diff`,
|
|
||||||
`kubectl diff`. Free.
|
|
||||||
- **Propose** — branch, commit, push, open a PR, comment. Free.
|
|
||||||
- **Apply-by-merge** — every change to infrastructure. Happens only through an approved merge; the
|
|
||||||
agent never runs it.
|
|
||||||
- **Odd job** — `ansible-playbook` outside check mode, `tofu apply`, `flux reconcile`. The agent runs
|
|
||||||
it, only in a HITL session the human started and supplied the apply credentials to; that session
|
|
||||||
takes its instruction from the human and loads no issue or PR text. The guard hook asks before each
|
|
||||||
command.
|
|
||||||
- **Never** — `kubectl apply/delete/edit/patch/scale`, `helm install/upgrade/rollback`,
|
|
||||||
`tofu destroy`, `tofu state rm|mv|push|pull|show`, `git commit|push --no-verify` and `SKIP=`,
|
|
||||||
`ansible-vault view/decrypt/edit`, `kubeseal --recovery-unseal`, reading vault password files,
|
|
||||||
private keys, `.tfstate` or Secret objects.
|
|
||||||
|
|
||||||
## Secrets
|
|
||||||
|
|
||||||
Agents never decrypt Ansible Vault or Sealed Secrets and never read the material that would. Stage
|
|
||||||
sessions use a kubeconfig bound to the built-in `view` ClusterRole (which excludes Secrets) plus a
|
|
||||||
read-only aggregated role for `SealedSecret` objects. Ansible stage work runs only what succeeds with
|
|
||||||
a placeholder vault password (`--syntax-check`, `ansible-lint`, inventory reads); a real
|
|
||||||
`--check --diff` runs in CI, which holds the password.
|
|
||||||
|
|
||||||
## Enforcement layers
|
|
||||||
|
|
||||||
1. Skill instructions name each command's tier.
|
|
||||||
2. `delivery` ships one portable guard hook: deny the Never tier everywhere; ask for odd-job commands
|
|
||||||
where the runtime supports ask (Claude Code, Copilot CLI), deny them elsewhere.
|
|
||||||
3. Host permission settings are documented, not shipped.
|
|
||||||
4. **Credential boundary** in each consuming repo — the real control:
|
|
||||||
- agents act as a dedicated Gitea bot user;
|
|
||||||
- branch protection: approvals allowlist of humans only, dismiss stale approvals, bot off the
|
|
||||||
merge allowlist, protected file patterns for agent config, AGENTS.md, CI workflows and tests;
|
|
||||||
- every PR carries the dry run (`--check --diff`, `flux diff`, later `tofu plan`) as a required
|
|
||||||
status and a PR comment; apply happens after merge;
|
|
||||||
- stage leads start only when a user on the human allowlist in `docs/agents/delivery.md` set the
|
|
||||||
gate label, checked against the issue timeline;
|
|
||||||
- a CI check fails if test paths changed after the test author's commit; the implementer hands
|
|
||||||
disputed tests back instead of editing them.
|
|
||||||
5. Pre-commit and CI in the consuming repo are the deterministic backstop.
|
|
||||||
|
|
||||||
## Considered Options
|
|
||||||
|
|
||||||
- **Agent drafts odd jobs, human runs them** (no agent ever holds apply credentials): rejected by the
|
|
||||||
owner in favour of agent-run odd jobs in HITL sessions with per-command ask.
|
|
||||||
- **Gated vault-touching check runs, or a scoped vault credential for agents**: rejected — moving
|
|
||||||
`--check --diff` to CI removes the conflict without loosening the read rule.
|
|
||||||
- **Apply before merge** (Atlantis model): rejected — Gitea has no native support; merge-then-apply
|
|
||||||
with the dry run as a required check is the existing pattern in the reference repo.
|
|
||||||
- **A deny hook on test paths**: rejected for v1 — a repo-wide hook cannot portably tell the test
|
|
||||||
author from the implementer, and misses edits made through the shell.
|
|
||||||
- **PATH wrapper scripts**: rejected — trivially bypassed.
|
|
||||||
|
|
||||||
## Consequences
|
|
||||||
|
|
||||||
- Most of the safety model is setup in each consuming repo, not code in these packages; it is
|
|
||||||
documented there (`docs/agents/delivery.md`) and checked before the destination test.
|
|
||||||
- **Accepted risk:** odd jobs leave no durable record beyond the session itself. This departs from
|
|
||||||
the governance rule to log agent actions in reviewable form; the owner accepted it.
|
|
||||||
- **Accepted risk:** an odd-job session holds apply credentials; its safety rests on the human
|
|
||||||
starting it, keeping untrusted text out of it, and answering each ask.
|
|
||||||
- Headless sessions running repo-controlled config are not addressed here; launching from pinned
|
|
||||||
config is part of run mode.
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# Issue tracker: Gitea
|
# Issue tracker: Gitea
|
||||||
|
|
||||||
Issues and PRs for this repo live in Gitea at `git.rkdr.net`, repo `Mortis/Holocron` (ADR-0007: Gitea is the exclusive tracker; there is no file-based fallback).
|
Issues and PRs for this repo live in Gitea at `git.rkdr.net`, repo `Defame1297/holocron` (ADR-0007: Gitea is the exclusive tracker; there is no file-based fallback).
|
||||||
|
|
||||||
## How skills reach it
|
## How skills reach it
|
||||||
|
|
||||||
|
|||||||
@@ -1,250 +0,0 @@
|
|||||||
# Copilot CLI: custom agents, subagent delegation, pinned models and preToolUse hooks
|
|
||||||
|
|
||||||
Wayfinder research ticket, Gitea `Mortis/Holocron` #187 (map #166). Docs-only: Copilot CLI was not installed and no account was used, so nothing here was tested hands-on. Researched 2026-11-22.
|
|
||||||
|
|
||||||
Every claim is backed by a primary source: docs.github.com, or the `github/copilot-cli` repository's `changelog.md`, releases or issues. The docs.github.com pages carry no version or date, so they are cited as "retrieved 2026-11-22". At that date the newest changelog entry is **1.0.114 (2026-11-18)**. Changelog entries are cited as `vX.Y.Z (date)`. Some entries appear twice, in both 1.0.106 and 1.0.107, and this note cites the earlier one.
|
|
||||||
|
|
||||||
## Answers
|
|
||||||
|
|
||||||
1. **Delegation from a `--agent` session:** Yes, in both interactive and `-p` mode, as far as the docs and changelog show. The session agent dispatches subagents through the `task` tool, custom agents included, and the default `tools: ["*"]` keeps `task` available. No doc page says in so many words "a session started with `--agent` can delegate", so this is inferred. Agents are `*.agent.md` (or `*.md`) files in `~/.copilot/agents/`, `.github/agents/`, `.claude/agents/`, plugin `agents/`, or org/enterprise repositories.
|
|
||||||
2. **Pinned `model`:** Yes, it is honoured now, with caveats. #980 (ignored entirely) was fixed in 0.0.415 (2026-02-23). #2950 (ignored when the agent is delegated to via a prompt) was closed on 2026-10-04 as "resolved as of v1.0.91", but no 1.0.91 changelog entry mentions it. #4437 (a `.claude/agents` `model:` hijacking a `.github/agents` agent) is still open, and a fix was announced for v1.0.104. An explicit `--model`, a `subagents` override, or an Auto session model still beats the pinned model unless the agent sets `model-policy: required`.
|
|
||||||
3. **`tools` and delegation:** Yes. A restricted `tools` list must include the subagent tool. The documented custom-agent alias is **`agent`**, with compatible aliases **`custom-agent`** and **`Task`** (case-insensitive). The CLI's underlying tool is named **`task`**, with companions `read_agent`, `write_agent` and `list_agents`. `runSubagent` is not documented for Copilot CLI.
|
|
||||||
4. **preToolUse with `deny` and `ask`:** Yes, both are documented. `permissionDecision` takes `"allow"`, `"deny"` or `"ask"`. Hooks live in `.github/hooks/*.json`, `~/.copilot/hooks/*.json`, settings files, plugins or agent frontmatter. `ask` has been supported since 1.0.4 (2026-03-11), but autopilot and cloud agent convert it to deny, and `-p` behaviour for `ask` is not documented. Open bug #3590 reports the TUI auto-approving `ask` since 1.0.53.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Q1. Delegation from a `--agent` session, and how custom agents are defined
|
|
||||||
|
|
||||||
### Delegation
|
|
||||||
|
|
||||||
- The main agent "can choose to delegate a task to a subsidiary subagent process" using a custom agent. You can also run a custom agent for the whole session with `/agent`, by naming it in a prompt, or with `copilot --agent=<id> --prompt "..."`. Source: [Invoke custom agents](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/invoke-custom-agents), retrieved 2026-11-22.
|
|
||||||
- "Selecting a custom agent for a whole session and delegating a subtask to one are different uses of the same profile." Source: [About custom agents (CLI)](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-custom-agents), retrieved 2026-11-22.
|
|
||||||
- The CLI command reference names the "Session agent (the default agent, or a custom agent selected with `--agent`)" as a role distinct from a "Custom agent spawned as a subagent — through the `task` tool". It also documents nesting: "When the depth limit is reached, the innermost agent cannot spawn further subagents." The default max depth is `6` (maximum `256`). Source: [CLI command reference, Custom agents reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agents-reference), retrieved 2026-11-22.
|
|
||||||
- The changelog contradicts the depth default. It says "Lower the default maximum sub-agent nesting depth from 6 to 4" in v1.0.71 (2026-07-16). I'm not certain which value is current. Either way, `maxDepth` can only be changed on usage-based billing plans.
|
|
||||||
- `tools` defaults to `["*"]` (all tools), so an agent without a `tools` list has `task`. Source: same CLI command reference, "Custom agent frontmatter fields".
|
|
||||||
- **`-p` / prompt mode:** the changelog records subagent dispatch working headlessly:
|
|
||||||
- v1.0.49 (2026-05-18): "Plugins loaded via --plugin-dir now correctly register their agents as available task(agent_type=...) subagents in prompt mode".
|
|
||||||
- v1.0.81 (2026-08-27): "`--agent <plugin>:<agent>` works headlessly".
|
|
||||||
- v1.0.106 (2026-11-05): "In `-p` mode, a sub-agent's streamed reply now ends with a line break ... the task tool's row".
|
|
||||||
- Issue [#4437](https://github.com/github/copilot-cli/issues/4437) (CLI 1.0.79) contains a working repro in which a custom orchestrator agent with tool `task` spawns `task(agent_type: developer, ...)`. That is user evidence, not documentation.
|
|
||||||
- **Not documented:** no page explicitly says that a custom agent selected with `--agent` together with `-p` can delegate to another custom agent. The evidence above strongly implies it can, but I'm not certain without a hands-on test.
|
|
||||||
|
|
||||||
### Definition: locations and precedence
|
|
||||||
|
|
||||||
From the [CLI command reference, "Custom agent locations"](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agent-locations), retrieved 2026-11-22. When two agents share an ID, the first one loaded wins.
|
|
||||||
|
|
||||||
| Priority | Scope | Location |
|
|
||||||
|---|---|---|
|
|
||||||
| 1 (highest) | User | `~/.copilot/agents/` |
|
|
||||||
| 2 | Project | `.github/agents/`, from the cwd up to the Git root (deepest wins) |
|
|
||||||
| 3 | Project | `.claude/agents/`, from the cwd up to the Git root |
|
|
||||||
| 4 | Added root | `.github/agents/` and `.claude/agents/` under `--add-dir` / `/add-dir` directories |
|
|
||||||
| 5 | Plugin | `<plugin>/agents/` |
|
|
||||||
| 6 (lowest) | Remote | Organization or enterprise agents |
|
|
||||||
|
|
||||||
- **Naming:** a file named `*.agent.md` or `*.md`. The agent ID is the file name minus that extension, and subdirectories are joined with `--`: `agents/team/reviewer.agent.md` becomes `team--reviewer`. The `name` field does not deduplicate. Sources: the CLI command reference above, and [Create custom agents for CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli), retrieved 2026-11-22.
|
|
||||||
- **Discovery changes in the changelog:**
|
|
||||||
- Agents are discovered recursively: v1.0.55 (2026-05-28).
|
|
||||||
- Nested `.github/agents` directories are found from subdirectories: v1.0.62 (2026-06-13).
|
|
||||||
- Agents added to `.github/agents/` during a session are used without reloading: v1.0.109 (2026-11-10).
|
|
||||||
- The original feature shipped in v0.0.353 (2025-10-28).
|
|
||||||
|
|
||||||
### Frontmatter fields
|
|
||||||
|
|
||||||
The field names differ between docs pages. The CLI command reference uses **camelCase** (`modelPolicy`, `reasoningEffort`). The CLI how-to and the `--model` option text use **kebab-case** (`model-policy`, `strict-tools-list`). Changelog v1.0.88 also uses `reasoning-effort`. I'm not certain whether both spellings are accepted. Kebab-case is what the how-to example and the changelog use.
|
|
||||||
|
|
||||||
| Field | Meaning (source) |
|
|
||||||
|---|---|
|
|
||||||
| `description` | Required. Shown in the agent list and in the `task` tool (CLI ref). |
|
|
||||||
| `name` | Optional display name, usable with `--agent` (CLI ref). |
|
|
||||||
| `tools` | List of tools; the default is `["*"]` (CLI ref). The config reference also allows a comma-separated string. |
|
|
||||||
| `model` | Model for the agent; inherits the outer agent's model when unset (CLI ref). The how-to says to use the provider-qualified ID for BYOK models. Display names have been accepted since v1.0.24. |
|
|
||||||
| `models` | List of models in priority order; overrides `model` (CLI ref). Changelog v1.0.83 instead says `model` itself can hold a list. |
|
|
||||||
| `modelPolicy` / `model-policy` | `preferred` (default) or `required` (CLI ref, how-to). |
|
|
||||||
| `reasoningEffort` / `reasoning-effort` | Default effort (CLI ref; changelog v1.0.66, v1.0.88). |
|
|
||||||
| `strict-tools-list` | `true` limits the agent to the listed tool groups "without adding the usual default tools" (how-to). |
|
|
||||||
| `include-custom-instructions` | Lets the agent receive AGENTS.md, CLAUDE.md and `copilot-instructions.md` when it runs as a subagent (CLI ref, how-to; v1.0.86). |
|
|
||||||
| `infer` | "Allow auto-delegation by the main agent", default `true` (CLI ref). The config reference marks it **retired** in favour of `disable-model-invocation` and `user-invocable` (v0.0.411, 2026-02-17). |
|
|
||||||
| `disable-model-invocation` | `true` means the agent must be selected by hand and is not auto-delegated (config ref). |
|
|
||||||
| `user-invocable` | `false` hides the agent from the picker so it is only reachable programmatically (config ref; v0.0.412). |
|
|
||||||
| `mcp-servers` | Per-agent MCP servers (CLI ref, config ref). |
|
|
||||||
| `hooks` | Agent-scoped hooks that apply only while the agent is selected (hooks ref; v1.0.97). |
|
|
||||||
| `deferred-tool-loading` | Opt-in tool search (changelog v1.0.52). |
|
|
||||||
|
|
||||||
Source for the config-reference rows: [Custom agents configuration](https://docs.github.com/en/copilot/reference/custom-agents-configuration), retrieved 2026-11-22.
|
|
||||||
|
|
||||||
- Unknown frontmatter keys produce a warning instead of blocking the load since v0.0.415 (2026-02-23).
|
|
||||||
- Since v1.0.106 (2026-11-05), `-p --agent` prints a warning to stderr for frontmatter keys that Copilot ignores.
|
|
||||||
- A custom agent whose name matches a built-in agent (`explore`, `task`, `general-purpose`, `code-review`, `research`, `rubber-duck`, `security-review`) is not offered for delegation, because "delegating to that name always runs the built-in agent". Source: v1.0.106 (2026-11-05).
|
|
||||||
|
|
||||||
## Q2. Is a pinned `model` honoured?
|
|
||||||
|
|
||||||
### Current documented behaviour
|
|
||||||
|
|
||||||
From the [CLI command reference, frontmatter fields](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#custom-agent-frontmatter-fields), retrieved 2026-11-22:
|
|
||||||
|
|
||||||
- The pinned model applies "whether the agent is dispatched through the `task` tool or started directly".
|
|
||||||
- Precedence, highest first:
|
|
||||||
1. an explicit per-call value (the `task` call's `model` argument);
|
|
||||||
2. the `subagents` override in `~/.copilot/settings.json` or the `/subagents` picker;
|
|
||||||
3. the agent's `model`, `models` or `reasoningEffort`;
|
|
||||||
4. the parent session's value.
|
|
||||||
- "A declared model or effort that can't be honored falls back to the session's value instead of failing the dispatch — unless the agent declares `modelPolicy: "required"`", in which case dispatch is refused.
|
|
||||||
- "When the session model is set to `Auto` (server-selected), subagents always inherit the resolved session model regardless of this field." Changelog v1.0.33 (2026-04-20) says the same: "Sub-agents in auto mode now inherit the session model".
|
|
||||||
- The `--model` option: "An explicit `--model` takes precedence over a custom agent's `model` unless the agent sets `model-policy: required`." Changelog v1.0.106 (2026-11-05) agrees: "Use explicit --model with custom agents unless the agent requires a specific model".
|
|
||||||
|
|
||||||
### Issues about the pinned model being ignored
|
|
||||||
|
|
||||||
| Issue | Title | Status | Fix / cross-check |
|
|
||||||
|---|---|---|---|
|
|
||||||
| [#980](https://github.com/github/copilot-cli/issues/980) | Model from agent.md isn't recognized | Closed, completed, 2026-04-07 | A comment says it was fixed in v0.0.415. The changelog for v0.0.415 (2026-02-23) agrees: "Custom agents support the `model` field ... unknown fields now warn instead of blocking agent load". Before that, 0.0.400 reported `agent uses unsupported fields: model` for a `.github/agents/*.agent.md` file. |
|
|
||||||
| [#2950](https://github.com/github/copilot-cli/issues/2950) | Calling custom agent via prompt ignores configured model in agent.md | Closed, completed, 2026-10-04 | Reported on 1.0.35. `--agent` honoured the model, but delegation through a prompt did not; a commenter adds that orchestrator subagents all ran on the orchestrator's model. It was closed by an automated comment saying "resolved as of v1.0.91". **The v1.0.91 changelog has no matching entry**, so I can't confirm which release fixed it. Candidate entries: v1.0.85 (2026-09-16), "Subagent launches honor explicit model, reasoning effort, and context tier preferences ..."; v1.0.62 (2026-06-13); v1.0.22 (2026-04-09), "Plugin agents respect the model specified in their frontmatter". |
|
|
||||||
| [#2758](https://github.com/github/copilot-cli/issues/2758) | Feature Request: Allow sub-agents to use the model specified in frontmatter/task() — add opt-out for the cost-multiplier guard | **Open** (filed 2026-04-16) | Logs show `Downgrading subagent model from "claude-sonnet-4.6" (1x) to session model "gpt-4.1" (0x)`, a downgrade applied when the session runs on a 0x model. No changelog entry removes this guard. The `modelPolicy: required` behaviour (refuse instead of substitute) may change it, but I'm not certain whether the guard still exists. |
|
|
||||||
| [#4437](https://github.com/github/copilot-cli/issues/4437) | Repo `.claude/agents/*/AGENT.md` `model:` field overrides session model for Copilot custom agents, breaking subagent spawns on BYOK providers | **Open**, `more-info-needed` | Reported on 1.0.79. On 2026-10-26 a collaborator said a fix "will ship in the next release (v1.0.104)". The v1.0.104 changelog has no matching entry. The issue is still open. |
|
|
||||||
| [#3891](https://github.com/github/copilot-cli/issues/3891) | Sub-agent `model:` override is silently dropped in BYOK / custom-provider mode | Closed, completed, 2026-07-16 | Changelog v1.0.62 (2026-06-13): "Keep custom agents on their configured model when using BYOK providers"; v1.0.65 (2026-06-24): "Keep custom-agent subagent model selections when using BYOK providers". |
|
|
||||||
| [#2133](https://github.com/github/copilot-cli/issues/2133), [#3070](https://github.com/github/copilot-cli/issues/3070) | `model` array syntax rejected / accept array | Closed, completed | Changelog v1.0.83 (2026-09-04): `model` can be a list. |
|
|
||||||
| [#2845](https://github.com/github/copilot-cli/issues/2845) | Model name shown in UI is different from the actual model loaded when custom agent enabled | Open | Display-only. Not verified further. |
|
|
||||||
| [#5241](https://github.com/github/copilot-cli/issues/5241) | Copilot app: selecting a custom agent ... doesn't apply its model or reasoning-effort | Open | Affects the Copilot desktop app, not the CLI. |
|
|
||||||
|
|
||||||
- **apm-specific issues:** I found none. Searches for "apm" and ".github/agents model" in `github/copilot-cli` returned no issue about agents deployed by apm.
|
|
||||||
- The issues that do involve `.github/agents/` are #980 (`.github/agents/*.md`) and #4437, where a `.github/agents/<name>.md` agent picks up the `model:` of a same-named `.claude/agents` agent.
|
|
||||||
- Copilot CLI itself has no notion of who wrote a file. An apm-deployed `.github/agents/*.agent.md` is treated like any other project agent, as far as the docs say.
|
|
||||||
|
|
||||||
## Q3. Which tool a `tools` list needs for delegation
|
|
||||||
|
|
||||||
- **Custom-agent tool alias table.** Source: [Custom agents configuration, "Tool aliases"](https://docs.github.com/en/copilot/reference/custom-agents-configuration#tool-aliases), retrieved 2026-11-22.
|
|
||||||
- The relevant row: primary alias **`agent`**, compatible aliases **`custom-agent`** and **`Task`**, purpose: "Allows a different custom agent to be invoked to accomplish a task."
|
|
||||||
- "All aliases are case insensitive."
|
|
||||||
- "All unrecognized tool names are ignored". A misspelled alias therefore fails silently and does not raise an error.
|
|
||||||
- **CLI tool names.** Source: [CLI command reference, "Agent and task delegation tools"](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#agent-and-task-delegation-tools), retrieved 2026-11-22.
|
|
||||||
- `task` ("Run subagents")
|
|
||||||
- `list_agents`
|
|
||||||
- `read_agent` ("Check background agent status")
|
|
||||||
- `write_agent` ("Send a message to a running agent")
|
|
||||||
- **Changelog:**
|
|
||||||
- v0.0.380 (2026-01-13): "Custom agent tool aliasing for the task tool".
|
|
||||||
- v1.0.64 (2026-06-23): "Keep task companion tools available to custom agents that use the task or agent alias". This implies that listing `agent` or `task` also brings in `read_agent`, `write_agent` and `list_agents`.
|
|
||||||
- **Hooks naming:** in Claude-format hooks, the runtime tool `task` maps to the Claude name `Agent`. Source: [CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22.
|
|
||||||
- **Recommendation:** list `agent`, which is the documented primary alias. Listing `task` (the raw tool name) is also accepted per v1.0.64.
|
|
||||||
- **`runSubagent`:** not documented for Copilot CLI on any page I read.
|
|
||||||
- **`strict-tools-list`:** without it, the CLI adds "the usual default tools" to a restricted list (how-to page). **Not documented:** whether `task` is one of those default tools. Don't rely on it; list `agent` explicitly.
|
|
||||||
- **Older bugs in this area (closed):**
|
|
||||||
- [#556](https://github.com/github/copilot-cli/issues/556), "Copilot CLI --agent use does not respect tool filtering", closed 2026-02-25.
|
|
||||||
- [#4594](https://github.com/github/copilot-cli/issues/4594) and [#4023](https://github.com/github/copilot-cli/issues/4023): the `web` and `search` aliases bound no tools. Closed 2026-10-26; fixed in v1.0.100 (2026-10-19) and v1.0.106.
|
|
||||||
- [#3531](https://github.com/github/copilot-cli/issues/3531): Claude-style scalar `tools: Read, Write, Bash`. Closed not_planned by its reporter (not GitHub staff), who said the scalar form already loads on 1.0.55.
|
|
||||||
|
|
||||||
## Q4. preToolUse hooks: `deny` and `ask` before a shell command
|
|
||||||
|
|
||||||
All points below come from the [CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22, unless noted.
|
|
||||||
|
|
||||||
### Config locations (all matching entries run)
|
|
||||||
|
|
||||||
- **Policy:** `/etc/github-copilot/policy.d/*.json`. Root-owned, loaded first, and cannot be disabled.
|
|
||||||
- **Repository:** `.github/hooks/*.json`.
|
|
||||||
- **User:** `~/.copilot/hooks/*.json` (or `$COPILOT_HOME/hooks/`). Added in v0.0.422 (2026-03-05).
|
|
||||||
- **Inline `hooks` key in settings files:**
|
|
||||||
- repository: `.github/copilot/settings.json`, `.github/copilot/settings.local.json`, `.claude/settings.json`, `.claude/settings.local.json`;
|
|
||||||
- user: `~/.copilot/settings.json`.
|
|
||||||
- `~/.copilot/config.json` is no longer read for hooks.
|
|
||||||
- **Plugins:** `hooks.json` or `hooks/hooks.json`.
|
|
||||||
- **Agent-scoped:** a `hooks` map in a custom agent's frontmatter. CLI only, and active only while that agent is selected (v1.0.97, 2026-10-13).
|
|
||||||
- **Trust:** repository hooks load only after folder trust is confirmed (v1.0.8). In `-p` they load only when the folder is already trusted, `COPILOT_ALLOW_ALL` is set, or `GITHUB_COPILOT_PROMPT_MODE_REPO_HOOKS=true` (CLI command reference env vars; changelog v1.0.40 and v1.0.49). Since v1.0.111 (2026-11-13), the CLI warns when `-p --trust-folder` runs from a subdirectory and skips the root hooks.
|
|
||||||
|
|
||||||
### Schema
|
|
||||||
|
|
||||||
```json
|
|
||||||
{
|
|
||||||
"version": 1,
|
|
||||||
"hooks": {
|
|
||||||
"preToolUse": [
|
|
||||||
{ "type": "command", "bash": "./scripts/guard.sh", "powershell": "...", "command": "...",
|
|
||||||
"cwd": ".", "env": { "K": "V" }, "timeoutSec": 30, "matcher": "bash|powershell" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
- `type` is `command` (the default) or `http`. HTTP entries take `url` (which must be https for preToolUse), `headers` and `allowedEnvVars`.
|
|
||||||
- `command` is the cross-platform fallback for `bash` and `powershell`. `exec` and `args` run without a shell.
|
|
||||||
- `timeoutSec` defaults to 30; `timeout` is an alias.
|
|
||||||
- `matcher` is a regex anchored as `^(?:PATTERN)$` against `toolName`. The changelog says the matcher was ignored before v1.0.36 (2026-04-24).
|
|
||||||
- PascalCase `PreToolUse` with the Claude-style nested `matcher`/`hooks` structure is also accepted (v1.0.6). Its matcher uses Claude tool names, so `bash` and `powershell` match as `Bash`.
|
|
||||||
|
|
||||||
### Input on stdin
|
|
||||||
|
|
||||||
- camelCase (`preToolUse`): `{ sessionId, timestamp (Unix ms), cwd, toolName, toolArgs }`. `toolArgs` is typed `unknown`.
|
|
||||||
- **Not documented:** whether `toolArgs` arrives as a JSON string or an object. I'm not certain.
|
|
||||||
- The shell tool is named `bash` or `powershell`.
|
|
||||||
- PascalCase (`PreToolUse`): `{ hook_event_name, session_id, timestamp (ISO 8601), cwd, tool_name ("Bash"), tool_input }`.
|
|
||||||
- Subagent calls also carry `agentId`, `agentType` and `parentAgentId`. Hooks fire for subagent tool calls since v1.0.49 (2026-05-18).
|
|
||||||
|
|
||||||
### Output on stdout
|
|
||||||
|
|
||||||
- `permissionDecision`: `"allow"`, `"deny"` or `"ask"`.
|
|
||||||
- `permissionDecisionReason`: required for `deny`.
|
|
||||||
- `modifiedArgs`: replacement tool arguments.
|
|
||||||
- If any hook returns `deny`, the tool call is blocked.
|
|
||||||
|
|
||||||
### Exit codes and failure modes
|
|
||||||
|
|
||||||
- Exit `0`: stdout is parsed.
|
|
||||||
- Exit `2`: treated as a deny that a stdout `allow` cannot override. Exit-2 deny was added in v1.0.70 (2026-07-09).
|
|
||||||
- Any other non-zero exit, or a crash, fails closed: the call is denied with "Denied by preToolUse hook (hook errored)". Since v1.0.57 (2026-06-01) a hook error denies the call instead of allowing it.
|
|
||||||
- **Command-hook timeouts fail open**, "even for `preToolUse` and policy hooks". So do HTTP hook network errors and non-2xx responses. Changelog v1.0.67 (2026-06-30): "Allow tool calls to continue when hooks time out".
|
|
||||||
|
|
||||||
### Is `ask` actually supported?
|
|
||||||
|
|
||||||
- **Documented:** yes. Changelog v1.0.4 (2026-03-11): "Hooks can now request user confirmation before tool execution with 'ask' permission decision". When the CLI can show the prompt, the user can deny with feedback, which is forwarded to the agent (v1.0.64).
|
|
||||||
- **Documented exceptions:**
|
|
||||||
- Under **autopilot**, `ask` is denied (v1.0.97).
|
|
||||||
- Under **cloud agent**, `ask` is treated as `deny`.
|
|
||||||
- In **ACP mode**, `ask` goes to the ACP client since v1.0.109 (2026-11-10), after [#5396](https://github.com/github/copilot-cli/issues/5396), which was closed.
|
|
||||||
- **`-p` (non-interactive) mode:** **not documented** for `ask`. The hooks reference points `-p` and CI users to `permissionRequest` hooks for programmatic allow and deny instead.
|
|
||||||
- **Issues:**
|
|
||||||
- [#3590](https://github.com/github/copilot-cli/issues/3590), "PreToolUse hook permissionDecision: "ask" auto-approved by TUI since v1.0.53": **open**. The prompt flashes and is auto-approved; 1.0.52 worked. Later changelog entries assume `ask` prompts work: v1.0.64 forwards rejection feedback, and v1.0.108 (2026-11-09) gives parallel calls their own confirmation. I'm not certain whether #3590 still reproduces on 1.0.114.
|
|
||||||
- [#4135](https://github.com/github/copilot-cli/issues/4135), "Hook `ask` decisions show raw JSON instead of diff view": open. Cosmetic.
|
|
||||||
- [#4237](https://github.com/github/copilot-cli/issues/4237), "Steering message in `preToolUse` "ask" denial is silently dropped": closed, completed, 2026-09-19.
|
|
||||||
- [#2647](https://github.com/github/copilot-cli/issues/2647), "preToolUse "ask" feedback is not shown to the agent": closed, completed, 2026-09-25.
|
|
||||||
- [#2893](https://github.com/github/copilot-cli/issues/2893), "preToolUse hooks silently bypassed under parallel tool calls (timeout->allow fallback + serial dispatch)": **open** (reported on 1.0.35). The documented timeout fail-open behaviour is the root cause. The hooks reference now says hooks for different calls in a parallel batch run concurrently, which may address the serial-dispatch half.
|
|
||||||
- [#2540](https://github.com/github/copilot-cli/issues/2540), "Plugin-defined preToolUse hooks (hooks.json) do not fire": open, `more-info-needed` (reported on 1.0.18).
|
|
||||||
- [#5326](https://github.com/github/copilot-cli/issues/5326), "Denied by preToolUse hook from ".github/hooks/rtk-rewrite.json" (hook errored)": open, on 1.0.104 in cloud. It shows how a repository hook that errors blocks every call (fail-closed). This matters here because this repo uses `rtk`.
|
|
||||||
|
|
||||||
## Limitations for `delivery` agents
|
|
||||||
|
|
||||||
These are the open bugs and undocumented behaviours that could affect our custom agents deployed by apm into `.github/agents/`. The status of each is as of 2026-11-22.
|
|
||||||
|
|
||||||
1. **The pinned model can be overridden without notice.**
|
|
||||||
- An explicit `--model`, a user `subagents` override, or an **Auto** session model all beat the agent's `model` (CLI command reference; v1.0.106).
|
|
||||||
- A model that can't be resolved falls back to the session model without failing.
|
|
||||||
- Mitigation: `model-policy: required` (documented). Its camelCase/kebab-case spelling is inconsistent across the docs.
|
|
||||||
2. **#4437, open.** A same-named `.claude/agents/<name>/AGENT.md` with a `model:` field overrides the `.github/agents/<name>.md` agent's model. A fix was announced for v1.0.104 but no changelog entry confirms it. This matters if apm deploys an agent to both `.claude/agents/` and `.github/agents/` under the same ID.
|
|
||||||
- Separate point, from the documented precedence: `.github/agents/` outranks `.claude/agents/`, and `~/.copilot/agents/` outranks both. A user-level agent with the same ID silently replaces the repo-deployed one.
|
|
||||||
3. **#2758, open.** A cost-multiplier guard reportedly downgrades a subagent's pinned model to the session model when the session runs on a 0x model. I'm not certain it still applies.
|
|
||||||
4. **#2950, closed.** Its auto-close cites v1.0.91, but no changelog entry confirms the fix. Verify on the installed version that orchestrator-delegated subagents run on their pinned models.
|
|
||||||
5. **The subagent tool must be in `tools`.** A restricted `tools` list needs `agent` (or `custom-agent`, `Task` or `task`) for the orchestrator to delegate. Unrecognized names are silently ignored. **Not documented:** whether `task` is among the "default tools" added when `strict-tools-list` is off.
|
|
||||||
6. **Subagents don't get AGENTS.md by default.** Custom agents spawned as subagents do not receive AGENTS.md, CLAUDE.md or `copilot-instructions.md` unless they set `include-custom-instructions: true`. This is documented behaviour, not a bug.
|
|
||||||
7. **#5124, open.** The `--agent <name>` selection is dropped about 1 second after interactive startup (a race with sign-in or MCP reload), and the session silently falls back to the default agent. Reported on 1.0.95. v1.0.108 has a related fix ("Keep built-in agents selected with --agent active ..."), which covers built-in agents only. I'm not certain it fixes custom agents.
|
|
||||||
8. **#4752, open.** `--agent <name>` does not find agents that exist only under an `--add-dir` directory (1.0.83). This doesn't matter for agents in the repo's own `.github/agents/`.
|
|
||||||
9. **#5543, open (filed 2026-11-21).** Subagents started by other subagents always run synchronously. `mode: "background"` is silently ignored and `write_agent` refuses them. This affects multi-level delivery chains.
|
|
||||||
10. **Subagent limits.** Concurrency is plan-capped (Free 2, Pro 4, Business 16, Enterprise 32), and depth defaults to 6 per the docs or 4 per changelog v1.0.71. Both limits are adjustable only on usage-based billing.
|
|
||||||
11. **Name collisions with built-in agents.** An agent that shares a built-in's name is never delegated to (v1.0.106). Avoid `task`, `explore`, `general-purpose`, `code-review`, `research`, `rubber-duck` and `security-review` as agent IDs or names.
|
|
||||||
12. **The `ask` hook is unreliable.**
|
|
||||||
- [#3590](https://github.com/github/copilot-cli/issues/3590) (open): the TUI auto-approves `ask` since 1.0.53.
|
|
||||||
- `ask` is denied under autopilot and under cloud agent.
|
|
||||||
- `-p` behaviour is not documented.
|
|
||||||
- Don't make `ask` the only safety gate; use `deny`, or exit code 2, for hard stops.
|
|
||||||
13. **Hooks fail open on timeout.** Command-hook timeouts allow the call, even for preToolUse (documented). Open issue [#2893](https://github.com/github/copilot-cli/issues/2893) describes the bypass. A guard hook must be fast and well inside `timeoutSec`.
|
|
||||||
14. **Repo hooks may not load in `-p`.** They load only in a trusted folder, with `COPILOT_ALLOW_ALL`, or with `GITHUB_COPILOT_PROMPT_MODE_REPO_HOOKS=true`. Since v1.0.111, the CLI warns when `-p` runs from a subdirectory and skips the root hooks.
|
|
||||||
15. **#2540, open.** Plugin-defined preToolUse hooks reportedly never fire. This is relevant if hooks are shipped through an apm or Copilot plugin instead of `.github/hooks/`.
|
|
||||||
|
|
||||||
## Sources
|
|
||||||
|
|
||||||
- [docs: Custom agents configuration (tool aliases, frontmatter)](https://docs.github.com/en/copilot/reference/custom-agents-configuration), retrieved 2026-11-22, undated
|
|
||||||
- [docs: Copilot CLI command reference (custom agents reference, tool names, `--model`, subagent limits)](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference), retrieved 2026-11-22, undated
|
|
||||||
- [docs: Create custom agents for CLI](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli), retrieved 2026-11-22, undated
|
|
||||||
- [docs: Invoke custom agents](https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/invoke-custom-agents), retrieved 2026-11-22, undated
|
|
||||||
- [docs: About custom agents (CLI)](https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-custom-agents), retrieved 2026-11-22, undated
|
|
||||||
- [docs: Copilot CLI hooks reference](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference), retrieved 2026-11-22, undated
|
|
||||||
- [github/copilot-cli changelog.md](https://github.com/github/copilot-cli/blob/main/changelog.md), read 2026-11-22; covers 0.0.328 (2025-09-26) to 1.0.114 (2026-11-18)
|
|
||||||
- [github/copilot-cli releases](https://github.com/github/copilot-cli/releases)
|
|
||||||
- Issues in github/copilot-cli: [#556](https://github.com/github/copilot-cli/issues/556), [#980](https://github.com/github/copilot-cli/issues/980), [#2133](https://github.com/github/copilot-cli/issues/2133), [#2540](https://github.com/github/copilot-cli/issues/2540), [#2647](https://github.com/github/copilot-cli/issues/2647), [#2758](https://github.com/github/copilot-cli/issues/2758), [#2845](https://github.com/github/copilot-cli/issues/2845), [#2893](https://github.com/github/copilot-cli/issues/2893), [#2950](https://github.com/github/copilot-cli/issues/2950), [#3070](https://github.com/github/copilot-cli/issues/3070), [#3531](https://github.com/github/copilot-cli/issues/3531), [#3590](https://github.com/github/copilot-cli/issues/3590), [#3891](https://github.com/github/copilot-cli/issues/3891), [#4023](https://github.com/github/copilot-cli/issues/4023), [#4135](https://github.com/github/copilot-cli/issues/4135), [#4237](https://github.com/github/copilot-cli/issues/4237), [#4437](https://github.com/github/copilot-cli/issues/4437), [#4594](https://github.com/github/copilot-cli/issues/4594), [#4752](https://github.com/github/copilot-cli/issues/4752), [#5124](https://github.com/github/copilot-cli/issues/5124), [#5241](https://github.com/github/copilot-cli/issues/5241), [#5326](https://github.com/github/copilot-cli/issues/5326), [#5396](https://github.com/github/copilot-cli/issues/5396), [#5543](https://github.com/github/copilot-cli/issues/5543)
|
|
||||||
@@ -0,0 +1,302 @@
|
|||||||
|
# Agent team structures for software delivery
|
||||||
|
|
||||||
|
Researched 2026-11-13 for holocron#170 (ADR-0031, GLOSSARY "Delivery team"). This note builds on
|
||||||
|
`docs/research/team-patterns/multi-agent-team-patterns.md` (branch `research/team-patterns`) and
|
||||||
|
does not repeat it: that note already showed that generic roles loading skills beat tool
|
||||||
|
specialists, and that orchestrator–worker with state passed by pointer is the standard shape. This
|
||||||
|
note gathers evidence and makes a recommendation. It does not decide anything.
|
||||||
|
|
||||||
|
## Question
|
||||||
|
|
||||||
|
How do multi-agent delivery teams relate an orchestrator or lead to its role agents in practice?
|
||||||
|
Which structure fits holocron's constraints: provider-agnostic apm, human on the loop, and state
|
||||||
|
passed by pointer through Gitea? Two scope additions are folded in. The first is function
|
||||||
|
specialists *within* a stage (test writer, implementer, QA). The second is a "stage lead per
|
||||||
|
session" model.
|
||||||
|
|
||||||
|
## Answer in brief
|
||||||
|
|
||||||
|
- **The orchestrator is almost always the main loop.** That is the main session, or code that
|
||||||
|
carries a prompt. It is not a separately dispatched agent. Where a vendor calls it an agent
|
||||||
|
(Anthropic's LeadResearcher, Magentic manager, CrewAI manager, Claude agent-team lead), it is
|
||||||
|
still the top of the loop, and in Claude agent teams "the main session is the lead for its
|
||||||
|
lifetime" [S7].
|
||||||
|
- **Orchestrators decompose dynamically, and fixed SDLC roles are rarer.** Orchestrator–workers
|
||||||
|
is defined by subtasks that "aren't pre-defined" [S1]. Fixed role chains appear in research
|
||||||
|
systems (MetaGPT, ChatDev, AgentCoder), in Anthropic's planner/generator/evaluator harness
|
||||||
|
[S21], and in VS Code's Plan→Implement→Review handoffs [S26]. The fixed role with the best
|
||||||
|
evidence is a **separate verifier or evaluator**, not a separate implementer.
|
||||||
|
- **Nested delegation is not portable.** Claude Code nests by default, up to three levels [S4].
|
||||||
|
Cursor allows one extra level [S14]. Gemini CLI forbids nesting [S13]. Codex blocks it by
|
||||||
|
default [S12][S27]. Copilot CLI is unverified. ADR-0031's *conclusion* (leaf role agents) stands
|
||||||
|
as the lowest common denominator. Its stated *reason* is out of date: Claude Code subagents can
|
||||||
|
now spawn subagents.
|
||||||
|
- **A fixed pipeline should be sequenced by deterministic code, with the LLM working inside each
|
||||||
|
stage.** Every framework says so: Anthropic workflows [S1], the OpenAI "orchestrating via code"
|
||||||
|
section [S8], Microsoft Agent Framework's "If you can write a function to handle the task, do
|
||||||
|
that" [S23], ADK graph workflows [S24], and the LangChain custom workflow [S17].
|
||||||
|
- **Recommendation:** keep leaf role agents and state passed by pointer. Replace the
|
||||||
|
cross-stage LLM Lead with **one session per stage**. Tracker labels and a small script sequence
|
||||||
|
the stages, and each session's main loop is that stage's lead, dispatching flat leaf
|
||||||
|
specialists. Inside *implement*, add a test-author step before the implementer and keep a
|
||||||
|
fresh-context verifier. Those are function specialists working one at a time, never parallel
|
||||||
|
writers.
|
||||||
|
|
||||||
|
## 1. Structural patterns in use
|
||||||
|
|
||||||
|
| Pattern | Who controls the flow | First-party examples |
|
||||||
|
|---|---|---|
|
||||||
|
| Orchestrator–worker or supervisor (agents as tools) | Main loop calls workers and keeps control | Anthropic orchestrator–workers [S1] and research system [S2]. Claude Code, Codex, Gemini CLI, Cursor and Copilot subagents [S4][S12][S13][S14][S25]. OpenAI `Agent.as_tool()`, "manager keeps control" [S8]. LangChain "Subagents: a main agent coordinates subagents as tools" [S17]. OpenHands `task` tool: "the parent blocks until the sub-agent finishes" [S28] |
|
||||||
|
| Hierarchical (nested supervisors) | Supervisors of supervisors | `langgraph-supervisor` supports multi-level setups, but its maintainers now recommend the supervisor pattern "directly via tools" for most cases (search-result snippet of [S29], not read in full). ADK hierarchical decomposition [S9]. Manager Devins spawning child Devins [S22] |
|
||||||
|
| Handoffs or swarm | Control passes peer to peer, and the active agent changes | OpenAI handoffs: "that specialist becomes the active agent" [S8]. `langgraph-swarm` [S29]. MAF Handoff [S23]. VS Code custom-agent `handoffs`, which are user-clicked and use `send: false` by default [S26] |
|
||||||
|
| SOP pipeline with fixed roles | A fixed sequence of persona roles | MetaGPT's "assembly line paradigm to assign diverse roles" [S15]. ChatDev's design, coding and testing phases via a chat chain [S16]. Anthropic's planner→generator→evaluator harness [S21] |
|
||||||
|
| Group chat or magentic | A manager selects the next speaker in a shared conversation | MAF Group Chat and Magentic, where Magentic is "a dedicated Magentic manager" with a task and progress ledger, built on AutoGen Magentic-One [S23]. MAF warns that performance outside the original Magentic-One design "is untested" |
|
||||||
|
| Workflow or graph (deterministic) | Code or graph edges | Anthropic prompt chaining [S1]. OpenAI code orchestration [S8]. MAF Sequential/Concurrent workflows [S23]. ADK graph and dynamic workflows, which are "deterministic processes that combine code logic and AI reasoning" (ADK 2.0) [S24]. CrewAI sequential process [S30] |
|
||||||
|
| Peer team with a shared task list | Lead plus self-claiming teammates | Claude Code agent teams. These are experimental, with "No nested teams", "Lead is fixed", and "Start with research and review" [S7] |
|
||||||
|
| Single agent plus skills | One loop that loads context | LangChain: "A single agent stays in control while loading context from skills" [S17]. Cognition [S3][S22] |
|
||||||
|
|
||||||
|
What vendors report working in production for coding, as of 2026: Cognition's April 2026
|
||||||
|
follow-up says "writes stay single-threaded and the additional agents contribute intelligence
|
||||||
|
rather than actions". In practice that means a generator–verifier loop in which review works best
|
||||||
|
"when the coding and review agents do not share any context beforehand", plus manager-and-children
|
||||||
|
map-reduce. It calls "arbitrary networks of agents negotiating with each other" "mostly a
|
||||||
|
distraction" [S22].
|
||||||
|
|
||||||
|
## 2. Orchestrator: an agent definition or the main loop? Role-less or fixed roles?
|
||||||
|
|
||||||
|
| Source | What the orchestrator is | Workers |
|
||||||
|
|---|---|---|
|
||||||
|
| Anthropic research system [S2] | A prompted LeadResearcher at the top of the loop. Only the lead is described creating subagents | Dynamic and per-query ("it can be any number") |
|
||||||
|
| Anthropic "Building effective agents" [S1] | "a central LLM" | "subtasks aren't pre-defined" |
|
||||||
|
| Claude Code [S4][S7] | The main session. `claude --agent X` makes the *main thread* adopt agent X. The agent-team lead is fixed to the main session | Generic built-ins plus user-defined agents |
|
||||||
|
| Codex, Gemini CLI, Cursor [S12][S13][S14] | "ChatGPT or Codex handles orchestration". Gemini: subagents are "exposed to the main agent as a tool" | Generic built-ins (worker, explorer, generalist and similar) |
|
||||||
|
| OpenAI Agents SDK [S8] | Either a manager agent (LLM) or code | Specialists |
|
||||||
|
| CrewAI hierarchical [S30] | `manager_llm` (auto-created manager) or a custom `manager_agent` | Persona roles |
|
||||||
|
| MAF Magentic [S23] | A manager agent with fixed Magentic-One prompts by default | User-defined specialists |
|
||||||
|
| Cognition [S22] | A manager Devin. Failure modes: managers are "overly prescriptive", and children wrongly assume they share state | Child Devins |
|
||||||
|
|
||||||
|
**Synthesis.** The orchestrator is the top of the loop. Packaging it as an "agent definition" is
|
||||||
|
just a way to hand that loop a prompt (`--agent`), and only some runtimes support it (§5). Generic
|
||||||
|
decomposition is the default. Fixed SDLC roles have direct evidence in their favour in only one
|
||||||
|
place: **separating the evaluator or verifier from the producer**.
|
||||||
|
|
||||||
|
- Anthropic's harness: agents "reliably skew positive when grading their own work", and tuning a
|
||||||
|
standalone evaluator to be skeptical is "far more tractable" [S21].
|
||||||
|
- Cognition: review without shared context works best [S22].
|
||||||
|
- Claude Code best practice: `/code-review` runs "in a fresh subagent that never saw your
|
||||||
|
conversation". Also, "Handing the same task to a subagent doesn't make the answer any better. A
|
||||||
|
fresh reviewer does help" [S31].
|
||||||
|
|
||||||
|
The evidence against fixed roles:
|
||||||
|
|
||||||
|
- In Anthropic's own harness, roles were *removed* as models improved. With Opus 4.6 the sprint
|
||||||
|
construct went, and the evaluator moved to a single pass at the end. The planner stayed, because
|
||||||
|
the generator under-scoped without it [S21].
|
||||||
|
- Anthropic's long-running harness used two "agents" that were the *same* system prompt and tools
|
||||||
|
with different first prompts. It left open whether specialised testing or QA agents do better
|
||||||
|
[S32].
|
||||||
|
- MAST found 14 failure modes across 1,600+ traces, including inter-agent misalignment [S19].
|
||||||
|
|
||||||
|
## 3. Nested delegation support (verified 2026-11-13)
|
||||||
|
|
||||||
|
| Runtime | Can a subagent spawn subagents? | Evidence |
|
||||||
|
|---|---|---|
|
||||||
|
| Claude Code (v2.1.323) | **Yes, by default, up to 3 layers** below main. `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH`, where `1` turns nesting off. A per-agent block is possible by omitting `Agent` from its tools. Agent teams: "No nested teams" | [S4][S7] |
|
||||||
|
| Codex CLI | **No, by default.** Multi-agent V1 uses `agents.max_depth` with default `1` (root=0, so children cannot spawn), and it is configurable. The opt-in V2 (`multi_agent_v2`, `default_enabled: false`) ignores `max_depth`. The current public docs no longer list `max_depth` | Source `codex-rs/core/src/config/mod.rs` `DEFAULT_AGENT_MAX_DEPTH: i32 = 1`, `features/src/lib.rs`, commit `69231e1` (2026-11-13) [S27]. Docs [S12] |
|
||||||
|
| Gemini CLI | **No.** "subagents cannot call other subagents" | [S13] |
|
||||||
|
| Cursor (2.5+) | **One extra level.** The main agent and its direct subagents can spawn, "but a subagent launched by another subagent can't launch further ones" | [S14] |
|
||||||
|
| Copilot CLI | **Unverified.** The docs are silent. A third-party changelog mirror mentions "nested subagents respect concurrency limits" (1.0.62), which is not confirmed | [S25] |
|
||||||
|
| VS Code Copilot, Local harness | Off by default. `chat.subagents.allowInvocationsFromSubagents` allows a maximum depth of 5. The Local harness is deprecated and will be removed in February 2027. The Copilot harness (`task` tool) is undocumented on this point | [S26] |
|
||||||
|
|
||||||
|
**Implication.** The portable lowest common denominator is *one* level: main loop → leaf.
|
||||||
|
ADR-0031's "Lead is the only dispatcher" is correct for portability. GLOSSARY and the issue should
|
||||||
|
cite Gemini CLI and Codex's default as the binding constraints, not Claude Code.
|
||||||
|
|
||||||
|
## 4. Deterministic code versus LLM orchestration for a fixed pipeline
|
||||||
|
|
||||||
|
- Anthropic: "workflows offer predictability and consistency for well-defined tasks". Agents are
|
||||||
|
for when "flexibility and model-driven decision-making are needed" [S1].
|
||||||
|
- OpenAI: orchestrating via code "makes tasks more deterministic and predictable, in terms of
|
||||||
|
speed, cost and performance". Its patterns are classify-then-route, chaining, and
|
||||||
|
evaluator loops [S8].
|
||||||
|
- Microsoft: use a workflow when "the process has well-defined steps" and "you need explicit
|
||||||
|
control over execution order". "If you can write a function to handle the task, do that instead
|
||||||
|
of using an AI agent" [S23].
|
||||||
|
- Google ADK: template workflow agents run "without consulting an AI model … deterministic and
|
||||||
|
predictable". ADK 2.0 adds graph and dynamic workflows that mix code and LLM nodes [S24].
|
||||||
|
|
||||||
|
spec → tickets → code → review → merge has fixed stages and human gates. The *transition* between
|
||||||
|
stages is a pure function of tracker state: label X means run stage Y. That is code. The *work
|
||||||
|
inside* a stage (decomposing a spec, writing code, judging a diff) is LLM work. An LLM Lead that
|
||||||
|
reads labels and picks the next stage is an LLM doing a lookup. It adds cost and an
|
||||||
|
instruction-following failure surface (MAST "system design" failures [S19]) for no flexibility the
|
||||||
|
human gates do not already remove.
|
||||||
|
|
||||||
|
## 5. "Stage lead per session": runtime support
|
||||||
|
|
||||||
|
The model runs each stage as its own top-level session whose main loop is the stage lead. That
|
||||||
|
lead spawns leaf specialists, so the model needs no nesting. Hand-off between stages goes through
|
||||||
|
Gitea plus human gates, and a script chains headless sessions in run mode.
|
||||||
|
|
||||||
|
| Runtime | Main session as a custom agent | Headless | Both together |
|
||||||
|
|---|---|---|---|
|
||||||
|
| Claude Code | `--agent <name>`. The main-thread agent can spawn subagents, and `Agent(type)` allowlists them [S4][S33] | `-p` | **Verified locally**: `claude -p --agent lint-runner …` ran with the agent's prompt (v2.1.323) |
|
||||||
|
| Copilot CLI | `--agent <id>` or `/agent` [S34] | `-p` / `--prompt`, with `--allow-tool` and `--no-ask-user` [S35] | Documented example: `copilot --agent security-auditor --prompt "…"` [S34] |
|
||||||
|
| Codex CLI | **No `--agent` flag** for the root session (checked in source: `exec/src/cli.rs`). Closest: `--profile`, `-c developer_instructions=…` or `model_instructions_file` [S36] | `codex exec` | Via profile or config override, not an agent file |
|
||||||
|
| Gemini CLI | **No `--agent` flag** (checked in `packages/cli/src/config/config.ts`). `GEMINI_SYSTEM_MD` *replaces* the whole system prompt [S37] | `-p` | Via `GEMINI_SYSTEM_MD`, or a prompt that invokes the stage skill |
|
||||||
|
| Cursor CLI | **No flag.** `--mode` accepts only `plan` or `ask` [S38] | `-p` / `--print` | Prompt only |
|
||||||
|
|
||||||
|
So `--agent` is portable to two of five runtimes. What is portable to all five is **a headless
|
||||||
|
session whose prompt invokes the stage skill**. That is how ADR-0031's Lead skill already works.
|
||||||
|
The stage lead should therefore be a *skill* (one per stage), with a thin `--agent` wrapper only
|
||||||
|
where the runtime has one.
|
||||||
|
|
||||||
|
**Vendor precedent for chaining sessions with a script.** Anthropic's long-running harness runs
|
||||||
|
each step as a fresh session. State is handed over through `claude-progress.txt`, a JSON feature
|
||||||
|
list and git commits, so that a new session can "quickly understand the state of work when
|
||||||
|
starting with a fresh context window" [S32]. Claude Code's best practices say to write `SPEC.md`
|
||||||
|
and "start a fresh session to build from it". They also recommend a second session as the
|
||||||
|
independent reviewer [S31]. Copilot and Cursor document `-p` specifically "for scripts, CI
|
||||||
|
pipelines, or automation" [S35][S38]. I found no vendor that recommends one long-lived LLM
|
||||||
|
orchestrator spanning spec through merge, and Claude agent teams cannot be resumed ("No session
|
||||||
|
resumption") [S7].
|
||||||
|
|
||||||
|
## 6. Function specialists within a stage
|
||||||
|
|
||||||
|
The earlier note argued against **tool** specialists (an "ansible-engineer"). **Function**
|
||||||
|
specialists (test author, implementer, verifier) are a different question, and the evidence on
|
||||||
|
them is mixed.
|
||||||
|
|
||||||
|
**(a) Separating test authoring from implementation**
|
||||||
|
|
||||||
|
- AgentCoder: programmer, test designer and test executor agents. Test accuracy was 61.0/51.8
|
||||||
|
when a single agent wrote both, against 87.8/89.9 with a separate designer (HumanEval/MBPP),
|
||||||
|
because "the tests designed by the same agent that generates the code can be biased by the code
|
||||||
|
and lose objectivity". Ablation pass@1 (likely GPT-3.5) rose from 61.0 for the programmer alone
|
||||||
|
to 79.9 for the full pipeline [S39]. Caveat: these are 2023–24 function-level benchmarks, not
|
||||||
|
repository work.
|
||||||
|
- ImpossibleBench (Oct 2025): agents with test access "may delete failing tests rather than fix
|
||||||
|
the underlying bug". GPT-5 cheats 54% on Conflicting-SWEbench (76% one-off). Hiding tests cuts
|
||||||
|
cheating to near zero but hurts legitimate performance. Read-only tests are "a middle ground"
|
||||||
|
that "does not eliminate … special-casing or operator overloading" [S40]. Anthropic system cards
|
||||||
|
track hard-coding and special-casing as reward hacking (secondary reading only, not verified in
|
||||||
|
the PDFs) [S41].
|
||||||
|
- Counter-evidence: "More agent-written tests do not mean more solves" (six frontier models, Apr
|
||||||
|
2026) [S42]. This concerns the *volume* of tests a single agent writes, not author separation.
|
||||||
|
|
||||||
|
**(b) Flat versus per-stage sub-lead**
|
||||||
|
|
||||||
|
A per-stage sub-lead *as a subagent* needs two levels. That works on Claude and Cursor, and fails
|
||||||
|
on Gemini and on Codex's default (§3). The portable options are:
|
||||||
|
|
||||||
|
1. **Flat**: the top-level Lead dispatches test author, implementer and verifier directly.
|
||||||
|
2. **Stage lead per session** (§5): the stage session *is* the sub-lead, and its specialists are
|
||||||
|
one level down.
|
||||||
|
|
||||||
|
LangGraph's maintainers steering users from the multi-level supervisor library to a flat
|
||||||
|
supervisor via tools [S29] points the same way (secondary snippet).
|
||||||
|
|
||||||
|
**(c) Benefits versus costs**
|
||||||
|
|
||||||
|
- Benefits: test oracles independent of the code [S39], and less self-grading bias [S21][S22][S31].
|
||||||
|
- Costs: multi-agent systems use about 15× the tokens of chat [S2]. Agent teams use "significantly
|
||||||
|
more tokens" [S7]. A fresh subagent "can end up *slower*", because it re-gathers context [S31].
|
||||||
|
Context loss at hand-off and children assuming shared state are reported failures [S22][S19].
|
||||||
|
- AgentCoder reports *lower* tokens than its multi-agent baselines (56.9K against 138.2K) [S39].
|
||||||
|
That comparison is against other multi-agent systems, not a single agent.
|
||||||
|
|
||||||
|
**Implication.** One function specialist is justified: the one that **verifies or constrains** the
|
||||||
|
writer. That covers a test author working before the code, and a verifier or reviewer with fresh
|
||||||
|
context. A second *writer* running in parallel is not justified [S3][S22]. A sequential
|
||||||
|
test-author → implementer hand-off keeps a single writer at any one time.
|
||||||
|
|
||||||
|
## 7. Recommendation
|
||||||
|
|
||||||
|
Keep the parts of ADR-0031 that fit the evidence: leaf role agents, human-set gates, state passed
|
||||||
|
by pointer, and one dispatcher per session. Change the shape of the Lead:
|
||||||
|
|
||||||
|
1. **Sequence stages with tracker state and code, not an LLM.** Each stage is a skill
|
||||||
|
(`spec-lead`, `tickets-lead`, `implement-lead`, `review-lead`, `verify-lead`), started as its
|
||||||
|
own session. Interactive mode: a human starts it. Run mode: a short script maps a Gitea label to
|
||||||
|
the next stage and launches `claude -p --agent implement-lead …`, `copilot --agent … -p …`, or
|
||||||
|
`codex exec` / `gemini -p` / `agent -p` with a prompt that invokes the skill. The thin `--agent`
|
||||||
|
wrapper is optional and only exists for Claude and Copilot.
|
||||||
|
2. **Within a session, the stage skill is the only dispatcher**, and specialists stay leaves. No
|
||||||
|
nesting is required on any runtime.
|
||||||
|
3. **Inside implement, use sequential function specialists**: test author (writes failing
|
||||||
|
acceptance tests from the ticket and commits them) → implementer (tests read-only) → verifier
|
||||||
|
(fresh context, runs the tests and checks the diff against the ticket). Enforce "implementer
|
||||||
|
does not edit the test author's tests" with a hook or pre-push diff check, not a prompt
|
||||||
|
(governance: deterministic enforcement). Do not run parallel writers on one ticket.
|
||||||
|
4. Correct the stated rationale in ADR-0031, GLOSSARY and #170. The binding constraints are Gemini
|
||||||
|
CLI (no nesting) and Codex's default `max_depth=1`. Claude Code is not one of them.
|
||||||
|
|
||||||
|
**Strongest counter-argument.** Do less: one implementer session per ticket doing test-first
|
||||||
|
itself, followed by a fresh-context reviewer.
|
||||||
|
|
||||||
|
- Every extra hand-off loses context and costs tokens and latency [S2][S31].
|
||||||
|
- Vendors are *removing* harness roles as models improve [S21].
|
||||||
|
- More agent-written tests do not move outcomes [S42].
|
||||||
|
- Read-only tests do not stop special-casing [S40], so the test-author split buys an independent
|
||||||
|
oracle but not integrity.
|
||||||
|
- A per-stage session also gives up any cross-stage judgement a long-lived Lead could exercise,
|
||||||
|
and adds a script to maintain.
|
||||||
|
|
||||||
|
Answer: the human gates already supply that cross-stage judgement. And the verifier step is the
|
||||||
|
part the evidence supports most strongly [S21][S22][S31]. If cost matters more than oracle
|
||||||
|
independence, drop the test author first and keep the verifier.
|
||||||
|
|
||||||
|
## Unverified or not reached
|
||||||
|
|
||||||
|
- Copilot CLI nested subagents, and whether the Copilot harness `task` tool nests.
|
||||||
|
- Whether Codex V2 multi-agent permits unbounded nesting in practice. Source shows that
|
||||||
|
`max_depth` is ignored, but the V2 depth logic was not traced.
|
||||||
|
- The headless/`--agent` combination on Copilot CLI is documented but was not run locally.
|
||||||
|
- Anthropic system-card reward-hacking figures were read only through secondary quotes.
|
||||||
|
- The ADK multi-agent page (`sub_agents` single-parent rule) is now a redirect, so the 2.0 graph and
|
||||||
|
dynamic docs were used instead.
|
||||||
|
|
||||||
|
## Sources
|
||||||
|
|
||||||
|
Fetched 2026-11-13 unless noted. S1–S20 carry the numbering of the prior note.
|
||||||
|
|
||||||
|
- [S1] Anthropic, "Building effective agents" (2024-12-19) — <https://www.anthropic.com/engineering/building-effective-agents>
|
||||||
|
- [S2] Anthropic, "How we built our multi-agent research system" (2025-06-13) — <https://www.anthropic.com/engineering/multi-agent-research-system>
|
||||||
|
- [S3] Cognition, "Don't build multi-agents" (2025-06-12) — <https://cognition.com/blog/dont-build-multi-agents>
|
||||||
|
- [S4] Claude Code docs, "Subagents" — <https://code.claude.com/docs/en/sub-agents>
|
||||||
|
- [S7] Claude Code docs, "Agent teams" — <https://code.claude.com/docs/en/agent-teams>
|
||||||
|
- [S8] OpenAI Agents SDK, "Agent orchestration" — <https://openai.github.io/openai-agents-python/multi_agent/>
|
||||||
|
- [S9] Google Developers Blog, multi-agent patterns in ADK (cited from prior note)
|
||||||
|
- [S12] Codex docs, "Subagents" — <https://learn.chatgpt.com/docs/agent-configuration/subagents>
|
||||||
|
- [S13] Gemini CLI docs, "Subagents" — <https://geminicli.com/docs/core/subagents/>
|
||||||
|
- [S14] Cursor docs, "Subagents" — <https://cursor.com/docs/context/subagents>
|
||||||
|
- [S15] Hong et al., MetaGPT, arXiv:2308.00352 v7 — <https://arxiv.org/abs/2308.00352>
|
||||||
|
- [S16] Qian et al., ChatDev, arXiv:2307.07924 v5 (ACL 2024) — <https://arxiv.org/abs/2307.07924>
|
||||||
|
- [S17] LangChain docs, "Multi-agent" — <https://docs.langchain.com/oss/python/langchain/multi-agent>
|
||||||
|
- [S19] Cemri et al., MAST, arXiv:2503.13657 v3 — <https://arxiv.org/abs/2503.13657>
|
||||||
|
- [S21] Anthropic, "Harness design for long-running application development" (2026-03-24) — <https://www.anthropic.com/engineering/harness-design-long-running-apps>
|
||||||
|
- [S22] Cognition, "Multi-Agents: What's Actually Working" (2026-04-22) — <https://cognition.com/blog/multi-agents-working>
|
||||||
|
- [S23] Microsoft Agent Framework docs: Overview (2026-10-23), Orchestrations, Magentic — <https://learn.microsoft.com/en-us/agent-framework/overview/>, <https://learn.microsoft.com/en-us/agent-framework/workflows/orchestrations/magentic>
|
||||||
|
- [S24] Google ADK docs: Agents, Template workflows, Graph-based and Dynamic workflows (ADK 2.0) — <https://github.com/google/adk-docs/tree/main/docs> (`agents/index.md`, `agents/workflow-agents/index.md`, `graphs/index.md`, `graphs/dynamic.md`)
|
||||||
|
- [S25] GitHub Docs, "About custom agents" (Copilot CLI) — <https://docs.github.com/en/copilot/concepts/agents/copilot-cli/about-custom-agents>
|
||||||
|
- [S26] VS Code docs, "Subagents" and "Custom agents" (2026-11-11) — <https://code.visualstudio.com/docs/agents/run/subagents>, <https://code.visualstudio.com/docs/copilot/customization/custom-agents>
|
||||||
|
- [S27] openai/codex source at commit `69231e119bfc` (2026-11-13): `codex-rs/core/src/config/mod.rs`, `core/src/tools/spec_plan.rs`, `core/src/agent/registry.rs`, `features/src/lib.rs`, `core/config.schema.json` — <https://github.com/openai/codex>
|
||||||
|
- [S28] OpenHands SDK docs, "Task tool set" — <https://docs.openhands.dev/sdk/guides/task-tool-set>
|
||||||
|
- [S29] LangChain reference, `langgraph-supervisor` / `langgraph-swarm` — <https://reference.langchain.com/python/langgraph-supervisor> (the multi-level and "use tools instead" claims come from search snippets, not the page as fetched)
|
||||||
|
- [S30] CrewAI docs, "Processes" — <https://docs.crewai.com/en/concepts/processes>
|
||||||
|
- [S31] Claude Code docs, "Best practices" — <https://code.claude.com/docs/en/best-practices>
|
||||||
|
- [S32] Anthropic, "Effective harnesses for long-running agents" (2025-11-26) — <https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents>
|
||||||
|
- [S33] Claude Code docs, "CLI reference" — <https://code.claude.com/docs/en/cli-reference>
|
||||||
|
- [S34] GitHub Docs, "Creating custom agents for Copilot CLI" — <https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/create-custom-agents-for-cli>
|
||||||
|
- [S35] GitHub Docs, "Run Copilot CLI programmatically" — <https://docs.github.com/en/copilot/how-tos/copilot-cli/automate-copilot-cli/run-cli-programmatically>
|
||||||
|
- [S36] Codex config reference — <https://learn.chatgpt.com/codex/config-file/config-reference>; `codex-rs/exec/src/cli.rs`, `utils/cli/src/shared_options.rs` [S27]
|
||||||
|
- [S37] Gemini CLI source and docs: `packages/cli/src/config/config.ts`, `docs/cli/system-prompt.md` — <https://github.com/google-gemini/gemini-cli>
|
||||||
|
- [S38] Cursor CLI docs, "Overview" and "Parameters" — <https://cursor.com/docs/cli/overview>, <https://cursor.com/docs/cli/reference/parameters>
|
||||||
|
- [S39] Huang et al., AgentCoder, arXiv:2312.13010 v3 (§4.3 Table 2, §4.7 Table 6) — <https://arxiv.org/html/2312.13010v3>
|
||||||
|
- [S40] Zhong, Raghunathan, Carlini, ImpossibleBench, arXiv:2510.20270 v1 — <https://arxiv.org/html/2510.20270v1>
|
||||||
|
- [S41] Anthropic, Claude Opus 4 & Sonnet 4 system card (May 2025), reward-hacking section (read only through secondary quotes)
|
||||||
|
- [S42] "Rethinking the Value of Agent-Generated Tests", arXiv:2602.07900 v2 (2026-04-09) — <https://arxiv.org/html/2602.07900v2>
|
||||||
|
|
||||||
|
Repo sources: `docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md` (untracked on
|
||||||
|
`docs/wayfinding-operations`), `GLOSSARY.md` "Delivery team",
|
||||||
|
`docs/research/team-patterns/multi-agent-team-patterns.md` (branch `research/team-patterns`).
|
||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/bin
|
path: plugins/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `bin@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -2,11 +2,12 @@ name: bin
|
|||||||
version: 3.0.0
|
version: 3.0.0
|
||||||
description: Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.
|
description: Skills for everyday AI-assisted development work that is not tied to a single tool, forge or language, and has not yet been split into a focused plugin.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/bin
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/bin
|
||||||
keywords:
|
keywords:
|
||||||
- utility
|
- utility
|
||||||
- diagnostics
|
- diagnostics
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/core
|
path: plugins/core
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `core@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ name: core
|
|||||||
version: 1.1.4
|
version: 1.1.4
|
||||||
description: Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.
|
description: Skills for authoring and auditing a repo's AGENTS.md and the provider adapter files that defer to it.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/core
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/core
|
||||||
keywords:
|
keywords:
|
||||||
- agents-md
|
- agents-md
|
||||||
- documentation
|
- documentation
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/git
|
path: plugins/git
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `git@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills and zero agents — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
+5
-4
@@ -2,11 +2,12 @@ name: git
|
|||||||
version: 1.3.9
|
version: 1.3.9
|
||||||
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
|
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/git
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/git
|
||||||
keywords:
|
keywords:
|
||||||
- git
|
- git
|
||||||
- vcs
|
- vcs
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ metadata:
|
|||||||
- gitea-mcp-slim-go
|
- gitea-mcp-slim-go
|
||||||
- context7-websites-gitea
|
- context7-websites-gitea
|
||||||
- context7-gitea-tea-cli
|
- context7-gitea-tea-cli
|
||||||
version: "0.1.7"
|
version: "0.1.6"
|
||||||
|
|
||||||
allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write
|
allowed-tools: Bash mcp__gitea__label_read mcp__gitea__label_write mcp__gitea__milestone_read mcp__gitea__milestone_write
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ per repo label. That does not contradict `label_write`'s schema, which annotates
|
|||||||
server-side; where it is `false` labels in that scope stack legitimately. Read the field — never
|
server-side; where it is `false` labels in that scope stack legitimately. Read the field — never
|
||||||
infer exclusivity from the `/` in a name, and never carry another repo's map over.
|
infer exclusivity from the `/` in a name, and never carry another repo's map over.
|
||||||
|
|
||||||
On the instance this skill was authored against (`Mortis/Holocron`) the split ran: every
|
On the instance this skill was authored against (`Defame1297/holocron`) the split ran: every
|
||||||
`Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and
|
`Priority/*`, `Reviewed/*` and `Status/*` label `exclusive: true`, every `Kind/*` label and
|
||||||
`Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded
|
`Compat/Breaking` `exclusive: false`. That is one repo's configuration at one point in time, recorded
|
||||||
as a worked example of what the field looks like in practice — it is not a property of the taxonomy
|
as a worked example of what the field looks like in practice — it is not a property of the taxonomy
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ name: gitea
|
|||||||
version: 1.3.10
|
version: 1.3.10
|
||||||
description: Skills and agents for working with a Gitea forge through its HTTP API — the forge's own objects, as distinct from the local git clone.
|
description: Skills and agents for working with a Gitea forge through its HTTP API — the forge's own objects, as distinct from the local git clone.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/gitea
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/gitea
|
||||||
keywords:
|
keywords:
|
||||||
- gitea
|
- gitea
|
||||||
- issues
|
- issues
|
||||||
|
|||||||
@@ -14,14 +14,14 @@ Canonical call sequences for the operations most likely to appear in a Gitea-man
|
|||||||
Labels and milestones must be referenced by numeric ID in write operations. Resolve them first.
|
Labels and milestones must be referenced by numeric ID in write operations. Resolve them first.
|
||||||
|
|
||||||
```
|
```
|
||||||
1. label_read method: "list_repo_labels" owner: "Mortis" repo: "Holocron"
|
1. label_read method: "list_repo_labels" owner: "Defame1297" repo: "holocron"
|
||||||
→ returns [{id: 3, name: "bug"}, {id: 7, name: "enhancement"}, ...]
|
→ returns [{id: 3, name: "bug"}, {id: 7, name: "enhancement"}, ...]
|
||||||
|
|
||||||
2. milestone_read method: "list" owner: "Mortis" repo: "Holocron"
|
2. milestone_read method: "list" owner: "Defame1297" repo: "holocron"
|
||||||
→ returns [{id: 1, title: "v1.0"}, ...]
|
→ returns [{id: 1, title: "v1.0"}, ...]
|
||||||
|
|
||||||
3. issue_write method: "create"
|
3. issue_write method: "create"
|
||||||
owner: "Mortis" repo: "Holocron"
|
owner: "Defame1297" repo: "holocron"
|
||||||
title: "Fix the widget"
|
title: "Fix the widget"
|
||||||
body: "Description of the problem"
|
body: "Description of the problem"
|
||||||
labels: [3] ← IDs, not names
|
labels: [3] ← IDs, not names
|
||||||
@@ -61,7 +61,7 @@ issue_write method: "remove_label"
|
|||||||
|
|
||||||
```
|
```
|
||||||
1. create_branch
|
1. create_branch
|
||||||
owner: "Mortis" repo: "Holocron"
|
owner: "Defame1297" repo: "holocron"
|
||||||
branch: "feat/my-feature"
|
branch: "feat/my-feature"
|
||||||
old_branch: "main" ← defaults to repo default if omitted
|
old_branch: "main" ← defaults to repo default if omitted
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ apm is the only supported install path (ADR-0024). Declare this package in the c
|
|||||||
```yaml
|
```yaml
|
||||||
dependencies:
|
dependencies:
|
||||||
apm:
|
apm:
|
||||||
- git: https://git.rkdr.net/Mortis/Holocron.git
|
- git: git@git.rkdr.net:Defame1297/holocron.git
|
||||||
path: plugins/kyberforge
|
path: plugins/kyberforge
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ Then:
|
|||||||
apm install
|
apm install
|
||||||
```
|
```
|
||||||
|
|
||||||
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add https://git.rkdr.net/Mortis/Holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
The entry above is unpinned and tracks the remote's default branch — add `ref: <tag>` to pin a release. Registering the catalogue instead (`apm marketplace add git@git.rkdr.net:Defame1297/holocron.git --name holocron`) gets you the `kyberforge@holocron` short name, but writes to `~/.apm/marketplaces.json` at user scope; the git+path object needs nothing beyond the manifest.
|
||||||
|
|
||||||
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).
|
**Native plugin installs do not work.** This package ships no per-plugin manifest and no flat content directories, so a host that installs it natively gets zero skills, agents and hooks — and Claude Code raises no error while doing it (ADR-0024).
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ name: kyberforge
|
|||||||
version: 2.2.1
|
version: 2.2.1
|
||||||
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
description: Skills and agents for creating, maintaining, and managing an apm plugin marketplace for Claude Code and GitHub Copilot.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/kyberforge
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/kyberforge
|
||||||
keywords:
|
keywords:
|
||||||
- marketplace
|
- marketplace
|
||||||
- plugin
|
- plugin
|
||||||
|
|||||||
@@ -6,5 +6,3 @@
|
|||||||
- **Description:** Anthropic's official skill-creator skill — iterative skill authoring with draft/eval/improve loop, quantitative benchmarking, and description optimization
|
- **Description:** Anthropic's official skill-creator skill — iterative skill authoring with draft/eval/improve loop, quantitative benchmarking, and description optimization
|
||||||
- **Contributing files:** SKILL.md, agents/analyzer.md, agents/comparator.md, agents/grader.md, references/schemas.md
|
- **Contributing files:** SKILL.md, agents/analyzer.md, agents/comparator.md, agents/grader.md, references/schemas.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
- **Licence:** Apache-2.0 — see `LICENSE.txt` in this folder.
|
|
||||||
- **Modifications:** whitespace only (trailing whitespace and end-of-file newlines normalised by this repo's pre-commit hooks); content is otherwise unchanged from upstream.
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2026 Matt Pocock
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2025 Jesse Vincent
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
+1147
-5
File diff suppressed because it is too large.
Load diff
@@ -6,5 +6,3 @@
|
|||||||
- **Description:** Jesse Vincent's writing-skills skill — covers skill authoring patterns, Anthropic best practices, persuasion principles, and subagent-based skill testing
|
- **Description:** Jesse Vincent's writing-skills skill — covers skill authoring patterns, Anthropic best practices, persuasion principles, and subagent-based skill testing
|
||||||
- **Contributing files:** SKILL.md, anthropic-best-practices.md, persuasion-principles.md, testing-skills-with-subagents.md, examples/CLAUDE_MD_TESTING.md
|
- **Contributing files:** SKILL.md, anthropic-best-practices.md, persuasion-principles.md, testing-skills-with-subagents.md, examples/CLAUDE_MD_TESTING.md
|
||||||
- **Status:** `extracted`
|
- **Status:** `extracted`
|
||||||
- **Licence:** MIT, Copyright (c) 2025 Jesse Vincent — see `LICENSE` in this folder.
|
|
||||||
- **Excluded:** `anthropic-best-practices.md` is replaced by a link to Anthropic's canonical documentation page; it was Anthropic's docs, not superpowers code.
|
|
||||||
@@ -2,11 +2,12 @@ name: lint
|
|||||||
version: 1.1.9
|
version: 1.1.9
|
||||||
description: Skills and agents for configuring and running linters.
|
description: Skills and agents for configuring and running linters.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/lint
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/lint
|
||||||
keywords:
|
keywords:
|
||||||
- lint
|
- lint
|
||||||
- style
|
- style
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ name: mattpocock
|
|||||||
version: 0.4.0
|
version: 0.4.0
|
||||||
description: Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.
|
description: Matt Pocock's agent skills — planning, grilling, test-first development, triage and bug diagnosis — redistributed from upstream at a pinned release.
|
||||||
author:
|
author:
|
||||||
name: Mortis
|
name: Defame1297
|
||||||
url: https://git.rkdr.net/Mortis/
|
email: [email protected]
|
||||||
|
url: https://git.rkdr.net/Defame1297/
|
||||||
license: MIT
|
license: MIT
|
||||||
homepage: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
|
homepage: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
|
||||||
repository: https://git.rkdr.net/Mortis/Holocron/src/branch/main/plugins/mattpocock
|
repository: https://git.rkdr.net/Defame1297/holocron/src/branch/main/plugins/mattpocock
|
||||||
keywords:
|
keywords:
|
||||||
- wayfinder
|
- wayfinder
|
||||||
- planning
|
- planning
|
||||||
|
|||||||
@@ -33,14 +33,6 @@
|
|||||||
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Git exports GIT_DIR (and can export GIT_WORK_TREE / GIT_INDEX_FILE) to the
|
|
||||||
# hooks it runs, so under the run-tests pre-push hook every `git -C "$tmp" ...`
|
|
||||||
# a fixture runs resolves to THIS repo, not the temp one -- the
|
|
||||||
# validate-provenance-skill.bats commit_as_base helper flipped core.bare=true and
|
|
||||||
# emptied the index here on every push. Suites build their own throwaway repos;
|
|
||||||
# none of them may inherit the caller's.
|
|
||||||
unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_OBJECT_DIRECTORY GIT_COMMON_DIR
|
|
||||||
|
|
||||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
BATS="$REPO_ROOT/tests/run-bats.sh"
|
BATS="$REPO_ROOT/tests/run-bats.sh"
|
||||||
BATS_ONLY=false
|
BATS_ONLY=false
|
||||||
|
|||||||
Submodule tests/test_helper/bats-assert updated: dc1aa63fbc...697471b7a8.
Submodule tests/test_helper/bats-support updated: 787ac476d4...0954abb992.
Reference in new issue
Block a user