Note: see the https://github.com/coder/registry/tree/main/registry/coder/modules/goose module as a reference
The claude-code module was written before the agentapi module existed.
The agentapi module was extracted once we knew the required shape of a module to support multiple AI agents.
Modify the claude-code module to use the agentapi module instead of directly running it.
Additionally, add the subdomain parameter to support running cladude-code under a subdomain with agentapi version >= v0.3.3. This will cause AGENTAPI_CHAT_BASE_PATH to be exported to the correct value and be picked up by the module run script.
See the relevant PR for the goose module for reference (note that it already used the agentapi module): #299
Note: see the https://github.com/coder/registry/tree/main/registry/coder/modules/goose module as a reference
The
claude-codemodule was written before theagentapimodule existed.The
agentapimodule was extracted once we knew the required shape of a module to support multiple AI agents.Modify the
claude-codemodule to use theagentapimodule instead of directly running it.Additionally, add the
subdomainparameter to support runningcladude-codeunder a subdomain with agentapi version >= v0.3.3. This will causeAGENTAPI_CHAT_BASE_PATHto be exported to the correct value and be picked up by the module run script.See the relevant PR for the
goosemodule for reference (note that it already used theagentapimodule): #299