Migrates legacy flat .issues/*.md files into open/working/blocked/closed buckets. Idempotent — refuses to run if any bucket already contains .md files. Only applies to the file backend.
One-shot migration from the legacy flat .issues/*.md layout to the four-bucket
layout (open/, working/, blocked/, closed/). Idempotent — refuses to run
if any bucket already contains .md files.
Only runs against the file backend; on the github backend issues live in GitHub itself and have no on-disk layout to migrate.
# Resolve SCRIPT_DIR — see scripts/README.md#script-dir
SCRIPT_DIR=$(
for d in "$(pwd)/.agent/scripts" \
"$(pwd)/plugins/autocoder/scripts" \
"$(pwd)/.claude-plugin/plugins/autocoder/scripts"; do
if [ -f "$d/issue-fns.sh" ] && [ -f "$d/fix-loop-gate.sh" ]; then echo "$d"; exit 0; fi
done
# Fallback: the installed plugin. Only <ver>/scripts is a complete tree;
# <ver>/skills/autocoder/scripts is a subset that sorts after it (#142).
# Rank by the <ver> directory alone, not the whole path: with two marketplaces
# in the cache, a whole-path sort lets the marketplace name decide (#201).
found=$(
find "$HOME/.claude/plugins/cache" -type d -name "scripts" -path "*/autocoder/*" -not -path "*/skills/*" 2>/dev/null \
| while read -r d; do if [ -f "$d/issue-fns.sh" ] && [ -f "$d/fix-loop-gate.sh" ]; then echo "$d"; fi; done \
| awk -F/ '{print $(NF-1) "\t" $0}' | sort -V -t$'\t' -k1,1 | tail -1 | cut -f2-
)
if [ -n "$found" ]; then echo "$found"; exit 0; fi
# Grok installs to ~/.grok/installed-plugins/<name>-<hash>/. The hash is in
# the directory name, so the Claude cache glob */autocoder/* does not match.
find "$HOME/.grok/installed-plugins" -type d -name "scripts" -path "*/autocoder-*/*" -not -path "*/skills/*" 2>/dev/null \
| while read -r d; do if [ -f "$d/issue-fns.sh" ] && [ -f "$d/fix-loop-gate.sh" ]; then echo "$d"; fi; done \
| awk -F/ '{print $(NF-1) "\t" $0}' | sort -V -t$'\t' -k1,1 | tail -1 | cut -f2-
)
if [ ! -f "${SCRIPT_DIR}/issue-fns.sh" ]; then
echo "autocoder: cannot locate issue-fns.sh (resolved SCRIPT_DIR='${SCRIPT_DIR}')" >&2
exit 1
fi
source "${SCRIPT_DIR}/issue-fns.sh"
/migrate-issues-layout
if [ "$ISSUE_SOURCE" != "file" ]; then
echo "/migrate-issues-layout only applies to the file backend (ISSUE_SOURCE=$ISSUE_SOURCE)."
echo "Github-backed repositories have no on-disk layout to migrate."
exit 0
fi
migrate-layout subcommand:python3 "${SCRIPT_DIR}/issues-file.py" migrate-layout
The subcommand:
open/, working/, blocked/, or closed/ already
contains .md files (idempotency guard).*.md at the top level of .issues/: parses frontmatter and
moves to the bucket matching status / labels (closed → closed/;
working → working/; any blocking label → blocked/; else → open/)..seq to max(existing numbers, 0) so subsequent /record-issue
calls produce unique numbers./list-issues now walks bucket directories
directly."/set-issue-source — choose between the file and github backends; this
command auto-detects flat layouts and offers to run migration./list-issues — list issues (now bucket-partitioned by --state).What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
/autocoder:migrate-issues-layoutfrom autocoder
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /autocoder:migrate-issues-layout still runs it.
npx claudepluginhub laird/agents --plugin autocoder33 commands in this plugin
/analyze-tracesAnalyze TracesName the agent failures that repeat (#395). This builds one trace per issue attempt from the/approve-proposalApprove ProposalsApprove one or more AI-generated proposals for implementation by removing the `proposal` label./author-evalsAuthor EvalsTurn the failures that repeat into evaluation cases a machine can run and grade (#395). This/autocoder-helpAutocoder HelpStart by examining the environment to give contextual guidance:/brainstorm-issueBrainstorm IssueUse AI-powered brainstorming to explore design options, clarify requirements, and develop implementation approaches for a GitHub issue./close-issueClose IssueResolve and close an issue with an optional closing comment.