Skip to content

refactor: consume the personal agent source from furedea/agent-config - #315

Merged
furedea merged 5 commits into
mainfrom
refactor/consume-agent-config
Oct 24, 2026
Merged

furedea merged 5 commits into
mainfrom
refactor/consume-agent-config

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

概要

個人用エージェントハーネスの source を furedea/agent-config へ分離した作業のレーン B です.dotfiles は agent-config を flake input として読むだけになり,移動済みの source・テスト・ADR を削除します.

実装計画: #314 (comment)

Closes #314

変更内容

  • B1: flake.nix に agent-config input を追加(agent-harness,nixpkgs,nixpkgs-unstable は follows で共有)し,agentSource を agent-config.packages.${system}.default に置き換えました.flake.lock は dd59634 に固定しています.
  • B2: agents/,tests/agents/,scripts/agents/ を削除しました.ruff,ty,vulture,deptry,lefthook,CI,related-test の対応表,README から削除したパスを外しています.移動したテスト専用だった CI の agent-harness ビルド手順も削除しました.
  • B3: ADR-0016 と ADR-0030 を Superseded by furedea/agent-config ADR-0012 にしました.移動した ADR(0023,0028,0029,0031〜0038)は,タイトルを残した Moved の stub にして移動先の URL を載せています.
  • dotfiles 専用のテスト(agent_hook.bats,codex_notification.bats,extension 対応表テスト)は tests/nix/ へ移しました.

CI に入れていないテスト

tests/nix/agent_hook.bats と tests/nix/codex_notification.bats は,homeConfigurations."kaito@mbp"(aarch64-darwin)を nix build して検証します.CI の bats ジョブは Nix のない ubuntu-latest で動くため,この 2 つは CI の一覧に追加できません.移動前も同じ理由で一覧に入っておらず,ローカル(macOS)で実行する扱いのままです.

検証

  • nix flake check: 成功
  • darwin-rebuild build --flake .#mbp(build のみ): 成功
  • pytest -m "not integration": 121 件成功
  • bats(CI と同じ tests/esa/zsh.bats と tests/moshi/update_moshi_hook.bats): 25 件成功
  • bats(tests/nix/agent_hook.bats と tests/nix/codex_notification.bats): ローカルで 5 件成功
  • ruff と ty: 成功
  • レンダリング差分: 変更前の origin/main と新しい agent-harness-rendered を比較し,差分は想定した 3 ファイルのみでした.
    • .claude/hooks/guard_file.py
    • .claude/skills/nix-dotfiles/SKILL.md
    • .codex/skills/nix-dotfiles/SKILL.md

🤖 Generated with Claude Code

furedea and others added 5 commits October 24, 2026 15:38
agentSource now comes from furedea/agent-config packages.default,
locked at dd59634, instead of a copy of the in-tree agents directory.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Delete agents/, tests/agents/, and scripts/agents/, which now live in
furedea/agent-config. Keep the dotfiles-only Nix rendering tests and the
related-test mapping test under tests/nix/, and drop the removed paths
from the related-test mapping, ruff, ty, vulture, deptry, lefthook, and CI.
The agent-harness build steps only served the moved tests, so CI drops them.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
ADR-0016 and ADR-0030 are superseded by furedea/agent-config ADR-0012.
ADR-0023, 0028, 0029, and 0031 to 0038 moved to agent-config, so each
keeps its title with a Moved status and the new location.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Undo the formatter's table realignment, which was unrelated churn, and
fix the tests paragraph. Also add the missing space before && in the
moved Codex notification test.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
package.json pinned @openai/codex, oxfmt, and oxlint for the agent tests
that moved to agent-config. Nix provides oxfmt and oxlint locally, so
remove package.json, package-lock.json, the Node setup, the npm ci step,
and the ls-lint exception for package-lock.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea
furedea merged commit 8e61ceb into main Oct 24, 2026
13 checks passed
@furedea
furedea deleted the refactor/consume-agent-config branch October 24, 2026 08:46
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.

refactor: エージェントハーネスの source を agent-config リポジトリへ分離する

1 participant