Files
nix-config/home/base/tui/agents/rules.nix
T
Ryan Yin bf193e4082 chore(agents): drop the kimi-code CLI
Kimi Code moved its desktop client into an internal repository in July 2026 (MoonshotAI/kimi-code#1849), so the polished surface is no longer open source; the CLI that stays behind overlaps opencode2 and pi. Removing it drops one more redundant harness.
2026-10-04 12:52:50 +08:00

20 lines
719 B
Nix

{ config, ... }:
let
# The global rules are edited often, so link them out-of-store: an edit reaches
# the next agent session without a Home Manager switch. Same rationale as
# `home/base/tui/tuios`; the checkout path is hardcoded, like the repo's other
# out-of-store links.
rules = "${config.home.homeDirectory}/nix-config/agents/AGENTS.md";
link = config.lib.file.mkOutOfStoreSymlink rules;
in
{
# One canonical rules file, projected into every agent's config location.
home.file = {
".codex/AGENTS.md".source = link; # Codex
".pi/agent/AGENTS.md".source = link; # Pi
".agents/AGENTS.md".source = link; # cross-tool
};
xdg.configFile."opencode/AGENTS.md".source = link; # OpenCode
}