/session-end
Cleanup and persist session state before ending work.
> /plugin marketplace add proffesor-for-testing/agentic-qe> /plugin install agentic-qe-fleet@agentic-qe
Command definition
session-end.mdhook session-end
Cleanup and persist session state before ending work.
Usage
npx ruflo@3.76.0 hook session-end [options]
Options
- `--session-id, -s <id>` - Session identifier to end
- `--save-state` - Save current session state (default: true)
- `--export-metrics` - Export session metrics
- `--generate-summary` - Create session summary
- `--cleanup-temp` - Remove temporary files
Examples
Basic session end
npx ruflo@3.76.0 hook session-end --session-id "dev-session-2024"
With full export
npx ruflo@3.76.0 hook session-end -s "feature-auth" --export-metrics --generate-summary
Quick close
npx ruflo@3.76.0 hook session-end -s "quick-fix" --save-state false --cleanup-temp
Complete persistence
npx ruflo@3.76.0 hook session-end -s "major-refactor" --save-state --export-metrics --generate-summary
Features
State Persistence
- Saves current context
- Stores open files
- Preserves task progress
- Maintains decisions
Metric Export
- Session duration
- Commands executed
- Files modified
- Tokens consumed
- Performance data
Summary Generation
- Work accomplished
- Key decisions made
- Problems solved
- Next steps identified
Cleanup Operations
- Removes temp files
- Clears caches
- Frees resources
- Optimizes storage
Integration
This hook is automatically called by Claude Code when:
- Ending a conversation
- Closing work session
- Before shutdown
- Switching contexts
Manual usage in agents:
# At session end
npx ruflo@3.76.0 hook session-end --session-id "your-session" --generate-summary
Output
Returns JSON with:
{
"sessionId": "dev-session-2024",
"duration": 7200000,
"saved": true,
"metrics": {
"commandsRun": 145,
"filesModified": 23,
"tokensUsed": 85000,
"tasksCompleted": 8
},
"summaryPath": "/sessions/dev-session-2024-summary.md",
"cleanedUp": true,
"nextSession": "dev-session-2025"
}See Also
- `hook session-start` - Session initialization
- `hook session-restore` - Session restoration
- `performance report` - Detailed metrics
- `memory backup` - State backup
Read more
hook session-end
Cleanup and persist session state before ending work.
Usage
npx ruflo@3.76.0 hook session-end [options]
Options
- `--session-id, -s <id>` - Session identifier to end
- `--save-state` - Save current session state (default: true)
- `--export-metrics` - Export session metrics
- `--generate-summary` - Create session summary
- `--cleanup-temp` - Remove temporary files
Examples
Basic session end
npx ruflo@3.76.0 hook session-end --session-id "dev-session-2024"
With full export
npx ruflo@3.76.0 hook session-end -s "feature-auth" --export-metrics --generate-summary
Quick close
npx ruflo@3.76.0 hook session-end -s "quick-fix" --save-state false --cleanup-temp
Complete persistence
npx ruflo@3.76.0 hook session-end -s "major-refactor" --save-state --export-metrics --generate-summary
Features
State Persistence
- Saves current context
- Stores open files
- Preserves task progress
- Maintains decisions
Metric Export
- Session duration
- Commands executed
- Files modified
- Tokens consumed
- Performance data
Summary Generation
- Work accomplished
- Key decisions made
- Problems solved
- Next steps identified
Cleanup Operations
- Removes temp files
- Clears caches
- Frees resources
- Optimizes storage
Integration
This hook is automatically called by Claude Code when:
- Ending a conversation
- Closing work session
- Before shutdown
- Switching contexts
Manual usage in agents:
# At session end npx ruflo@3.76.0 hook session-end --session-id "your-session" --generate-summary
Output
Returns JSON with:
{
"sessionId": "dev-session-2024",
"duration": 7200000,
"saved": true,
"metrics": {
"commandsRun": 145,
"filesModified": 23,
"tokensUsed": 85000,
"tasksCompleted": 8
},
"summaryPath": "/sessions/dev-session-2024-summary.md",
"cleanedUp": true,
"nextSession": "dev-session-2025"
}See Also
- `hook session-start` - Session initialization
- `hook session-restore` - Session restoration
- `performance report` - Detailed metrics
- `memory backup` - State backup
Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.
Other commands on agentic-qe.
agent-coordination
CommandCoordination patterns for multi-agent collaboration.
agent-spawning
CommandGuide to spawning agents with Claude Code's Task tool.
agent-types
CommandComplete guide to all 87 available agent types in Claude Flow V3
More commands from other plugins.
bkit
Commandbkit plugin help - Show all available bkit functions. Workaround for skills autocomplete issue. Use "/bkit" or just type "bkit…
check-code-quality
CommandYou are performing static code quality analysis on the Scopy package: `$ARGUMENTS`
bind-docs-sync
CommandCreate a docs-sync binding between local docs and a YApi category.

