{{ message }}
chore(claude-code)!: strip boundary, agentapi, tasks, tools#861
Open
chore(claude-code)!: strip boundary, agentapi, tasks, tools#861
Conversation
bd6ed01 to
92718d5
Compare
- Remove boundary variables and install logic. - Drop agentapi module; orchestrate scripts through coder-utils instead. - Remove start-script-only variables not shared with install (resume_session_id, continue, ai_prompt, dangerously_skip_permissions). - Remove allowed_tools and disallowed_tools. - Remove report_tasks, system_prompt, claude_md_path, and coder exp mcp / coder_report_task wiring. - Rename claude_api_key to anthropic_api_key (ANTHROPIC_API_KEY) and claude_code_oauth_token to anthropic_auth_token (ANTHROPIC_AUTH_TOKEN).
92718d5 to
42ff02a
Compare
The npm installation path has been deprecated in the README for a while. Since this release is already a major breaking change, remove the variable entirely rather than shipping deprecated surface across another cycle. The module now always uses the official claude.ai/install.sh installer.
workdir no longer controls where Claude runs. Rewrite the description to reflect its actual role: pre-creating the directory, scoping MCP server registration, and pre-accepting the trust/onboarding prompts in ~/.claude.json. Also remove the unused workdir_normalized local in install.sh.
This was referenced Apr 22, 2026
…de/logs coder-utils now unconditionally nests logs under module_directory/logs. Update the module source pin to the feat/coder-utils-nest-logs branch, refresh the Troubleshooting section in the README, and update every test that reads install.log / pre_install.log / post_install.log to the new path. The source pin will move to release/coder/coder-utils/v1.2.0 once the upstream PR lands.
v1.2.0 of coder-utils (#870) is the first release that nests logs under ${module_directory}/logs/, matching the $HOME/.coder-modules/coder/claude-code/logs/ paths documented and tested in this module. Move the source ref off the feature branch and onto the release tag now that it has shipped. The registry proxy at registry.coder.com does not yet index v1.2.0, so keep the git:: source for now and swap to the HCP-style source in a follow-up once indexing catches up.
v1.2.0 is now indexed at registry.coder.com/coder/coder-utils/coder, so drop the git:: source in favour of the HCP-style registry source. Keeps the module consumable without a GitHub dependency at apply time.
The install script is rendered from scripts/install.sh.tftpl via templatefile(). The sibling scripts/install.sh was no longer referenced anywhere and was left behind from the pre-templatefile layout.
Replace the mutable branch ref with a commit SHA so 'terraform init' returns a deterministic module source. Every other coder/modules source uses a version-pinned registry.coder.com reference; branch refs can be force-pushed, which would silently change the caller-name derivation for anyone who re-inits. Also add a comment on the coder-utils call explaining why 'agent_name' is no longer passed (the refactored coder-utils derives it from module_directory) and a comment on the tftest script-name assertion covering the same derivation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Reduces
claude-codeto a minimal install-and-configure module for the Claude CLI. Boundary, agentapi, task reporting, session tracking, tool allow/deny, and start orchestration move out. Script execution is delegated tocoder-utilsv1.2.0. Starting Claude is now the caller's responsibility (template command, IDE launcher, or a customcoder_script).Changes
scripts/start.sh. The module no longer launches Claude.agentapisub-module withcoder-utilsv1.2.0 (sourced fromregistry.coder.com/coder/coder-utils/coder) for install/pre/post script orchestration.scripts/install.sh.scripts/install.sh. The module now always uses the officialclaude.ai/install.shinstaller.report_tasks,system_prompt,claude_md_path,allowed_tools,disallowed_tools,enable_boundary,boundary_version,compile_boundary_from_source,use_boundary_directly,order,group,web_app,cli_app,web_app_display_name,cli_app_display_name,install_agentapi,agentapi_version,ai_prompt,subdomain,resume_session_id,continue,dangerously_skip_permissions,enable_state_persistence,permission_mode,install_via_npm.claude_api_key→anthropic_api_key(envANTHROPIC_API_KEY).enable_aibridge→enable_ai_gateway.ANTHROPIC_AUTH_TOKEN(notANTHROPIC_API_KEY) to the workspace owner's Coder session token, matching the AI Gateway centralized API key flow.configure_standalone_modeinscripts/install.shto also recognizeCLAUDE_CODE_OAUTH_TOKENso OAuth-only users get the onboarding bypass.scriptsoutput (pass-through fromcoder-utils) so upstream modules can serialize theircoder_scriptresources behind this module's install pipeline viacoder exp sync want.task_app_idoutput.$HOME/.coder-modules/coder/claude-code/logs/(was$HOME/.claude-module/), using the nestedlogs/layout introduced in coder-utils v1.2.0.5.0.0.Breaking Changes
claude_api_keyanthropic_api_keyenable_aibridgeenable_ai_gatewayANTHROPIC_API_KEYto session tokenANTHROPIC_AUTH_TOKENto session tokenmodule.claude-code.task_app_idcoder_appcreated)permission_modeinstall_via_npmai_prompt,system_prompt,allowed_tools,disallowed_tools,report_tasks, session/continue vars, Boundary vars, agentapi vars,web_app/cli_appvars,order/group,enable_state_persistence$HOME/.claude-module/*.log$HOME/.coder-modules/coder/claude-code/logs/*.logCallers depending on any of the above must migrate. The module no longer starts Claude, provide your own
coder_scriptor template command if you want it to launch automatically.Validation
terraform fmt -recursivecleanterraform validatecleanterraform test→ 13/13 passbun test registry/coder/modules/claude-code→ 12/12 passshellcheck --severity=warningcleanprettier --checkclean