Skip to content

Warp Terminal Agent lets you create and orchestrate AI agents with a single prompt, then deploy them as local binaries to streamline your workflow. Make AI practical, fast, and effortlessβ€”perfect for everyday power users (yes, even in insurance πŸ˜…).

Notifications You must be signed in to change notification settings

DylanCkawalec/warp-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ Warp Engine - Universal Agent Protocol

Version Python License

Warp Engine is a production-ready, server-based AI agent factory that runs as a persistent service. Create specialized AI agents through natural language commands, with zero manual coding required.

🎯 Core Features

  • πŸ”„ Server-Based Architecture: Persistent daemon with REST API
  • πŸ€– Agent Factory: Create specialized agents via natural language
  • ⚑ Real-Time Processing: WebSocket updates and async job queues
  • πŸ› οΈ Production Ready: Docker, health checks, and monitoring
  • πŸ”Œ API Integration: REST, WebSocket, and Python client libraries
  • πŸ“Š Monitoring: Comprehensive logging and metrics

✨ Features

πŸ€– Universal Agent Registry

  • Single source of truth for all agents
  • REST API and CLI access
  • Version control and lifecycle management
  • Agent templates for common use cases

πŸ—οΈ Agent Builder Protocol

  • Interactive agent creation via /new-agent command
  • Pre-built templates: Research, Code Generation, Data Analysis
  • Three-agent workflow pattern: Plan β†’ Execute β†’ Refine
  • Automatic code generation, testing, and deployment

πŸ”Œ Warp Terminal Integration

  • Native integration with Warp's AI features
  • Model Context Protocol (MCP) support
  • Agent profiles and permissions
  • Warp Drive knowledge persistence
  • Multi-agent orchestration

🎯 Key Capabilities

  • Zero-code agent creation - Build agents through prompts
  • Production-ready output - Generated agents include tests and documentation
  • Extensible toolkit system - Add custom agent types and capabilities
  • OpenAI integration - Powered by GPT-4 and other models
  • Local execution - All processing happens on your machine

πŸš€ Quick Start

Prerequisites

  • Python 3.10+
  • Warp Terminal (optional but recommended)
  • OpenAI API key

Installation

  1. Clone the repository:
git clone https://github.com/yourusername/warp-engine.git
cd warp-engine
  1. Run the launcher:
./warp-engine

The launcher will:

  • Create a virtual environment
  • Install dependencies
  • Set up configuration
  • Launch the interactive menu
  1. Configure your API key:
cp env.example .env
# Edit .env and add your OPENAI_API_KEY

πŸ“– Usage

Interactive Mode (Recommended)

Run the launcher for an interactive experience:

./warp-engine

This provides a menu-driven interface with options to:

  • Create new agents
  • List and run existing agents
  • Start the web server
  • Access the agent registry

Command Line Interface

Create a New Agent

Interactive mode with templates:

warp-engine new-agent --enhanced

This will present you with agent templates:

  1. πŸ”¬ Research Agent - Deep research with multi-page output
  2. πŸ’» Code Generator - Production-ready code with tests
  3. πŸ“Š Data Analyst - Data analysis and insights
  4. 🎨 Custom Agent - Build from scratch

Non-interactive mode:

warp-engine new-agent \
  --name "Linux Research" \
  --description "Expert Linux system analysis" \
  --plan-prompt "Create a research plan..." \
  --exec-prompt "Execute the research..." \
  --refine-prompt "Polish the output..."

Run an Agent

# List available agents
warp-engine agent list

# Run a specific agent
warp-engine agent run --name research_agent

# Or use the generated binary
./bin/research_agent

Start the Web Server

warp-engine serve --port 8787 --open-browser

Access the UI at http://localhost:8787

API Access

Get Agent Registry

curl http://localhost:8787/api/agents

Create Agent via API

curl -X POST http://localhost:8787/api/agents \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "API Agent",
    "description": "Agent created via API",
    "prompts": {
      "plan": "Plan the task",
      "execute": "Execute the plan",
      "refine": "Refine the output"
    }
  }'

