eve-software-factory-template
AGENTS.md1.2k starsChanged 2 months agoMITView on GitHub
Guidance for AI coding agents working in this repository. The eve Software Factory template: Foreman, an orchestrator agent built on the eve framework that turns work items into reviewed draft pull requests on the configured repository (FACTORY_REPO). Work arrives from GitHub (an issue labeled factory runs unattended; @Foreman mentions from owners/members/collaborators run attended) and from Linear Agent Sessions. The orchestrator moves every item through four declared subagent stations in order: classifier (triage, fast model) → analyst (plan + acceptance criteria,…
- Reads credentials
- Installs packages
Trending
Quiet since August.thin dataabout the whole repository
Who's talking about vercel-labs/eve-software-factory-template
- A Hacker News story“Show HN: Eve Software Factory”Hacker News · Aug 17, 2026 · 10 points
- A Hacker News story“Show HN: Free OSS Software Factory Template”Hacker News · Aug 20, 2026 · 3 points
- A Hacker News story“Self-host your own software factory”Hacker News · Aug 22, 2026 · 2 points
- A Hacker News story“Show HN: Eve Software Factory Template”Hacker News · Aug 14, 2026 · 2 points
- A Hacker News story“Build a Software Factory on Vercel”Hacker News · Aug 13, 2026 · 2 points
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on Hacker News and GitHub (9 times).
On Hacker News · 6
- Aug 17, 2026Show HN: Eve Software Factory10 points · 4 comments
- Aug 20, 2026Show HN: Free OSS Software Factory Template3 points
- Aug 22, 2026Self-host your own software factory2 points
- Aug 14, 2026Show HN: Eve Software Factory Template2 points
- Aug 13, 2026Build a Software Factory on Vercel2 points
1 more on Hacker News
- Aug 25, 2026Self-Host Software Factory1 point
On GitHub · 3
- Aug 24, 2026🔍 Weekly Discovery: 51 new tools found (2026-08-24) — heylabs-co/dev-tools-portal0 reactions
- Aug 19, 2026Adversarial gate evals: drive an agent at each guardrail and assert the composed system refuses — seanrreid/RAD_framework0 reactions
- Aug 14, 2026Feature: autonomous software factory pipeline for issues → reviewed draft PRs — jellydn/flowly0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository4 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- github-linear-bridgingSkill
- triaging-issuesSkill
- writing-qualitySkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
After editing, check LSP diagnostics / pnpm typecheck and fix type errors before moving on.
- Very specific: line 60
If you ever build a RegExp from data, escape it (literal match) and bound the input length.
- Very specific: line 70
No secrets, node_modules, or build output (.eve, .vercel, .output) staged.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Guidance for AI coding agents working in this repository.
Project overview
The eve Software Factory template: Foreman, an orchestrator agent built on the eve framework that turns work items into reviewed draft pull requests on the configured repository (FACTORY_REPO). Work arrives from GitHub (an issue labeled factory runs unattended; @Foreman mentions from owners/members/collaborators run attended) and from Linear Agent Sessions. The orchestrator moves every item through four declared subagent stations in order: classifier (triage, fast model) → analyst (plan + acceptance criteria, own repo checkout) → implementer (codes, verifies, pushes a feature branch from its own checkout) → reviewer (independent verdict on the pushed branch, different model vendor, max 2 revision cycles). The orchestrator then opens a draft PR; marking it ready parks on human approval, closing or reopening issues runs as reversible triage, and merging is not in the tool surface. Per-user preferences live in Vercel Blob, alongside a shared, per-repo factory brain (durable notes about the target repository) under a reserved Blob prefix, readable by every run but writable only by trusted callers, and handoff artifacts: long Markdown documents (research memos, analysis detail) that stations pass to each other by id under the reserved artifacts/ prefix instead of inlining them through the orchestrator. The pipeline lives in agent/instructions.ts.
The whole agent is defined under agent/. eve discovers capabilities from the filesystem. See ARCHITECTURE.md for the component map, data flow, trust model, and boundaries.
Setup & commands
pnpm install # install dependencies (Node 24.x)
pnpm dev # eve dev — local TUI; run /model once to link a model provider
pnpm typecheck # tsc (TypeScript, no emit)
pnpm check # ultracite (Biome) lint + format check
pnpm fix # ultracite (Biome) auto-fix
pnpm build # eve build
pnpm eval # eve eval — run the evals suite (see tags below; costs real tokens)
eve deploy # deploy to Vercel production (use this, not raw `vercel deploy`)
npx eve info # print the discovered surface + discovery diagnostics
pnpm validate # check + typecheck + eve info in one commandVerify changes with pnpm validate (lint, typecheck, and discovery diagnostics must all report 0 errors / 0 warnings), then exercise the agent in the pnpm dev TUI. The evals suite (pnpm eval --tag fast) guards routing and safety behavior; pnpm eval pipeline/full-pipeline runs the whole line and pushes a real branch, so run it deliberately and against a scratch repo.
eve conventions
- Read the relevant guide in
node_modules/eve/docs/before writing code. Don't invent framework APIs; confirm them against the docs. - Identity comes from the filesystem, never a
namefield. A tool atagent/tools/agent.tsis the toolagent; a connection atagent/connections/linear.tsregisters aslinear; a subagent directoryagent/subagents/classifier/lowers into the toolclassifier. - Authored slots:
agent/agent.ts(model + session budget),agent/instructions.ts(defineInstructions, the orchestrator prompt; resolved at build time, injectingFACTORY_REPO),agent/tools/*.ts(defineTool),agent/connections/*.ts,agent/extensions/*.ts,agent/channels/*.ts,agent/skills/<name>/SKILL.md,agent/subagents/<id>/agent.ts(defineAgent), per-agentsandbox.ts. - Model assignments are centralized in
agent/lib/models.ts(theMODELSmap). Everyagent.tsreads its entry from there (model: MODELS.<agent>) instead of hardcoding a gateway id, so a model swap is a one-line edit in that file. One split is deliberate:implementerruns the strongest coding model on a different vendor thanreviewer, so the review stays independent; keep those two on different vendors. - Extensions:
agent/extensions/<ns>.tsmounts a prebuilt eve extension; the filename is the namespace and its tools appear to the model as<ns>__<tool>(here:github__*from@github-tools/eve-extension). Config keys (include,requireApproval) use bare tool names. - Channels:
github(eve GitHub channel via Vercel Connect, botName resolved from the connector's app slug;onCommentkeeps the built-in mention/ignore rules, dispatches only for OWNER/MEMBER/COLLABORATOR commenters, and stampsattributes.trusted;onIssuedispatches only on thelabeledaction for thefactorylabel, verifies the labeler holds at least triage permission (labels attached at issue creation also firelabeled), and rewrites the principal to the autonomous one, so the run is unattended by construction;onCheckSuitedispatches only for failed suites onfactory/*pull requests, unattended, with the fix loop capped by counting attempt comments on the PR thread;onPullRequestposts a summary comment on opened PRs, bot senders skipped),linear(Agent Sessions; every session stamped trusted since workspace membership is the gate), plus theeveroute-auth channel. - Subagents are the stations. Declared under
agent/subagents/<id>/;descriptionis required (the routing hint) and each station setstool: false, sincedefineAgentno longer carries anoutputSchema. AdefineWorkflowToolatagent/tools/run_<id>.tsis what the orchestrator actually calls: it blocks onctx.agent(id, { message, outputSchema }), attaching the schema fromagent/lib/stations/schemas.tsper call. The wrapper can't share the station's own name (run_classifier, notclassifier): eve's compiler rejects a tool and a local subagent with the same public identity,tool: falsenotwithstanding. A declared subagent runs in a fresh child session and inherits nothing from the root (no instructions, skills, connections, tools, or sandbox), so the orchestrator packs everything into themessage, and any capability a station needs lives in the station's own directory (itssandbox.ts, itstools/). Long documents travel between stations as handoff artifacts: the researcher and analyst save them withsave_artifact, downstream stations open them withread_artifact, and the orchestrator relays only the id (the factories live inagent/lib/artifacts/). - Approval-gated tools must not live inside a station. A declared subagent can request input, but nothing is watching a station's own card, so a station tool that returned
user-approvalwould strand the run. Anything needing approval belongs on the root (thegithubextension); station side effects must be inert by construction, likepush_branch(feature branches only, validated names, brokered credential). agent/lib/trust.tsis the single trust authority. Channels stamp trust at dispatch; approval policies inagent/lib/github/approval.tsread the stamps and returnnot-applicable/user-approval/denied. A new capability never invents its own caller check; gate on the existing predicates.- Station sandboxes share their environment and init logic via
agent/lib/github/repo-sandbox.ts(createFactoryEnvironment,factoryInit): each station'sdefineSandbox(...)opens that environment, thenfactoryInitclones the factory repository and runsFACTORY_SETUP_COMMAND, once per session. eve's build-time snapshotprepare()sandbox has nosetNetworkPolicy(only a session-scoped sandbox fromenvironment.open()does), so the credentialed clone can't run once per template anymore. Every environment (root included) passes the sharedFACTORY_SANDBOX_CREATE_OPTIONSfrom that module: one kept snapshot and a 14-day expiration, so template snapshots survive quiet stretches without accumulating. Git operations always target the literal remote URL (neverorigin) with the token injected at the sandbox firewall. - Tools run in the app runtime (full
process.env), one default export per file; station git tools run their commands in the station's sandbox viactx.getSandbox(environment), importing that station's ownenvironmentexport from itssandbox.ts(the barectx.getSandbox()handle has nosetNetworkPolicy). Gate destructive root tools withapprovalfromeve/tools/approval(here:clear_user_preferences), or with a trust policy fromagent/lib/github/approval.tswhen the gate depends on the caller (here:update_factory_brain, gated byfactoryBrainPolicyso unattended runs can't write shared context). - Connections are MCP servers:
linear(https://mcp.linear.app/mcp, app-scoped auth shared throughlinearAuthinagent/lib/constants.ts). Its connection-wideapprovalpredicate denies writes on unattended runs. - Skills are load-on-demand. A packaged skill (
<name>/SKILL.md) requiresdescriptionfrontmatter; that description is the routing hint. The skills here arewriting-quality,triaging-issues, andgithub-linear-bridging. Skills are per-agent: stations don't see the root's skills. - Evals live in
evals/(defineEval, one file per case;evals.config.tsholds run-wide config;t.judgeuses eve's default evaluation model,typesafe-ai/jev). Category directories are the failure taxonomy (routing/,safety/,pipeline/);helpers.tscarries the shared write-tool list so read-only evals assert deny-by-default (notCalledToolover the whole list). Tags:fast(cheap loop),slow,needs-connect(asserts calls that must succeed against real Connect auth),pipeline(pushes a real branch; opt-in). - After editing, check LSP diagnostics /
pnpm typecheckand fix type errors before moving on.
Code style
- Linting and formatting are handled by Ultracite (a Biome preset). Run
pnpm checkbefore finishing andpnpm fixto auto-fix. Config is inbiome.jsonc; the kebab-case filename rule is disabled there because eve tools use snake_case names. - TypeScript strict; ESM with
NodeNextresolution (relative imports need a.jsextension). Preferconst, arrow functions, optional chaining / nullish coalescing. - Validate tool input/output with
zodschemas. - Prose in markdown files is not hard-wrapped: write each paragraph or bullet as one line.
- Agent-facing text (instructions, skill bodies, tool and subagent descriptions) follows the "How you write" rules in
agent/instructions.ts: no em dashes, no machine-made words, no bold for emphasis. It carries behavior only, never framework plumbing (how approvals render, sign-in flows) or references to tools and skills the reading agent can't access — station instructions especially, since stations see none of the root's surface.
Security
- Never ask the user for API keys, client secrets, or any other credentials.
- Never commit secrets.
.env*is gitignored. Connector UIDs are read from env (GITHUB_CONNECTOR,LINEAR_CONNECTOR); GitHub and Linear auth is brokered by Vercel Connect (tokens resolved per call, never exposed to the model) and Blob auth is via the project's OIDC token.FACTORY_REPOis required at module load (requireEnv), so a missing value fails discovery;FACTORY_SETUP_COMMANDis optional. - Git safety is structural; keep it that way. Sandbox git always targets the literal
https://github.com/<FACTORY_REPO>.gitURL, neverorigin(remote config in a sandbox is model-writable), with the installation token injected at the sandbox firewall (brokerPolicy) so it never enters the sandbox. Everything interpolated into a git command passesvalidateBranch, which also refusesmain/master. Don't weaken these when adding git capabilities. - Respect the trust model. Trust is stamped at dispatch by the channels; unattended runs are denied writes (except labels, comments scoped to their stamped intake issue, close/reopen, and draft PRs) rather than parked. When adding a tool or connection, pick its policy from
agent/lib/github/approval.ts(or the trust predicates) instead of hardcoding"never". - If you ever build a
RegExpfrom data, escape it (literal match) and bound the input length. - Gate irreversible or high-impact actions behind
approval(here:clear_user_preferences, plus the ship-gate policies on the GitHub extension). - Every reserved Blob prefix is declared in the namespace registry in
agent/lib/blob.ts, alongside the shared read/write/delete document helpers all Blob tools go through. Any general-purpose Blob tool added later must consult the registry's guards before acting, so a managed document can't be reached through a generic file operation; add a namespace there, never as a loose constant in a feature module. - For per-user storage, derive the key from the resolved principal (
ctx.session.auth.current), never from model input — seeagent/lib/user-preferences.ts. The preference files live under the reserveduser-preferences/Blob prefix, reachable only through the principal-scoped preference tools. - The shared factory brain derives its key from
FACTORY_REPO, never from model input or a caller principal — seeagent/lib/factory-brain.ts. It lives under the reservedfactory-brain/Blob prefix, reachable only throughread_factory_brain/update_factory_brain; writes are gated byfactoryBrainPolicy(unattended runs denied, trusted callers direct, everyone else parks) so an untrusted issue body can't poison the context every future run reads. - Handoff artifacts live under the reserved
artifacts/Blob prefix, reachable only throughsave_artifact/read_artifact— seeagent/lib/artifacts/config.ts. Ids are model-supplied on read, so every id must pass the anchoredARTIFACT_ID_PATTERN(no dots or slashes) before it is interpolated into a Blob key; that is what keeps a station from addressing the brain or a preference file through the artifact tools. Saves never overwrite and are size-bounded, which keeps both tools inert enough to live ungated inside a station.
Before committing
pnpm validatepasses (Ultracite check,tsc, andeve infowith 0 errors / 0 warnings).- No secrets,
node_modules, or build output (.eve,.vercel,.output) staged.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

