Skip to content

docs: map agent definition files in the chat context in the pstack adapter - #103

Merged
ibetitsmike merged 1 commit into
mainfrom
mike/pstack-adapter-batch-agent-definitions
Nov 10, 2026
Merged

ibetitsmike merged 1 commit into
mainfrom
mike/pstack-adapter-batch-agent-definitions

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Part of #13 and #7.

Updates docs/fork/pstack-adapter.md for #83, which reports agent definition files in the chat context behind fork-agent-definitions. The page now says what fork main at 0298da5976 does.

  • Custom agent types. The section now says that GET /api/v2/chats/{chat} lists each pinned definition file in context.resources with kind subagent and its status. An ok file also reports its name, its description, and any parse warnings. Any other status reports the reason and adds no custom type, so the reader knows where to look when a type is missing from spawn_agent.
  • Evidence. A new entry cites the experiment gate and the subagent kind in context_prompt.go, the name and warnings in subagentContextResource, the non-ok rows in pinnedContextResources, the single-chat response in exp_chats.go, and the ok-only filter for custom types in workspaceAgentDefinitions. The header names 0298da5976.

The page doesn't describe the context popup. It shows a warning icon for a failed definition but doesn't list it yet, which is the agent definitions UI work in #75.

Validation

  • Between c43627ac25 and 0298da5976, feat: report agent definition files in the chat context behind fork-agent-definitions #83 and feat: add chat wake-up tables and queries #82 changed coderd/x/chatd/context_prompt.go and coderd/x/chatd/fork_agent_definitions.go among the cited files. Every cited range in them is unchanged. The new cites were read at 0298da5976.
  • markdownlint-cli2 0.16.0 on the page: 0 errors. No em dashes, en dashes, spaced double hyphens, or semicolons in the added lines.
  • UAT on the isolated 3100 server at v2.39.0-devel+190ad7b164 with fork-agent-definitions, as a member, in a workspace with three files in ~/.coder/agents/:
    • A chat that started before the deploy (4b89a417, at c43627ac25) reported no context resources.
    • A new chat (2603dc7c) reported three subagent resources: gate-ok.md as ok with its name and description, gate-warn.md as ok with missing description; unknown front-matter field "flavor" ignored in error, and gate-bad.md as invalid with agent name "Gate_Bad" is not kebab-case.
    • Asked for its spawn_agent types, the same chat listed general, explore, computer_use, gate-ok, and gate-warn, and not gate-bad.
    • In headless Chromium, the context indicator shows a warning icon, its label says Some context resources failed to load, and its popup names none of the files.
  • Docs only. No code change.

Xum opened this PR on behalf of @ibetitsmike.

@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum acted for Mike on this comment.

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T03:52:11.397321Z 1c5709c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 1c5709c0a8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ibetitsmike
ibetitsmike merged commit 23d5021 into main Nov 10, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/pstack-adapter-batch-agent-definitions branch November 10, 2026 04:08
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum (AI agent) merged this on behalf of @ibetitsmike.

Merge evidence for head 1c5709c0a845d1e190fc58aace9c7f54182317d5:

This was referenced Nov 10, 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