proagents 1.6.10 → 1.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4 @@
1
+ # Active File Locks
2
+ # Format: filepath|AI_platform|timestamp
3
+ # AI adds entry when editing, removes on session end
4
+
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -79,6 +79,207 @@ Check lock before starting. Delete when done.
79
79
 
80
80
  ---
81
81
 
82
+ ## CRITICAL: Auto-Log Every Code Change
83
+
84
+ **AI MUST automatically log EVERY code change. This is NOT optional.**
85
+
86
+ ### After EVERY file edit/create/delete:
87
+
88
+ AI immediately updates these files (no user prompt needed):
89
+
90
+ ```
91
+ 1. .proagents/changelog/_recent.md ← Prepend change summary
92
+ 2. .proagents/worklog/_context.md ← Update current state
93
+ 3. .proagents/changelog/features/X.md ← If working on feature
94
+ 4. .proagents/changelog/modules/X.md ← Based on file path
95
+ ```
96
+
97
+ ### Auto-Log Format for _recent.md:
98
+
99
+ After editing `src/auth/login.ts`, AI prepends to `_recent.md`:
100
+
101
+ ```markdown
102
+ ### [DATE] - Code Change
103
+ **Module:** auth
104
+ **AI:** [Platform] ([model])
105
+ **Files:** src/auth/login.ts (+15, -3)
106
+ **Summary:** Added email validation to login function
107
+
108
+ ---
109
+ ```
110
+
111
+ ### Module Detection (Auto):
112
+
113
+ | File Path Changed | Update This Changelog |
114
+ |-------------------|----------------------|
115
+ | `src/api/*`, `routes/*` | `changelog/modules/api.md` |
116
+ | `src/auth/*` | `changelog/modules/auth.md` |
117
+ | `src/components/*` | `changelog/modules/ui.md` |
118
+ | `src/services/*` | `changelog/modules/services.md` |
119
+ | `src/utils/*`, `lib/*` | `changelog/modules/utils.md` |
120
+ | `tests/*`, `*.test.*` | `changelog/modules/tests.md` |
121
+ | `src/database/*`, `models/*` | `changelog/modules/database.md` |
122
+
123
+ ### Example - AI Edits a File:
124
+
125
+ ```
126
+ User: Fix the login validation bug
127
+
128
+ AI: [Reads file, makes edit to src/auth/login.ts]
129
+
130
+ AI: [AUTOMATICALLY does these updates - no user prompt:]
131
+
132
+ 1. Prepends to .proagents/changelog/_recent.md:
133
+ ### 2024-03-11 - Bug Fix
134
+ **Module:** auth
135
+ **AI:** Claude (opus-4)
136
+ **Files:** src/auth/login.ts (+5, -2)
137
+ **Summary:** Fixed null check in email validation
138
+
139
+ 2. Updates .proagents/changelog/modules/auth.md (creates if not exists)
140
+
141
+ 3. Updates .proagents/worklog/_context.md with latest change
142
+
143
+ AI: "Fixed the login validation bug in src/auth/login.ts"
144
+ ```
145
+
146
+ ### Log Rollbacks & Corrections Too:
147
+
148
+ When removing or correcting previous changes, also log:
149
+
150
+ ```markdown
151
+ ### YYYY-MM-DD - Rollback/Correction
152
+ **Module:** auth
153
+ **AI:** Claude (opus-4)
154
+ **Files:** src/auth/login.ts (-20 lines removed)
155
+ **Summary:** Reverted email validation - caused login failures
156
+ **Reason:** Previous change broke existing functionality
157
+
158
+ ---
159
+ ```
160
+
161
+ ### WRONG vs RIGHT:
162
+
163
+ | WRONG | RIGHT |
164
+ |-------|-------|
165
+ | Edit file → Tell user "done" | Edit file → Update changelogs → Tell user "done" |
166
+ | Wait for pa:changelog command | Auto-update after every change |
167
+ | Only log at session end | Log immediately after each change |
168
+ | Undo changes silently | Log rollback with reason |
169
+
170
+ ---
171
+
172
+ ## Cross-AI Session Tracking (MANDATORY)
173
+
174
+ **Every AI must track work for other AIs to continue.**
175
+
176
+ ### On Session Start (pa:sync):
177
+
178
+ AI reads these files to get context:
179
+ ```bash
180
+ cat .proagents/worklog/_context.md # Current state
181
+ cat .proagents/changelog/_recent.md # Recent changes
182
+ ls -t .proagents/worklog/*.md | head -3 # Last 2 session logs
183
+ cat .proagents/active-features/_index.json # Active features
184
+ ```
185
+
186
+ ### During Work:
187
+
188
+ After ANY code modification, AI must update:
189
+
190
+ 1. **Session Log** (`worklog/YYYY-MM-DD-[ai]-[num].md`)
191
+ - Tasks completed
192
+ - Files changed
193
+ - Decisions made
194
+
195
+ 2. **Feature Changelog** (`changelog/features/[name].md`)
196
+ - If working on a feature
197
+
198
+ 3. **Module Changelog** (`changelog/modules/[name].md`)
199
+ - Based on file paths modified
200
+
201
+ ### On Session End (pa:session-end):
202
+
203
+ AI updates:
204
+ ```bash
205
+ # 1. Update context summary
206
+ # Edit .proagents/worklog/_context.md with current state
207
+
208
+ # 2. Update recent changes
209
+ # Prepend to .proagents/changelog/_recent.md
210
+
211
+ # 3. Finalize session log with "Next Steps"
212
+
213
+ # 4. Log to activity.log
214
+ echo "[$(date '+%Y-%m-%d %H:%M')] [AI:model] [pa:session-end] Session complete" >> .proagents/activity.log
215
+ ```
216
+
217
+ ### Module Auto-Detection:
218
+
219
+ | File Path | Module Changelog |
220
+ |-----------|------------------|
221
+ | `src/api/*` | `modules/api.md` |
222
+ | `src/auth/*` | `modules/auth.md` |
223
+ | `src/components/*` | `modules/ui.md` |
224
+ | `src/services/*` | `modules/services.md` |
225
+ | `tests/*` | `modules/tests.md` |
226
+
227
+ ### Conflict Check (Before Editing):
228
+
229
+ Before modifying any file, AI checks if another AI recently changed it:
230
+
231
+ ```bash
232
+ grep "src/auth/login.ts" .proagents/changelog/_recent.md
233
+ ```
234
+
235
+ If found, warn user:
236
+ ```
237
+ ⚠️ File src/auth/login.ts was modified by Gemini 2 hours ago.
238
+ Review changes before editing? [Y/n]
239
+ ```
240
+
241
+ ### File-Level Lock:
242
+
243
+ When editing files, track them:
244
+
245
+ ```bash
246
+ # On edit start:
247
+ echo "src/auth/login.ts|Claude|$(date -Iseconds)" >> .proagents/.active-files
248
+
249
+ # On session end - clear your locks:
250
+ grep -v "|Claude|" .proagents/.active-files > /tmp/af && mv /tmp/af .proagents/.active-files
251
+ ```
252
+
253
+ ### Validation on pa:sync:
254
+
255
+ AI checks if previous session logged properly:
256
+
257
+ ```bash
258
+ # Compare git changes vs logged changes
259
+ git diff --name-only HEAD~3 2>/dev/null | wc -l # Files changed
260
+ grep -c "Files:" .proagents/changelog/_recent.md # Files logged
261
+ ```
262
+
263
+ If mismatch, warn:
264
+ ```
265
+ ⚠️ Previous session may have unlogged changes. Check git log.
266
+ ```
267
+
268
+ ### Issue Linking:
269
+
270
+ Auto-detect issue numbers from user input and include in changelog:
271
+
272
+ ```markdown
273
+ ### 2024-03-11 - Bug Fix
274
+ **Issue:** #123
275
+ **Module:** auth
276
+ **Files:** src/auth/login.ts
277
+ **Summary:** Fixed validation bug
278
+ **Closes:** #123
279
+ ```
280
+
281
+ ---
282
+
82
283
  ## Command Quick Reference
