Skip to content

chore(claude-code)!: strip boundary, agentapi, tasks, tools#861

Open
matifali wants to merge 4 commits intomainfrom
chore/claude-code-strip-boundary-agentapi-tasks
Open

chore(claude-code)!: strip boundary, agentapi, tasks, tools#861
matifali wants to merge 4 commits intomainfrom
chore/claude-code-strip-boundary-agentapi-tasks

Conversation

@matifali
Copy link
Copy Markdown
Member

@matifali matifali commented Apr 22, 2026

Summary

Reduces claude-code to 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 to coder-utils v1.1.0. Starting Claude is now the caller's responsibility (template command, IDE launcher, or a custom coder_script).

Changes

  • Delete scripts/start.sh. The module no longer launches Claude.
  • Replace the agentapi sub-module with coder-utils (pinned to release/coder/coder-utils/v1.1.0) for install/pre/post script orchestration.
  • Remove Boundary install, agentapi install, task reporting, session tracking, and tool allow/deny logic from scripts/install.sh.
  • Remove the npm installation path from scripts/install.sh. The module now always uses the official claude.ai/install.sh installer.
  • Drop variables: 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.
  • Rename variable claude_api_keyanthropic_api_key (env ANTHROPIC_API_KEY).
  • Rename variable enable_aibridgeenable_ai_gateway.
  • AI Gateway now sets ANTHROPIC_AUTH_TOKEN (not ANTHROPIC_API_KEY) to the workspace owner's Coder session token, matching the AI Gateway centralized API key flow.
  • Fix configure_standalone_mode in scripts/install.sh to also recognize CLAUDE_CODE_OAUTH_TOKEN so OAuth-only users get the onboarding bypass.
  • Add scripts output (pass-through from coder-utils) so upstream modules can serialize their coder_script resources behind this module's install pipeline via coder exp sync want.
  • Remove the task_app_id output.
  • Module logs now live at $HOME/.coder-modules/coder/claude-code/ (was $HOME/.claude-module/).
  • README: rewrite prerequisites, add a standalone-mode launcher-app example, add a downstream-sync example, reorder sections simple-to-advanced, bump version references to 5.0.0.

Breaking Changes

Before After
claude_api_key anthropic_api_key
enable_aibridge enable_ai_gateway
AI Gateway set ANTHROPIC_API_KEY to session token AI Gateway sets ANTHROPIC_AUTH_TOKEN to session token
module.claude-code.task_app_id removed (no coder_app created)
permission_mode removed (pass via your own start script)
install_via_npm removed (module always uses the official installer)
ai_prompt, system_prompt, allowed_tools, disallowed_tools, report_tasks, session/continue vars, Boundary vars, agentapi vars, web_app/cli_app vars, order/group, enable_state_persistence removed
$HOME/.claude-module/*.log $HOME/.coder-modules/coder/claude-code/*.log

Callers depending on any of the above must migrate. The module no longer starts Claude, provide your own coder_script or template command if you want it to launch automatically.

Validation

  • terraform fmt -recursive clean
  • terraform validate clean
  • terraform test → 13/13 pass
  • bun test registry/coder/modules/claude-code → 12/12 pass
  • shellcheck --severity=warning clean
  • prettier --check clean

🤖 This PR was created with the help of Coder Agents, and needs a human review. 🧑‍💻

@matifali matifali marked this pull request as ready for review April 22, 2026 16:45
@matifali matifali force-pushed the chore/claude-code-strip-boundary-agentapi-tasks branch 7 times, most recently from bd6ed01 to 92718d5 Compare April 22, 2026 17:54
- 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).
@matifali matifali force-pushed the chore/claude-code-strip-boundary-agentapi-tasks branch from 92718d5 to 42ff02a Compare April 22, 2026 17:59
@matifali matifali requested review from 35C4n0r and evgeniy-scherbina and removed request for evgeniy-scherbina April 22, 2026 18:01
@matifali matifali changed the title chore(claude-code): strip boundary, agentapi, tasks, tools chore(claude-code)!: strip boundary, agentapi, tasks, tools Apr 22, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant