Skip to content

feat: compose Herdr and Moshi agent hooks - #33

Merged
furedea merged 2 commits into
mainfrom
feat/external-agent-hooks
Aug 20, 2026
Merged

furedea merged 2 commits into
mainfrom
feat/external-agent-hooks

Conversation

@furedea

@furedea furedea commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • generate Herdr and Moshi hook bundles in isolated Nix builds
  • compose bundles through agent-harness hooks.extra
  • pin Moshi Hook 0.2.87 for generation and keep Homebrew as runtime

Dependency

Validation

  • bats tests/nix/agent_hooks.bats
  • bats tests/nix/homebrew.bats
  • statix check
  • deadnix --fail .
  • lefthook run pre-commit
  • nix build --no-link '.#darwinConfigurations.mba.system'

Copilot AI lite review requested due to automatic review settings August 20, 2026 01:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@furedea
furedea merged commit 687cb4e into main Aug 20, 2026
7 checks passed
@furedea
furedea deleted the feat/external-agent-hooks branch August 20, 2026 03:53
furedea added a commit that referenced this pull request Oct 24, 2026
## 概要

`nix-dotfiles` skill は dotfiles 専用の内容なので,agent-config から dotfiles
に移す.agent-config 側の削除(furedea/agent-config#30)は merge 済み.

- `skills/nix-dotfiles/SKILL.md` を agent-config
の履歴(`d00d292^`)から変更せずに復元し,`programs.agent-harness.skills` に herdr skill
と並べて追加した
- `agent-config` input を `305d391`(#29,#30,#31,#33 を含む)に更新した.skill
が消える期間も重複する期間もない
- `tests/nix/agent_hook.bats` から,agent-config 側のテストが担う確認(hook
ファイル名,statusline の `Ctx:`,shebang,Hermes と pi の hook ファイル)を外した.Herdr と
Moshi の組み立て確認は残した
- `~/.claude/skills` と `~/.codex/skills` に `nix-dotfiles`
が配備されることを確かめるテストを追加した

## 確認

- 新テストは,flake 更新後・Nix 側の変更前に失敗し,配線後に通ることを確認した
- `bats tests/nix/agent_hook.bats` 通過
- `nix flake check` 通過
- `darwin-rebuild build --flake .#mbp` 成功
- `origin/main` の home generation と比較し,`nix-dotfiles` skill
の描画結果が同一であることを確認した.ほかの差分は agent-config
の変更(hooks,rules,project-setup,trusted owners)だけ

## レビュー(Opus サブエージェント 1 回)

P0 と P1 はなし.P2 以下は次のとおりで,このPRでは直さない.

- P3: 新テストが最初のテストと同じ activation package を評価し直す.ビルドはキャッシュされ,評価時間だけの負担
- P3: 復元した skill の「When managed agent source changes」節が,skill も
agent-config で編集すると読める.内容を変えない要件のため後続で直す
- 指摘のあった commit trailer(Opus 5.5)は,このセッションの指定どおり Sonnet 5.5 のままにした

Refs furedea/agent-config#9

マージ後に furedea/agent-config#9 は close してよい.

🤖 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.

2 participants