graph TD
A[用户目标] --> B[元提示层-策略与角色合成]
B --> C[规格引擎-生成可执行 Spec]
C --> D[任务分解-依赖图与完成定义]
D --> E[执行循环-最小上下文重建]
E --> F[上下文工程-压缩检索与重排]
F --> E
E --> G{"对照 Spec 验收"}
G -->|"通过"| H[产出交付与轨迹归档]
G -->|"未通过"| I[偏差诊断]
I --> C
A powerful meta-prompting, context engineering and spec-driven development system that enables agents to work for long periods of time autonomously without losing track of the big picture
GSD Pi is a local-first coding agent for planning, implementing, verifying, and tracking project work from the command line.
It combines a terminal agent, project workflow tools, worktree-aware Git automation, and optional UI integrations so a project can move from idea to reviewed implementation with less manual coordination.
Feature Roll-Up
Guided terminal agent — Start with gsd, configure providers, and run planned or quick coding sessions from your shell.
Autonomous project workflow — Break work into milestones, slices, and tasks, then let auto mode plan, implement, verify, and advance.
Worktree-aware Git automation — Keep implementation work isolated while preserving a reviewable main checkout.
Local project memory — Store project requirements, decisions, runtime notes, generated plans, summaries, and validation evidence under .gsd/.
Multi-provider model routing — Use the provider your team already has, including API keys, OAuth providers, and external CLI providers such as Claude Code and Cursor Agent.
Extension surface — Add project-specific commands, tools, skills, and UI integrations through bundled or community extensions.
Terminal and web surfaces — Use the TUI by default, or launch gsd --web when a visual control plane fits the work better than a terminal.
gsd: Surface exec purpose and output logs in tool rendering (#2914) (#2922).
subagent: Surface provider-reported child model (#2859).
Status
The open-gsd/gsd-pi project restarted public development from a clean baseline at version 1.0.0. Releases continue from that baseline; the latest version is shown under Latest Release Highlights and in CHANGELOG.md.
Older release history has been archived outside the active changelog so new work can be reviewed from a clean project surface.
Install
Recommended — guided installer:
npx @opengsd/gsd-pi@latest
For CI or scripted installs:
npx @opengsd/gsd-pi@latest --yes
Alternative — direct npm global install:
npm install -g @opengsd/gsd-pi@latest
If you want pnpm to own the global install, use pnpm’s runner:
GSD Pi now installs from the scoped package @opengsd/gsd-pi. If you previously installed the older unscoped gsd-pi package, remove it first so the old global binary does not shadow the new package.
Recommended migration with the guided npx installer:
You can also run npx @opengsd/gsd-pi@latest to launch the guided installer (recommended for new installs). For deeper recovery steps, see Upgrade GSD Pi and Upgrade from older gsd-pi installs.
Uninstall
Remove the global package and optional local GSD state files.
If you installed GSD with pnpm, use pnpm for the pnpm-owned package. If pnpm reports that its global bin directory is not on PATH, run pnpm setup, restart your shell, then retry.
Need help choosing settings? Use the GSD Pi web configurator to build a configuration in your browser.
gsd
Run the setup flow, choose your preferred model provider, and open a project directory. Cursor Agent users can choose the cursor-agent provider after installing and authenticating the local cursor-agent CLI; its default model is composer-2.5, and CURSOR_API_KEY is supported as an auth signal. GSD stores project planning and runtime state in .gsd/, with gitignored sibling runtime directories such as .gsd-backups/ for migration snapshots. GSD does not delete .gsd-backups/migrate-* snapshots; remove them yourself when you no longer need the pre-migration copy.
/gsd config
/gsd auto
/gsd quick "Describe the task"
/gsd status
For automation, quick tasks also have a non-interactive entry point with a
structured result and meaningful exit code:
gsd quick --output-format json "Describe the task"
What GSD Pi Does
Plans work into milestones, slices, and tasks.
Runs coding sessions with project context and verification steps.
Uses Git worktrees to isolate implementation work.
Tracks project state in a local database with markdown projections for review.
Supports extension-based tools and provider integrations.
Produces artifacts such as plans, summaries, validation notes, and reports.
Repository Layout
Path
Purpose
src/
Core runtime resources and bundled extensions
packages/
Workspace packages used by the CLI, agent, TUI, RPC, and native bridge
native/
Native engine packaging and platform binaries
web/
Web UI and API surface
docs/
User and developer documentation
scripts/
Build, release, migration, and maintenance scripts
Development
pnpm install --frozen-lockfile
pnpm run build
pnpm test
Before opening a pull request, run:
pnpm run verify:fast # CI fast-gates locally (scans + policy)
pnpm run verify:pr # Fast loop: build + typecheck + unit tests
pnpm run verify:merge # Before PR review: full CI blocking parity
Versioning
The active public baseline starts at 1.0.0.
Historical tags and archived refs may exist for traceability, but active release notes should be written from this baseline forward.
评论