chore(agents): remove Claude integrations

This commit is contained in:
Ryan Yin
2026-09-18 21:20:33 +08:00
committed by ryan4yin | 二花
parent 7a30581dde
commit 46266dd8ea
11 changed files with 9 additions and 30 deletions
+3 -3
View File
@@ -9,9 +9,9 @@ the meanings defined in RFC 2119 and RFC 8174.
## Safety and authorization
These rules take precedence over the user request and project-local policy (`AGENTS.md`,
`CLAUDE.md`, and repository documentation), which MUST NOT weaken them. On conflict, agents MUST
follow this section and state the conflict briefly.
These rules take precedence over the user request and project-local policy (`AGENTS.md` and
repository documentation), which MUST NOT weaken them. On conflict, agents MUST follow this section
and state the conflict briefly.
### Workspace access
+3 -4
View File
@@ -33,7 +33,6 @@ Current targets:
- Codex: `AGENTS.md` -> `${CODEX_HOME:-~/.codex}/AGENTS.md`
- OpenCode: `AGENTS.md` -> `${XDG_CONFIG_HOME:-~/.config}/opencode/AGENTS.md`
- Claude Code: `AGENTS.md` -> `~/.claude/CLAUDE.md`
- Generic cross-tool (read by Kimi Code): `AGENTS.md` -> `~/.agents/AGENTS.md`
Behavior:
@@ -71,9 +70,9 @@ Ideas worth adopting once a concrete need appears; nothing here is implemented y
scripts above do not cover it.
- **Shared instructions and skills.** Deploy one rules body plus declared skills to every agent
(Claude Code, Codex, OpenCode) instead of maintaining a copy per agent. Reference:
`mirkolenz/infra` `options/home-manager/agents.nix` (custom `programs.agents`, follows the Agent
Skills spec) and `khaneliman/khanelinix` `modules/common/ai-tools/`.
(Codex, OpenCode, Kimi Code) instead of maintaining a copy per agent. Reference: `mirkolenz/infra`
`options/home-manager/agents.nix` (custom `programs.agents`, follows the Agent Skills spec) and
`khaneliman/khanelinix` `modules/common/ai-tools/`.
- **Single-source permissions.** Keep allow/ask/deny command lists and agent role definitions in one
place and render them per harness. Reference: `khaneliman/khanelinix`
`modules/common/ai-tools/{permissions,agents}.nix`.
-2
View File
@@ -9,7 +9,6 @@ Installed via Nix:
- codex
- opencode
- cursor-agent(cli)
- claude-code
- kimi-code
## Optional tooling
@@ -22,7 +21,6 @@ npx ctx7 setup
rtk init:
```bash
rtk init -g # configure claude-code
rtk init -g --codex
rtk init -g --opencode
rtk init -g --agent cursor
-2
View File
@@ -45,12 +45,10 @@ def main() -> int:
codex_dir = Path(os.environ.get("CODEX_HOME", "~/.codex")).expanduser()
xdg_config_home = Path(os.environ.get("XDG_CONFIG_HOME", "~/.config")).expanduser()
opencode_dir = xdg_config_home / "opencode"
claude_dir = Path("~/.claude").expanduser()
agents_dir = Path("~/.agents").expanduser()
targets = (
(codex_dir, "AGENTS.md"),
(opencode_dir, "AGENTS.md"),
(claude_dir, "CLAUDE.md"),
(agents_dir, "AGENTS.md"),
)
failed = False
+3 -3
View File
@@ -17,18 +17,18 @@ class InstallRulesTests(unittest.TestCase):
def test_target_failure_does_not_stop_remaining_targets(self):
with (
patch.object(
installer, "install_one", side_effect=[PermissionError("denied"), None, None, None]
installer, "install_one", side_effect=[PermissionError("denied"), None, None]
) as install,
patch("sys.stderr", new_callable=io.StringIO) as stderr,
):
self.assertEqual(installer.main(), 1)
self.assertEqual(install.call_count, 4)
self.assertEqual(install.call_count, 3)
self.assertIn("denied", stderr.getvalue())
def test_successful_targets_return_success(self):
with patch.object(installer, "install_one") as install:
self.assertEqual(installer.main(), 0)
self.assertEqual(install.call_count, 4)
self.assertEqual(install.call_count, 3)
def test_existing_file_is_backed_up_without_overwriting_backup(self):
with tempfile.TemporaryDirectory() as directory:
-1
View File
@@ -12,7 +12,6 @@
# Agents
codex
cursor-cli
claude-code
opencode
kimi-code
-1
View File
@@ -113,7 +113,6 @@
opencode.type = "registry";
cursor.type = "registry";
codex-acp.type = "registry";
claude-acp.type = "registry";
};
# Privacy
-7
View File
@@ -12,13 +12,6 @@
extraConfig = ''
source /etc/agenix/alias-for-work.nushell
$env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC = "1"
$env.CLAUDE_CODE_ATTRIBUTION_HEADER = "0"
# for work
$env.ANTHROPIC_BASE_URL = $env.WORK_ANTHROPIC_BASE_URL
$env.ANTHROPIC_AUTH_TOKEN = $env.WORK_ANTHROPIC_AUTH_TOKEN
# Directories in this constant are searched by the
# `use` and `source` commands.
const NU_LIB_DIRS = $NU_LIB_DIRS ++ ['${nu_scripts}']
-5
View File
@@ -157,7 +157,6 @@ in
# ai agents
".agents" # skills for all agents
".config/agents"
".claude"
".codex"
".kimi-code"
".config/opencode"
@@ -357,10 +356,6 @@ in
file = ".config/zoom.conf";
how = "symlink";
}
{
file = ".claude.json";
how = "bindmount";
}
];
};
};
-1
View File
@@ -84,7 +84,6 @@
# Agents
codex
cursor-cli
claude-code
opencode
kimi-code
-1
View File
@@ -154,7 +154,6 @@ in
# AI agents
"codex-app" # codex desktop app
"claude" # claude desktop app
# container & vm
"utm" # vm