mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-19 00:01:23 +02:00
chore(agents): remove Claude integrations
This commit is contained in:
+3
-3
@@ -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
@@ -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`.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
# Agents
|
# Agents
|
||||||
codex
|
codex
|
||||||
cursor-cli
|
cursor-cli
|
||||||
claude-code
|
|
||||||
opencode
|
opencode
|
||||||
kimi-code
|
kimi-code
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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}']
|
||||||
|
|||||||
@@ -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";
|
|
||||||
}
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -84,7 +84,6 @@
|
|||||||
# Agents
|
# Agents
|
||||||
codex
|
codex
|
||||||
cursor-cli
|
cursor-cli
|
||||||
claude-code
|
|
||||||
opencode
|
opencode
|
||||||
kimi-code
|
kimi-code
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user