~ / rigs / nicolaguglielmi / lights-out

nicolaguglielmi/lights-out

Governed autonomy for AI coding agents: six numeric gates, a per-ticket perimeter, a canary that rolls itself back, one human go. Runs locally, no API key.

↗ GitHub ★ 10 Apache-2.0 updated 1d ago project Claude Code Claude plugin
share on X
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
CONTEXT TAX · EVERY TURN
up to ~6.5k tokens
Claude Code loads MCP tools on demand, so the real cost is usually lower.
Heavy · median rig: 2.3k · breakdown
GUARDRAILS
1/5
No YOLO mode · details
Quality 15/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ claude mcp add notes -- '['\''python3'\'', '\''.lights-out/mcp/notes.py'\'']'
$ npx degit nicolaguglielmi/lights-out/.claude ./rig-lights-out  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ claude mcp add notes -- '['\''python3'\'', '\''.lights-out/mcp/notes.py'\'']'
$ npx degit nicolaguglielmi/lights-out/.claude/skills/milestone .claude/skills/milestone
$ npx degit nicolaguglielmi/lights-out/plugins/lights-out-codex/skills/gates .claude/skills/gates
$ npx degit nicolaguglielmi/lights-out/plugins/lights-out-codex/skills/hook .claude/skills/hook
$ npx degit nicolaguglielmi/lights-out/plugins/lights-out-codex/skills/spec .claude/skills/spec
$ curl -fsSL --create-dirs -o .claude/agents/architect.md https://raw.githubusercontent.com/nicolaguglielmi/lights-out/main/.claude/agents/architect.md
$ curl -fsSL --create-dirs -o .claude/agents/doc-scribe.md https://raw.githubusercontent.com/nicolaguglielmi/lights-out/main/.claude/agents/doc-scribe.md
$ curl -fsSL --create-dirs -o .claude/agents/gate-writer.md https://raw.githubusercontent.com/nicolaguglielmi/lights-out/main/.claude/agents/gate-writer.md

This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 16.2k rigs:

{
  "permissions": {
    "deny": [
      "Read(./.env)",
      "Read(./.env.*)",
      "Read(**/.env)",
      "Read(~/.ssh/**)",
      "Bash(git push --force:*)",
      "Read(**/*.pem)",
      "Read(.env)",
      "Read(~/.aws/**)",
      "Read(**/*.key)",
      "Read(**/.env.*)",
      "Bash(git push --force*)",
      "Bash(rm -rf:*)",
      "Bash(rm -rf *)",
      "Bash(sudo *)",
      "Bash(sudo:*)",
      "Bash(rm -rf /)",
      "Bash(git push -f:*)",
      "Read(.env.*)",
      "Bash(git reset --hard*)",
      "Bash(rm -rf /*)"
    ],
    "ask": [
      "Bash(git push:*)",
      "Bash(git push *)",
      "Bash(gh pr merge *)",
      "Bash(git commit:*)",
      "Bash(rm *)",
      "Bash(gh pr merge:*)",
      "Bash(gh pr create *)",
      "Bash(git reset --hard:*)",
      "Bash(npm publish:*)",
      "Bash(git rebase *)"
    ]
  }
}

MCP servers (2)

serversourceest. tokens
lights-out local / custom 2.5k
['python3', · "notes" binary 2.5k

Skills (4)

Subagents (3)

architect
model: opus
Use this agent for structural decisions: port and adapter boundaries, the risk-scoring model, the artifact schema, cross-layer bugs, and writing ADRs. Invoke before any change that adds a package, an
doc-scribe
model: sonnet
Use this agent for mechanical text work: README updates, docs formatting, ADR tidying, commit messages, renames across files, and docstrings. Not for deciding anything.
gate-writer
model: sonnet
Use this agent to implement or change anything under gates/, verify/, e2e/, or any test suite. Handles CI workflows, the PromQL verify query, mutation-testing thresholds, contract tests, and the risk-

Similar rigs

copied ✓