Skip to content

feat: expose Nix package and Home Manager module - #7

Merged
furedea merged 1 commit into
mainfrom
feat/add-nix-package
May 18, 2026
Merged

furedea merged 1 commit into
mainfrom
feat/add-nix-package

Conversation

@furedea

@furedea furedea commented May 18, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 18, 2026 01:54

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.

Pull request overview

Adds a Nix flake packages.default output that builds the agent-harness Rust binary, and introduces a new Home Manager module that installs the binary, renders harness assets into the Nix store, links Codex/Claude config files into $HOME, and runs agent-harness sync-codex-config as a Home Manager activation step.

Changes:

  • Add packages.${system}.default (rustPlatform build) and expose homeManagerModules.default in flake.nix.
  • New nix/home_manager_module.nix providing programs.agent-harness with enable, package, source, and codex/claude.enable options.
  • Link rendered harness files into ~/.codex/... and ~/.claude/..., plus an activation hook that syncs ~/.codex/config.toml.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
flake.nix Adds Rust package build and exposes Home Manager module output.
nix/home_manager_module.nix New Home Manager module rendering and installing Codex/Claude harness assets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread flake.nix
Comment on lines +15 to +25
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
pname = "agent-harness";
version = "0.1.0";
src = ./.;

cargoLock.lockFile = ./Cargo.lock;

meta.mainProgram = "agent-harness";
};

homeManagerModules.default = import ./nix/home_manager_module.nix { inherit self; };

package = lib.mkOption {
type = lib.types.package;
inherit (self.packages.${pkgs.system}) default;
Comment on lines +11 to +15
rendered = pkgs.runCommand "agent-harness-rendered" { } ''
${lib.getExe cfg.package} render \
--source ${cfg.source} \
--out $out
'';
Comment on lines +65 to +71
activation.agentHarnessCodexConfig = lib.mkIf cfg.codex.enable (
lib.hm.dag.entryAfter [ "writeBoundary" ] ''
${lib.getExe cfg.package} sync-codex-config \
--source ${rendered}/codex/config-source.toml \
--target "$HOME/.codex/config.toml"
''
);
Comment thread flake.nix
Comment on lines 11 to 12
system = "aarch64-darwin";
pkgs = import nixpkgs { inherit system; };
@furedea
furedea merged commit 137a5da into main May 18, 2026
13 checks passed
@furedea
furedea deleted the feat/add-nix-package branch May 18, 2026 02:14
furedea added a commit that referenced this pull request May 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.2.0](agent-harness-v0.1.0...agent-harness-v0.2.0)
(2026-05-28)


### Features

* add agent harness CLI
([#6](#6))
([7f3c775](7f3c775))
* expose Nix package and Home Manager module
([#7](#7))
([137a5da](137a5da))
* generate command policy files
([#14](#14))
([9a3c7d0](9a3c7d0))
* generate hook configurations
([#17](#17))
([b5ec4d8](b5ec4d8))
* generate protected path policy
([#18](#18))
([725c04c](725c04c))
* refine agent harness command layout
([#12](#12))
([ca57421](ca57421))
* render provider skills
([#20](#20))
([e7e4a21](e7e4a21))
* **skills:** add ADR operation skill
([#30](#30))
([3d89283](3d89283))
* **skills:** add git workflow skill
([#28](#28))
([9764417](9764417))
* standardize CLI option names
([#13](#13))
([110c284](110c284))
* synthesize provider configs
([#19](#19))
([41dfb40](41dfb40))
* use file-level generated outputs
([#11](#11))
([64cf683](64cf683))
* use packaged source by default
([#32](#32))
([6c44f34](6c44f34))


### Bug Fixes

* avoid git in json syntax test
([#26](#26))
([d64b992](d64b992))
* install generated codex guarded config
([#25](#25))
([1647802](1647802))
* keep user tools visible in dev shell
([#23](#23))
([9a572e6](9a572e6))
* protect installed harness paths only
([#27](#27))
([9911632](9911632))
* **release:** use token for release PRs
([#38](#38))
([31c010e](31c010e))
* validate skill patch descriptions
([#33](#33))
([519a9ad](519a9ad))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Kaito Shigyo / 執行凱斗 <[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