Metadata-Version: 2.5
Name: fabrikant
Version: 0.1.0
Summary: fabrikant — a local software factory: agentic development loops as YAML specs
Project-URL: Homepage, https://github.com/didaskomathetes/fabrikant
Project-URL: Source, https://github.com/didaskomathetes/fabrikant
Project-URL: Issues, https://github.com/didaskomathetes/fabrikant/issues
Project-URL: Documentation, https://github.com/didaskomathetes/fabrikant/tree/main/docs
License: Apache-2.0
License-File: LICENSE
Keywords: agents,automation,ci,llm,software-factory,workflow
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: POSIX
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: alembic>=1.13
Requires-Dist: cryptography>=50.0.2
Requires-Dist: jsonschema>=4.21
Requires-Dist: mcp<3,>=2.3
Requires-Dist: pyyaml>=6.0
Requires-Dist: ruamel-yaml>=0.19.1
Requires-Dist: sqlalchemy>=2.0
Provides-Extra: injection-llm-guard
Requires-Dist: llm-guard>=0.3; extra == 'injection-llm-guard'
Provides-Extra: oidc
Requires-Dist: pyjwt[crypto]>=2.8; extra == 'oidc'
Description-Content-Type: text/markdown

# fabrikant — the software factory

Define agentic development loops as YAML specs, run them locally, steer them from the web UI or a chat. One
engine process (`fabrikant serve`) watches triggers and executes loops; the UI at `http://127.0.0.1:8321` shows
projects, loops, runs, live logs and a chat interface.

**Key idea: autonomy with gates.** The conductor is deterministic code, agents are replaceable workers. Git
projects run in isolated worktrees, results go out as a branch + PR (never a push to `main`), and loops run on
their own — only steps you mark as critical (`approval: true`) pause until a human approves.

## How it fits together

Deployment-neutral view: every box is a replaceable component behind a port, so the same engine runs on a laptop,
a server or (via a different run launcher) a cluster.

```mermaid
flowchart LR
    subgraph In["Inputs"]
        TR["Triggers<br/>cron · issue/PR · webhook · Slack"]
        UI["Web UI · CLI · Chat · MCP"]
    end
    SP[("Specs<br/>YAML + plugins")]
    subgraph Core["Engine"]
        SCH["Scheduler"]
        ENG["Conductor<br/>deterministic, gates"]
        LCH["Run launcher<br/>port"]
    end
    subgraph Work["Execution"]
        RUN["Runner<br/>steps · worktree"]
        AG["Agent backend<br/>Claude · Codex · Copilot · opencode"]
        SBX["Sandbox<br/>per-run container"]
    end
    EGR["Egress proxy<br/>default-deny allowlist"]
    ST[("Run store<br/>+ session logs")]
    HOST["Code host<br/>GitHub · GitLab"]
    NET(("Internet<br/>LLM APIs"))

    TR --> SCH --> ENG
    UI <--> ENG
    SP --> ENG
    ENG --> LCH --> RUN
    RUN --> AG
    AG --- SBX
    SBX --> EGR --> NET
    RUN --> HOST
    ENG <--> ST
    RUN --> ST
    ENG -. approval gate .-> UI
```

Agents never reach the internet directly: all egress goes through the allowlist proxy, and results leave as a
branch + PR on the code host. Component details: [architecture](docs/architecture.md).

## Install

Python 3.11+:

```bash
pip install fabrikant
# or: docker run -p 8321:8321 -v fabrikant-data:/data ghcr.io/<owner>/fabrikant
```

## Getting started

```bash
mkdir my-factory && cd my-factory
fabrikant init                          # projects/hello.fabrikant.yaml, fabrikant.env, plugins/ skeleton
fabrikant validate                      # check the specs
fabrikant run hello greet               # run the hello example once
fabrikant serve                         # engine + UI + scheduler on http://127.0.0.1:8321
```

A spec is a few lines of YAML (the hello example, bundled with `fabrikant init`):

```yaml
name: hello
root: .
loops:
  greet:
    tier: 1
    steps:
      - {type: shell, name: say-hello, cmd: "echo hello from fabrikant"}
```

Custom steps are plain Python packages registered via the `fabrikant.steps` entry point
([docs/plugins.md](docs/plugins.md)). All commands: [docs/cli.md](docs/cli.md).

## Documentation

The full index is [docs/README.md](docs/README.md). Highlights:

- [Architecture overview](docs/architecture.md) and [roadmap](docs/roadmap.md)
- [Configuration](docs/configuration.md) · [spec reference](docs/spec-reference.md) · [step types](docs/steps.md) · [triggers and alerts](docs/triggers.md)
- [Agent backends](docs/backends.md) · [runs](docs/runs.md) · [relay tasks](docs/relay.md)
- [Chat and LLM providers](docs/chat.md) · [HTTP API](docs/api.md) · [MCP server](docs/mcp.md) · [authentication](docs/auth.md) · [security](docs/security.md)
- [Operations](docs/operations.md) (systemd, workers, worktrees) · [development](docs/development.md) · [releasing](docs/releasing.md)
- [Architecture decisions (ADRs)](docs/adr/README.md)

## License

Apache 2.0 — see [LICENSE](LICENSE). Contributions: [CONTRIBUTING.md](CONTRIBUTING.md); security reports: [SECURITY.md](SECURITY.md). Third-party packages can extend fabrikant through the step plugin contract
([docs/plugins.md](docs/plugins.md)).
