Skip to content

Comments

docs(sdk): add ACP Agent guide#351

Open
simonrosenberg wants to merge 3 commits intomainfrom
feat/acp-agent
Open

docs(sdk): add ACP Agent guide#351
simonrosenberg wants to merge 3 commits intomainfrom
feat/acp-agent

Conversation

@simonrosenberg
Copy link
Collaborator

Summary

  • Adds sdk/guides/agent-acp.mdx documenting ACPAgent usage, configuration, metrics, and cleanup
  • References examples/01_standalone_sdk/40_acp_agent_example.py from software-agent-sdk#2133
  • Adds the new page to the "Agent Features" navigation group in docs.json

Context

This branch is needed by the check-documented-examples CI job on software-agent-sdk PR #2133, which checks out a matching docs branch (feat/acp-agent) to verify that new examples are documented.

🤖 Generated with Claude Code

Documents ACPAgent usage, configuration, metrics, and cleanup with a
ready-to-run example referencing examples/01_standalone_sdk/40_acp_agent_example.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
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.

🟡 Acceptable - Documentation is clear and practical, but has organizational issues and unverified syntax.

Key Issue: Important information about ACP delegation model is scattered. The fact that this replaces direct LLM calls (no API key needed, server manages everything) should be front and center, not discovered at line 143.

@simonrosenberg
Copy link
Collaborator Author

@OpenHands read the PR and apply all suggestions

@openhands-ai
Copy link

openhands-ai bot commented Feb 20, 2026

I'm on it! simonrosenberg can track my progress at all-hands.dev

- Replace 'wrap focus={5-7}' with 'highlight={5-7}' per Mintlify standards
- Remove 'wrap' attribute from other code blocks
- Add Note callout explaining key differentiator (no LLM_API_KEY needed)
- Move 'What ACPAgent Does Not Support' section after Basic Usage
- Expand permission auto-approval explanation with security context

Co-authored-by: openhands <openhands@all-hands.dev>
@openhands-ai
Copy link

openhands-ai bot commented Feb 20, 2026

Summary

I've successfully applied all review suggestions from PR #351. The changes have already been committed and pushed to the feat/acp-agent branch.

Checklist of Review Suggestions Applied:

  • Fixed code block syntax - Changed wrap focus={5-7} to highlight={5-7} per Mintlify standards (and removed wrap from 3 other code blocks)
  • Added key differentiator callout - Added <Note> component after Basic Usage explaining that ACPAgent doesn't need an LLM_API_KEY (addresses the "buried at line 143" feedback)
  • Moved constraints section earlier - Relocated "What ACPAgent Does Not Support" to right after Basic Usage so developers understand limitations upfront
  • Expanded permission auto-approval explanation - Added security context: "this means the SDK automatically grants any tool execution or file access the server requests, so ensure you trust the ACP server you're running"
  • docs.json placement - Already correct (reviewer confirmed ✅)

Commit Details:

  • Commit: 718ed57
  • Branch: feat/acp-agent
  • Files changed: sdk/guides/agent-acp.mdx (+21 lines, -17 lines)

The changes are concise and focused solely on addressing the review feedback. No extraneous modifications were made.

Copy link
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.

🟡 Acceptable - Good improvements from previous feedback, but missing the "how to run" instructions that users need.

Key Issue: You import RunExampleCode but never use it, and provide no alternative bash block. Users reading this will see example code but no clear command to execute it.


## Basic Usage

```python icon="python" highlight={5-7}
Copy link
Contributor

Choose a reason for hiding this comment

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

🟡 Suggestion: highlight={5-7} includes a blank line (line 6). Either highlight just the ACPAgent instantiation with highlight={5} or the full pattern with highlight={5,7-9} (skipping the blank).

Comment on lines +146 to +147
```

Copy link
Contributor

Choose a reason for hiding this comment

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

🟠 Important: You imported <RunExampleCode> at line 6 but never used it. While the standard component shows LLM_API_KEY setup (which does not apply here), users still need runnable instructions.

Add a bash code block after line 144:

Suggested change
```
This example does not use an LLM API key directly — the ACP server (Claude Code) handles authentication on its own.
```bash Running the Example
# Ensure Claude Code CLI is authenticated first
# (or set CLAUDE_API_KEY in your environment)
cd software-agent-sdk
uv run python examples/01_standalone_sdk/40_acp_agent_example.py

This follows the pattern from other guides while acknowledging the different auth model.

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