Dev Platform

@idaria/dev-platformdev-platform

Runs autonomous coding jobs against your GitHub repositories. An agent clones a repo into an isolated runner, drives an LLM through an analyze/plan/implement/review pipeline, and opens a pull request — bounded at every step by human approval gates, a diff policy, a per-job cost budget and an egress allowlist. Ships its own operator UI, HTTP routes, chat tools, background workers and nine database tables it migrates itself. Runners execute on Fly Machines or on local Docker; neither ever sees a long-lived credential. A system module: its model access goes through the kernel's model gateway (operatorJobs@1 + modelPassthrough@1), so it holds no model-provider key. Extracted from idaria core into its own installable plugin (epic byte5ai/idaria#470).

system-module · developer-tools · automation · github

Setup guide

Dev Platform

Runs coding jobs against your repositories: an agent clones the repo in an isolated runner, works the job, and opens a pull request. Human gates, diff policy and per-job LLM budgets bound what it can do.

Before you install

idaria core with plugin-api 1.114.0 or newer. This is a system module: its model access goes through the kernel's model gateway (operatorJobs@1 + modelPassthrough@1), and it holds no model-provider key. An older core does not load the kind and has no gateway.

The instance's Anthropic model provider must be configured. The Claude CLI in a job's runner talks to this plugin's LLM proxy; the proxy forwards each call through the kernel, which adds the instance's Anthropic credentials. There is no API-key field here. Without an Anthropic key on the instance every model call answers 503 model_passthrough.no_credentials. Each dev job's model calls run inside one operator job you can see and cancel among the operator jobs.

A Postgres-backed knowledge graph is required. The job spine, repo, gate and artifact tables live there. With an in-memory graph the plugin refuses to activate rather than pretending to work — set DATABASE_URL and install the Neon knowledge-graph plugin first.

Two operator grants — the next step after this form

This plugin declares two permissions that a manifest alone cannot give it. A human has to agree, separately, and neither is implied by installing.

You are asked on the next step. Once this form is accepted the wizard shows Permissions, listing exactly what is below and nothing else. Grant & activate records your consent and activates the plugin in the same request. Skip grants nothing and does not lose the install — the same choices live on the plugin page afterwards, under Permissions, with a toggle per grant. Either way the plugin is re-activated in place: no middleware restart.

1. The SQL permission (permissions.sql). The plugin owns nine tables and migrates them itself into its own ledger, plg_idaria_dev_platform_migrations. It cannot read or write idaria's tables or another plugin's. The ledger name comes from this manifest and the granting identity from your session — neither can be supplied by a request.

This plugin reaches for the database in activate(), so skipping this grant leaves it errored rather than half-working, and the wizard says so instead of guessing. Granting it later from the plugin page brings it up; no reinstall.

2. The public-path grants (permissions.public_paths). Three URL prefixes are served without a kernel session, because the caller has no session to present. Each is still authenticated, just not by one:

  • /api/v1/dev-runner — a per-job bearer token, verified in the router.
  • /api/webhooks/github — HMAC-SHA256 over the raw request body.
  • /api/v1/dev-platform — the GitHub App manifest-conversion callback, bound to a kernel-signed, plugin-audience state token.

Declining one is not an activation failure: the prefix simply stays behind the login and answers 401. Without them the runner cannot phone home, webhooks 401, and GitHub App onboarding cannot complete.

Consent can never exceed the declaration — core rejects anything this manifest does not ask for, so the consent surface cannot itself be used to hand a plugin your database or make an arbitrary URL public.

For automation, one route carries both, behind operator auth:

GET  /api/v1/admin/runtime/installed/@idaria%2Fdev-platform/grants
PUT  /api/v1/admin/runtime/installed/@idaria%2Fdev-platform/grants
     { "sql": true,
       "public_paths": ["/api/v1/dev-runner",
                        "/api/webhooks/github",
                        "/api/v1/dev-platform"] }

An absent key leaves that grant alone; a present public_paths is the COMPLETE set, so omitting a prefix revokes it. The older …/public-paths route still works unchanged.

On a core older than byte5ai/idaria#824 none of the above exists: GET …/grants answers 404, the SQL grant is a hand-written row in plugin_sql_grants followed by a middleware restart, and only the …/public-paths route is available. The plugin's OPERATOR-GUIDE Appendix A has that procedure in full.

What this plugin does without, and what you lose

Six capabilities are declared optional. The plugin installs and runs when core does not provide them, and each absence is logged rather than silent. This table is the only place you can read it before installing — the registry does not carry optional capabilities.

