@stewie-sh/agent-farm
v0.1.7
Published
Private-repository MCP connector for bounded Stewie Agent Farm delegation
Readme
Stewie Agent Farm Connector
Local connector for delegating bounded work packages from an existing coding agent to a Stewie Agent Farm gateway. The connector builds a scoped source bundle, keeps local repository paths private, polls asynchronous jobs, verifies result patches against the original clean commit, and records structured captain reviews.
Hosted routing is automatic. Call whoami, then get_agent_guide with
topic=start before the first delegation. Refresh the guide whenever
whoami.guide_version changes. Omit model, provider, and harness identity from
hosted contracts.
npx --yes @stewie-sh/agent-farm@latest enroll \
--app-api https://APP_API_URL \
--code ONE_TIME_SETUP_CODE
npx --yes @stewie-sh/agent-farm@latest mcp serveThe short-lived setup code is single-use. Enrollment exchanges it for a
credential stored in ~/.stewie-farm/credentials.json with restricted local
permissions; mcp serve reads that file automatically. Never inspect, print,
or place the stored credential in an agent prompt, log, or repository.
Manual recovery remains available by configuring STEWFARM_GATEWAY_URL and
STEWFARM_API_TOKEN through the MCP client's secret environment. Configure
STEWFARM_CAPTAIN_HARNESS and STEWFARM_CAPTAIN_MODEL as MCP process metadata.
Before the first source upload, the captain should show the human the
repository, included paths, and acceptance checks, then wait for explicit
approval. Workers return review-only result packages; this connector does not
merge, push, or deploy code.
