From a427f319d4c8d746f93608c47b54e54f47d9aba3 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 27 Apr 2026 13:24:34 +0200 Subject: [PATCH 1/2] feat(agents): add gitIdentity config and git-identity rule - coding.agents.gitIdentity enabled with m3ta-chiron identity - coding.agents.pi.codingRules.concerns includes 'git-identity' - Uses feature/agent-git-identity branches for m3ta-nixpkgs and agents --- flake.lock | 22 ++++++++++++---------- flake.nix | 5 ++--- home/coding/agents/agents.nix | 8 ++++++++ home/coding/agents/pi.nix | 1 + 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index fb96b67..bfa7cdb 100644 --- a/flake.lock +++ b/flake.lock @@ -26,15 +26,16 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1777053633, - "narHash": "sha256-AtoguTQc8x4ysH5KSlRaFMx1elTOnTdk1u4YtqlttVU=", - "ref": "refs/heads/master", - "rev": "6e0e847299b81665ba594668fff208278bb3de3b", - "revCount": 73, + "lastModified": 1777287027, + "narHash": "sha256-8GM2Aydq9i8KbvyObqyMYhWkY+e7oh3+eyMfUVnt6Oo=", + "ref": "feature/agent-git-identity", + "rev": "3487050bbd9126251a2fce98363858e1ee55ea23", + "revCount": 80, "type": "git", "url": "https://code.m3ta.dev/m3tam3re/AGENTS" }, "original": { + "ref": "feature/agent-git-identity", "type": "git", "url": "https://code.m3ta.dev/m3tam3re/AGENTS" } @@ -452,15 +453,16 @@ "openspec": "openspec" }, "locked": { - "lastModified": 1776876631, - "narHash": "sha256-YgTb6pugAvUiSm7xVMpejf6kJPodhq8fOYQDdELfwQg=", - "ref": "refs/heads/master", - "rev": "03ad7451fcfafde94da937afb6cf96ca39cc8e2f", - "revCount": 244, + "lastModified": 1777288631, + "narHash": "sha256-crbjn8KvewFwvBKovX1r4jdmGF96XePe7U9eT9LHVFY=", + "ref": "feature/agent-git-identity", + "rev": "fa339ae8ccdf1d3ae35b7571a9639f45952c725e", + "revCount": 251, "type": "git", "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" }, "original": { + "ref": "feature/agent-git-identity", "type": "git", "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" } diff --git a/flake.nix b/flake.nix index e1b8ee2..79413a7 100644 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,7 @@ nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0"; nixpkgs-master.url = "github:nixos/nixpkgs/master"; - m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs"; - # m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs"; + m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs?ref=feature/agent-git-identity"; llm-agents.url = "github:numtide/llm-agents.nix"; # @@ -46,7 +45,7 @@ agents = { # url = "path:/home/m3tam3re/p/AI/AGENTS"; - url = "git+https://code.m3ta.dev/m3tam3re/AGENTS"; + url = "git+https://code.m3ta.dev/m3tam3re/AGENTS?ref=feature/agent-git-identity"; }; ## Skills skills-basecamp = { diff --git a/home/coding/agents/agents.nix b/home/coding/agents/agents.nix index 755e25b..19d511f 100644 --- a/home/coding/agents/agents.nix +++ b/home/coding/agents/agents.nix @@ -9,6 +9,14 @@ videoDrivers ? [], ... }: { + # Agent Git Identity configuration + coding.agents.gitIdentity = { + enable = true; + name = "m3ta-chiron"; + email = "m3ta-chiron@agentmail.to"; + sshKey = "/home/m3tam3re/.ssh/m3ta-chiron"; + }; + imports = [ # OpenCode and Pi agent configurations ./opencode.nix diff --git a/home/coding/agents/pi.nix b/home/coding/agents/pi.nix index dfd4605..d08745a 100644 --- a/home/coding/agents/pi.nix +++ b/home/coding/agents/pi.nix @@ -23,6 +23,7 @@ "documentation" # Documentation standards "testing" # Testing guidelines (Arrange-Act-Assert) "git-workflow" # Conventional commits, branch naming + "git-identity" # Git identity configuration for agents "project-structure" # Project layout conventions ]; From 09e2ba85383dddf8fe66169454ce63f871251ca7 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 27 Apr 2026 17:53:08 +0200 Subject: [PATCH 2/2] chore: AGENTS + nixpkgs input urls --- flake.nix | 4 ++-- issues.jsonl | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 issues.jsonl diff --git a/flake.nix b/flake.nix index 79413a7..8430153 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0"; nixpkgs-master.url = "github:nixos/nixpkgs/master"; - m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs?ref=feature/agent-git-identity"; + m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs"; llm-agents.url = "github:numtide/llm-agents.nix"; # @@ -45,7 +45,7 @@ agents = { # url = "path:/home/m3tam3re/p/AI/AGENTS"; - url = "git+https://code.m3ta.dev/m3tam3re/AGENTS?ref=feature/agent-git-identity"; + url = "git+https://code.m3ta.dev/m3tam3re/AGENTS"; }; ## Skills skills-basecamp = { diff --git a/issues.jsonl b/issues.jsonl new file mode 100644 index 0000000..16e5be1 --- /dev/null +++ b/issues.jsonl @@ -0,0 +1,3 @@ +{"id":"home-profile-restructuring-edz","title":"Create copy-hermes-skills systemd service","status":"closed","priority":1,"issue_type":"task","assignee":"m3tm3re","owner":"p@m3ta.dev","estimated_minutes":1,"created_at":"2026-04-26T12:30:10Z","created_by":"m3tm3re","updated_at":"2026-04-26T12:44:42Z","started_at":"2026-04-26T12:36:30Z","closed_at":"2026-04-26T12:44:42Z","close_reason":"Created systemd service in hosts/m3-hermes/services/hermes-agent.nix - copies skills to /var/lib/hermes/.agents/skills before hermes-agent starts","labels":["hermes-agent","nixos"],"dependencies":[{"issue_id":"home-profile-restructuring-edz","depends_on_id":"home-profile-restructuring-ycz","type":"blocks","created_at":"2026-04-26T14:30:57Z","created_by":"m3tm3re","metadata":"{}"}],"dependency_count":1,"dependent_count":1,"comment_count":0} +{"id":"home-profile-restructuring-ycz","title":"Build hermes-agent skills using mkOpencodeSkills","status":"closed","priority":1,"issue_type":"task","assignee":"m3tm3re","owner":"p@m3ta.dev","estimated_minutes":2,"created_at":"2026-04-26T12:30:09Z","created_by":"m3tm3re","updated_at":"2026-04-26T12:35:15Z","started_at":"2026-04-26T12:31:35Z","closed_at":"2026-04-26T12:35:15Z","close_reason":"Added inputs to module signature and defined hermesSkills via inputs.agents.lib.mkOpencodeSkills with basecamp, anthropic, and kestra external skills. Verified with nixos-rebuild dry-run --flake .#m3-hermes (no errors).","labels":["hermes-agent","nixos"],"dependency_count":0,"dependent_count":1,"comment_count":0} +{"id":"home-profile-restructuring-cxa","title":"Verify skills available at /var/lib/hermes/.agents/skills","status":"closed","priority":2,"issue_type":"task","assignee":"m3tm3re","owner":"p@m3ta.dev","estimated_minutes":1,"created_at":"2026-04-26T12:30:10Z","created_by":"m3tm3re","updated_at":"2026-04-26T12:50:58Z","started_at":"2026-04-26T12:38:15Z","closed_at":"2026-04-26T12:50:58Z","close_reason":"Manually verified - skills are present at /var/lib/hermes/.agents/skills on m3-hermes","labels":["hermes-agent","testing"],"dependencies":[{"issue_id":"home-profile-restructuring-cxa","depends_on_id":"home-profile-restructuring-edz","type":"blocks","created_at":"2026-04-26T14:30:57Z","created_by":"m3tm3re","metadata":"{}"}],"dependency_count":1,"dependent_count":0,"comment_count":0}