Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
Gangsta

Gangsta Agents

An AI agentic skills framework for spec-driven development, built on the organizational model of mafia.

Philosophy

Gangsta Agents replaces open-ended Agile iteration with a directive, vertical hierarchy. A small team of highly specialized agents — each operating with autonomy within their Position — outperforms a large pool of general-purpose agents.

The Spec is Law. Code is an implementation detail validated against the specification. No shadow hotfixes.

The Informed Minority. Clear roles, clear hierarchy, clear accountability.

How It Works

When you start a session, the framework bootstraps The Don — an orchestrator that analyzes your intent and routes to the appropriate skill. When you want to build something, it initiates a Heist: a 6-phase operational cycle.

The Heist Pipeline

2026-04-23 16 47 21
PhaseSkillWhat HappensGate
1. Reconnaissancegangsta:reconnaissanceIntel gathering on codebase and requirementsDossier
2. The Grillinggangsta:the-grillingAdversarial brainstorming via Multi-Agent Debate (Proposer vs Devils-Advocate, with you weighing in each round)Consensus
3. The Sit-Downgangsta:the-sit-downFormal spec drafting. No code allowed.Contract
4. Resource Developmentgangsta:resource-developmentTask decomposition into Work Packages and Execution PlanExecution Plan
5. Executiongangsta:the-hitParallel execution by Worker subagents with TDD enforcementCompletion
6. The Deliverygangsta:launderingVerification, integration, and Ledger updateLedger

Every phase gate requires your approval. You are the Don.

Full Heist Pipeline documentation

Autonomous Mode

The default Heist pauses for Don approval at every phase gate. Autonomous Mode is an opt-in fast path that delegates per-phase gating to a don-proxy surrogate while preserving the Don's terminal authority.

AspectDefault HeistAutonomous Mode
Per-phase approvalDon at each gategangsta:don-proxy
Sit-Down sign-offDon signs Contractdon-proxy signs as pending-don-confirmation
Sit-Down reviewConsigliere advisoryDual-Veto — Consigliere AND don-proxy, either REJECT is terminal
Terminal authorityDonDon, via /gangsta:go (sign), /gangsta:abort (reject), Consigliere veto
Constitutional FloorN/AMandatory rejection of artifacts violating Omerta or Negative Constraints

Slash commands:

CommandPurpose
/gangsta:heist <feature>Run Phases 1–4 (Reconnaissance → Grilling → Sit-Down → Resource-Development) autonomously. Produces don-proxy-signed Contract and Plan in pending-don-confirmation state.
/gangsta:go [feature]Don signing event. Flips pending-don-confirmationconfirmed, then runs Phases 5–6 (the Hit + Laundering). Resolves the most recent Heist via docs/gangsta/.last-heist when feature is omitted.
/gangsta:abort <feature>Rejects a pending Heist. Relocates docs/gangsta/<feature>/ to docs/gangsta/.aborted/<feature>-<timestamp>/ with an abort marker. Excluded from future ledger reads.

Flags on /gangsta:heist:

  • --retries <1-10> (default 3) — per-phase retry budget before escalation
  • --rounds <1-7> (default 3) — Grilling rounds; --rounds=1 is the minimum-cost fast path
  • --best-effort <bool> (default true) — continue past non-terminal failures with deviation reports

Lifecycle states for autonomous artifacts: pending-don-confirmationconfirmed (via /gangsta:go) or rejected (via /gangsta:abort). Constitutional Floor REJECTs are terminal in any phase and cannot be retried regardless of --best-effort.

Note: Autonomous Mode is positioned as a structured fast path, not a token-cost reduction. Mandatory adversarial Grilling is preserved — there is no flag to bypass it.

The Gangsta Agents Family Hierarchy

RoleFunction
Don (You)Supreme authority. Approves all phase gates.
ConsigliereImpartial advisor. Security and architecture auditor.
Don-ProxySurrogate Don for autonomous mode. Bounded by the Constitutional Floor.
UnderbossCOO. Task decomposition, resource allocation.
Crew LeadDomain crew lead. Manages Workers per territory.
WorkerStateless code executor. TDD enforced.
AssociateExternal tool/API proxy.

Full Hierarchy documentation

The Family Ledger

The Gangsta Agents Family maintains institutional memory across all Heists:

  • Insights — Successful reasoning pathways and creative solutions
  • Fails — Documented failures with cognitive diagnoses and negative constraints
  • Constitution — Accumulated commandments and prohibitions

Full Ledger documentation

Software Development Skills

SkillPurpose
InterrogationSystematic debugging — find the rat before applying fixes
The DrillTDD enforcement — no code without a failing test
SafehouseGit worktrees — isolated operational bases
The AuditCode review — the-inspector checks the work
Receiving OrdersProcess feedback with rigor, not blind agreement
The SweepVerification — evidence before completion claims
Exit StrategyBranch integration and cleanup

Full Dev Skills documentation

Omerta: Governance

Five non-negotiable laws govern all operations:

  1. Introduction Rule — No agent-to-agent communication without hierarchy mediation
  2. Rule of Availability — All state checkpointed to files
  3. Rule of Truth — Every claim cites its source. No invalid claims.
  4. Rule of Budget — Resource budgets tracked and enforced
  5. Spec is Law — Code contradicts spec → spec is revised first

Full Omerta documentation

Installation

Universal (any agent)

Install to all detected agents at once using the skills CLI:

npx skills add kucherenko/gangsta

Install globally (available across all projects):

npx skills add kucherenko/gangsta --global

Install to a specific agent only:

npx skills add kucherenko/gangsta -a cursor npx skills add kucherenko/gangsta -a claude-code npx skills add kucherenko/gangsta -a opencode

Cursor

npx skills add kucherenko/gangsta -a cursor --global

Skills are installed to ~/.cursor/skills/ (global) or .agents/skills/ (project).

Claude Code

/plugin marketplace add kucherenko/gangsta /plugin install gangsta@gangsta

GitHub Copilot

copilot plugin marketplace add kucherenko/gangsta copilot plugin install gangsta@gangsta-marketplace

OpenCode

Tell OpenCode:

Fetch and follow instructions from https://raw.githubusercontent.com/kucherenko/gangsta/refs/heads/master/.opencode/INSTALL.md

Codex

Tell Codex:

Fetch and follow instructions from https://raw.githubusercontent.com/kucherenko/gangsta/refs/heads/master/.codex/INSTALL.md

Gemini CLI

gemini extensions install https://github.com/kucherenko/gangsta

Verify Installation

Start a new session and say:

"I want to build a new feature"

The agent should invoke Gangsta Agents skills automatically, starting with Reconnaissance.

License

MIT

关于 About

AI agentic skills framework for spec-driven development, built on the organizational model of mafia.
agentsagentskillsaispec-driven-development

语言 Languages

Shell73.6%
TypeScript17.6%
JavaScript6.3%
Batchfile2.5%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
129
Total Commits
峰值: 57次/周
Less
More

核心贡献者 Contributors