Credentials. Agent and Cube credentials must be narrowly scoped and stored locally, since factory.toml and .env are not meant for Git.
Who it is forA developer or engineering lead with a repo and a clear change to make, who wants an agent to do the work without touching their workstation.
The problemLetting a coding agent edit a working tree directly risks unverified changes, leaked credentials, and no record of what happened.
The outcomeA durable patch, logs, and manifest for one task, with the agent output checked by the configured verification gates.
What you need first
- Go 1.27.2 and Node.js 26.12.0 for v0.6.2 development
- Git
- An existing CubeSandbox deployment with a READY template
- A Temporal service, or the included local Temporal Docker Compose stack
- Narrowly scoped credentials configured locally, kept out of Git
- Repository-owned build.sh and test.sh scripts, or other gates set for your project
Steps
- Run
git clone https://github.com/mitkox/esf.gitandcd esf, thenmkdir -p binandmake build. - Run
./bin/factory init, then edit factory.toml with your Cube API endpoint, template, proxy address, agent harness, and verification profile. Keep factory.toml and .env out of Git. - For local Temporal, copy
deployments/dev/temporal/.env.exampletodeployments/dev/temporal/.env, set a random database password, then runmake temporal-up. - Run
./bin/factory config validateand./bin/factory doctor, then start the worker with./bin/factory workerin one terminal. - In another terminal run
./bin/factory run --repo https://github.com/your-org/your-repo --rev FULL_COMMIT_SHA --task "Describe the change and acceptance criteria" --agent opencode2 --verification default, then check it with./bin/factory status RUN_IDand./bin/factory logs RUN_ID. (inferred, check the README)
Prompt for your agent
In the ESF repo at <esf_path>, submit a run against <repo_url> at commit <full_sha> with the task in <task_file>, then poll `./bin/factory status <RUN_ID>` until it finishes. Report the patch location and gate results, and confirm the verification gates passed before calling the run successful.
Caveat. ESF produces changes for review and does not decide what ships, and the default verification profile expects repository-owned build.sh and test.sh scripts.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mitkox/esf and "Turn a coding task into a verified patch"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer