Multi-agent workflow engine for agentic IDEs using OpenAI Agents SDK
π§ Status: Phase 1 Development - Foundation and MCP core functionality
π Documentation: sofatutor.github.io/agents-cli
Agents CLI enables agentic IDEs (Cursor, VS Code, etc.) to dynamically create and execute sophisticated multi-agent workflows. Define agents, tools, and orchestration patterns through JSON configuration and receive structured outputs optimized for IDE consumption.
- π Dual Interface: CLI and MCP server modes for flexible integration
- βοΈ Configuration-Driven: JSON-based agent and workflow definitions
- π Security-First: Built-in sandboxing and access controls
- π» IDE-Optimized: Real-time streaming and structured outputs
- π§© Extensible: Plugin architecture for custom tools and workflows
# Install globally
npm install -g agents-cli
# Execute a workflow
agents-cli run --config examples/code-review.json --input "Review this code"
# Start MCP server for IDE integration
agents-cli serve --port 3000agents-cli run \
--config examples/code-review.json \
--input "Review this pull request for security issues" \
--files "src/**/*.ts" \
--output review-results.jsonagents-cli run \
--config examples/architecture-review.json \
--input "Analyze the system architecture" \
--context project-root/# Start server for IDE integration
agents-cli serve \
--config server-config.json \
--port 3000 \
--protocols mcp,http{
"agents": {
"code_reviewer": {
"name": "Senior Code Reviewer",
"instructions": "Review code for bugs, performance, and best practices",
"model": "gpt-4o",
"tools": ["file_operations", "git_tools"],
"guardrails": ["no_destructive_operations"],
"handoffs": ["security_reviewer", "architect"]
},
"security_reviewer": {
"name": "Security Expert",
"instructions": "Focus on security vulnerabilities and best practices",
"model": "gpt-4o",
"tools": ["security_scanner", "file_operations"],
"handoffs": ["code_reviewer"]
}
},
"workflow": {
"entry_point": "code_reviewer",
"pattern": "handoff_chain",
"max_turns": 10,
"timeout": 300
}
}- OpenAI Agents SDK Guide
- Product Requirements
- Phase 0 Tasks - Repository foundation
- Phase 1 Tasks - Core development
We welcome contributions! This is an open source project under MIT license.
π οΈ Development Setup
git clone https://github.com/sofatutor/agents-cli.git
cd agents-cli
npm install
npm test
npm run devπ Contributing Guidelines
Current Phase: Foundation + MCP Core (Phase 1)
| Component | Status | Description |
|---|---|---|
| β Repository Setup | Complete | Open source foundation, documentation |
| π§ Configuration System | In Progress | JSON schema validation with Zod |
| π§ MCP Server | In Progress | Model Context Protocol implementation |
| β³ CLI Interface | Planned | Command-line workflow execution |
| β³ OpenAI SDK Integration | Planned | Agent creation and orchestration |
| β³ Security Framework | Planned | Tool sandboxing and access controls |
- Phase 2: Advanced tool integrations and parallel workflow patterns
- Phase 3: Production features, performance optimization
- Phase 4: Workflow templates and community ecosystem
Agents CLI integrates with various IDEs through multiple interfaces:
| IDE | Integration | Status |
|---|---|---|
| Cursor | MCP Protocol | Phase 1 |
| VS Code | MCP + Extension | Phase 1 |
| JetBrains | CLI Plugin | Phase 2 |
| GitHub Copilot | CLI + JSON | Phase 2 |
MIT License - see LICENSE for details.
Security is a core focus. See our Security Policy for:
- Vulnerability reporting process
- Security considerations for multi-agent workflows
- Safe tool execution and credential management
- π Documentation
- π Report Issues
- π¬ GitHub Discussions
- π€ Contributing Guide
Built with OpenAI Agents SDK β’ Optimized for agentic IDEs β’ Open source under MIT license