Repository navigation
Add AGENTS.md and ignore all Herdr runtime files - #23
Merged
Merged
Conversation
Agent-agnostic instructions read by Claude Code, Copilot and other agents: platform boundaries, hard rules (stateVersion, Stow-compatible config, disabled Home Manager shell modules, no system activation or input updates unless asked), package pins, Nix gotchas and the CI-equivalent validation commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Herdr keeps adding state files to its symlinked config directory, most recently session-snapshots/, which hold local paths and agent session IDs. Replace the per-file list with an allowlist for config.toml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Correct the invalid nix fmt validation command in AGENTS.md.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds repository-wide agent guidance and ignores Herdr runtime files while preserving config.toml.
Changes:
- Added
AGENTS.mdwith repository rules and validation guidance. - Updated
.gitignorewith a Herdr runtime-file allowlist.
| File | Description |
|---|---|
AGENTS.md |
Adds agent instructions and workflows. |
.gitignore |
Ignores Herdr runtime files except config.toml. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| These commands mirror CI (`.github/workflows/ci.yml`) and need no `sudo`: | ||
|
|
||
| ```sh | ||
| nix fmt <changed .nix files> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
AGENTS.md: agent-agnostic instructions that Claude Code (v2.1.277+, when noCLAUDE.mdexists), Copilot and other agents read automatically. It covers:stateVersionfixed, keep app configs hand-written and Stow-compatible, note that Home Manager's shell modules are off, don't activate systems or update inputs unless asked, never commit secretsdeadnix/statix,nixfmtconfig.toml: Herdr started writingsession-snapshots/, which contain local paths and agent session IDs. The per-file ignore list is replaced with an allowlist so new runtime files stay out ofgit status.Test plan
git check-ignoreconfirms the snapshots,session.json, sockets andplugins/are ignored andconfig.tomlis still trackednix fmtandnix evalcommands listed inAGENTS.mdrun successfully locally🤖 Generated with Claude Code