-
Notifications
You must be signed in to change notification settings - Fork 306
agents system #675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
agents system #675
Conversation
|
Claude Code ReviewStatus: WIP - Large agent system implementation This PR introduces a comprehensive agent orchestration system built on Cloudflare Workers and Durable Objects. Given the WIP status, here are substantive issues to address: Critical Issues1. Race condition in subagent cancellation (packages/agents/src/sys/agent/index.ts:263-291)The cancel operation iterates over waiting subagents without proper atomicity. Between fetching
2. Memory leak in Store caching (packages/agents/src/sys/agent/store.ts:167-205)
3. Missing error handling in async middleware hooks (packages/agents/src/sys/agent/index.ts:466-477)
4. SQL injection via string concatenation (packages/agents/src/sys/agent/store.ts:316)
Architecture Issues5. Unbounded recursion risk in agent loopsNo explicit limit on run steps. A misbehaving agent could exhaust resources with infinite tool calls.
6. No retry logic for inter-DO communicationSubagent spawning (
Testing Gaps7. Missing tests for concurrent operationsTests don't verify concurrent 8. No test coverage for Store cache invalidationThe cache invalidation bugs aren't caught because tests don't verify read-after-write consistency across different Store methods. Minor Issues
Positive Notes
Next Steps: Focus on concurrency correctness and error handling before expanding features. |
commit: |
Add comprehensive documentation for the new Agent System (agents/sys), a multi-agent orchestration framework for building complex AI systems. Documentation includes: - Overview of Agent System capabilities and architecture - Getting started guide with setup instructions - Detailed architecture documentation - Complete API reference Synced from: cloudflare/agents#675 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This sync adds comprehensive documentation for the new Agent System feature: - Getting started guide with setup and configuration - Architecture documentation explaining the system components - Complete API reference for TypeScript/Worker API and HTTP surface The Agent System provides a framework for building stateful, multi-agent AI systems on Cloudflare Workers with built-in middleware for planning, file management, and hierarchical agent orchestration. Source PR: cloudflare/agents#675
WIP