Factory Agent
Description
Autonomous software factory: Linear issue → Claude Managed Agents → GitHub PR. ~$1 per feature, ~3 minutes.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Factory Agent
Autonomous Linear-to-PR agent. Delegate a Linear issue to it, get back a pull request with code, tests, and visual evidence. About a dollar per feature, about three minutes.
Linear ticket → webhook → Claude Managed Agents sandbox → GitHub PR
How it works
- You create a Linear issue and delegate it to "Factory Agent"
- A webhook fires to this server
- The server spawns a Claude Managed Agent session in an isolated Anthropic sandbox (container with bash, file tools, Chromium, GitHub CLI, unrestricted network)
- The agent clones your repo, reads
CLAUDE.md/README.mdfor conventions, implements the feature, browser-tests it with Puppeteer, commits evidence screenshots, pushes a branch, and opens a PR - Progress streams back to Linear as agent activities; the issue moves to Done with the PR link
The whole thing is ~700 lines of TypeScript split across two files:
src/server.ts- webhook handler, OAuth callback, signature verificationsrc/agent.ts- Managed Agent session lifecycle, task message, event streaming, Linear activity relay
Prerequisites
- Bun 1.3+
- An Anthropic API key with Claude Managed Agents access
- A Linear workspace with admin access (to create an OAuth app)
- A public GitHub repo for the agent to work on, plus a Personal Access Token with
reposcope - A public URL for the webhook (fly.io, Railway, ngrok, hookdeck, etc.)
Setup
1. Clone and install
git clone https://github.com/your-org/factory-agent.git
cd factory-agent
bun install
2. Create a Linear OAuth app
Go to https://linear.app/settings/api/applications/new and create an app with:
- Name: Factory Agent (or whatever you like)
- Webhook URL:
https://your-domain.com/webhook/linear - Events: enable Agent session events (this is the crit
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git