Repository navigation
docs(skills): write Issues and plans in Japanese with diagrams - #183
Merged
Merged
Conversation
Issues and plans are for the user to decide on, and English prose was hard to skim. They now open with a short summary, a Mermaid diagram, a before/after table, and a checklist, with details folded at the end. Image uploads are left out: gh --attach rejects the agent App token. Closes #182 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The skill already states it; a second copy in the global instructions would drift. Refs #182 Co-Authored-By: Claude Opus 5.5 <[email protected]>
furedea-agent
Bot
force-pushed
the
docs/japanese-visual-issues
branch
from
October 17, 2026 09:50
c9a4375 to
87678de
Compare
furedea
added a commit
that referenced
this pull request
Oct 17, 2026
…rt (#185) PR 2 of #181. Merged task worktrees and local branches are removed without a person running `git branch -D`. - **`agents/hooks/cleanup_worktrees.py`.** A branch goes only when both hold: - a merged pull request's head is exactly its tip; - its worktree is clean. Squash merges therefore count as merged, while later or uncommitted work stays. The primary checkout, the caller's own worktree, and `main`/`master` are never touched. An open Herdr workspace is closed with its checkout (`herdr worktree remove`), and other worktrees use `git worktree remove`. - **Scope.** It sweeps the caller's repository and every repository with a Herdr task worktree under `~/.herdr/worktrees`. A lane merged in one repository therefore goes at whichever session starts next. A failure in one repository skips only that repository. - **Triggers.** - The Claude SessionStart hook runs it asynchronously, so start-up never waits on GitHub. Hooks run outside the sandbox, so agents still never get `-D`. - `cleanup_worktrees.py --dry-run` reports what would go. - It uses only git, gh (one `gh pr list --state merged` call), and Herdr. No gh-poi. - **`branches.md`.** Tells agents not to delete merged worktrees by hand. Remote branches: `delete_branch_on_merge` is already on for the active repositories. It is off for `obsidian` (no PRs), `book-agent`, `swe-bench-trial`, `revisiting-pgd-evaluation`, `pairs`, and older learning repos. The agent App token cannot change repository settings, so that is left to the user. Closes #181 ## Verification - `uv run --frozen pytest tests`: 1498 passed. The 3 errors in `tests/hermes/test_hermes_gateway.py` also occur on main. - The new contracts use temporary repositories with fake `gh` and Herdr. They cover: - a merged worktree; - a merged branch without a worktree; - a later commit, a dirty tree, and an open PR, all kept; - the primary and current checkouts, kept; - `--dry-run`; - a Herdr workspace closed with its worktree; - the hook never blocking; - a merged Herdr lane of another repository swept from an unrelated directory. - A dry run on this repository found exactly the two squash-merged branches from #183 and #184. - The Herdr hand-off from PR 1 was checked live: worktree, agent start, and prompt ran with no permission prompt. - ruff, ty, deptry, vulture, and lefthook passed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: furedea <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues and plans are for the user to decide on. English prose was hard to skim.
issue-workflowgains an Issue and Plan Format section:- [ ]checklist of observable outcomes;<details>at the end.gh --attach(gh 2.99+) accepts only user tokens. gh 2.102 returnsunsupported authentication typefor the agent GitHub App installation token.Closes #182
Verification
uv run --frozen pytest tests/agents: 1361 passed.🤖 Generated with Claude Code