21-state workflow engine for Claude Code with Serena memory persistence, swarm coordination, and RLVR learning.
- Claude Code installed globally
- Python 3 (for hook scripts and bootstrap)
- jq (for JSON processing in setup scripts)
claude plugin marketplace add https://github.com/EarthmanWeb/serena-workflow-engine.git
claude plugin install swe@EarthmanWeb --scope localIn Claude Code CLI: claude /plugin → Marketplaces tab → EarthmanWeb → Enable auto-update
/swe-init
The init agent will:
- Detect your environment and resolve the plugin root
- Run bootstrap (creates directories, detects languages, installs templates)
- Verify MCP servers (Serena, swe-wm)
- Run Serena onboarding
- Verify and install language servers
- Enable the SWE plugin
- Review CLAUDE.md for conflicts
- Install the Serena Log Viewer VSCode extension
- Finalize setup
/swe-feature-onboard FEATURE_[KEY]
Create .serena/memory-paths.conf in your project root (one path per line):
./.serena/swe
./docs
Plugin bundled memories are always appended automatically. See MCP-README.md for details.
| Command | Description |
|---|---|
/swe-init |
First-time setup |
/swe-status |
Show current state |
/swe-feature-onboard [KEY] |
Register existing feature |
/swe-scaffold |
Scaffold new project |
/swe-reset |
Reset workflow |
/swe-goto [STATE] |
Force transition (debug) |
/swe-cleanup |
Archive completed work |
rm -rf ~/.cache/uv/environments-v2/ ~/.cache/uv/git-v0/ ~/.cache/uv/builds-v0/
rm -rf ~/.claude/plugins/cache/EarthmanWeb/
claude plugin marketplace add https://github.com/EarthmanWeb/serena-workflow-engine
claude plugin install swe@EarthmanWeb --scope localRestart Claude Code.
claude --debuggit submodule update --init .claude/plugins/serena-workflow-engine
bash .claude/plugins/serena-workflow-engine/scripts/install-hooks.sh| Location | Path | Purpose |
|---|---|---|
| Plugin folder | .claude/plugins/serena-workflow-engine/ |
Generic/portable code |
| Local memories | .serena/swe/ |
Project-specific adaptations |
See memories/REF_SWE_DEVELOPMENT.md for full development standards.