πŸ—οΈ Architecture

Directory Structure

warp-engine/
β”œβ”€β”€ config.api.json          # Universal configuration
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ registry.json        # Agent registry
β”‚   β”œβ”€β”€ knowledge/           # Warp Drive cache
β”‚   └── logs/                # Execution logs
β”œβ”€β”€ src/warpengine/
β”‚   β”œβ”€β”€ agents/              # Generated agents
β”‚   β”œβ”€β”€ toolkits/            # Agent toolkits
β”‚   β”œβ”€β”€ warp_integration/    # Warp terminal integration
β”‚   β”œβ”€β”€ api/                 # API clients (OpenAI, etc.)
β”‚   β”œβ”€β”€ orchestrator/        # Agent workflow engine
β”‚   └── registry/            # Registry management
β”œβ”€β”€ bin/                     # Executable agent shims
└── tests/                   # Test suite

Agent Lifecycle

Create β†’ Build β†’ Test β†’ Deploy β†’ Monitor β†’ Terminate
  1. Create: Define agent via templates or custom prompts
  2. Build: Generate code and dependencies
  3. Test: Run automated tests
  4. Deploy: Create executable and register
  5. Monitor: Track usage and performance
  6. Terminate: Clean shutdown and resource cleanup

πŸ› οΈ Configuration

Environment Variables

Create a .env file with:

# Required
OPENAI_API_KEY=your-api-key-here

# Optional
WARP_ENGINE_HOST=127.0.0.1
WARP_ENGINE_PORT=8787
WARP_ENGINE_MODEL_PLAN=gpt-4-turbo-preview
WARP_ENGINE_MODEL_EXECUTE=gpt-4-turbo-preview
WARP_ENGINE_MODEL_REFINE=gpt-4-turbo-preview

config.api.json

The main configuration file supports:

  • Agent templates
  • Toolkit definitions
  • Model preferences
  • Warp integration settings
  • Lifecycle configuration

πŸ§ͺ Testing

Run the test suite:

pytest tests/ -v

Test a specific agent:

pytest src/warpengine/agents/research_agent/test_research_agent.py

πŸ”§ Advanced Features

Custom Agent Toolkits

Create specialized toolkits by extending base templates:

# src/warpengine/toolkits/security_audit.py
from warpengine.agent_builder import AgentTemplate, AgentType

class SecurityAuditToolkit(AgentTemplate):
    name = "Security Audit Agent"
    type = AgentType.CUSTOM
    capabilities = ["vulnerability_scanning", "code_analysis", "report_generation"]
    # ... additional configuration

Warp Terminal Integration

When Warp is installed, the engine automatically:

  • Creates agent profiles
  • Generates workflows
  • Enables voice commands
  • Syncs with Warp Drive

Multi-Agent Orchestration

Agents can spawn and coordinate with sub-agents:

# In your agent code
sub_agent_result = run_agent("research_agent", context={"topic": "Linux kernel"})

πŸ“š Examples

Research Agent Example

$ warp-engine new-agent --enhanced
# Select: Research Agent
# Name: Linux Expert

$ echo "Analyze Linux kernel memory management" | ./bin/linux_expert

# Output: Multi-page report with:
# - Executive Summary
# - Technical Analysis
# - Performance Metrics
# - Recommendations
# - References

Code Generator Example

$ warp-engine agent run --name code_generator
# Input: "Create a REST API for user management with authentication"

# Output: Complete API with:
# - FastAPI application
# - User models
# - Authentication middleware
# - Unit tests
# - OpenAPI documentation

🀝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

πŸ“„ License

MIT License - see LICENSE for details.

πŸ”— Links

πŸ™ Acknowledgments

Built with ❀️ using:


Note: Remember to keep your API keys secure and never commit them to version control!

About

Warp Terminal Agent lets you create and orchestrate AI agents with a single prompt, then deploy them as local binaries to streamline your workflow. Make AI practical, fast, and effortlessβ€”perfect for everyday power users (yes, even in insurance πŸ˜…).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors