Skip to main content

Overview

Custom executors allow you to integrate any AI coding tool or custom logic into Forge. Extend beyond the 8 built-in agents to add your own automation.
Use cases: Custom APIs, internal tools, specialized workflows, proprietary models

Executor Interface

Create a custom executor by implementing the Executor interface:

Basic Custom Executor

Simple Example

Register Executor


Advanced Executor


Use Cases

Internal Company Tool

Proprietary Model

Hybrid Human-AI


Configuration

Executor Config File

Create .forge/executors/my-executor.json:

Load Executors


Testing Custom Executors

Unit Tests


Publishing Executors

NPM Package

Usage by Others


Best Practices

Error Handling

Never throw unhandled errors

Cost Tracking

Track actual costs

Cancellation Support

Allow cancelling long-running tasks

Progress Updates

Report progress for long tasks

Next Steps

Specialized Agents

Combine with specialized agents

Webhooks & Events

Trigger executors via webhooks

API Reference

Integrate with Forge API

SDK Documentation

Full SDK reference