Skip to content

Commit 2f6a039

Browse files
authored
chore(agents): gate Cursor/Codex/Claude tools to private systems (#71)
1 parent e48f44e commit 2f6a039

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ Deleting a file from the chezmoi source does **not** remove it from the target (
145145
- **Install script templates**`install.sh.tmpl` and `install.ps1.tmpl` are the source of truth for release installers. The release workflow renders `install.sh` and `install.ps1` from templates with repository/image/tag values before uploading release assets.
146146
- **Template readability** – Keep chezmoi template source files readable: use clear indentation, split complex logic into understandable blocks, and avoid flattening everything to the left margin with aggressive whitespace trimming unless required for output correctness.
147147
- **Bitwarden in automation** – Set `DOTFILES_SKIP_BITWARDEN=1` when running `chezmoi apply` in non-interactive/agent contexts. Templates that use the `bitwarden` function must honor this variable to avoid `bw` prompts/failures during automated runs.
148+
- **Cursor, Codex, and Claude-related tools deploy only on private machines** – Never add Cursor, Codex (`npm:@openai/codex`), Claude Code, Claude Desktop, or any other Claude/Anthropic tooling to a base/unconditional overlay. Gate them per subsystem: `{{ if .private }}` in chezmoi templates (e.g. `home/dot_config/mise/config.toml.tmpl`), `{ kind: env, name: PRIVATE, op: set }` in Brewfile overlay conditions, and `conditions: { private: true }` in `home/.chezmoidata/mcps/*.yaml` and `home/.chezmoidata/agent-permissions/*.yaml`. The `private` chezmoi data value is `true` on Windows or when `~/.private` exists (see `home/.chezmoi.toml.tmpl`).
148149

149150
---
150151

home/dot_config/mise/config.toml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ node = "latest"
55
ruby = "latest"
66
"npm:@mariozechner/pi-coding-agent" = "latest"
77
"npm:context-mode" = "latest"
8-
"npm:@openai/codex" = "latest"
98
{{ if .private -}}
9+
"npm:@openai/codex" = "latest"
1010
"npm:@anthropic-ai/claude-code" = "latest"
1111
{{ end -}}
1212
{{ end -}}

0 commit comments

Comments
 (0)