shep

作者 shep-ai已验证

Ship features 10x faster. Optimzed. 😇

210
Stars
44
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/shep-ai/shep

快速入门

使用 shep 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Shep logo

Run a fleet of coding agents. Merge real PRs.

CI npm version License: MIT Discord

Shep spinning up parallel agents in isolated git worktrees and opening a pull request

Shep is the open-source orchestrator for the autonomous development cycle. It runs parallel AI agents — Claude Code, Cursor CLI, Gemini CLI, or any agent CLI — each in its own isolated git worktree, and drives every feature from a one-line description through optional spec gates, implementation, commit, push, CI watching with auto-fix, and a draft pull request. Agent-agnostic, local-first, MIT-licensed.

Quickstart

npx @shepai/cli        # try it instantly — opens the dashboard at localhost:4050
npm i -g @shepai/cli   # or install globally

Three commands from zero to an open pull request:

npm i -g @shepai/cli
cd ~/projects/my-app
shep feat new "add a /health endpoint that returns uptime and version" --push --pr

Shep creates a worktree, runs your agent, commits, pushes, and opens a PR. Requires Node.js 22+, Git, the GitHub CLI (gh), and an authenticated agent CLI (claude, cursor, or gemini). Prefer zero install? app.shep.bot runs Shep in your browser, free.

Then go parallel:

shep feat new "add stripe payments" --push --pr
shep feat new "add dark mode toggle" --push --pr
shep feat new "fix login redirect bug" --push --pr

Three agents, three worktrees, zero branch conflicts — monitored from one place. One agent session is fine; five is chaos. Shep is the part that keeps it from being chaos.

How it works

 idea                optional spec gates       parallel agents           shep automates            you
 "add payments"  →   requirements · plan   →   each in its own       →   commit · push · PR    →   review the diff,
                     (YAML you approve)        git worktree              CI watch + auto-fix       hold the merge button

The default flow is prompt → implement → commit → push → PR. Your working directory is never touched: every feature lives in its own worktree on its own branch. If CI fails, the agent reads the logs and pushes a fix (3 retries by default, configurable). For complex features, add --no-fast to enable the full spec-driven pipeline — requirements, research, and a plan as versioned YAML artifacts, with approval gates before any code is written. See the spec-driven development guide.

Supported agents

AgentSupport
Claude CodeBuilt-in
Cursor CLIBuilt-in
Gemini CLIBuilt-in
Any terminal agent CLIVia the generic executor — if it runs in a terminal, Shep can orchestrate it

Swap agents per feature, per repo, anytime. No lock-in at the tool layer or the model layer.

Web control center

Shep control center — live graph of repositories and features with real-time status

A live graph of every repo and feature at localhost:4050 — real-time status, diff review, interactive chat, one-click open in your IDE. Everything the dashboard does, the CLI does too.

Configuration and reference

Configuration — per-feature flags and global defaults
FlagWhat it doesDefault
--pushAuto-push after implementationoff
--prAuto-create PR after pushoff
--fastSkip spec-driven phases, go straight to codingon
--allow-mergeAuto-merge the PR after CI passesoff
--allow-prd / --allow-planAuto-approve individual spec gatesoff
--allow-allEnable all automationsoff
--modelChoose which AI model to useagent default
--repoTarget a specific repositorycurrent repo
--attachAttach reference files for context

Set defaults once with shep settings workflow so you stop repeating flags. shep settings agent, shep settings model, and shep settings ide configure the rest.

CLI reference — core commands
shep                              Start daemon + onboarding (first run)
shep feat new <description>       Create a new feature
shep feat ls                      List features
shep feat show <id>               Show feature details
shep feat resume <id>             Resume a paused feature
shep feat approve <id>            Approve current phase (spec-driven mode)
shep feat reject <id> --feedback  Reject with feedback (spec-driven mode)
shep feat logs <id>               View feature logs
shep agent ls                     List agent runs
shep agent stop <id>              Stop a running agent immediately
shep agent logs <id>              View agent logs
shep repo ls                      List repositories
shep start [--port]               Start web daemon (default: 4050)
shep stop                         Stop the daemon
shep status                       Show daemon status and metrics
shep settings                     Launch setup wizard

Full reference: docs/cli/architecture.md

Trust and safety — what runs where, and what protects you

Shep runs entirely on your machine. All data lives in ~/.shep/ as SQLite; your code is sent only to whichever agent you configure, under that agent's own terms. Nothing is sent to Shep servers — there are none.

ConcernHow Shep handles it
Git isolationEvery feature runs in its own worktree branched from main. Your working directory is never modified.
Agent mistakesOutput lands as a draft PR. Your CI, linters, and security scanners run before any merge.
Review before mergeNo code merges without your approval unless you explicitly pass --allow-merge.
CredentialsShep never reads, stores, or transmits your API keys.
Audit trailEvery action and state transition is logged — shep feat logs <id>.
Emergency stopshep agent stop <id> or the dashboard stop button. The worktree is preserved.

Agent permissions: Shep runs your agent non-interactively, so by default it passes permission-bypass flags (e.g. --dangerously-skip-permissions for Claude Code — each agent has an equivalent). Your safety net is three layers deep: worktree isolation, draft PRs, and your CI pipeline. The bypass flag is a default, not a requirement — configure your agent's permission model independently for tighter control. Note that some agents sandbox network access by default; if npm install fails inside a feature, allow the hosts in your agent's settings.

What Shep does not protect you from: if your CI doesn't catch a vulnerability, Shep won't either. Shep is an orchestration layer, not a security scanner.

FAQ

How is this different from using an AI coding agent directly? Your agent writes the code. Shep manages everything around it: worktrees, commits, pushes, PRs, CI watching, retries. The difference is most obvious at 3-5 features in parallel.

What happens if the agent writes bad code? Shep opens a draft PR and your CI runs. If tests fail, the agent reads the logs and attempts a fix (up to 3 retries, configurable), then pauses and notifies you. Shep never merges code that fails CI.

What happens when an agent gets stuck? The feature enters a Blocked state. You get notified and can provide feedback, restart from a checkpoint, or take over — the code is a standard git worktree on a named branch, open it in your IDE at any point.

Does this work on large codebases? Yes. The practical limit is your agent's context window, not Shep. For monorepos, scope features with --repo.

Can I use this on a team? Shep runs locally per developer. Features are just branches and PRs — your existing review process applies.

Is my code sent anywhere? Not by Shep. It goes only to the agent you configure, under that agent's privacy terms. Shep stores everything locally.

Not in a git repo yet? Shep initializes one for you — git init, a branch, and off it goes.

Architecture — for contributors and the curious

Clean Architecture, four layers:

LayerResponsibility
DomainBusiness logic, TypeSpec-generated types
ApplicationUse cases, port interfaces
InfrastructureSQLite, LangGraph agents, DI
PresentationCLI, Web UI

10-minute architecture tour · Full architecture docs

Community

Shep is open source and AI-native — one of its native abilities is helping itself onboard contributors. Clone, run pnpm dev:cli doctor, pick a good first issue, and ship a PR in under 30 minutes.

License

MIT — see LICENSE.

常见问题

What is shep?

shep is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by shep-ai. Ship features 10x faster. Optimzed. 😇. It has 210 GitHub stars.

Is shep safe to use?

Yes. shep passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install shep?

Clone the repository with "git clone https://github.com/shep-ai/shep" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is shep written in?

shep is primarily written in TypeScript. It is open-source under shep-ai on GitHub, so you can review or fork the full source.

Are there alternatives to shep?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh shep against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情