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