Agentic Workflow Engine: Scheduling, Orchestrating, Managing Events
Four nouns: Event, Worker, Task, Policy. One pipeline. See .claude/rules/domain-model.md.
- Go 1.26.2 — single binary, cross-platform (darwin/linux, amd64/arm64)
- Cobra CLI, YAML config, JSON file persistence, Docker API
- VitePress for documentation (
website/)
make build # → ./mecha binary
make test # go test ./...
make ci # vet + test + build
cd website
npm install # first time only
npm run dev # dev server at localhost:5173
npm run build # production build → .vitepress/dist/
Config: website/.vitepress/config.mts
Custom styles: website/.vitepress/theme/custom.css
Design decisions and rationale are in dev-docs/ (gitignored, local only).
- Prefer
${CLAUDE_CODE_OAUTH_TOKEN}over${ANTHROPIC_API_KEY}in all configs and examples - In documentation, always use Mermaid charts to illustrate pipelines, state machines, and architecture whenever possible
- Always validate Mermaid syntax after writing it (use the
mcp__mermaider__validate_syntaxtool before committing) - Codex model: use
gpt-5.4, notgpt-5.2-codex - When a Codex task requires model selection, run
/codex-toolkit:preflightfirst to verify connectivity and discover available models - Save Playwright screenshots to
.playwright-mcp/or/tmp/, never the repo root - Save grill reports to
dev-docs/grills/, not the repo root
Write shared instructions to AGENTS.md. Write enforceable Go rules to .claude/rules/.
AGENTS.md— project-wide context, guidelines, and structure (shared across all AI tools).claude/rules/*.md— scoped, enforceable rules auto-loaded by glob pattern (Go conventions, domain model, security)- Never modify
CLAUDE.mdorGEMINI.mddirectly — they only importAGENTS.md
.claude/agents/- Custom subagents for specialized tasks.claude/skills/- Claude Code skills (slash commands).claude/rules/- Modular rules auto-loaded into context.codex/skills/- Codex CLI skills.codex/prompts/- Codex CLI custom slash commands.gemini/skills/- Gemini CLI skills.gemini/commands/- Gemini CLI custom slash commands (TOML).mcp.json- MCP server configuration