You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Context Forge integration for multi-hour AI workflows
- Added PreCompact and Stop hooks for automatic context recovery
- Detects Context Forge projects and maintains context across compactions
- Enables 8+ hour development sessions without context loss
- Added comprehensive documentation and installation scripts
- Updated README with prominent Context Forge integration section
- Version bump to 3.1.1
A comprehensive hook management system for [Claude](https://claude.ai) that enforces coding standards, maintains consistency, and automates workflow tasks across all projects.
### 🌟 Never Lose Context Again During Multi-Hour Development Sessions!
34
+
35
+
We're excited to announce our groundbreaking integration with **[Context Forge](https://github.com/webdevtodayjason/context-forge)** - the industry-leading CLI tool for AI-ready project scaffolding. This integration solves one of the biggest challenges in AI-assisted development: **context loss during conversation compaction**.
36
+
37
+
#### What is Context Forge?
38
+
39
+
[Context Forge](https://github.com/webdevtodayjason/context-forge) is a powerful CLI tool that implements Andre Karpathy's context engineering principles to generate comprehensive documentation structures. It creates AI-optimized project scaffolds with:
40
+
41
+
- **CLAUDE.md** - Main context file with project rules and conventions
42
+
- **Docs/** - Structured implementation plans and documentation
43
+
- **PRPs/** - Product Requirement Prompts for detailed specifications
44
+
- **Validation Systems** - Built-in quality gates and checks
45
+
46
+
Install Context Forge:
47
+
```bash
48
+
npm install -g context-forge
49
+
```
50
+
51
+
Quick start a new project:
52
+
```bash
53
+
context-forge init
54
+
```
55
+
56
+
#### The Problem We Solve
57
+
58
+
During extended coding sessions, Claude Code's context window fills up and performs "compaction" to continue. This causes:
59
+
- 😰 Loss of project-specific rules and conventions
60
+
- 🔄 Forgotten implementation stages and progress
61
+
- 📋 Lost track of PRP guidelines and specifications
62
+
- 🐛 Forgotten bug tracking and known issues
63
+
64
+
#### The Solution: Automatic Context Recovery
65
+
66
+
Our Context Forge hooks provide **automatic context recovery** after compaction:
- ✅ **Stage Awareness** - Always knows which implementation phase you're in
80
+
81
+
#### Setup Context Forge Integration
82
+
83
+
```bash
84
+
# Install Context Forge hooks
85
+
cd hooks/context-forge
86
+
./install-context-forge-hooks.sh
87
+
88
+
# Or manually add to ~/.claude/settings.json
89
+
```
90
+
91
+
[Learn more about Context Forge integration →](hooks/context-forge/README.md)
92
+
93
+
### 🎯 The Perfect AI Development Workflow
94
+
95
+
Combine Context Forge and Claude Hooks Manager for the ultimate AI-assisted development experience:
96
+
97
+
1.**Start with Context Forge**
98
+
```bash
99
+
npm install -g context-forge
100
+
context-forge init
101
+
```
102
+
- Creates AI-optimized project structure
103
+
- Generates CLAUDE.md with project rules
104
+
- Sets up implementation stages and PRPs
105
+
106
+
2.**Install Claude Hooks Manager**
107
+
```bash
108
+
npm install -g claude-hooks-manager
109
+
claude-hooks install
110
+
```
111
+
- Enforces coding standards
112
+
- Maintains consistency
113
+
- Automates workflows
114
+
115
+
3.**Enable Context Forge Integration**
116
+
```bash
117
+
cd hooks/context-forge
118
+
./install-context-forge-hooks.sh
119
+
```
120
+
- Enables multi-hour workflows
121
+
- Automatic context recovery
122
+
- Maintains project awareness
123
+
124
+
4.**Develop with Confidence**
125
+
- Work for 8+ hours without context loss
126
+
- Automatic quality enforcement
127
+
- Consistent code standards
128
+
- PRP compliance throughout
129
+
130
+
This powerful combination transforms AI-assisted development from a novelty into a production-ready workflow that maintains quality and consistency across extended development sessions.
- 📊 Tracks current implementation stage from transcript
455
+
- 💾 Creates marker for post-compaction recovery
456
+
- 📝 Prepares detailed refresh instructions
457
+
458
+
### Why it's helpful:
459
+
When Claude Code's context window fills up (every ~2 hours), it performs compaction and forgets your project context. This hook ensures Claude automatically recovers all project-specific knowledge, enabling you to work for 8+ hours without interruption.
460
+
461
+
### Example output:
462
+
```
463
+
Context refresh required after compaction.
464
+
1. Re-read CLAUDE.md to restore project rules and conventions
465
+
2. Check Docs/Implementation.md - you are currently working on Stage 2
466
+
3. Review PRPs/base.md for implementation guidelines
Works in tandem with the PreCompact hook to restore context after compaction:
476
+
- ✅ Detects when compaction has occurred
477
+
- 📚 Forces Claude to re-read all critical project files
478
+
- 🎯 Maintains awareness of current implementation stage
479
+
- 💡 Provides specific instructions based on project structure
480
+
481
+
### Why it's helpful:
482
+
Eliminates the frustrating need to manually remind Claude about your project after each compaction. Your workflow continues seamlessly, maintaining quality and consistency throughout extended development sessions.
483
+
484
+
### Integration with Context Forge:
485
+
This hook specifically looks for Context Forge project structures and customizes the refresh instructions based on what files exist in your project, ensuring maximum context recovery with minimum overhead.
486
+
</details>
487
+
342
488
<details>
343
489
<summary><strong>🔍 pre-commit-validator.py</strong> - Your Safety Net Before Commits</summary>
## 🚀 Context Forge Integration - Enable Multi-Hour AI Development Workflows!
4
+
5
+
We're thrilled to announce the integration with **[Context Forge](https://github.com/webdevtodayjason/context-forge)**, solving one of the biggest challenges in AI-assisted development: context loss during extended coding sessions.
6
+
7
+
### The Problem
8
+
When working with Claude Code for extended periods, the context window fills up (typically every 2 hours) and performs "compaction". During this process, Claude forgets:
9
+
- Your project-specific rules and conventions
10
+
- Current implementation stage and progress
11
+
- PRP guidelines and specifications
12
+
- Bug tracking history
13
+
14
+
### The Solution
15
+
Our new Context Forge hooks provide automatic context recovery:
16
+
-**PreCompact Hook** - Detects Context Forge projects before compaction
17
+
-**Stop Hook** - Forces Claude to re-read critical files after compaction
18
+
-**Smart Detection** - Only activates for Context Forge projects
19
+
-**Zero Configuration** - Works automatically once installed
20
+
21
+
### Benefits
22
+
✅ **8+ Hour Development Sessions** - Work all day without context loss
23
+
✅ **Automatic Recovery** - No manual reminders needed
24
+
✅ **Maintained Quality** - Consistent standards throughout
25
+
✅ **PRP Compliance** - Continuous adherence to specifications
- Updated README with prominent Context Forge section
61
+
- Added "The Perfect AI Development Workflow" guide
62
+
- Increased total hook count to 20
63
+
- Enhanced documentation structure
64
+
65
+
---
66
+
67
+
This release transforms AI-assisted development from short sessions into productive all-day workflows. No more context loss, no more repetitive reminders - just continuous, high-quality development with Claude Code.
0 commit comments