feat: add agent tools and sanitize tool names for Anthropic API
Add 8 new agent-callable tools (sessions.list/history/create/delete,
agents.list, message.send, cron.list/trigger) and sanitize tool names
at the API boundary (dots → underscores) to comply with Anthropic's
`^[a-zA-Z0-9_-]{1,128}` requirement. Reverse-maps sanitized names
back to internal names for hook callbacks and tool execution.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+57
-3
@@ -8,7 +8,8 @@
|
||||
"file": "2026-02-06-openclaw-feature-gap-analysis.md",
|
||||
"status": "completed",
|
||||
"date": "2026-02-06",
|
||||
"summary": "Comprehensive comparison of Flynn vs OpenClaw. 118 features compared: 29 match, 11 partial, 78 missing."
|
||||
"updated": "2026-02-07",
|
||||
"summary": "Comprehensive comparison of Flynn vs OpenClaw. 116 features compared: 75 match (65%), 2 partial (2%), 38 missing (33%). Updated 2026-02-07 after full codebase audit revealed 33+ features previously marked MISSING were actually implemented."
|
||||
},
|
||||
"p0-p1-implementation-plan": {
|
||||
"file": "2026-02-06-p0-p1-implementation-plan.md",
|
||||
@@ -201,7 +202,7 @@
|
||||
"p2-implementation": {
|
||||
"status": "completed",
|
||||
"date": "2026-02-06",
|
||||
"summary": "4 P2 features: tech debt cleanup, retry policy, system prompt templating, usage tracking & cost estimation",
|
||||
"summary": "7 P2 features: tech debt cleanup, retry policy, system prompt templating, usage tracking, tool allow/deny profiles, Docker sandboxing, multi-agent routing",
|
||||
"phases": {
|
||||
"tech_debt_cleanup": {
|
||||
"priority": "P2",
|
||||
@@ -602,6 +603,58 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"p8-agent-tools": {
|
||||
"status": "completed",
|
||||
"date": "2026-02-07",
|
||||
"summary": "8 new agent-callable tools exposing existing internal APIs, plus gap analysis audit update (25% → 65% match rate)",
|
||||
"phases": {
|
||||
"sessions_tools": {
|
||||
"priority": "P8",
|
||||
"status": "completed",
|
||||
"description": "sessions.list, sessions.history, sessions.create, sessions.delete tools wrapping SessionManager",
|
||||
"files_created": [
|
||||
"src/tools/builtin/sessions.ts"
|
||||
],
|
||||
"files_modified": [
|
||||
"src/tools/builtin/index.ts",
|
||||
"src/tools/index.ts",
|
||||
"src/daemon/index.ts"
|
||||
]
|
||||
},
|
||||
"agents_list_tool": {
|
||||
"priority": "P8",
|
||||
"status": "completed",
|
||||
"description": "agents.list tool wrapping AgentConfigRegistry.list()",
|
||||
"files_created": [
|
||||
"src/tools/builtin/agents-list.ts"
|
||||
]
|
||||
},
|
||||
"message_send_tool": {
|
||||
"priority": "P8",
|
||||
"status": "completed",
|
||||
"description": "message.send tool wrapping ChannelRegistry for cross-channel messaging",
|
||||
"files_created": [
|
||||
"src/tools/builtin/message-send.ts"
|
||||
]
|
||||
},
|
||||
"cron_tools": {
|
||||
"priority": "P8",
|
||||
"status": "completed",
|
||||
"description": "cron.list, cron.trigger tools wrapping CronScheduler",
|
||||
"files_created": [
|
||||
"src/tools/builtin/cron.ts"
|
||||
]
|
||||
},
|
||||
"gap_analysis_update": {
|
||||
"priority": "P8",
|
||||
"status": "completed",
|
||||
"description": "Full codebase audit and gap analysis document update. 33+ features previously marked MISSING corrected to MATCH. Scorecard: 75/116 match (65%), 2 partial, 38 missing",
|
||||
"files_modified": [
|
||||
"docs/plans/2026-02-06-openclaw-feature-gap-analysis.md"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"earlier_plans": {
|
||||
"status": "completed",
|
||||
"summary": "Original design and implementation phases from 2026-02-02 to 2026-02-05",
|
||||
@@ -637,6 +690,7 @@
|
||||
"p5_completion": "1/1 (100%) — GitHub Copilot provider with auto-login",
|
||||
"p6_completion": "4/4 (100%) — enhanced media pipeline (image.analyze, outbound attachments, gateway attachments, audio transcription)",
|
||||
"p7_completion": "6/6 (100%) — web UI dashboard SPA (dashboard, chat, sessions, settings)",
|
||||
"next_up": "All planned phases P0-P7 complete. Remaining gaps from feature analysis: streaming content events for real-time chat, Signal/iMessage/Teams channels, webhooks, onboard wizard, typing indicators for non-Telegram channels, session pruning, DM pairing"
|
||||
"p8_completion": "8/8 (100%) — agent tools (sessions.list/history/create/delete, agents.list, message.send, cron.list/trigger) + gap analysis audit",
|
||||
"next_up": "All planned phases P0-P8 complete. Remaining gaps from feature analysis: /think & /verbose commands, typing indicators for non-Telegram channels, session pruning, tool groups, inbound webhooks, vector memory search, Dockerfile, heartbeat, additional channels (Signal/Matrix/Teams/Google Chat)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user