Skip to content

fix: agent mention detection, Anthropic tool-calls, MCP session stability, CLI logging#334

Open
phreakocious wants to merge 2 commits intoopenagents-org:developfrom
phreakocious:fix/agent-mcp-cli-bugfixes
Open

fix: agent mention detection, Anthropic tool-calls, MCP session stability, CLI logging#334
phreakocious wants to merge 2 commits intoopenagents-org:developfrom
phreakocious:fix/agent-mcp-cli-bugfixes

Conversation

@phreakocious
Copy link
Copy Markdown

Summary

  • Agent mention detection: Adds _is_mentioned() to CollaboratorAgent so agents respond to @agent_id mentions even without an explicit trigger, not just react_to_all_messages mode
  • Anthropic tool-call format: Converts OpenAI-style tool_calls/tool messages to Anthropic's tool_use/tool_result content blocks in AnthropicProvider, fixing broken tool use flows
  • MCP session stability: Uses AsyncExitStack to properly manage stdio transport and session context managers, preventing premature cleanup of background tasks. Also fixes input_schema parameter name for tool registration
  • CLI logging: Adds missing imports (yaml, rich.progress, configure_workspace_logging) needed by the CLI agent module
  • Misc: Removes duplicate comment, fixes from ast import Dictfrom typing import Dict

Test plan

  • Verify agents respond to @mention in workspace threads
  • Confirm Anthropic-backed agents can execute tool calls end-to-end
  • Test MCP stdio server connections remain stable over extended sessions
  • Run CLI agent commands and confirm no import errors

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

@phreakocious is attempting to deploy a commit to the Raphael's projects Team on Vercel.

A member of the Team first needs to authorize it.

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