Skip to content

feat(agents): write PR bodies inline and close lanes' parent workspaces - #211

Merged
furedea merged 2 commits into
mainfrom
feat/inline-bodies-and-parent-workspaces
Oct 18, 2026
Merged

furedea merged 2 commits into
mainfrom
feat/inline-bodies-and-parent-workspaces

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Two follow-ups from running lanes.

  • PR bodies are written inline.
    • delivery.md now prescribes gh pr create ... --body "$(cat <<'EOF' ... EOF)" instead of --body-file. Writing temp files caused write and delete prompts.
    • The quoted delimiter keeps backticks and $ literal.
    • commits.md uses the same quoted heredoc for commit messages, which keeps apostrophes literal too. It drops the stale claim that heredocs and substitutions ask. Standard input (-F -, --body-file -) is fine. Files are not.
    • New contracts show an inline heredoc body passes the allowed guard and the forbidden rules, even when it mentions git add -A or --no-verify.
  • Parent workspaces close with their lane.
    • herdr worktree create --cwd <repo> opens the repository's own workspace when none is open, and that workspace was left behind.
    • The verification hook now records such a parent before the create runs, checked against herdr workspace list.
    • herdr workspace close passes for a recorded parent with no agent in it. A workspace the user already had open, or one with any agent, still asks.
  • feat(claude): let sessions write their own scratchpad without prompts #209 is closed; its temp-directory edit rule is no longer needed.

Verification

  • uv run --frozen pytest tests: all passed.
  • ruff and ty passed.

🤖 Generated with Claude Code

furedea and others added 2 commits October 18, 2026 00:30
PR bodies go inline through a quoted heredoc instead of a temp file, now
that forbidden rules ignore prose arguments; commit messages stay -m
arguments, never files. herdr worktree create opens the repository's
workspace when none is open; the hook records that parent, and closing
it passes once no agent runs there.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Commit messages and PR bodies now share one form: the message goes
inline through `$(cat <<'EOF' ...)`, which keeps backticks, `$`, and
apostrophes literal. Reading the same heredoc from standard input
(`-F -`, `--body-file -`) stays acceptable; files do not.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@furedea
furedea merged commit 5d36055 into main Oct 18, 2026
11 checks passed
@furedea
furedea deleted the feat/inline-bodies-and-parent-workspaces branch October 18, 2026 08:29
furedea added a commit that referenced this pull request Nov 16, 2026
agent-config の PostToolUse フックが ADR 編集後に実行する `adr-check` を PATH
に置く.`jev-lint` と同じ方法で `home.packages` に追加し,`agent-config` 入力を #225
を含むリビジョンに更新する.

Refs furedea/agent-config#169

## 変更内容

- `nix/home/default.nix`: `adrCheckPackage =
agent-config.packages.${system}.adr-check;` を `jevLintPackage`
の隣に追加し,`home.packages` に加えた(furedea/agent-config#225).
- `flake.lock`: `agent-config` を `2ab23eb` → `138c542` に更新した(`nix flake
update agent-config`).

## agent-config の更新内容(2ab23eb → 138c542,23 コミット)

- lint: go-style / rust-style / python-style / TypeScript / bash-style /
github-actions-style / agents/AGENTS.md のルールを ast-grep・jev-lint・model
rules へ移行(#190, #191, #192, #193, #194, #195),Go の `util`・`common`
パッケージ検出(#202),ブロッキング ast-grep ルールの欠落修正(#216)
- hooks: 静的ルールエラーでの編集ブロックと ast-grep-ignore の保護(#203),ask
プレフィックスの限定(#199),リポジトリフック回避オプションの拒否(#212),コードセルの判定修正(#224)
- skills: issue / git / setup ワークフローを `development-cycle`
に統合(#211),agent 実行の verify ステップ削除(#213),範囲外指摘への回答と all-green 待機(#223)
- docs/ADR: MADR の採用(#215),スキル責務の配置(#208),コマンド判定の方針(#198),ast-grep
のブロック方針(#214),AGENTS.md の整理(#205)
- build/ci: マイナーバージョン上げの設定(#217),jev-lint モデルルールテストを CI で実行(#218)
- feat: `adr-check` コマンドの追加(#225)

## 検証

- `nix build '.#homeConfigurations."kaito@mbp".activationPackage'`:
成功.生成物の `home-path/bin` に `adr-check` が含まれることを確認した.
- `darwin-rebuild switch` は実行していない.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant