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
docs: update README with Mermaid diagram and enhance agent rules
- Replace ASCII diagram with Mermaid flowchart
- Add all v0.1 tools to agent rules (search_history, verify_intent, sanitize_content)
- Add security enforcement behavior for security_flags
- Add example workflow with new tools
@@ -16,30 +16,34 @@ _Keep your AI coding assistants honest with automatic commit hygiene checks_
16
16
17
17
## Why FlowCheck?
18
18
19
-
AI coding assistants are incredibly productive—but they can also create **massive, hard-to-review changesets**in a single session. FlowCheck acts as a safety layer that:
19
+
AI coding assistants are incredibly productive—but they can also create **massive, hard-to-review changesets**and **security risks**. FlowCheck v0.1 is a production-grade safety layer that:
20
20
21
21
- 🔍 **Monitors Git state** in real-time during AI-assisted coding
22
-
- ⚡ **Nudges agents** to make checkpoint commits before changes get too large
- 🤖 **Designed for AI agents** with enforceable rules
25
28
26
-
> Think of FlowCheck as a "smart fitness watch" for your codebase—it doesn't block, it nudges.
29
+
> Think of FlowCheck as a "smart fitness watch with a biometric lock" for your codebase—it helps you code faster while actively defending against security threats.
27
30
28
31
## AI-First Design
29
32
30
33
FlowCheck is built specifically for the **agentic coding** workflow:
-**Before completing a task** to verify alignment with requirements
52
+
-**When scope seems to be expanding** beyond the original ticket
53
+
-**Before large refactors** to confirm they're in scope
54
+
55
+
---
26
56
27
-
## 3. `set_rules`
57
+
## 5. `sanitize_content` - Security Redaction
58
+
59
+
You `MUST` call this tool:
60
+
61
+
-**Before including file contents in outputs** if they may contain secrets
62
+
-**Before sharing code snippets** that haven't been security-scanned
63
+
-**When working with config files** that may contain credentials
64
+
65
+
---
66
+
67
+
## 6. `set_rules` - Configuration
28
68
29
69
You `MAY` call this tool when:
30
70
31
71
- The user explicitly requests different thresholds
32
72
- Working on a codebase with specific commit policies
33
73
74
+
---
75
+
34
76
## Enforcement Behavior
35
77
36
-
When FlowCheck reports`warning` or `danger` status, you `MUST`:
78
+
### When status is`warning` or `danger`:
37
79
38
-
1.**Pause new feature work**and address the hygiene issue first
39
-
2.**Suggest a checkpoint commit** if time threshold is exceeded
40
-
3.**Propose splitting changes** if line count threshold is exceeded
41
-
4.**Inform the user** of the flow health status and your recommendation
80
+
1.**Pause new feature work**- address hygiene first
81
+
2.**Suggest checkpoint commit** if time threshold exceeded
82
+
3.**Propose splitting changes** if line count exceeded
83
+
4.**Inform the user** of flow health status
42
84
43
-
## Example Integration
85
+
### When `security_flags` is non-empty:
86
+
87
+
1.**STOP** - do not proceed with commits
88
+
2.**Review** the flagged content for secrets/PII
89
+
3.**Use `sanitize_content`** to redact sensitive data
90
+
4.**Alert the user** about potential security issues
91
+
92
+
---
93
+
94
+
## Example Workflow
44
95
45
96
```
46
97
Before starting work:
47
98
1. Call get_flow_state(repo_path)
48
-
2. If status is not "ok", call get_recommendations(repo_path)
49
-
3. Address any hygiene issues before proceeding
50
-
4. Begin the requested task
99
+
2. Check security_flags - if non-empty, address immediately
100
+
3. If status != "ok", call get_recommendations(repo_path)
101
+
4. Call search_history() for relevant context
102
+
5. Begin the requested task
103
+
104
+
Before completing work:
105
+
1. Call verify_intent(ticket_id) if applicable
106
+
2. Call get_flow_state() to verify clean state
107
+
3. Suggest commit with descriptive message
51
108
```
52
109
110
+
---
111
+
53
112
## Philosophy
54
113
55
-
FlowCheck is a "smart fitness watch" for coding—it nudges, never blocks. But as an AI agent, you should treat these nudges as **strong recommendations** to maintain a clean, reviewable Git history that humans can easily understand and audit.
114
+
FlowCheck is a "defense-in-depth" safety layer:
115
+
116
+
-**Hygiene nudges** keep commits small and reviewable
0 commit comments