Sniffer
Investigation and requirements analysis. Finds facts, traces issues, gathers evidence.
Multi-agent orchestration for the xAI Grok CLI — real subagents, durable workflows, lifecycle hooks, memory, and worktrees that keep messy work isolated until it is verified.
$ npx grokgoblin@latest setup
$ goblin cruise "add a /health endpoint with tests"
[RALPH] iteration 07/50
> reflect → tests failing; endpoint not wired
> act → add route, handler, and test
> verify → npm test
✓ 24 passed, 0 failed
[COMPLETE] evidence captured → PR ready
Specialist goblins with defined roles, tool boundaries, and routing discipline. Click any card to launch their sandbox output.
Investigation and requirements analysis. Finds facts, traces issues, gathers evidence.
Architecture and planning. Evaluates tradeoffs and writes implementation strategy.
Precise implementation inside approved scope. No wandering, no accidental expansions.
Root-cause debugging. Minimizes surface area and fixes the actual failure path.
Security review for auth flaws, secrets, injection risks, and data exposure.
Runs tests, validates behavior, and confirms evidence before work is called done.
…plus tinker, nitpick, forager & grunt — 10 specialists in all.
Autonomous modes that drive work from ambiguity to verified completion.
Clarify scope, success criteria, non-goals, and constraints.
Turn scope into architecture decisions and an execution plan.
Execute larger work as checkpointed goals with a ledger.
Move Red → Green → Refactor before polishing behavior.
Self-review for correctness, security, edge cases, and regressions.
goblin cruise "add a /health endpoint with tests"
Everything important at your fingertips, from quick questions to isolated worktrees.
goblin ask <question>
goblin explore <topic>
goblin forage <topic>
goblin exec <prompt>
goblin exec --check
goblin cruise <goal>
goblin quest <goal>
goblin ralph <task>
goblin hunt <objective>
goblin swarm [N] <task>
goblin review
goblin review <PR#>
goblin ship <goal>
goblin worktree
goblin -w <name>
goblin memory status
goblin memory search "..."
goblin memory on|off
goblin memory edit
goblin memory clear
goblin worktree
goblin worktree new [name]
goblin worktree rm <name>
goblin worktree clean
goblin -w feature-x
goblin config get <key>
goblin config set <key> <val>
goblin skills list
goblin hooks list
goblin doctor --verbose
What makes GrokGoblin a complete autonomous workflow layer compared to standard CLI wrappers.
| Capabilities | Standard Grok CLI | GrokGoblin Layer |
|---|---|---|
| Agent Collaboration | ❌ Single linear chat agent | ✓ 10 collaborating specialists |
| Workspace Safety | ❌ Modifies files directly on main | ✓ Sandbox worktree isolation |
| Durable Pipelines | ❌ Forgetful chat states | ✓ Multi-stage checkpoint ledger |
| Behavior Loops | ❌ Manual compile/test run loops | ✓ Self-healing test execution |
| Persistent Memory | ❌ Session-only token caching | ✓ Cross-session project memory |
| Custom Automation | ❌ Default prompts only | ✓ Extensible skills & lifecycle hooks |
Built-in primitives for durable, reliable autonomous work.
Grok's native cross-session memory, enabled at setup, plus a local project file injected through the launch overlay.
.grokgoblin/memory/project.md
Tool and session events log state transitions, notifications, and runtime evidence.
~/.grok/hooks/hooks.json
Risky work lands on gg/ branches in sibling worktrees before integration.
../repo.gg-worktrees/name
Get answers to common structural, keying, and execution questions.
A leader goblin (the orchestrator) decomposes your goal into tasks and delegates each to the right specialist subagent — Sniffer for investigation, Schemer for planning, Warden for security review — running independent ones in parallel. Each role has strict tool boundaries and a defined input/output, which reduces context drift and prevents conflicting file writes. Read-only roles are capability-locked so they physically cannot edit files.
No. By default, any execution task initialized via goblin worktree or goblin cruise clones your current active state into a sibling git worktree directory. Coding changes and testing compile loops are run within this isolated space, checking changes in only after test coverage validations succeed.
GrokGoblin routes all actions directly through your authenticated local grok CLI shell. If your terminal is logged in (using grok login), GrokGoblin wraps its commands automatically, utilizing your active account context without requiring additional monthly token fees.
Skills are markdown instruction folders that become / slash commands inside a Grok session — GrokGoblin installs its own (/dig, /goblinplan, /swarm, /hunt, /review, /ship, /forage, and more) to drive each workflow. Hooks are scripts grok runs before/after tool and session events — GrokGoblin uses them to track state transitions and keep the orchestration overlay loaded.
One command, then launch the enhanced Grok CLI.
$ npx grokgoblin@latest setup
$ grok login
$ goblin
✓ GrokGoblin active — 10 agents ready
/dig, /goblinplan, /quest, /ralph, /cruise, /tdd, /code-review, /swarm, /hunt, /review, /ship, /forageSupports Node 20+, macOS, Linux, and standard Grok CLI sessions.