Share Cline configuration with the ecaas and cdp devcontainers

Keep Cline deploy-only on deadalus so its rules, the cross-tool AGENTS pointer and the shared ~/.config/ai context are deployed on the WSL host; mount ~/.agents into the containers; list the Cline VS Code extension in the devcontainer customizations. The CLI package stays absent on the host and ships in the images.
This commit is contained in:
2026-11-18 22:52:47 +01:00
parent 3facf61866
commit 66925b1d0d
9 changed files with 27 additions and 8 deletions

View File

@@ -564,7 +564,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`. - 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. - 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. - 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`) 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. - WSL (`deadalus`) keeps only Claude Code installed; every other managed agent (including IBM Bob) is disabled and selected for removal through host overrides. Cline remains deploy-only on WSL: `cline_deploy_enabled: true` keeps its cross-tool AGENTS pointer, global rules, and shared `~/.config/ai` context deployed on the host for the ecaas/cdp devcontainer bind mounts, while the cline CLI package stays absent. Existing user state remains untouched.
- `dotfiles_common` deploys `ai_agents_dotfiles` and renders `ai_agents_templates` only when deployment is enabled. - `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. - 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. - Keep `.config/ai/` as the common instruction source; update agent-specific entrypoints to reference it rather than duplicating instruction text.

View File

@@ -600,6 +600,9 @@ true for the same agent. Servers set `ai_agents: {}` and therefore manage none.
On WSL (`deadalus`), every managed coding agent except Claude Code is disabled through 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. host overrides and its managed npm package or `bob` binary is selected for removal.
Cline is the deploy-only exception: `cline_deploy_enabled: true` keeps its cross-tool
AGENTS pointer, global rules, and shared `~/.config/ai` context deployed on the WSL
host so the ecaas/cdp devcontainers bind-mount them, while the CLI package stays absent.
Existing configuration, credentials, and user data are left untouched. Existing configuration, credentials, and user data are left untouched.
The shared agent context is centralized in `dotfiles/common/.config/ai/` and The shared agent context is centralized in `dotfiles/common/.config/ai/` and

View File

@@ -5,7 +5,11 @@ workstation_ecaas_workspace: "{{ user_home }}/Work/sipo/ecaas"
workstation_cdp_workspace: "{{ user_home }}/Work/sipo/cdp" workstation_cdp_workspace: "{{ user_home }}/Work/sipo/cdp"
workstation_ecaas_git_required_ca: ecaas.datacenter.comune.roma.crt workstation_ecaas_git_required_ca: ecaas.datacenter.comune.roma.crt
# Claude Code is the only coding agent on WSL; every other managed agent is removed. # Claude Code is the only coding agent installed on WSL; every other managed agent
# is disabled. Cline is the deploy-only exception: its cross-tool instructions
# (.agents/AGENTS.md, .cline/rules/) and the shared ~/.config/ai context stay
# deployed on this host so the ecaas/cdp devcontainers bind-mount them, while the
# cline CLI package stays absent (the npm agent tasks skip workstation_dev_fedora).
claude_code_install_enabled: true claude_code_install_enabled: true
claude_code_uninstall_enabled: false claude_code_uninstall_enabled: false
opencode_install_enabled: false opencode_install_enabled: false
@@ -18,7 +22,7 @@ gemini_cli_install_enabled: false
gemini_cli_deploy_enabled: false gemini_cli_deploy_enabled: false
gemini_cli_uninstall_enabled: true gemini_cli_uninstall_enabled: true
cline_install_enabled: false cline_install_enabled: false
cline_deploy_enabled: false cline_deploy_enabled: true
cline_uninstall_enabled: true cline_uninstall_enabled: true
ibm_bob_install_enabled: false ibm_bob_install_enabled: false
ibm_bob_uninstall_enabled: true ibm_bob_uninstall_enabled: true

View File

@@ -66,6 +66,7 @@
loop: loop:
- { path: .claude, mode: "0700" } - { path: .claude, mode: "0700" }
- { path: .cline, mode: "0700" } - { path: .cline, mode: "0700" }
- { path: .agents, mode: "0755" }
- { path: .config/ai, mode: "0755" } - { path: .config/ai, mode: "0755" }
- { path: .config/glab-cli, mode: "0700" } - { path: .config/glab-cli, mode: "0700" }

View File

@@ -58,6 +58,7 @@
loop: loop:
- { path: .claude, mode: "0700" } - { path: .claude, mode: "0700" }
- { path: .cline, mode: "0700" } - { path: .cline, mode: "0700" }
- { path: .agents, mode: "0755" }
- { path: .config/ai, mode: "0755" } - { path: .config/ai, mode: "0755" }
- { path: .config/glab-cli, mode: "0700" } - { path: .config/glab-cli, mode: "0700" }

View File

@@ -30,6 +30,7 @@
{{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/cdp,target=/home/vscode/.bash_history.d') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/cdp,target=/home/vscode/.bash_history.d') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.agents,target=/home/vscode/.agents,readonly') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.config/glab-cli,target=/home/vscode/.config/glab-cli') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.config/glab-cli,target=/home/vscode/.config/glab-cli') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.kube,target=/home/vscode/.kube') | to_json }} {{ ('type=bind,source=' ~ user_home ~ '/.kube,target=/home/vscode/.kube') | to_json }}
@@ -45,6 +46,7 @@
"ms-kubernetes-tools.vscode-kubernetes-tools", "ms-kubernetes-tools.vscode-kubernetes-tools",
"angular.ng-template", "angular.ng-template",
"dbaeumer.vscode-eslint", "dbaeumer.vscode-eslint",
"saoudrizwan.claude-dev",
"emmanuelbeziat.vscode-great-icons" "emmanuelbeziat.vscode-great-icons"
], ],
"settings": { "settings": {

View File

@@ -29,6 +29,7 @@
{{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/ecaas,target=/home/vscode/.bash_history.d') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.local/state/devcontainer-bash-history/ecaas,target=/home/vscode/.bash_history.d') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.claude,target=/home/vscode/.claude') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.cline,target=/home/vscode/.cline') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.agents,target=/home/vscode/.agents,readonly') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }}, {{ ('type=bind,source=' ~ user_home ~ '/.m2,target=/home/vscode/.m2') | to_json }},
{{ ('type=bind,source=' ~ user_home ~ '/.config/glab-cli,target=/home/vscode/.config/glab-cli') | to_json }} {{ ('type=bind,source=' ~ user_home ~ '/.config/glab-cli,target=/home/vscode/.config/glab-cli') | to_json }}
], ],
@@ -40,6 +41,7 @@
"vmware.vscode-boot-dev-pack", "vmware.vscode-boot-dev-pack",
"redhat.vscode-xml", "redhat.vscode-xml",
"redhat.vscode-yaml", "redhat.vscode-yaml",
"saoudrizwan.claude-dev",
"emmanuelbeziat.vscode-great-icons" "emmanuelbeziat.vscode-great-icons"
], ],
"settings": { "settings": {

View File

@@ -2,8 +2,8 @@
Same toolset and mounts as the [ecaas container](deadalus-ecaas-devcontainer.md) Same toolset and mounts as the [ecaas container](deadalus-ecaas-devcontainer.md)
(Git configuration and GitLab CAs, Bash configuration, `~/.m2`, `~/.claude`, (Git configuration and GitLab CAs, Bash configuration, `~/.m2`, `~/.claude`,
`~/.cline`, `~/.config/ai`, Docker outside of Docker, Claude Code, Cline, delta, `~/.cline`, `~/.agents`, `~/.config/ai`, Docker outside of Docker, Claude Code,
Great Icons), with these differences: Cline, delta, Great Icons), with these differences:
- Java 25 (`mcr.microsoft.com/devcontainers/java:25-bookworm`) is the default JDK - Java 25 (`mcr.microsoft.com/devcontainers/java:25-bookworm`) is the default JDK
and also runs the Java and Spring language servers; there is no second JDK. and also runs the Java and Spring language servers; there is no second JDK.

View File

@@ -19,8 +19,8 @@ Do not use the production context to build or open the workspace.
The container uses Java 11 for the application and Maven, and Java 21 only for The container uses Java 11 for the application and Maven, and Java 21 only for
the Java and Spring language servers. VS Code installs the Java and Spring Boot the Java and Spring language servers. VS Code installs the Java and Spring Boot
extension packs, XML, YAML and the VSCode Great Icons theme (selected as the extension packs, XML, YAML, the Cline extension and the VSCode Great Icons theme
file icon theme) inside the container. The Java (selected as the file icon theme) inside the container. The Java
pack includes Maven, the Java debugger and test integration. Prefer the project's pack includes Maven, the Java debugger and test integration. Prefer the project's
Maven wrapper where present. Node is provided for the Claude and Cline CLIs. Maven wrapper where present. Node is provided for the Claude and Cline CLIs.
@@ -84,7 +84,13 @@ the container; changes made by `glab` inside affect the WSL configuration.
Claude and Cline use the WSL configuration directly: `~/.claude` and `~/.cline` Claude and Cline use the WSL configuration directly: `~/.claude` and `~/.cline`
are bind-mounted read-write at `/home/vscode/.claude` and `/home/vscode/.cline`, are bind-mounted read-write at `/home/vscode/.claude` and `/home/vscode/.cline`,
and `~/.config/ai` read-only at `/home/vscode/.config/ai`. Settings, rules, the cross-tool `~/.agents` read-only at `/home/vscode/.agents`, and
`~/.config/ai` read-only at `/home/vscode/.config/ai`, so rules, the AGENTS
pointer and the shared AI context follow the WSL host. The playbook keeps
Cline's managed configuration deployed on the host (`cline_deploy_enabled:
true`) even though the cline CLI npm package is not installed there; the CLI
ships inside the image and the VS Code Cline extension is installed through
the devcontainer customizations. Settings, rules,
skills, MCP configuration, sessions and **credential stores** are therefore skills, MCP configuration, sessions and **credential stores** are therefore
shared with, and visible to, the container, and changes made inside it affect shared with, and visible to, the container, and changes made inside it affect
the WSL home. Host paths and tools referenced by rules or skills may need the WSL home. Host paths and tools referenced by rules or skills may need