Keep only Claude Code as the WSL coding agent

Disable install and deploy and select removal for OpenCode, Codex,
Gemini CLI, Cline, and IBM Bob on deadalus. Expose the OpenCode and
IBM Bob lifecycle flags in group_vars so host overrides can control
them like the other agents.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
Fabio Scotto di Santolo
2026-11-13 10:23:39 +01:00
parent 3f3781437b
commit 269f08a332
4 changed files with 30 additions and 12 deletions

View File

@@ -551,7 +551,7 @@ validated exports of older historical data will use a dedicated Atlas NFS datase
- Shared agent dotfiles live in `ai_agents_dotfiles`; rendered configs live in `ai_agents_templates`.
- Every `ai_agents.<agent>` entry has independent `install_enabled`, `deploy_enabled`, and `uninstall_enabled` flags. Installation and removal must not both be true for the same agent; the common pre-task fails before changes when they conflict.
- Fedora, Void desktop, and WSL workstation profiles consume the shared agent definitions; do not duplicate package entries in profile-specific vars. IBM Bob on the workstation follows its own flags.
- WSL (`deadalus`) disables Codex installation and dotfile deployment and selects its managed npm package for removal through host overrides; existing Codex user state remains untouched.
- WSL (`deadalus`) keeps only Claude Code installed; every other managed agent (including IBM Bob) is disabled and selected for removal through host overrides. Existing user state remains untouched.
- `dotfiles_common` deploys `ai_agents_dotfiles` and renders `ai_agents_templates` only when deployment is enabled.
- Removal is limited to the managed npm packages and `/usr/local/bin/bob`; never remove agent dotfiles, instructions, credentials, or user data.
- Keep `.config/ai/` as the common instruction source; update agent-specific entrypoints to reference it rather than duplicating instruction text.

View File

@@ -577,8 +577,8 @@ ansible-playbook ansible/site.yml --limit <host> --tags emacs -e emacs_enabled=t
## AI coding agents
The shared npm-managed agents are OpenCode, Claude Code, Codex, Gemini CLI, and
GitHub Copilot; IBM Bob is also managed on `deadalus`. Codex Relay is installed
only on `ikaros`. Each agent has its own lifecycle flags in
GitHub Copilot; IBM Bob is also managed on Fedora workstations. Codex Relay is installed
only on `ikaros`. On WSL (`deadalus`), Claude Code is the only installed coding agent. Each agent has its own lifecycle flags in
`ansible/inventory/group_vars/all.yml`, so one agent can be installed,
configured, or removed without affecting the others:
@@ -598,9 +598,9 @@ instructions, credentials, and user data. Installation and removal are mutually
exclusive per agent: the playbook fails before making changes when both flags are
true for the same agent. Servers set `ai_agents: {}` and therefore manage none.
On WSL (`deadalus`), Codex installation and dotfile deployment are disabled through
host overrides; the managed `@openai/codex` npm package is selected for removal.
Existing Codex configuration, credentials, and user data are left untouched.
On WSL (`deadalus`), every managed coding agent except Claude Code is disabled through
host overrides and its managed npm package or `bob` binary is selected for removal.
Existing configuration, credentials, and user data are left untouched.
The shared agent context is centralized in `dotfiles/common/.config/ai/` and
deployed to `~/.config/ai/` for every enabled agent: `bootstrap.md` (operating

View File

@@ -93,6 +93,9 @@ common_dotfiles:
# AI coding-agent lifecycle controls are independent for every agent.
# Installation and removal are mutually exclusive per agent; the common
# pre-task enforces this before any changes are made.
opencode_install_enabled: true
opencode_deploy_enabled: true
opencode_uninstall_enabled: false
codex_install_enabled: true
codex_deploy_enabled: true
codex_uninstall_enabled: false
@@ -106,6 +109,8 @@ claude_code_uninstall_enabled: true
cline_install_enabled: true
cline_deploy_enabled: true
cline_uninstall_enabled: false
ibm_bob_install_enabled: true
ibm_bob_uninstall_enabled: false
# npm registry requests can be interrupted transiently. Keep retries bounded
# so persistent proxy, DNS, or registry failures still fail the play clearly.
@@ -115,9 +120,9 @@ ai_agents_npm_install_retry_delay: 10
ai_agents:
opencode:
npm_package: opencode-ai
install_enabled: true
deploy_enabled: true
uninstall_enabled: false
install_enabled: "{{ opencode_install_enabled }}"
deploy_enabled: "{{ opencode_deploy_enabled }}"
uninstall_enabled: "{{ opencode_uninstall_enabled }}"
opencode_mobile:
npm_package: opencode-mobile
install_enabled: false
@@ -154,9 +159,9 @@ ai_agents:
deploy_enabled: false
uninstall_enabled: true
ibm_bob:
install_enabled: true
install_enabled: "{{ ibm_bob_install_enabled }}"
deploy_enabled: false
uninstall_enabled: false
uninstall_enabled: "{{ ibm_bob_uninstall_enabled }}"
ai_agents_deploy_enabled_names: >-
{{ ai_agents | dict2items | selectattr('value.deploy_enabled') | map(attribute='key') | list }}

View File

@@ -5,10 +5,23 @@ workstation_ecaas_workspace: "{{ user_home }}/Work/sipo/ecaas"
workstation_cdp_workspace: "{{ user_home }}/Work/sipo/cdp"
workstation_ecaas_git_required_ca: ecaas.datacenter.comune.roma.crt
# Codex is not installed or configured on WSL; remove the managed npm package.
# Claude Code is the only coding agent on WSL; every other managed agent is removed.
claude_code_install_enabled: true
claude_code_uninstall_enabled: false
opencode_install_enabled: false
opencode_deploy_enabled: false
opencode_uninstall_enabled: true
codex_install_enabled: false
codex_deploy_enabled: false
codex_uninstall_enabled: true
gemini_cli_install_enabled: false
gemini_cli_deploy_enabled: false
gemini_cli_uninstall_enabled: true
cline_install_enabled: false
cline_deploy_enabled: false
cline_uninstall_enabled: true
ibm_bob_install_enabled: false
ibm_bob_uninstall_enabled: true
host_packages: []
host_enabled_services: []