compound-engineering-plugin
compound-engineering-plugin copied to clipboard
feat(ce-work,ce-security-audit): add ruflo integration and trajectory capture
Summary
- Add optional ruflo-agentdb memory integration for semantic session recall (graceful fallback to SESSION_STATE.md when ruflo isn't installed)
- Add CE-native trajectory capture for documenting non-obvious execution paths as human-readable markdown in
docs/solutions/ - Add 6-signal model selection scoring table to subagent templates for confidence-based Haiku/Sonnet/Opus routing
- Add optional ruflo CVE scanning step to
/ce-security-audit(skipped when ruflo isn't installed)
Changes
| File | Type | What |
|---|---|---|
skills/ce-work/references/ruflo-memory-integration.md |
New | Optional agentdb integration — semantic recall + task completion storage |
skills/ce-work/references/trajectory-capture.md |
New | CE-native execution trajectory capture as markdown |
skills/ce-work/references/subagent-templates.md |
Modified (+15) | Model selection scoring table |
skills/ce-security-audit/SKILL.md |
Modified (+8) | Optional ruflo CVE scanning step |
skills/ce-work/SKILL.md |
Modified (+3) | Phase 0 ruflo check + Phase 3-4 trajectory prompt |
Design decisions
- Zero hard dependencies on ruflo — every ruflo feature checks tool availability first, skips gracefully
- Structural isolation — new reference docs over inline SKILL.md changes, preserving upstream mergeability
- Trajectory capture is CE-native — writes to
docs/solutions/as markdown searchable byce-learnings-researcher, no ruflo needed
Test plan
- [ ] Run
bun test— 1252 tests pass (verified) - [ ] Test
/ce-workwith SESSION_STATE.md present, ruflo NOT installed — should resume from state, skip ruflo silently - [ ] Test
/ce-workwith ruflo-agentdb installed — should query agentdb for related past patterns after session state check - [ ] Test
/ce-security-audit diffwithout ruflo — should run CE agents, skip CVE step - [ ] Test
/ce-security-audit diffwith ruflo — should run CE agents + ruflo CVE scan, merge findings - [ ] Test subagent dispatch on multi-unit plan — model tier should vary based on scoring signals
- [ ] Test trajectory capture after shipping non-routine work — should prompt to write trajectory doc
🤖 Generated with Claude Code
I realize that this has a graceful fallback for ruflo-agentdb but i'm hesitant to add something like this where most are not using it. I would like that separated out.