Michael Suchacz
1092093e98
feat: add internal subagent model override wiring ( #24399 )
...
> Mux working on behalf of Mike.
## Summary
- add an enabled chat model config lookup by ID for internal callers
- keep `spawn_agent` unchanged while threading an internal model
override through child subagent chat creation
- extend chatd coverage for inherited bindings, plan mode, and internal
override behavior
## Validation
- `go test ./coderd/x/chatd ./coderd/database/dbauthz`
- `make lint`
2026-04-16 17:08:02 +02:00
Cian Johnston
e9025f91e8
chore(db): remove 23 unused database methods ( #22999 )
...
Removes 22 database query methods with no callers outside generated code
and the dbauthz wrapper layer (~1,600 lines).
**Security keys (6)** — superseded by `cryptokeys` package:
`GetAppSecurityKey`, `UpsertAppSecurityKey`, `GetOAuthSigningKey`,
`UpsertOAuthSigningKey`, `GetCoordinatorResumeTokenSigningKey`,
`UpsertCoordinatorResumeTokenSigningKey`
**Superseded queries (4):**
- `GetProvisionerJobsByIDs` → `GetProvisionerJobsByIDsWithQueuePosition`
- `GetDeploymentDAUs` / `GetTemplateDAUs` →
`GetTemplateInsightsByInterval`
- `GetWorkspaceBuildParametersByBuildIDs` + its `GetAuthorized...`
variant → unused
**OAuth2 (2):**
`GetOAuth2ProviderAppByRegistrationToken`,
`UpdateOAuth2ProviderAppSecretByID`
**Chat (4)** — pre-wired with no callers:
`GetChatModelConfigByProviderAndModel`, `DeleteChatMessagesByChatID`,
`ListChatsByRootID`, `ListChildChatsByParentID`
**Other (6):**
`DeleteGitSSHKey`, `UpdateUserLinkedID`, `GetFileIDByTemplateVersionID`,
`GetTemplateVersionHasAITask`, `InsertUserGroupsByName`,
`RemoveUserFromAllGroups`
2026-03-12 21:32:57 +00:00
Kyle Carberry
edee917d88
feat: add experimental agents support ( #22290 )
...
feat: add AI chat system with agent tools and chat UI
Introduce the chatd subsystem and Agents UI for AI-powered chat
within Coder workspaces.
- Add chatd package with chat loop, message compaction, prompt
management, and LLM provider integration (OpenAI, Anthropic)
- Add agent tools: create workspace, list/read templates, read/write/
edit files, execute commands
- Add chat API endpoints with streaming, message editing, and
durable reconnection
- Add database schema and migrations for chats, chat messages, chat
providers, and chat model configs
- Add RBAC policies and dbauthz enforcement for chat resources
- Add Agents UI pages with conversation timeline, queued messages
list, diff viewer, and model configuration panel
- Add comprehensive test coverage including coderd integration tests,
chatd unit tests, and Storybook stories
- Gate feature behind experiments flag
---------
Co-authored-by: Cian Johnston <cian@coder.com >
Co-authored-by: Danielle Maywood <danielle@themaywoods.com >
Co-authored-by: Jeremy Ruppel <jeremy@coder.com >
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-02-27 16:50:56 +00:00