feat(m3-hermes): T3 agent runtime — agent-lib skills + gitea as m3ta-chiron #28

Merged
m3tam3re merged 1 commits from feat/t3code-agent-lib-gitea into master 2026-10-31 15:59:28 +01:00
Collaborator

Summary

Lane-1-Agent-Runtime für T3 Code auf m3-hermes: Skills via agent-lib v2 + Gitea-Zugang als m3ta-chiron für alle T3-Agents (OpenCode & Claude Code).

  • agent-lib Sync: Timer (2h + 5min nach Boot) läuft agent-lib sync als m3tam3re — deployed Work-Repo (gitea m3tam3re/agent-lib) nach ~/.agents/skills + ~/.config/opencode/{commands,agents}. Config admin-protected unter /etc/agent-lib/config.json (Fleet-Pattern aus agent-lib docs/fleet-handoff.md). Repo ist anonym per HTTPS lesbar (verifiziert: git ls-remote ohne Credentials) → kein Deploy-Token nötig.
  • Claude-Code-Skills: System-Path-Unit + ExecStartPost spiegeln ~/.agents/skills → ~/.claude/skills (Port von m3ta-home claude-skills.nix, per-Skill-Symlinks, handgemachte Skills unangetastet).
  • Git-Identität m3ta-chiron: GIT_AUTHOR_*/GIT_COMMITTER_* als Service-Env des t3code-Service — jedes gespawnte Harness committet als Bot-Account, ohne ~/.gitconfig von m3tam3re anzufassen.
  • Gitea SSH: tmpfiles-SSH-Config für m3tam3re (User gitea, IdentityFile ~/.ssh/gitea, IdentitiesOnly), Host-Key systemweit in /etc/ssh/ssh_known_hosts → non-interaktives git/nix-flake-SSH ohne Prompt. Betrifft nur m3tam3re — Hermes' eigener Gitea-Zugang (eigene ssh config) unberührt.
  • pkgs.agent-lib in systemPackages für manuelle Syncs durch den Cockpit-User.

Einmalige Schritte nach Merge (im Modul-Header dokumentiert)

  1. SSH-Key: sudo -u m3tam3re ssh-keygen -t ed25519 -N "" -C chiron-t3-m3-hermes -f /home/m3tam3re/.ssh/gitea
  2. Pubkey auf m3ta-chiron-Account in Gitea hinterlegen (Settings → SSH Keys, Name chiron-t3-m3-hermes)
  3. Verify: sudo -u m3tam3re ssh -T gitea@code.m3ta.dev und systemctl start agent-lib-sync && systemctl status agent-lib-sync

Verification

  • nix-instantiate --parse OK
  • alejandra formatiert
  • nix build .#nixosConfigurations.m3-hermes.config.system.build.toplevel → Exit 0

Notes

  • L+ auf /home/m3tam3re/.ssh/config ersetzt eine evtl. vorhandene echte Datei — existierte bei PR-Erstellung nicht. Im Zweifel Host-Block manuell mergen und Rule streichen.
  • Lane 2 (herdr-Worker) bekommt dasselbe Muster später via agenix-Secret (bereits als Follow-up in herdr-sandbox.nix dokumentiert).
## Summary Lane-1-Agent-Runtime für T3 Code auf m3-hermes: Skills via agent-lib v2 + Gitea-Zugang als m3ta-chiron für alle T3-Agents (OpenCode & Claude Code). - **agent-lib Sync**: Timer (2h + 5min nach Boot) läuft `agent-lib sync` als `m3tam3re` — deployed Work-Repo (gitea m3tam3re/agent-lib) nach `~/.agents/skills` + `~/.config/opencode/{commands,agents}`. Config admin-protected unter `/etc/agent-lib/config.json` (Fleet-Pattern aus agent-lib docs/fleet-handoff.md). Repo ist anonym per HTTPS lesbar (verifiziert: `git ls-remote` ohne Credentials) → kein Deploy-Token nötig. - **Claude-Code-Skills**: System-Path-Unit + ExecStartPost spiegeln `~/.agents/skills` → `~/.claude/skills` (Port von m3ta-home `claude-skills.nix`, per-Skill-Symlinks, handgemachte Skills unangetastet). - **Git-Identität m3ta-chiron**: `GIT_AUTHOR_*`/`GIT_COMMITTER_*` als Service-Env des t3code-Service — jedes gespawnte Harness committet als Bot-Account, ohne `~/.gitconfig` von m3tam3re anzufassen. - **Gitea SSH**: tmpfiles-SSH-Config für m3tam3re (`User gitea`, `IdentityFile ~/.ssh/gitea`, IdentitiesOnly), Host-Key systemweit in `/etc/ssh/ssh_known_hosts` → non-interaktives git/nix-flake-SSH ohne Prompt. Betrifft nur m3tam3re — Hermes' eigener Gitea-Zugang (eigene ssh config) unberührt. - `pkgs.agent-lib` in systemPackages für manuelle Syncs durch den Cockpit-User. ## Einmalige Schritte nach Merge (im Modul-Header dokumentiert) 1. SSH-Key: `sudo -u m3tam3re ssh-keygen -t ed25519 -N "" -C chiron-t3-m3-hermes -f /home/m3tam3re/.ssh/gitea` 2. Pubkey auf **m3ta-chiron**-Account in Gitea hinterlegen (Settings → SSH Keys, Name `chiron-t3-m3-hermes`) 3. Verify: `sudo -u m3tam3re ssh -T gitea@code.m3ta.dev` und `systemctl start agent-lib-sync && systemctl status agent-lib-sync` ## Verification - `nix-instantiate --parse` OK - `alejandra` formatiert - `nix build .#nixosConfigurations.m3-hermes.config.system.build.toplevel` → Exit 0 ## Notes - `L+` auf `/home/m3tam3re/.ssh/config` ersetzt eine evtl. vorhandene echte Datei — existierte bei PR-Erstellung nicht. Im Zweifel Host-Block manuell mergen und Rule streichen. - Lane 2 (herdr-Worker) bekommt dasselbe Muster später via agenix-Secret (bereits als Follow-up in herdr-sandbox.nix dokumentiert).
m3ta-chiron added 1 commit 2026-10-31 15:24:11 +01:00
- agent-lib v2 client: /etc config + timer sync (2h/on-boot) as m3tam3re,
  deploys work repo into ~/.agents/skills + ~/.config/opencode/*
- Claude Code skills mirror (system path unit, port of m3ta-home
  claude-skills.nix)
- git identity m3ta-chiron via t3code service env (no ~/.gitconfig hijack)
- gitea SSH for m3tam3re (User gitea, key ~/.ssh/gitea) + host key pinned
  system-wide; one-time keygen steps documented in module header
m3tam3re merged commit cae0e33625 into master 2026-10-31 15:59:28 +01:00
m3tam3re deleted branch feat/t3code-agent-lib-gitea 2026-10-31 15:59:28 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m3tam3re/nixos-config#28