CapabilityAbsent means
turnContext@1The chat dev-job tools are not registered at all, rather than registered and always refusing. They authorize per call against the human driving the turn; with no envelope there is nothing to authorize against. Use the operator UI instead.
githubAppJwt@1The plugin falls back to a local RS256 signer. Functionally equivalent; the App private key is held by the plugin rather than by core.
usageTelemetry@1No rows in the operator cost dashboard's ledger. Per-job budgets are unaffected — they meter this plugin's own tables and keep enforcing.
conductorRoles@1Repositories whose approver is a ROLE rather than a person cannot have their gates approved. Fail-CLOSED — the safe direction, but a regression you should know about. Assign named approvers instead.
operatorJobs@1 + modelPassthrough@1The kernel's model gateway. Without it no job can reach a model: the LLM proxy answers 503 devplatform.model_gateway_unavailable. The kernel publishes both to system modules from plugin-api 1.78.0.

Only graphPool@1 is mandatory. If core cannot provide it the install is refused with install.missing_capability (HTTP 409).

Where your runners execute

Two backends, chosen by what you configure in the deployment — not here:

  • Fly Machines — one ephemeral Machine per job, in a dedicated Fly app named by DEV_FLY_RUNNER_APP. This is the production path. The app must exist before the first job.
  • Local Docker — the compose overlay shipped with this repository (docker-compose.dev-platform.yaml), which brings up the runner daemon, the egress proxy and one privileged docker-in-docker service. Best for evaluation and self-hosting.

Either way the runner reaches this middleware at the phone-home URL below, so a loopback address only works when the runner shares the host.

What lives here, and what lives in your deployment

The fields below are policy — the decisions only you can make: how much a job may spend, how long it may run, how many run at once, which models it may call, how long its history is kept.

Infrastructure is not asked for here. The runner image, the runner daemon URL and token, and the dedicated Fly app are set in the compose overlay alongside the sidecars themselves (DEV_RUNNER_IMAGE, DEV_RUNNER_DAEMON_URL, DEV_RUNNER_DAEMON_TOKEN, DEV_FLY_RUNNER_APP). A second copy in this form would be a second thing to keep in sync.

Two switches that need a second confirmation

Subscription mode runs jobs against a CLI subscription credential inside the runner. Unsafe local backend runs the shim as a local process instead of in a container. Each demands its paired acknowledgment field, and activation is refused if you turn one on without it. That refusal is deliberate: both modes put a credential or your host filesystem within reach of code an agent wrote.

Upgrading from the Dev Platform that ran inside core

Migration slots 0022–0030 are already applied on your database and recorded in CORE's ledger. This plugin adopts them instead of re-applying them — but only where a WITNESS proves the schema object each file creates is actually present. The case that makes this necessary is rows present, tables absent: a restore from an older snapshot, a version-skewed rollback, a table dropped during an incident.

handoff-plan.json ships inside the ZIP so you can see the plan against your real database BEFORE installing. Dry run is the default:

cd <idaria>/middleware && npm run build
DATABASE_URL=… node scripts/plugin-ledger-handoff.mjs \
  --plan <zip>/handoff-plan.json

Read skippedNoWitness in the output. Empty is healthy. Non-empty means core's ledger and your live schema disagree — not a failure of the handoff, but a reason to confirm the database is the one you think it is.

After installing — you re-enter the credentials

Connect a repository under Dev Platform → Repositories. A GitHub App is the recommended credential — the runner then receives a freshly minted, single-repo, read-only token that is revoked when the job ends.

GitHub App keys and repository tokens are not migrated for you. This plugin stores credentials in its own vault namespace, so App signing material, webhook secrets and per-repo clone tokens are entered here once, by you. That is a deliberate choice over a one-time migration hook: the right moment to see that a GitHub App private key has moved into a plugin's namespace is while it is happening. The same applies after a reinstall. See docs/SECRETS.md for the full list and for rotation.

Setup fields

The operator fills these in when installing the plugin.

  • runner_base_urlurl, optional
    Runner phone-home base URLThe base URL a runner reaches this middleware at, e.g. https://bot.example.com. Runners are launched OUTSIDE this process and call back to it, so a loopback address only works when the runner shares the host. Leave empty and the plugin derives it from the incoming request, which is wrong behind a proxy that rewrites Host.
  • commit_authorstring, optional
    Commit authorIdentity on commits the platform pushes, as `Name <email>`. This is what shows up in your repository history and in blame — pick something that is obviously a bot.
  • max_concurrent_jobsinteger, optional
    Max concurrent jobsHow many jobs may run at once. Each one holds a runner, so this is also the ceiling on how many Fly Machines or containers exist at peak — size it against your runner budget, not against your queue.
  • job_wall_clock_msinteger, optional
    Job wall-clock limit (ms)Hard ceiling on one job's total runtime. Exceeding it terminates the runner and fails the job. Default 2700000 = 45 minutes.
  • heartbeat_timeout_msinteger, optional
    Heartbeat timeout (ms)A runner silent for longer is treated as stalled and reaped. Set it below the wall-clock limit or a hung runner burns the full budget before anything notices. Default 300000 = 5 minutes.
  • llm_allowed_modelshost_list, optional
    Allowed modelsModel ids a job's agent may call through the proxy. EMPTY MEANS NO JOB CAN RUN — with no policy the proxy answers 500, which surfaces inside the runner as a total LLM outage. A model with no entry in the price table cannot have its cost budget enforced; the plugin logs a warning naming it at activation rather than silently metering it at zero.
