dendritic-pattern master flake for NIXPC (x86_64-linux, MangoWM) and ASAHI (aarch64-linux, Niri). Every modules/**/*.nix is a flake-parts module auto-registered by import-tree; flake.nix re-exports nixosConfigurations, overlays, packages, and checks.
Project-wide contracts: dendritic pattern (modules/ auto-registration, /_ exclusion, flake.nixosModules/flake.homeManagerModules as values), --impure required for deploy (hardwareFromMachine reads /etc/nixos/hardware-configuration.nix), dual-homed nixConfig caches (flake.nix + modules/system/core/nix-settings.nix stay in sync; an input whose packages upstream publishes to a cache MUST NOT follow nixpkgs), one color source (self.scheme from modules/features/scheme; themed features read it and never hardcode a hex), nixfmt (RFC style) formatting.
Verification ladder (cheapest first): nix-instantiate --parse <file> → nix eval .#nixosConfigurations.<HOST>.config.<option> --impure → nix run .#verify / nix flake check --impure (parse, eval-pure, hardware, fmt, aggregate gates from modules/verify.nix).
- DOX is highly performant AGENTS.md hierarchy installed here
- Agent must follow DOX instructions across any edits
- AGENTS.md files are binding work contracts for their subtrees
- Work products, source materials, instructions, records, assets, and durable docs must stay understandable from the nearest applicable AGENTS.md plus every parent AGENTS.md above it
- Read the root AGENTS.md
- Identify every file or folder you expect to touch
- Walk from the repository root to each target path
- Read every AGENTS.md found along each route
- If a parent AGENTS.md lists a child AGENTS.md whose scope contains the path, read that child and continue from there
- Use the nearest AGENTS.md as the local contract and parent docs for repo-wide rules
- If docs conflict, the closer doc controls local work details, but no child doc may weaken DOX
Do not rely on memory. Re-read the applicable DOX chain in the current session before editing.
Every meaningful change requires a DOX pass before the task is done.
Update the closest owning AGENTS.md when a change affects:
- purpose, scope, ownership, or responsibilities
- durable structure, contracts, workflows, or operating rules
- required inputs, outputs, permissions, constraints, side effects, or artifacts
- user preferences about behavior, communication, process, organization, or quality
- AGENTS.md creation, deletion, move, rename, or index contents
Update parent docs when parent-level structure, ownership, workflow, or child index changes. Update child docs when parent changes alter local rules. Remove stale or contradictory text immediately. Small edits that do not change behavior or contracts may leave docs unchanged, but the DOX pass still must happen.
- Root AGENTS.md is the DOX rail: project-wide instructions, global preferences, durable workflow rules, and the top-level Child DOX Index
- Child AGENTS.md files own domain-specific instructions and their own Child DOX Index
- Each parent explains what its direct children cover and what stays owned by the parent
- The closer a doc is to the work, the more specific and practical it must be
- Create a child AGENTS.md when a folder becomes a durable boundary with its own purpose, rules, responsibilities, workflow, materials, or quality standards
- Work Guidance must reflect the current standards of the project or user instructions; if there are no specific standards or instructions yet, leave it empty
- Verification must reflect an existing check; if no verification framework exists yet, leave it empty and update it when one exists
Default section order:
- Purpose
- Ownership
- Local Contracts
- Work Guidance
- Verification
- Child DOX Index
- Keep docs concise, current, and operational
- Document stable contracts, not diary entries
- Put broad rules in parent docs and concrete details in child docs
- Prefer direct bullets with explicit names
- Do not duplicate rules across many files unless each scope needs a local version
- Delete stale notes instead of explaining history
- Trim obvious statements, repeated rules, misplaced detail, and warnings for risks that no longer exist
- Re-check changed paths against the DOX chain
- Update nearest owning docs and any affected parents or children
- Refresh every affected Child DOX Index
- Remove stale or contradictory text
- Run existing verification when relevant
- Report any docs intentionally left unchanged and why
When the user requests a durable behavior change, record it here or in the relevant child AGENTS.md
modules/— dendritic flake-parts tree (auto-registration,parts.nix,verify.nix,_exclusion) →modules/AGENTS.mdmodules/attrs/— machine-class bundles (desktop,gaming,programming) →modules/attrs/AGENTS.mdmodules/features/— opt-in feature modules (import = enable, HM vs NixOS, out-of-store symlinks) →modules/features/AGENTS.mdmodules/features/noctalia/— Noctalia shell,cernoh/terminalplugin,ghostty-termhelper →modules/features/noctalia/AGENTS.mdmodules/features/omp/— Oh My Pi overlay, HM wrapping, managed-skills, plugins,~/.omp→modules/features/omp/AGENTS.md
modules/hosts/— host presets (NIXPCx86_64,ASAHIaarch64,hardwareFromMachinegate) →modules/hosts/AGENTS.mdmodules/system/— cross-host system modules (core, home-manager, network, audio, drivers, …) →modules/system/AGENTS.md
.github/— CI, STE prose lint, workflows, templates →.github/AGENTS.md
Nearest AGENTS.md controls local detail; parent docs supply repo-wide rules. Walk root → target, reading every AGENTS.md on the path.