Skip to content

docs(sdk): Document ACPAgent prompt context extensions and authentication#478

Merged
xingyaoww merged 1 commit into
mainfrom
docs/acp-agent-context-prompt-extensions
Apr 27, 2026
Merged

docs(sdk): Document ACPAgent prompt context extensions and authentication#478
xingyaoww merged 1 commit into
mainfrom
docs/acp-agent-context-prompt-extensions

Conversation

@xingyaoww
Copy link
Copy Markdown
Member

@xingyaoww xingyaoww commented Apr 27, 2026

Summary

Documents the new ACPAgent features from software-agent-sdk#2946 in the ACP Agent guide (sdk/guides/agent-acp.mdx).

Changes

New section: Prompt Context (AgentContext)

  • Explains how ACPAgent now supports agent_context for prompt-only extensions (skills, repo context, datetime, system/user message suffixes)
  • Includes a code example showing how to pass an AgentContext with skills and a system message suffix
  • Documents the prompt assembly pipeline (_build_acp_prompt()to_acp_prompt_context())
  • Adds a compatibility table showing which AgentContext fields are ACP-compatible and which are rejected (e.g. secrets)

New section: Authentication

  • Documents the automatic credential selection logic for ACP servers
  • ChatGPT subscription login (~/.codex/auth.json) takes priority when present
  • API key environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY) serve as fallback

Updated: What ACPAgent Does Not Support

  • Removed agent_context from the unsupported list (it is now supported for prompt-only extensions)
  • Kept tools, MCP config, condenser, and critic as unsupported (server-owned features)

This PR was created by an AI agent (OpenHands) on behalf of the user, in response to a review comment on software-agent-sdk#2946.

Add documentation for the AgentContext prompt extensions feature
(software-agent-sdk#2946) to the ACP Agent guide:

- New 'Prompt Context (AgentContext)' section with usage example and
  explanation of the prompt assembly pipeline
- Compatibility table showing which AgentContext fields work with ACP
- New 'Authentication' section documenting ChatGPT subscription login
  priority and API key fallback
- Updated 'What ACPAgent Does Not Support' to remove agent_context
  (now supported for prompt-only extensions)

Co-authored-by: openhands <openhands@all-hands.dev>
@xingyaoww xingyaoww marked this pull request as ready for review April 27, 2026 23:18
@xingyaoww xingyaoww requested a review from enyst as a code owner April 27, 2026 23:18
@xingyaoww xingyaoww enabled auto-merge (squash) April 27, 2026 23:19
@xingyaoww xingyaoww requested a review from all-hands-bot April 27, 2026 23:19
@mintlify
Copy link
Copy Markdown

mintlify Bot commented Apr 27, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
all-hands-ai 🟢 Ready View Preview Apr 27, 2026, 11:20 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Good taste - Clear, well-structured documentation that properly documents the new ACPAgent features.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟢 LOW

Documentation-only change with no code modifications. The new sections follow established Mintlify conventions, use appropriate components (Note, tables, code highlights), and provide clear examples of the new prompt context and authentication features. The compatibility table is particularly helpful for users understanding which AgentContext fields work with ACPAgent.

VERDICT:
Worth merging: Documentation accurately reflects the new features and follows repository conventions.

KEY INSIGHT:
The compatibility table and explicit explanation of which features are ACP-compatible prevents user confusion about the delegation model.

@xingyaoww xingyaoww merged commit 954725e into main Apr 27, 2026
8 of 9 checks passed
@xingyaoww xingyaoww deleted the docs/acp-agent-context-prompt-extensions branch April 27, 2026 23:21
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.

3 participants