Skip to content

Commit 46d4b4e

Browse files
author
catlog22
committed
Add comprehensive tests for keyword detection, session state management, and user abort detection
- Implement tests for KeywordDetector including keyword detection, sanitization, and priority handling. - Add tests for SessionStateService covering session validation, loading, saving, and state updates. - Create tests for UserAbortDetector to validate user abort detection logic and pattern matching.
1 parent 65762af commit 46d4b4e

23 files changed

Lines changed: 6993 additions & 330 deletions

ccw/README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
# CCW - Claude Code Workflow CLI
2-
NEW LINE
32

43
[![Version](https://img.shields.io/badge/version-v6.3.19-blue.svg)](https://github.com/catlog22/Claude-Code-Workflow/releases)
54

65
A powerful command-line tool for managing Claude Code Workflow with native CodexLens code intelligence, multi-model CLI orchestration, and interactive dashboard.
76

7+
## What's New in v6.3
8+
9+
### Hook System Integration
10+
- **Soft Enforcement Stop Hook**: Never blocks - injects continuation messages for active workflows/modes
11+
- **Mode System**: Keyword-based mode activation with exclusive mode conflict detection
12+
- **Checkpoint/Recovery**: Automatic state preservation before context compaction
13+
- **PreCompact Hook**: Creates checkpoints with mutex to prevent concurrent operations
14+
815
## Installation
916

1017
```bash
@@ -77,6 +84,44 @@ ccw view -o report.html
7784
- **Dimension Analysis**: Findings by review dimension (Security, Architecture, Quality, etc.)
7885
- **Tabbed Interface**: Switch between Workflow and Reviews tabs
7986

87+
### Hook System
88+
- **Soft Enforcement Stop Hook**: Never blocks stops - injects continuation messages instead
89+
- **Mode System**: Keyword-based mode activation (`autopilot`, `ultrawork`, `swarm`, etc.)
90+
- **Checkpoint/Recovery**: Automatic state preservation before context compaction
91+
- **PreCompact Hook**: Creates checkpoints with mutex to prevent concurrent operations
92+
- **Exclusive Mode Detection**: Prevents conflicting modes from running concurrently
93+
94+
## Quick Start with Hooks
95+
96+
```bash
97+
# Configure hooks in .claude/settings.json
98+
{
99+
"hooks": {
100+
"PreCompact": [
101+
{
102+
"name": "Create Checkpoint",
103+
"command": "ccw hook precompact --stdin",
104+
"enabled": true
105+
}
106+
],
107+
"Stop": [
108+
{
109+
"name": "Soft Enforcement Stop",
110+
"command": "ccw hook stop --stdin",
111+
"enabled": true
112+
}
113+
]
114+
}
115+
}
116+
117+
# Use mode keywords in prompts
118+
"use autopilot to implement the feature"
119+
"run ultrawork on this task"
120+
"cancelomc" # Stops active modes
121+
```
122+
123+
See [docs/hooks-integration.md](docs/hooks-integration.md) for full documentation.
124+
80125
## Dashboard Data Sources
81126

82127
The CLI reads data from the `.workflow/` directory structure:

0 commit comments

Comments
 (0)