Skip to content

Agents move.
You steer.

Give your coding agents room to work.
Give every task a clear direction, a boundary,
and a human who owns the outcome.

See high-level architecture
Two modes of working with AI On the left, I pair with one coding agent on my laptop and write scoped issues to GitHub. On the right, a stack of autonomous agents in the cloud pulls issues from GitHub and opens pull requests back on GitHub. on my laptop+me + coding agentin the cloudcoding agentsGitHubscoped issuespulls issuesopens PRs

Open Source Software Factory

Scale workflows, not sessions.

Each step runs unattended in its own isolated sandbox, sized and equipped for the job. The factory handles infrastructure, security and scale. You decide what to build and the geese do the rest.

Built on foundation governed technologies.

High-level architecture

The diagram follows one workflow run from GitHub issue to pull request in Flok’s target design. The proof of concept runs on Azure Kubernetes Service. The supporting services are named by what they do so the same design can be mapped to other clouds.

Flok’s target Kubernetes architecture Target design. The webhook trigger and automated reviewer are planned. One Kubernetes cluster with four namespaces: platform with the workflow service and artifact service; argo with Argo Workflows; agents with planner, coder and reviewer pods, each with its own ServiceAccount; and github-broker with the GitHub token broker. 1: GitHub sends webhooks to the workflow service. 2: The workflow service submits runs to Argo Workflows. 3: Argo runs each step as an agent pod. 4: Agents get scoped GitHub tokens from the broker. 5: Agents call models through the Vercel AI Gateway. 6: Agents push and comment on GitHub. 7: Agents update status and store artifacts through the platform services. Below the cluster are the supporting services: PostgreSQL, object storage, a container registry and a secret store. GitHub issues · branches · PRs Kubernetes cluster namespace: platform workflow service artifact service namespace: argo Argo Workflows namespace: agents planner pod ServiceAccount: planner coder pod ServiceAccount: coder reviewer pod ServiceAccount: reviewer GitHub token broker namespace: github-broker AI gateway Vercel PostgreSQL workflow · argo DBs Object Storage artifacts Container Registry agent images Secret Store GitHub App key sends webhook push, comment submits run runs step updates status, stores artifacts requests token calls models 1 2 3 4 5 6 7
Open full-size diagram

Workflow sequence

  1. GitHub notifies the workflow service when an issue is ready.
  2. The workflow service submits the run to Argo Workflows.
  3. Argo starts a fresh pod for each agent step.
  4. The pod requests a short-lived GitHub token scoped to its role and repository.
  5. The agent calls models through the AI gateway.
  6. The agent pushes commits and posts updates to GitHub.
  7. The agent reports status to platform services and stores handoff artifacts in object storage.

Today, you submit a run manually to Argo Workflows. A trusted foreman step registers it, then the planner and coder run in separate pods. The webhook trigger and automated reviewer shown in the diagram are planned.

Read the architecture and implementation status

Just-in-time access

Same repositories.
Different permissions.

Each agent gets a short-lived GitHub token when its task starts, scoped to its role and one repository. The planner can read code. The coder can also push changes and open pull requests.

Why this matters

  • Limit access as work scales across teams. Give each agent only the permissions it needs for its step and repository.
  • Give each change fresh eyes. A reviewer agent working in a fresh sandbox can catch shortcuts such as tests disabled to make a build pass.
GitHub access token Kubernetes identity token
The planner and coder show their Kubernetes identity tokens at the broker and receive separate GitHub access tokens.

A purple planner goose and a teal coder goose ride out on a short conveyor carrying yellow Kubernetes identity coins. A token broker verifies each identity and returns a separate GitHub key. Both keep their coins. The planner can read code and is denied at the next door. The coder can read code, push changes, and open a pull request in repo-a. Use Pause or Next scene to explore still frames.

The planner emerges from the conveyor with a yellow Kubernetes identity token.

See diagrams

Platform Features

Aiming for 10× productivity means letting agents run unattended. To constrain unintentional side effects, Flok puts security first, with boundaries on what agents can touch and checks on what they produce. Isolation lets us give agents the permissions and freedom to tackle hard problems.

  • Infrastructure

    Scale

    Challenge
    A laptop runs 4–5 sessions, and subscription-based harnesses in VMs scale per seat, not per task.
    Solution
    Kubernetes schedules one pod per task on node pools that can grow with demand.
  • Infrastructure

    Reliability

    Challenge
    VMs and stateful runners pin each session to one machine, so a failed host takes the work down with it.
    Solution
    Kubernetes can reschedule work onto healthy nodes, and Argo workflows can limit retries.
  • Security

    Isolation

    Challenge
    Agents read beyond the repository they work on.
    Solution
    Each agent task gets a fresh pod with its own workspace for the target repository.
  • Security

    Least privilege

    Challenge
    Agents run with a developer's long-lived credentials.
    Solution
    A token broker issues each agent a short-lived GitHub token scoped to its role and one repository.
  • Data

    State

    Challenge
    Retries and intermediate output flood issues and pull requests.
    Solution
    Flok records runs in PostgreSQL and passes artifacts between steps through object storage. Central tracking of retries and runtime is part of the design.
  • Interoperability

    Harness-agnostic

    Challenge
    The platform gets locked to one coding agent.
    Solution
    Flok runs goose with API-backed models. The design also allows other coding agents, such as Claude Code and Codex, through the Agent Client Protocol (ACP).
  • Platform

    Extensibility

    Challenge
    Each team or client needs a different coding loop, and hard-coded pipelines get rebuilt every time.
    Solution
    Declarative Argo workflows define each loop in YAML from shared templates.
  • Governance

    Foundation-backed open source

    Challenge
    Vendor lock-in and licensing risk.
    Solution
    Flok builds on projects backed by open-source foundations, including Kubernetes, Argo Workflows and goose.
  • FinOps

    Cost efficiency

    Challenge
    A sub-agent that inherits a flagship model can use it even for tasks a mid-tier model could handle.
    Solution
    The design calls for choosing a model per task and recording token usage to estimate cost.
Read the platform requirements

Still exploring. Always building.

Come flock around.

Follow the experiments, decisions, and work in progress.

Explore Flok on GitHub