Show all 22 setup fields
  • llm_default_budget_usdinteger, optional
    Default budget per job (USD)Cost ceiling for one job's LLM spend, unless the repository overrides it. Crossing it marks the job budget_exceeded and terminates the runner mid-call — enforcement is not deferred to the end of the turn.
  • llm_max_model_callsinteger, optional
    Max model calls per jobCeiling on the model calls one job may make. Each job's calls run inside one kernel operator job with this budget (the kernel caps it at 10000); the call past it is refused and the job's runner stops. Independent of the cost budget, which still applies.
  • llm_max_output_tokensinteger, optional
    Max output tokens per callClamp on max_tokens. Bounds how far a single response can overshoot the budget before enforcement sees it — the budget is checked between calls, so one very large response is the blind spot this closes.
  • event_retention_daysinteger, optional
    Event retention (days)Age at which low-value job telemetry is pruned by the nightly sweep. Audit-grade events are NOT covered by this — they follow the audit retention below.
  • audit_retention_daysinteger, optional
    Audit retention (days)Outer bound for audit-grade events: gate decisions, policy verdicts, token mint and revoke. These are the records that answer 'who approved this change, and what was it allowed to touch' — set it to your compliance retention, not to your disk budget.
  • max_events_per_jobinteger, optional
    Max events per jobPer-job event cap, enforced at write time. A chatty runner is truncated rather than allowed to fill the table.
  • artifact_max_bytesinteger, optional
    Max inline artifact size (bytes)Ceiling on a single stored artifact — a diff, a brief, a review verdict. Anything larger is truncated with a marker, so raising this trades database size for the ability to read very large diffs in the UI. Default 1048576 = 1 MiB.
  • webhooks_enabledboolean, optional
    Accept GitHub webhooksLet labelled issues create jobs automatically. Off means the webhook route is not registered at all — not registered-and-refusing, so `/api/webhooks/github` simply 404s and GitHub shows the delivery as failed.
  • webhook_max_jobs_per_repo_hourinteger, optional
    Webhook jobs per repo per hourRate ceiling per repository. A webhook is a PUBLIC trigger — anyone who can apply a label can start a job that spends money. This is what bounds a label-spam incident.
  • webhook_max_jobs_per_sender_hourinteger, optional
    Webhook jobs per sender per hourRate ceiling per GitHub user, applied on top of the per-repo ceiling. The per-repo limit alone does not stop one account from consuming a repository's whole hourly allowance.
  • egress_base_allowlisthost_list, optional
    Extra egress hosts for runnersHosts a runner may reach beyond the defaults (package registries and the like). Everything not on the list is refused by the egress proxy. Private and link-local addresses are rejected outright — an allowlist entry cannot be used to reach your internal network.
  • subscription_modeboolean, optional
    Subscription modeRun jobs against a CLI subscription credential inside the runner instead of a metered API key. REQUIRES the acknowledgment below — activation is REFUSED without it, the plugin does not start degraded.
  • subscription_ackstring, optional
    Subscription acknowledgmentType your name to acknowledge that subscription jobs run your CLI credential inside a runner that is executing code an agent wrote. Required whenever subscription mode is on. A free-text name rather than a checkbox on purpose: the point is that a person, nameable afterwards, agreed to it.
  • unsafe_localboolean, optional
    Unsafe local backendRun the shim as a local process instead of in a container. DEVELOPMENT ONLY — agent-written code then executes on the middleware host itself, with only the uid below between it and your filesystem. REQUIRES that uid; activation is refused without it.
  • unsafe_local_uidinteger, optional
    Local runner uidDedicated unprivileged uid the jailed shim runs as. NEVER 0, and never the uid the middleware itself runs as — that would give the job write access to the middleware's own files. Required whenever the unsafe local backend is on.
  • tracker_polling_enabledboolean, optional
    Tracker polling (not yet available)Poll a Jira or Linear tracker for labelled tickets. NOT WIRED in this release — six hardening fixes gate switch-on (cold-start budget, sender allowlist, label-application trigger, cross-source dedupe, ticket-id namespacing, frozen provider contract). Turning it on records the intent and logs a warning; nothing polls. It is shown rather than hidden so the roadmap is visible and the key is stable when it does land.

Permissions

This is everything the plugin is allowed to access once it is installed.

sql
migrationsmigrations
ledgerplg_idaria_dev_platform_migrations
handoffhandoff-plan.json
public_paths
allowed/api/v1/dev-runner/api/webhooks/github/api/v1/dev-platform
secrets
runtime_writeyes
network
outboundapi.github.comgithub.comapi.machines.dev

Dependencies and capabilities

Requires
graphPool@1

Versions

VersionCoreSizePublishedsha256Download
v0.5.0latest>=1.114.0 <2.0540.4 KB30 Nov 2026e88699552559….zip