By EarthmanWeb
14-state workflow engine with Serena memory persistence, hook-driven event architecture, and optional swarm orchestration
Disable the SWE workflow for this project (user-only command)
Archive completed memories and specs
Force transition to specific state (debug/recovery)
Initialize swe plugin via autonomous agent
Reset workflow state (requires confirmation)
Feature onboarding wizard with optional quick mode
Update a specific feature's memory files to reflect current codebase state
TDD from Gherkin specs. Takes a .feature file or SPEC_* memory, builds a coverage map, implements both functionality and tests to achieve 100% compliance. Builds missing functionality, creates real tests (no fixme), follows all dev standards.
Write Gherkin BDD specs for a feature. Creates .feature files in tests/specs/ from requirements, user stories, or free-form descriptions.
Initialize workflow for new empty projects. Creates core memories and directory structure.
Admin access level
Server config contains admin-level keywords
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Modifies files
Hook triggers on file write and edit operations
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Uses power tools
Uses Bash, Write, or Edit tools
No model invocation
Executes directly as bash, bypassing the AI model
No model invocation
Executes directly as bash, bypassing the AI model
A 14-state workflow engine plugin for Claude Code. Provides structured task routing, Serena memory persistence, hook-driven automation, and optional multi-agent swarm orchestration.
claude plugin marketplace add https://github.com/EarthmanWeb/serena-workflow-engine.git
claude plugin install swe@EarthmanWeb --scope local
Install with --scope local for a single project, or --scope user to make it available globally across all projects. When installed globally, hooks are inert in projects that haven't been initialized -- they won't interfere until you run /swe-init.
Auto-update is built in: the plugin checks for the latest version on session start via the marketplace hook.
Restart Claude Code, then run:
/swe-init
This launches an autonomous agent that handles everything:
.serena/ directory structure and config files~/.claude/projects/.../memory/ into .serena/memory/ with structured subdirectories, then creates a symlink so future auto-memory writes go directly to .serena/memory/CLAUDE.md with memory storage directives pointing to .serena/memory/.gitignore for runtime exclusionsDesigned to work with the VSCode extension version of Claude Code -- it uses the same auto-memory path that the extension expects for the symlink.
Init is idempotent -- safe to re-run if interrupted.
Restart Claude Code, then:
/swe-feature-onboard [KEY]
Example: /swe-feature-onboard BACKEND
Features define the scope, file paths, and architecture patterns the workflow uses when routing tasks.
Every session follows a structured flow:
WF_START -> WF_CLASSIFY -> WF_ARCH_REVIEW -> WF_EXECUTE -> WF_VERIFY -> WF_DONE
Side paths: WF_RESEARCH (read-only exploration), WF_CONTINUE (resume previous work), WF_SWARM_ORCHESTRATE (multi-agent tasks), WF_DEBUG_TDD (test-driven debugging).
| Path | Purpose |
|---|---|
.serena/memory/ | Project memories (features, domain, refs, specs) -- persisted, committed |
.serena/memories/ | Working Memory files (WM_<session>.md) -- ephemeral, gitignored |
.serena/memory-paths.conf | Serena memory path config |
The init sequence creates a symlink from ~/.claude/projects/<encoded>/memory/ to .serena/memory/. This redirects Claude Code's auto-memory system so all memory files are stored in the project repo instead of a global directory. The MEMORY.md index is also migrated and updated with new paths.
The plugin installs its own lightweight MCP server (swe-wm) for automated Working Memory management. It:
swe_wm_read, swe_wm_update_section, and swe_wm_update_status toolslist_memories output (accessed via swe-wm, not Serena)WF_* workflow instruction files in read-only format from the plugin's cached install folderEdit .serena/memory-paths.conf to add extra directories Serena should access (one path per line):
./.serena/memory
./.serena/memories
./docs:ro
./src/config:ro
Append :ro for read-only access. The first two paths are always present.
Bootstrap auto-detects project info and fills template placeholders:
| Detected From | Values Filled |
|---|---|
package.json, composer.json, Cargo.toml | Project name, test framework, test commands |
| File extensions scan | Primary language, all languages |
| Dev dependencies | Test runner (Playwright, Jest, Vitest, PHPUnit, Pest, pytest, etc.) |
Templates rendered to .serena/memory/:
MEMORY.md -- memory index with default entriesFEATURE_TESTS.md -- test config with detected frameworkFEATURE_DEV_STANDARDS.md -- dev standards indexFEATURE_AGENTS.md -- agent registryfeedback/FEEDBACK_RESPONSE_FORMAT.md -- response styleref/REF_MCP_BROWSER_DEVTOOLS.md -- browser DevTools referenceUnresolved placeholders are left as-is for manual fill-out.
When initializing a project that already has Claude Code auto-memory files, bootstrap automatically migrates, reorganizes, and symlinks them:
npx claudepluginhub earthmanweb/serena-workflow-engine --plugin sweEnterprise AI agent orchestration plugin with 150+ commands, 74+ specialized agents, SPARC methodology, swarm coordination, GitHub integration, and neural training capabilities
Stateful workflow engine MCP server for multi-step automation
Research-backed orchestration for Claude Code. Structured workflow from idea to production with parallel execution, session memory, 70-point validation, autonomous mode, and adversarial review. 51 commands, 15 agents across 7 departments.
Compound Engineering workflow: PRD-driven sprints, isolated worktrees, hook-enforced safety, automated learning. Skills become /vini-workflow:plan, /vini-workflow:compound, etc.
Agentic workflow mechanics: CLAUDE.md instruction quality and structured context handoff
Agent enforcement framework — context injection, planning gates, session learning
Complete AI coding workflow system. Self-correcting memory + persistent FTS5-indexed research wikis + auto-research loop + multi-LLM council on a single SQLite store. 33 skills, 8 agents, 22 commands, 37 hook scripts across 24 events. Cross-agent via SkillKit.