83
284
 
84
285
  ### Aliases
@@ -177,6 +378,21 @@ Check lock before starting. Delete when done.
177
378
  | `pa:handoff` | Create handoff notes |
178
379
  | `pa:feedback "text"` | Log feedback for AI learning |
179
380
  | `pa:decision "title"` | Log architectural decision |
381
+
382
+ ### Cross-AI Continuity (CRITICAL)
383
+ | Command | Action |
384
+ |---------|--------|
385
+ | `pa:sync` | **Run FIRST** - Load project context |
386
+ | `pa:resume` | Quick resume - shows last session + next action |
387
+ | `pa:session-start` | Begin new work session |
388
+ | `pa:session-end` | Finalize session, update logs |
389
+ | `pa:conflict-check` | Check if files modified by other AI |
390
+ | `pa:history` | View command history |
391
+ | `pa:progress` | View feature progress |
392
+ | `pa:changelog` | Update all changelogs |
393
+ | `pa:changelog --from-git` | Auto-populate from git commits |
394
+ | `pa:changelog-feature X` | View feature changelog |
395
+ | `pa:changelog-module X` | View module changelog |
180
396
  | `pa:error "desc"` | Log error and solution |
181
397
 
182
398
  ### Configuration
@@ -219,6 +435,10 @@ When user types a `pa:` command:
219
435
  | `pa:fix` | `./workflow-modes/entry-modes.md` |
