From 46266dd8ea98f91c0b9e63e4cd9d04e5f57ffaad Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Fri, 18 Sep 2026 18:13:20 +0800 Subject: [PATCH] chore(agents): remove Claude integrations --- agents/AGENTS.md | 6 +++--- agents/README.md | 7 +++---- agents/install-cli.md | 2 -- agents/install-rules.py | 2 -- agents/test_install_rules.py | 6 +++--- home/base/gui/dev-tools.nix | 1 - home/base/gui/zed-editor.nix | 1 - home/base/tui/shell/default.nix | 7 ------- hosts/idols-ai/preservation.nix | 5 ----- hosts/idols-ruby/packages.nix | 1 - modules/darwin/apps.nix | 1 - 11 files changed, 9 insertions(+), 30 deletions(-) diff --git a/agents/AGENTS.md b/agents/AGENTS.md index ff58931a..a04b1b86 100644 --- a/agents/AGENTS.md +++ b/agents/AGENTS.md @@ -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 diff --git a/agents/README.md b/agents/README.md index 1e70ab58..f8b960fa 100644 --- a/agents/README.md +++ b/agents/README.md @@ -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`. diff --git a/agents/install-cli.md b/agents/install-cli.md index f68cea8a..519dad05 100644 --- a/agents/install-cli.md +++ b/agents/install-cli.md @@ -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 diff --git a/agents/install-rules.py b/agents/install-rules.py index a257f9da..1e2357d1 100644 --- a/agents/install-rules.py +++ b/agents/install-rules.py @@ -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 diff --git a/agents/test_install_rules.py b/agents/test_install_rules.py index 6f90aca5..45710c43 100644 --- a/agents/test_install_rules.py +++ b/agents/test_install_rules.py @@ -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: diff --git a/home/base/gui/dev-tools.nix b/home/base/gui/dev-tools.nix index 10258cce..49170382 100644 --- a/home/base/gui/dev-tools.nix +++ b/home/base/gui/dev-tools.nix @@ -12,7 +12,6 @@ # Agents codex cursor-cli - claude-code opencode kimi-code diff --git a/home/base/gui/zed-editor.nix b/home/base/gui/zed-editor.nix index 5f22674c..6381c3da 100644 --- a/home/base/gui/zed-editor.nix +++ b/home/base/gui/zed-editor.nix @@ -113,7 +113,6 @@ opencode.type = "registry"; cursor.type = "registry"; codex-acp.type = "registry"; - claude-acp.type = "registry"; }; # Privacy diff --git a/home/base/tui/shell/default.nix b/home/base/tui/shell/default.nix index ab0d5757..5d5fefb1 100644 --- a/home/base/tui/shell/default.nix +++ b/home/base/tui/shell/default.nix @@ -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}'] diff --git a/hosts/idols-ai/preservation.nix b/hosts/idols-ai/preservation.nix index 093ba013..6768d5fc 100644 --- a/hosts/idols-ai/preservation.nix +++ b/hosts/idols-ai/preservation.nix @@ -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"; - } ]; }; }; diff --git a/hosts/idols-ruby/packages.nix b/hosts/idols-ruby/packages.nix index 6fdd97b1..345edbda 100644 --- a/hosts/idols-ruby/packages.nix +++ b/hosts/idols-ruby/packages.nix @@ -84,7 +84,6 @@ # Agents codex cursor-cli - claude-code opencode kimi-code diff --git a/modules/darwin/apps.nix b/modules/darwin/apps.nix index cd266623..b4d82614 100644 --- a/modules/darwin/apps.nix +++ b/modules/darwin/apps.nix @@ -154,7 +154,6 @@ in # AI agents "codex-app" # codex desktop app - "claude" # claude desktop app # container & vm "utm" # vm