Skip to content

docs(reference/api): add chat context endpoints to API reference#26281

Open
david-fraley wants to merge 1 commit into
mainfrom
dfraley/docs-chat-context-cli
Open

docs(reference/api): add chat context endpoints to API reference#26281
david-fraley wants to merge 1 commit into
mainfrom
dfraley/docs-chat-context-cli

Conversation

@david-fraley

@david-fraley david-fraley commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add the POST and DELETE chat context endpoints to the auto-generated Chats API reference page at coder.com/docs/reference/api/chats.

These endpoints (introduced in #24105) allow workspace agents to inject instruction files and skills into an active chat session. The injected content is model-only visible, acting as a hidden prompt mechanism for startup scripts, CI/CD integrations, and custom agents.

Changes

  • Replace @x-apidocgen {"skip": true} on workspaceAgentAddChatContext and workspaceAgentClearChatContext with proper swagger annotations tagged as Chats.
  • Regenerate API docs via make coderd/apidoc/.gen.

New endpoints on the Chats page:

  • Add chat context from a workspace agent (POST /api/v2/workspaceagents/me/experimental/chat-context)
  • Clear chat context from a workspace agent (DELETE /api/v2/workspaceagents/me/experimental/chat-context)

Generated by Coder Agents on behalf of @david-fraley

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown

Docs preview

📖 View docs preview for docs/reference/api/chats.md

Replace @x-apidocgen skip annotations on workspaceAgentAddChatContext
and workspaceAgentClearChatContext with proper swagger annotations
tagged as Chats, then regenerate API docs.

The two endpoints now appear on the Chats API reference page:
- POST /api/v2/workspaceagents/me/experimental/chat-context
- DELETE /api/v2/workspaceagents/me/experimental/chat-context
@david-fraley david-fraley force-pushed the dfraley/docs-chat-context-cli branch from 1c721f3 to 93d3392 Compare June 11, 2026 19:09
@david-fraley david-fraley changed the title docs(ai-coder/agents): document chat context CLI commands docs(reference/api): add chat context endpoints to API reference Jun 11, 2026
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