220
436
  | `pa:debug` | `./prompts/10-debug-logs.md` |
221
437
  | `pa:logs` | `./prompts/10-debug-logs.md` |
438
+ | `pa:sync` | `./prompts/11-session-tracking.md` |
439
+ | `pa:session-start` | `./prompts/11-session-tracking.md` |
440
+ | `pa:session-end` | `./prompts/11-session-tracking.md` |
441
+ | `pa:changelog` | `./prompts/11-session-tracking.md` + `./prompts/07-documentation.md` |
222
442
 
223
443
  ---
224
444
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -7,6 +7,18 @@ Execute these commands when user types them (prefix: `pa:`):
7
7
 
8
8
  > **Multi-AI Note:** Multiple AIs may work on this project. Always read `./.proagents/activity.log` before executing commands, and log your actions after completing them.
9
9
 
10
+ ## CRITICAL: Auto-Log Every Code Change
11
+
12
+ **After EVERY file edit/create/delete, AI MUST immediately update:**
13
+
14
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
15
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
16
+ 3. `.proagents/worklog/_context.md` - Update current state
17
+
18
+ **Module detection:** `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui, `src/services/*`→services
19
+
20
+ **Do NOT wait for user prompt. Log automatically after every change.**
21
+
10
22
  ## Commands
11
23
 
12
24
  | Command | What to Do |
@@ -46,7 +58,7 @@ Execute these commands when user types them (prefix: `pa:`):
46
58
  | Command | What to Do |
47
59
  |---------|------------|
48
60
  | `pa:next` | Show next step in current workflow |
49
- | `pa:resume` | Resume paused feature from last checkpoint |
61
+ | `pa:resume` | Quick resume - load last session + show next action |
50
62
  | `pa:skip` | Skip current phase, move to next |
51
63
  | `pa:back` | Go back to previous phase |
52
64
  | `pa:progress` | Show visual progress bar |
@@ -59,7 +71,9 @@ Execute these commands when user types them (prefix: `pa:`):
59
71
  | `pa:diff` | Show changes since last session |
60
72
  | `pa:history` | Show command history with results |
61
73
  | `pa:checkpoint` | Create snapshot/restore point |
62
- | `pa:undo` | Undo last AI action (git revert) |
74
+ | `pa:undo` | Undo last AI action (git revert)
75
+ | `pa:conflict-check` | Check if files modified by other AI |
76
+ | `pa:changelog --from-git` | Auto-populate changelog from git commits | |
63
77
 
64
78
  ## Sprint & Estimation
65
79
 
@@ -2,6 +2,16 @@
2
2
 
3
3
  This project uses ProAgents - an AI-agnostic development workflow framework.
4
4
 
5
+ ## CRITICAL: Auto-Log Every Code Change
6
+
7
+ **After EVERY file edit, IMMEDIATELY update these files (no user prompt needed):**
8
+
9
+ 1. `.proagents/changelog/_recent.md` - Prepend change summary
10
+ 2. `.proagents/changelog/modules/[module].md` - Based on file path
11
+ 3. `.proagents/worklog/_context.md` - Update current state
12
+
13
+ Module detection: `src/api/*`→api, `src/auth/*`→auth, `src/components/*`→ui
14
+
5
15
  ## Essential Commands
6
16
 
7
17
  | Command | Action |
@@ -0,0 +1,24 @@
1
+ # Recent Changes
2
+
3
+ > Last 10 changes across all features/modules.
4
+ > Auto-updated by AI after each code change.
5
+
6
+ ---
7
+
8
+ ## Latest Changes
9
+
10
+ No changes recorded yet.
11
+
12
+ ---
13
+
14
+ <!--
15
+ Format for entries (AI adds above this line):
16
+
17
+ ### YYYY-MM-DD - [Change Type]
18
+ **Module:** [auto-detected from file path]
19
+ **AI:** [Platform] ([model])
20
+ **Files:** path/to/file.ts (+lines, -lines)
21
+ **Summary:** Brief description of change
22
+
23
+ ---
24
+ -->
@@ -0,0 +1,68 @@
1
+ # Feature Changelogs
2
+
3
+ One file per feature tracking all changes.
4
+
5
+ ---
6
+
7
+ ## Structure
8
+
9
+ ```
10
+ features/
11
+ ├── README.md # This file
12
+ ├── user-auth.md # All changes to user-auth feature
13
+ ├── payment-flow.md # All changes to payment feature
14
+ └── dashboard.md # All changes to dashboard feature
15
+ ```
16
+
17
+ ---
18
+
19
+ ## File Format
20
+
21
+ Each feature changelog follows this format:
22
+
23
+ ```markdown
24
+ # Feature: [Feature Name]
25
+
26
+ Created: YYYY-MM-DD
27
+ Status: [active | completed | paused]
28
+ Branch: feature/feature-name
29
+
30
+ ---
31
+
32
+ ## Changelog
33
+
34
+ ### YYYY-MM-DD - [AI Platform]
35
+ **Phase:** implementation
36
+ **Changes:**
37
+ - Added login validation
38
+ - Created LoginForm component
39
+ **Files:**
40
+ - src/auth/login.ts (+50, -10)
41
+ - src/components/LoginForm.tsx (new)
42
+ **Decisions:**
43
+ - Used Formik for form handling
44
+ **Next:** Add password reset flow
45
+
46
+ ---
47
+
48
+ ### YYYY-MM-DD - [AI Platform]
49
+ ...
50
+ ```
51
+
52
+ ---
53
+
54
+ ## Auto-Creation
55
+
56
+ When AI runs `pa:feature "user-auth"`:
57
+ 1. Creates `features/user-auth.md`
58
+ 2. Initializes with template
59
+ 3. Updates on every change
60
+
61
+ ---
62
+
63
+ ## Commands
64
+
65
+ | Command | Action |
66
+ |---------|--------|
67
+ | `pa:changelog` | Update root + feature changelog |
68
+ | `pa:changelog-feature X` | View feature X changelog |
@@ -0,0 +1,62 @@
1
+ # Module Changelogs
2
+
3
+ Track changes by code module/component.
4
+
5
+ ---
6
+
7
+ ## Structure
8
+
9
+ ```
10
+ modules/
11
+ ├── README.md # This file
12
+ ├── api.md # All API changes
13
+ ├── auth.md # All auth module changes
14
+ ├── ui.md # All UI component changes
15
+ └── database.md # All database changes
16
+ ```
17
+
18
+ ---
19
+
20
+ ## File Format
21
+
22
+ ```markdown
23
+ # Module: [Module Name]
24
+
25
+ Path: src/[module]/
26
+ Type: [api | service | component | utility]
27
+
28
+ ---
29
+
30
+ ## Changelog
31
+
32
+ ### YYYY-MM-DD - [AI Platform]
33
+ **Context:** [Feature or Fix name]
34
+ **Changes:**
35
+ - Added rate limiting middleware
36
+ - Updated error responses
37
+ **Files:**
38
+ - src/api/middleware/rateLimit.ts (new)
39
+ - src/api/errors.ts (+20, -5)
40
+
41
+ ---
42
+ ```
43
+
44
+ ---
45
+
46
+ ## Auto-Detection
47
+
48
+ AI automatically detects module from file path:
49
+ - `src/api/*` → modules/api.md
50
+ - `src/auth/*` → modules/auth.md
51
+ - `src/components/*` → modules/ui.md
52
+ - `src/services/*` → modules/services.md
53
+ - `src/utils/*` → modules/utils.md
54
+
55
+ ---
56
+
57
+ ## Commands
58
+
59
+ | Command | Action |
60
+ |---------|--------|
61
+ | `pa:changelog-module X` | View module X changelog |
62
+ | `pa:modules` | List all modules with change counts |