docs: update session-summary install to recommend plugin system
- Add plugin install as recommended method in Implementation section - Fix hook event: Stop → SessionEnd (correct event) - Add plugin install option in Installation section - Keep manual install as alternative Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c955098cc7
commit
c7c63a1bc4
1 changed files with 19 additions and 3 deletions
|
|
@ -8198,15 +8198,24 @@ A Stop hook that automatically displays a formatted summary with:
|
||||||
- `ccusage` (optional, for accurate cost calculation via Claude Code Usage tool)
|
- `ccusage` (optional, for accurate cost calculation via Claude Code Usage tool)
|
||||||
- bash 3.2+ (macOS compatible)
|
- bash 3.2+ (macOS compatible)
|
||||||
|
|
||||||
**Configuration**:
|
**Plugin Install (Recommended)**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
claude plugin marketplace add FlorianBruniaux/claude-code-plugins
|
||||||
|
claude plugin install session-summary@florian-claude-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
Hooks are auto-wired for `SessionStart` (RTK baseline) and `SessionEnd` (summary display). No manual configuration needed.
|
||||||
|
|
||||||
|
**Manual Configuration** (alternative):
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"Stop": [{
|
"SessionEnd": [{
|
||||||
"hooks": [{
|
"hooks": [{
|
||||||
"type": "command",
|
"type": "command",
|
||||||
"command": "$CLAUDE_PROJECT_DIR/.claude/hooks/session-summary.sh"
|
"command": "~/.claude/hooks/session-summary.sh"
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
@ -8327,6 +8336,13 @@ ccusage session --id <session-id> --json --offline
|
||||||
|
|
||||||
#### Installation
|
#### Installation
|
||||||
|
|
||||||
|
**Plugin system** (recommended):
|
||||||
|
```bash
|
||||||
|
claude plugin marketplace add FlorianBruniaux/claude-code-plugins
|
||||||
|
claude plugin install session-summary@florian-claude-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
**Manual** (alternative):
|
||||||
```bash
|
```bash
|
||||||
# Copy hook
|
# Copy hook
|
||||||
cp examples/hooks/bash/session-summary.sh .claude/hooks/
|
cp examples/hooks/bash/session-summary.sh .claude/hooks/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue