/agentloop:landfrom agentloop
Routes one target (work DID, issue, PR, or topic) through implementation, review, and merge, with batch mode spawning one subagent per target.
Ships in agentloop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
/agentloop:land <work DID | w_<32hex> | 40-char sha | issue# | PR# | url>
/agentloop:land <n1> <n2> … # batch: one isolated subagent per target
/agentloop:land [one-line topic] # no reference: coherence check first
| Flag | Default | Effect |
|---|---|---|
--merge=auto | single target | tests green + review clean → merge |
--merge=confirm | batch | stop at ready to merge, ask |
--merge=never | — | stop at ready to merge |
Read .claude/repo-profile.md first (repo_slug, default_branch, plugin_root,
package_manager, test_runner, agent_identity_script, comment_language,
change_set_record_entry, lesson_ledger_dir). No profile → /agentloop:repo-setup.
land is a router plus single-item driver. Epic → /agentloop:epic-conductor; backlog →
/agentloop:issue-sweep / /agentloop:pr-sweep; multi-phase → /agentloop:build-phases.
ARC_CODE_AGENT_RUN_ID set)One turn only: run tests in the foreground; never wait on a background shell or
child run. The host merger merges (#8182): stop at ready to merge, post
the checklist comment (no label), report "ready to merge — host merger", end run.
merge-verified-pr.sh exits 3. Detail: headless-factory-run.md.
Look up /work first; GitHub is a projection, not identity:
arc --json afs exec /.actions/query --args '{"path":"/work","where":{"field":"meta.objectId","eq":"<DID>"}}'
# Change Set @ sha:
arc --json afs exec /.actions/query --args '{"path":"/work","where":{"field":"meta.head","eq":"<sha>"}}'
A /work hit wins. Unreadable /work is not a miss: use the brief from arc --json afs exec /dev/code-agents/.actions/read-bound-work --args "{\"id\":\"$ARC_CODE_AGENT_RUN_ID\"}" and do not fall back to gh issue view. Details: reference/resolve-target.md.
single needs all four: one sentence, one PR, user pointed at it,
current line of work. Else multiple / unclear: report enumeration,
never collapse unclear into single. With an explicit ref check state,
labels, PR / agent:processing. Detail: reference/coherence.md.
epic label, epic:<own#>, members, ≥3 #refs) →
/agentloop:epic-conductor. epic-managed is not a criterion./agentloop:issue-review first)./work hit with no refs / sourceUrl) →
Step 3 with the work object as brief. Never open an
issue for it.<agent_identity_script> --header, --body-file; Step 3.One subagent, isolation: "worktree". The brief:
read-bound-work, not gh issue view, when /work is unreadable) — and wrong fixes ruled out;<lesson_ledger_dir> ≠ none, read <lesson_ledger_dir>/absorbed.yaml (status: absorbed/promoted only; never candidates/pending/) for matching <pkg>/<domain>;<package_manager> --filter <pkg> test, or <test_runner> <files>) and report command + counts;…issue-<N>… (…<w_id>… without issue); never --no-verify; stop and hand back branch + worktree before opening a PR (reference/implement-brief.md).A different subagent runs /agentloop:pr-review on merge-base..HEAD (or the PR), read-only.
Auth/authz, exec, secrets/vault or sandbox → a panel: correctness + security, reproducing the exploit against the code.
Push; bun scripts/gh-rest/gh.ts pr create --repo <repo_slug> --base <default_branch> with Conventional Commits title, identity line, Fixes #<N> (no issue: Work: <did>; accept-stage all PASS adds Fixes #<source> from followUpOf), test command + counts, review outcome. Existing PR body: --prior-engines <set>. After create and after every later push, record-change-set.sh:
bash <plugin_root>/scripts/record-change-set.sh --entry "<change_set_record_entry>" --pr <PR URL> \
--acceptance-from <receipts.json>
Non-zero = stop (no || true). N/A: reference/change-set-na.md. Every acceptance item done + evidence or blocked + reason (acceptance-self-check.md).
bash <plugin_root>/scripts/merge-verified-pr.sh <PR#> # squash, pinned to the current head sha
Rebase only when mergeable=CONFLICTING (then record-change-set.sh the new head). Root-cause reds, never re-run until green. Unattended or batch without --merge=auto: stop at ready to merge, comment checklist (no label). A PR a factory run delivered is the host merger's, not merged here; ready-to-merge alone is not enough (reference/factory-merge.md). Confirm merged: true and issue closed.
bun <plugin_root>/scripts/check-pr-path-overlap.ts; overlapping PRs cite each other and merge order.input → state → failure site) and state a 1-line hypothesis before fix #3. Unfixable P1 → "PR open, not merged".kind = <path>:<symptom>. In scope → Refs #N, leave open. Never close it and file the rest as new issues. Out of scope → new issue only for P0–P2 with concrete failure and no duplicate (≤1/PR).Per target: state, PR link, test command + counts, review findings, next command, not-fixed-here list, opened=<n> (≤1; print opened=0), and whether issue closed.
reference/acceptance-self-check.md (opens in a new tab)reference/change-set-na.md (opens in a new tab)reference/coherence.md (opens in a new tab)reference/factory-merge.md (opens in a new tab)reference/factory-run-review.md (opens in a new tab)reference/implement-brief.md (opens in a new tab)reference/resolve-target.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arcblock/agent-skills --plugin agentloop24 skills in this plugin
/build-phasesExecute a phased implementation plan (tasks.md) autonomously, one phase at a time: implement, then verify (static + dynamic + adversarial) before advancing. Use for a multi-phase build of one issue, attended or unattended./codex-review-backlogScan merged (optionally open) PRs for unhandled Codex / bot review comments, re-validate each against main, fix the easy ones, track the hard ones. Use for "codex backlog", "scan Codex reviews", late bot findings after a merge wave, or a daily routine./design-reviewIterative clean-context review of a design / plan document or issue: independent reviewers per round, scored and synthesized without prior-round bias. Use to review an implementation plan, architecture doc or design proposal before building.