Added
Persistent state management wired into workflow lifecycle (P0):
state-manager.shfunctions (init_state,set_current_workflow,update_context,update_metrics) now called frominit_session(),save_session_checkpoint(),complete_session(), andspawn_agent()- Phase context captured after each embrace phase (probe/grasp/tangle/ink) via
update_context() - Provider usage tracked per
spawn_agent()call (codex/gemini/claude counters) /octo:statusnow shows project state section (workflow, phase, decisions, blockers)
Codebase-aware discover/probe phase (P1):
- When running
probe_discover()inside a git repo with source files, a 6th agent is spawned to analyze the local codebase - Maps tech stack, architecture patterns, file structure, and coding conventions
- Dynamic agent count (5 or 6) replaces hardcoded progress tracking
Human-readable STATE.md generation:
- New
write_state_md()function instate-manager.shrendersstate.jsonto.claude-octopus/STATE.md - Generated at every checkpoint and session completion for LLM context restoration
- Includes: current position, provider usage, decisions, active blockers, phase context