Skip to content

sofatutor/agents-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Agents CLI

CI License: MIT Documentation Phase OpenAI SDK

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

What is 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.

Key Features

  • πŸ”„ 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

Quick Start (Coming Soon)

# 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 3000

Example Usage

Code Review Workflow

agents-cli run \
  --config examples/code-review.json \
  --input "Review this pull request for security issues" \
  --files "src/**/*.ts" \
  --output review-results.json

Architecture Analysis

agents-cli run \
  --config examples/architecture-review.json \
  --input "Analyze the system architecture" \
  --context project-root/

MCP Server Mode

# Start server for IDE integration
agents-cli serve \
  --config server-config.json \
  --port 3000 \
  --protocols mcp,http

Configuration Example

{
  "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
  }
}

Documentation

πŸ“– Complete Documentation

Quick Links

Architecture & Development

Contributing

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

Project Status & Roadmap

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

View detailed progress β†’

Upcoming Phases

  • Phase 2: Advanced tool integrations and parallel workflow patterns
  • Phase 3: Production features, performance optimization
  • Phase 4: Workflow templates and community ecosystem

IDE Integration

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

License

MIT License - see LICENSE for details.

Security

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

Support


Built with OpenAI Agents SDK β€’ Optimized for agentic IDEs β€’ Open source under MIT license

About

Multi-agent workflow engine for agentic IDEs using OpenAI Agents SDK

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •