dsh rewrites a profile's cordis.patch.yml at runtime, so linking the web profile put GUI state in the checkout and let runtime writes clobber manual edits. Link the stable policy as the $DSH_HOME home layer instead: dsh applies it after every profile and only reads it. The host-plane compaction-basic row is disabled on the web surface and each agent preset owns its own copy, so the top-level override was inert. Drop it; the model contextWindow/maxTokens are the effective knobs. - add home/base/tui/agents/dsh/cordis.patch.yml, linked from default.nix - drop the ~/.dsh/profiles/web link and the tracked web/ profile - keep runtime state and private/local model routes in the profile patch - update the eval test and README
1.6 KiB
Agents
Home Manager module that owns the Nix side of the AI coding agents: deploying the global rules, the agent CLIs, and their environment.
The canonical rules text, behavioral scenarios, and external-tool snippets live in the top-level
agents/ directory. That directory stays portable Markdown with no
Nix dependency; this module only wires it into place.
Files
rules.nix: links the global rules to every agent's config location.packages.nix: agent CLIs (codex,opencode2,pi) from thellm-agentsflake input, pluspkgs.mcp-grafanafor the Grafana MCP server.env.nix: telemetry and auto-update opt-outs for the agents.dsh/: the shared dsh home-layer patch linked to~/.dsh/cordis.patch.yml. See dsh/README.md for why the shared layer is linked and the profile patch is not.
Deployed rule targets
rules.nix creates one out-of-store symlink per target, all pointing at
~/nix-config/agents/AGENTS.md:
| Agent | Target |
|---|---|
| Codex | ~/.codex/AGENTS.md |
| OpenCode | ~/.config/opencode/AGENTS.md |
| Pi | ~/.pi/agent/AGENTS.md |
| Cross-tool | ~/.agents/AGENTS.md |
Out-of-store means an edit to agents/AGENTS.md takes effect on the next agent session without a
Home Manager switch. The trade-off is that the rules stay writable in the checkout; use a store
symlink (home.file.<target>.source = ../../../../agents/AGENTS.md) if immutability matters more
than fast iteration.