Effect-native forge toolkit

Build the forge you need. From Git to coding agents.

effect-forge is a suite of Effect v4 building blocks for teams who want their own forge. This site — effect-forge.dev — is itself a live running instance on Cloudflare Workers, D1, R2, and SQLite Durable Objects.

git clone https://effect-forge.dev/demo/effect-forge.git
pnpm add effect-forge
  • 14 packages
  • Effect v4 end to end
  • Node or Workers
effect-forge7 layers · 14 packages
  1. Agentsagentsacpmcp

    Effect AI, OpenRouter, ACP bidirectional harness, and MCP server so coding agents commit, open changes, and read CI.

  2. Interfacesfactory-apihttpui

    Typed Factory HttpApi, Git Smart HTTP and LFS, plus server-rendered Effect UI you can keep or replace.

  3. Ecosystemregistryfederation

    npm and OCI Distribution v2 registries, HTTP Signatures, WebFinger, and federation.

  4. Automationactions

    Durable workflows from YAML, approval gates, secret redaction, pluggable runners, and live SSE logs.

  5. Forge domaincore

    Repos, branches, pull requests, reviews, merge gates, encrypted secrets, deployments, RBAC, and audit logs.

  6. Gitgit

    Pure-TypeScript objects, packfiles, tree diffs, and Smart HTTP protocol v1 and v2.

  7. Runtimessqlitenodecloudflare

    Shared SQLite dialect plus adapters for single-node SQLite/FS or Cloudflare Workers, D1, R2, and Durable Objects.

The stack

Fourteen packages. Use one, or all of them.

Each package owns one concern and depends only on the layers beneath it. Embed the Git engine in a tool, put the CI or ACP harness behind your own API, or run the full forge.

@effect-forge/git

A Git engine you can read

SHA-1 objects, packfile v2 with OFS and REF deltas, pkt-line framing, and Smart HTTP v1 and protocol v2. Storage is two small interfaces: objects and refs.

packfilesprotocol v2tree diffs
@effect-forge/core

The forge, as a domain

Schemas and typed errors for repos, pull requests, reviews, merge gates, encrypted secrets, deployments, RBAC, and immutable audit logs.

Schemamerge gatesecrets
@effect-forge/sqlite

One SQLite schema, two runtimes

All nine metadata, collaboration, actions, factory, registry, federation, and agent stores written once against a minimal SQLite/D1 interface.

node:sqliteCloudflare D19 stores
@effect-forge/actions

CI on effect/workflow

Parses workflow YAML, runs jobs as durable workflows, enforces approval gates, redacts secrets, reports commit statuses, and streams logs over SSE.

durableSSE logsstep runners
@effect-forge/factory-api

A typed API for coding factories

Effect HttpApi for products built on a forge: changes in one call, merge policy, self-explaining gates, delegated actors, and one resumable event stream.

HttpApidelegationSSE events
@effect-forge/agents

Coding agent sessions

Multi-turn agent sessions on dedicated branches with Effect AI, OpenRouter tool-calling, ACP harnesses, and a multi-runner registry.

effect/aiOpenRoutermulti-runner
@effect-forge/acp

First-party Effect ACP client

Standalone Agent Client Protocol JSON-RPC 2.0 library with scoped transports, reverse filesystem/permission handlers, and cancellation on interrupt.

ACPJSON-RPC 2.0standalone
@effect-forge/http

Protocols and APIs

An Effect HttpRouter serving Git Smart HTTP, the LFS batch API, and REST endpoints with configurable auth and branch protection policies.

Smart HTTPLFSREST
@effect-forge/ui

A UI that renders anywhere

Server-rendered with effect/ui and compiled StyleX: repo browser, split diffs, PR review, CI runs, deployments, agent workspaces, and a /ui zoo.

effect/uiStyleXWorkers-safe
@effect-forge/registry

Packages next to code

An npm registry and an OCI Distribution v2 container registry backed by the same pluggable blob store as everything else.

npmOCI v2
@effect-forge/federation

Forges that talk

HTTP Signatures with Web Crypto, WebFinger discovery, and ActivityPub actors, inbox, and outbox.

ActivityPubWebFinger
@effect-forge/mcp

Agents as first-class users

A JSON-RPC MCP server over HTTP and stdio, plus a typed Effect client. Agents provision repos, commit files, open and merge PRs, and read CI logs.

MCPHTTP + stdioSDK
@effect-forge/node

One process, one disk

node:sqlite stores, filesystem objects and blobs, host shell step runner, stdio ACP transport, and a Git CLI backend in one Node process.

SQLiteshell runnerstdio ACP
@effect-forge/cloudflare

Or the edge

Durable Objects per repo, action run, and agent session; R2 for objects and blobs; D1 for metadata; queues for async CI dispatch.

WorkersD1R2DO
Runtimes

Same forge on Node, Cloudflare, or in memory.

Every store, Git backend, step runner, and agent runner is an Effect service. Pick the layers for your target runtime without changing a line of forge code.

Everything in memory. Fast, isolated, no setup.

import { PureTsGitBackendLive } from "@effect-forge/git";import {  InMemoryGitObjectStoreLive,  InMemoryGitRefStoreLive,} from "@effect-forge/git"; const Git = PureTsGitBackendLive.pipe(  Layer.provide(    Layer.merge(InMemoryGitObjectStoreLive, InMemoryGitRefStoreLive),  ),);

One process: node:sqlite for metadata, filesystem objects, host shell CI, and stdio ACP harnesses.

