-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or requestphase-5Phase 5: Advanced Features & PolishPhase 5: Advanced Features & Polish
Description
Summary
Enable stepping through past executions for debugging and learning.
Problem
When agent execution fails or produces unexpected results, it's hard to understand what happened. Need ability to replay and inspect past runs.
Proposed Solution
Execution Recording
- Record all LLM prompts/responses
- Track file operations with before/after state
- Log decision points and branching
Replay Mode
cf work replay <run-id> # Step through execution
cf work replay <run-id> --step N # Jump to step N
cf work diff <run-id> # Show all file changesDebug Features
- Step forward/backward through execution
- Inspect context at each step
- Compare expected vs actual outputs
- "What-if" re-execution with modified inputs
Acceptance Criteria
- Execution details recorded to database
- Replay command shows step-by-step execution
- File diffs available at each step
- Execution can be re-run from any checkpoint
- Export execution trace for analysis
Related
- Useful for debugging self-correction loop
- Enables learning from successful executions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestphase-5Phase 5: Advanced Features & PolishPhase 5: Advanced Features & Polish