import {  makeNodeFsGitObjectStoreLayer,  makeNodeShellStepRunnerLayer,  makeNodeAcpAgentRunnerLayer,} from "@effect-forge/node"; const Objects = makeNodeFsGitObjectStoreLayer("/var/forge/objects");const Runner = makeNodeShellStepRunnerLayer();const Agent = makeNodeAcpAgentRunnerLayer({ name: "claude", command: "claude" });

A Durable Object per repo and agent session, objects in R2, metadata in D1, CI in-isolate or via queues.

import { makeDurableObjectGitBackendLayer } from "@effect-forge/cloudflare";import { makeOpenRouterAgentRunnerLayer } from "@effect-forge/agents"; const Git = makeDurableObjectGitBackendLayer(  env.REPO_DO,       // SQLite Durable Object, one per repo  env.FORGE_OBJECTS, // R2 bucket for git objects);const Agent = makeOpenRouterAgentRunnerLayer({ apiKey: env.OPENROUTER_API_KEY, model: "anthropic/claude-sonnet-4" });
forge.tsLayer.mergeAll
import { Layer } from "effect";import { ForgeServiceLive } from "@effect-forge/core";import { ForgeRoutesLive } from "@effect-forge/http";import { makeForgeUiRoutes } from "@effect-forge/ui";import { ActionsRoutesLive } from "@effect-forge/actions";import { FactoryApiRoutesLive } from "@effect-forge/factory-api"; // Same forge on every runtime; only the layers underneath change.const Forge = Layer.mergeAll(  ForgeRoutesLive,  makeForgeUiRoutes({ homePath: "/explore" }),  ActionsRoutesLive,  FactoryApiRoutesLive,).pipe(  Layer.provide(ForgeServiceLive),  Layer.provide(Layer.mergeAll(Git, Stores, Runner, Agent)),);
LayerSingle-Node (Node.js)Cloudflare (Workers + Alchemy)
Web / API / UIeffect/http + effect/ui + StyleX SSReffect/http + effect/ui + StyleX SSR (identical)
Pure-TS Git EnginePureTsGitBackendLive (FS objects + SQLite refs)PureTsGitBackendLive (R2 objects + Repo DO refs)
All 9 SQLite / D1 Storesnode:sqlite via @effect-forge/sqliteCloudflare D1 via @effect-forge/cloudflare
Actions StepRunnermakeNodeShellStepRunnerLayer (host shell + effect/*)makeEffectStepRunnerLayer + ActionRunnerDO / Queue
Coding AgentsEffect AI / OpenRouter / NodeAcpTransport (stdio)Effect AI / OpenRouter / AgentSessionDO + HTTP ACP
Interface & Live Demo

Server-rendered with effect/ui and StyleX. Live right here.

Inspect the real screens captured by Playwright — or click through to the live seeded demo running on this Cloudflare Worker.

Open Live Agent Workspace ->
Agent Workspace

Split-pane coding agent workspace with live transcript, CI checks, git changes tree, 2-column diff, and merge gate.

Explore All Repos
Coding factories

One loop for people, agents, and checks.

Give agents their own branches, run durable CI on every push, and enforce one explicit merge gate across humans and bots.

  1. 01Person

    Asks for a change

    A task, a follow-up, or a review comment, with files attached if needed.

  2. 02Agent

    Works on its own branch

    Edits a clone in a sandbox or in-isolate Effect runner, then commits on a dedicated branch.

  3. 03Forge

    Opens a change and runs CI

    The pull request is the unit of review. Durable workflow checks run on every new head.

  4. 04Person

    Reviews and decides

    Approves or requests changes. A change request becomes the agent's next turn.

  5. 05Forge

    Gates the merge

    Required checks, approvals from someone else, who may merge. One rule, enforced and explained.

Principles

From first principles, not a clone.

Forges are general by design. Yours doesn't have to be. Build exactly the domain your product needs on parts that are easy to read and replace.

01

Model the use case, not someone else's API

Build the domain your product needs: changes, checks, a merge gate. Stay compatible where it pays, like the Git protocol, and nowhere else.

02

Every layer is a Layer

Each store, runner, and backend is an Effect service. Swap in-memory for tests, SQLite on a box, D1 at the edge, without touching app code.

03

Typed from wire to disk

Requests decode through Schema, failures are tagged errors, and a broken shape fails at the boundary with the path that broke.

04

Small enough to own

Pure TypeScript with no native dependencies in the core. Read it, fork a package, or replace one with your own.

Roadmap

The forge as the agent harness.

An agent turn looks a lot like a CI job: a trigger, a workspace, a sandbox, streamed output — ending in a commit and a gated change.

Shipped

Factory API

A small typed Effect HttpApi for products built on a forge: changes in one call, merge policy, self-explaining gates, delegated actors, and one resumable event stream.

Shipped

Agent harness (Effect AI, OpenRouter & ACP)

Multi-turn agent sessions backed by Effect AI, OpenRouter tool-calling, standalone ACP JSON-RPC 2.0 harnesses, and a multi-runner registry on Node or Cloudflare.

In progress

Agents configured in the repo

Harness, model, setup steps, rules, and MCP servers versioned next to your workflows, with triggers like a requested change.

Quickstart

Clone live now, or run locally in a minute.

UI, Factory HttpApi, Git over HTTP, durable CI, coding agents, registries, and federation — persisted to SQLite locally or Cloudflare D1 + R2 at the edge.

# Clone the live demo repo straight from this Cloudflare Workergit clone https://effect-forge.dev/demo/effect-forge.git # Or run a full persistent forge locally in one minutegit clone https://github.com/bjacobso/effect-forge.gitcd effect-forge && pnpm install && pnpm buildpnpm --filter @effect-forge/local-app dev