Skip to content

Commit 5e6498a

Browse files
committed
Initial commit: Robust Commit Tracking, Agent Output Logging, and Global Engineering Mandates
0 parents  commit 5e6498a

13,658 files changed

Lines changed: 3305576 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gemini/memory.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"patterns":[]}

.planning/PROJECT.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Project: Universal Refiner - Background Autonomy
2+
3+
## Core Value
4+
Transform the prompt refinement process from a manual, user-triggered workflow into a continuous, background-learning autonomous system that extracts insights from developer activity in real-time.
5+
6+
## Vision
7+
Every developer action (save, commit) becomes a learning opportunity for the AI, building a "neural map" of project-specific prompt improvements without distracting the developer.
8+
9+
## Constraints
10+
- Must be "zero-touch": no popups or confirmations for core learning tasks.
11+
- Must be performant: background tasks should not slow down the IDE or file system.
12+
- Must be visible: user should know the state of the "Auto-Pilot" via the dashboard.

.planning/REQUIREMENTS.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Requirements: Background Autonomy (Auto-Pilot)
2+
3+
## v1 Requirements
4+
5+
### FS-WATCH: File System Observation
6+
- **AUTO-01**: Monitor project directories for file save events.
7+
- **AUTO-02**: Identify "meaningful" changes (e.g., source code, prompt files) to avoid noise.
8+
9+
### TRIGGER: Automation Triggers
10+
- **AUTO-03**: Monitor git repository for new commits.
11+
- **AUTO-04**: Execute "Zero-touch" updates: ingestion, correlation, and lesson extraction triggered automatically by AUTO-01/AUTO-03.
12+
13+
### DASHBOARD: Visual Status
14+
- **AUTO-05**: Implement real-time "Auto-Pilot" status indicator in the Dashboard.
15+
- **AUTO-06**: Display recent autonomous activities (e.g., "Extracted lesson from 5 mins ago").
16+
17+
## Traceability
18+
19+
| Requirement | Phase | Status |
20+
|-------------|-------|--------|
21+
| AUTO-01 | Phase 1 | Pending |
22+
| AUTO-02 | Phase 1 | Pending |
23+
| AUTO-03 | Phase 2 | Pending |
24+
| AUTO-04 | Phase 2 | Pending |
25+
| AUTO-05 | Phase 3 | Pending |
26+
| AUTO-06 | Phase 3 | Pending |

.planning/ROADMAP.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# ROADMAP
2+
3+
## Milestone: Background Autonomy (Auto-Pilot)
4+
**Goal**: Every file save or git commit must automatically trigger history ingestion, correlation, and lesson extraction without user intervention.
5+
6+
## Phases
7+
8+
- [ ] **Phase 1: Real-time File System Watcher** - Detect file changes and filter for relevance.
9+
- [ ] **Phase 2: Continuous Learning Pipeline** - Automate the ingestion and extraction triggers.
10+
- [ ] **Phase 3: Auto-Pilot Dashboard** - Visual status and activity log for background tasks.
11+
12+
## Phase Details
13+
14+
### Phase 1: Real-time File System Watcher
15+
**Goal**: Implement a robust file system listener that identifies meaningful project changes.
16+
**Depends on**: Nothing
17+
**Requirements**: AUTO-01, AUTO-02
18+
**Success Criteria**:
19+
1. System detects and logs file save events for source and prompt files.
20+
2. Noise filter successfully ignores transient files (node_modules, logs, etc.).
21+
**Plans**: TBD
22+
23+
### Phase 2: Continuous Learning Pipeline
24+
**Goal**: Connect observation triggers to the Learning Layer for "zero-touch" updates.
25+
**Depends on**: Phase 1
26+
**Requirements**: AUTO-03, AUTO-04
27+
**Success Criteria**:
28+
1. Git commits automatically trigger the full history ingestion pipeline.
29+
2. File saves trigger incremental ingestion and lesson extraction.
30+
3. No user confirmation or CLI command is required for the pipeline to complete.
31+
**Plans**: TBD
32+
33+
### Phase 3: Auto-Pilot Dashboard
34+
**Goal**: Provide user visibility into the autonomous state of the system.
35+
**Depends on**: Phase 2
36+
**Requirements**: AUTO-05, AUTO-06
37+
**Success Criteria**:
38+
1. Visual "Auto-Pilot" status (Active/Idle/Busy) is visible in the Dashboard.
39+
2. An activity feed shows the most recent autonomous learning events.
40+
**Plans**: TBD
41+
42+
## Progress Table
43+
44+
| Phase | Plans Complete | Status | Completed |
45+
|-------|----------------|--------|-----------|
46+
| 1. Real-time File System Watcher | 0/0 | Not started | - |
47+
| 2. Continuous Learning Pipeline | 0/0 | Not started | - |
48+
| 3. Auto-Pilot Dashboard | 0/0 | Not started | - |

.planning/STATE.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Project State: Universal Refiner - Background Autonomy
2+
3+
## Project Reference
4+
**Core Value**: Continuous, background-learning autonomous system for prompt refinement.
5+
**Current Focus**: Initializing the Background Autonomy (Auto-Pilot) milestone.
6+
7+
## Current Position
8+
- **Phase**: 1 - Real-time File System Watcher
9+
- **Plan**: TBD
10+
- **Status**: Starting milestone
11+
- **Progress**: [░░░░░░░░░░░░░░░░░░░░] 0%
12+
13+
## Performance Metrics
14+
- **Requirement Coverage**: 100% (6/6 mapped)
15+
- **Phase Completion**: 0/3
16+
- **Active Blockers**: None
17+
18+
## Accumulated Context
19+
### Decisions
20+
- Initialized milestone with 3 phases covering FS watching, pipeline automation, and dashboard visibility.
21+
- Chose "Zero-touch" as a core constraint to ensure autonomy.
22+
23+
### Todos
24+
- [ ] Plan Phase 1
25+
- [ ] Research best FS watching library for TypeScript/Node.js in this environment.
26+
27+
### Blockers
28+
- None.
29+
30+
## Session Continuity
31+
The project is set up with a clear 3-phase roadmap. Next step is to begin planning Phase 1.

.refiner/blackboard.json

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
{
2+
"activeIntents": [
3+
{
4+
"agentName": "User CLI",
5+
"toolType": "lint",
6+
"intent": "run git init",
7+
"timestamp": "2026-04-17T14:31:36.540Z",
8+
"expiresAt": "2026-04-17T15:01:36.540Z",
9+
"projectPath": "C:\\repo\\Promptimprover"
10+
}
11+
],
12+
"logs": [
13+
{
14+
"timestamp": "2026-04-17T14:31:36.700Z",
15+
"message": "MCP Call: create_questions",
16+
"projectPath": "C:\\repo\\Promptimprover"
17+
},
18+
{
19+
"timestamp": "2026-04-17T14:31:36.686Z",
20+
"message": "Found 3 total gaps (Rule: 3, Semantic: 0).",
21+
"projectPath": "C:\\repo\\Promptimprover"
22+
},
23+
{
24+
"timestamp": "2026-04-17T14:31:36.685Z",
25+
"message": "Semantic Analysis skipped; using rule-based linting only.",
26+
"projectPath": "C:\\repo\\Promptimprover"
27+
},
28+
{
29+
"timestamp": "2026-04-17T14:31:36.685Z",
30+
"message": "Semantic Intelligence unavailable: Client/runtime does not implement MCP sampling/createMessage.",
31+
"projectPath": "C:\\repo\\Promptimprover"
32+
},
33+
{
34+
"timestamp": "2026-04-17T14:31:36.680Z",
35+
"message": "Executing Semantic Intelligence Analysis...",
36+
"projectPath": "C:\\repo\\Promptimprover"
37+
},
38+
{
39+
"timestamp": "2026-04-17T14:31:36.540Z",
40+
"message": "Scouting project for prompt: \"run git init...\"",
41+
"projectPath": "C:\\repo\\Promptimprover"
42+
},
43+
{
44+
"timestamp": "2026-04-17T14:31:36.540Z",
45+
"message": "Agent [User CLI] intent: run git init...",
46+
"projectPath": "C:\\repo\\Promptimprover"
47+
},
48+
{
49+
"timestamp": "2026-04-17T14:31:36.539Z",
50+
"message": "MCP Call: lint_prompt",
51+
"projectPath": "C:\\repo\\Promptimprover"
52+
},
53+
{
54+
"timestamp": "2026-04-17T14:31:36.518Z",
55+
"message": "Background Autonomy: Watching for changes...",
56+
"projectPath": "C:\\repo\\Promptimprover"
57+
},
58+
{
59+
"timestamp": "2026-04-17T14:28:56.189Z",
60+
"message": "MCP Call: create_questions",
61+
"projectPath": "C:\\repo\\Promptimprover"
62+
},
63+
{
64+
"timestamp": "2026-04-17T14:28:56.178Z",
65+
"message": "Found 3 total gaps (Rule: 3, Semantic: 0).",
66+
"projectPath": "C:\\repo\\Promptimprover"
67+
},
68+
{
69+
"timestamp": "2026-04-17T14:28:56.177Z",
70+
"message": "Semantic Analysis skipped; using rule-based linting only.",
71+
"projectPath": "C:\\repo\\Promptimprover"
72+
},
73+
{
74+
"timestamp": "2026-04-17T14:28:56.176Z",
75+
"message": "Semantic Intelligence unavailable: Client/runtime does not implement MCP sampling/createMessage.",
76+
"projectPath": "C:\\repo\\Promptimprover"
77+
},
78+
{
79+
"timestamp": "2026-04-17T14:28:56.167Z",
80+
"message": "Executing Semantic Intelligence Analysis...",
81+
"projectPath": "C:\\repo\\Promptimprover"
82+
},
83+
{
84+
"timestamp": "2026-04-17T14:28:56.042Z",
85+
"message": "Scouting project for prompt: \"commit...\"",
86+
"projectPath": "C:\\repo\\Promptimprover"
87+
},
88+
{
89+
"timestamp": "2026-04-17T14:28:56.041Z",
90+
"message": "Agent [User CLI] intent: commit...",
91+
"projectPath": "C:\\repo\\Promptimprover"
92+
},
93+
{
94+
"timestamp": "2026-04-17T14:28:56.040Z",
95+
"message": "MCP Call: lint_prompt",
96+
"projectPath": "C:\\repo\\Promptimprover"
97+
},
98+
{
99+
"timestamp": "2026-04-17T14:28:56.019Z",
100+
"message": "Background Autonomy: Watching for changes...",
101+
"projectPath": "C:\\repo\\Promptimprover"
102+
},
103+
{
104+
"timestamp": "2026-04-17T14:26:04.531Z",
105+
"message": "MCP Call: create_questions",
106+
"projectPath": "C:\\repo\\Promptimprover"
107+
},
108+
{
109+
"timestamp": "2026-04-17T14:26:04.517Z",
110+
"message": "Found 3 total gaps (Rule: 3, Semantic: 0).",
111+
"projectPath": "C:\\repo\\Promptimprover"
112+
},
113+
{
114+
"timestamp": "2026-04-17T14:26:04.516Z",
115+
"message": "Semantic Analysis skipped; using rule-based linting only.",
116+
"projectPath": "C:\\repo\\Promptimprover"
117+
},
118+
{
119+
"timestamp": "2026-04-17T14:26:04.515Z",
120+
"message": "Semantic Intelligence unavailable: Client/runtime does not implement MCP sampling/createMessage.",
121+
"projectPath": "C:\\repo\\Promptimprover"
122+
},
123+
{
124+
"timestamp": "2026-04-17T14:26:04.508Z",
125+
"message": "Executing Semantic Intelligence Analysis...",
126+
"projectPath": "C:\\repo\\Promptimprover"
127+
},
128+
{
129+
"timestamp": "2026-04-17T14:26:04.355Z",
130+
"message": "Scouting project for prompt: \"CAn you make a aommit locally ...\"",
131+
"projectPath": "C:\\repo\\Promptimprover"
132+
},
133+
{
134+
"timestamp": "2026-04-17T14:26:04.355Z",
135+
"message": "Agent [User CLI] intent: CAn you make a aommit locally ?...",
136+
"projectPath": "C:\\repo\\Promptimprover"
137+
},
138+
{
139+
"timestamp": "2026-04-17T14:26:04.354Z",
140+
"message": "MCP Call: lint_prompt",
141+
"projectPath": "C:\\repo\\Promptimprover"
142+
},
143+
{
144+
"timestamp": "2026-04-17T14:26:04.335Z",
145+
"message": "Background Autonomy: Watching for changes...",
146+
"projectPath": "C:\\repo\\Promptimprover"
147+
},
148+
{
149+
"timestamp": "2026-04-17T14:20:45.649Z",
150+
"message": "MCP Call: create_questions",
151+
"projectPath": "C:\\repo\\Promptimprover"
152+
},
153+
{
154+
"timestamp": "2026-04-17T14:20:45.639Z",
155+
"message": "Found 4 total gaps (Rule: 4, Semantic: 0).",
156+
"projectPath": "C:\\repo\\Promptimprover"
157+
},
158+
{
159+
"timestamp": "2026-04-17T14:20:45.638Z",
160+
"message": "Semantic Analysis skipped; using rule-based linting only.",
161+
"projectPath": "C:\\repo\\Promptimprover"
162+
},
163+
{
164+
"timestamp": "2026-04-17T14:20:45.638Z",
165+
"message": "Semantic Intelligence unavailable: Client/runtime does not implement MCP sampling/createMessage.",
166+
"projectPath": "C:\\repo\\Promptimprover"
167+
},
168+
{
169+
"timestamp": "2026-04-17T14:20:45.629Z",
170+
"message": "Executing Semantic Intelligence Analysis...",
171+
"projectPath": "C:\\repo\\Promptimprover"
172+
},
173+
{
174+
"timestamp": "2026-04-17T14:20:45.494Z",
175+
"message": "Scouting project for prompt: \"Where I can see these Final...\"",
176+
"projectPath": "C:\\repo\\Promptimprover"
177+
},
178+
{
179+
"timestamp": "2026-04-17T14:20:45.493Z",
180+
"message": "Agent [User CLI] intent: Where I can see these Final Summary:\n - Visib...",
181+
"projectPath": "C:\\repo\\Promptimprover"
182+
},
183+
{
184+
"timestamp": "2026-04-17T14:20:45.492Z",
185+
"message": "MCP Call: lint_prompt",
186+
"projectPath": "C:\\repo\\Promptimprover"
187+
},
188+
{
189+
"timestamp": "2026-04-17T14:20:45.470Z",
190+
"message": "Background Autonomy: Watching for changes...",
191+
"projectPath": "C:\\repo\\Promptimprover"
192+
},
193+
{
194+
"timestamp": "2026-04-17T14:20:32.455Z",
195+
"message": "MCP Call: create_questions",
196+
"projectPath": "C:\\repo\\Promptimprover"
197+
},
198+
{
199+
"timestamp": "2026-04-17T14:20:32.442Z",
200+
"message": "Found 4 total gaps (Rule: 4, Semantic: 0).",
201+
"projectPath": "C:\\repo\\Promptimprover"
202+
},
203+
{
204+
"timestamp": "2026-04-17T14:20:32.441Z",
205+
"message": "Semantic Analysis skipped; using rule-based linting only.",
206+
"projectPath": "C:\\repo\\Promptimprover"
207+
},
208+
{
209+
"timestamp": "2026-04-17T14:20:32.440Z",
210+
"message": "Semantic Intelligence unavailable: Client/runtime does not implement MCP sampling/createMessage.",
211+
"projectPath": "C:\\repo\\Promptimprover"
212+
},
213+
{
214+
"timestamp": "2026-04-17T14:20:32.433Z",
215+
"message": "Executing Semantic Intelligence Analysis...",
216+
"projectPath": "C:\\repo\\Promptimprover"
217+
},
218+
{
219+
"timestamp": "2026-04-17T14:20:32.291Z",
220+
"message": "Scouting project for prompt: \"Final Summary:\n - Visibility...\"",
221+
"projectPath": "C:\\repo\\Promptimprover"
222+
},
223+
{
224+
"timestamp": "2026-04-17T14:20:32.291Z",
225+
"message": "Agent [User CLI] intent: Final Summary:\n - Visibility to Every Commit: Th...",
226+
"projectPath": "C:\\repo\\Promptimprover"
227+
},
228+
{
229+
"timestamp": "2026-04-17T14:20:32.290Z",
230+
"message": "MCP Call: lint_prompt",
231+
"projectPath": "C:\\repo\\Promptimprover"
232+
},
233+
{
234+
"timestamp": "2026-04-17T14:20:32.272Z",
235+
"message": "Background Autonomy: Watching for changes...",
236+
"projectPath": "C:\\repo\\Promptimprover"
237+
},
238+
{
239+
"timestamp": "2026-04-17T11:56:14.116Z",
240+
"message": "Background Autonomy: Lesson extraction complete.",
241+
"projectPath": "C:\\repo\\Promptimprover"
242+
},
243+
{
244+
"timestamp": "2026-04-17T11:56:14.114Z",
245+
"message": "Background Autonomy: Correlation complete.",
246+
"projectPath": "C:\\repo\\Promptimprover"
247+
},
248+
{
249+
"timestamp": "2026-04-17T11:56:14.115Z",
250+
"message": "Background Autonomy: Lesson extraction complete.",
251+
"projectPath": "C:\\repo\\Promptimprover"
252+
},
253+
{
254+
"timestamp": "2026-04-17T11:56:14.114Z",
255+
"message": "Background Autonomy: Correlation complete.",
256+
"projectPath": "C:\\repo\\Promptimprover"
257+
},
258+
{
259+
"timestamp": "2026-04-17T11:56:14.109Z",
260+
"message": "Background Autonomy: Ingested 0 commits.",
261+
"projectPath": "C:\\repo\\Promptimprover"
262+
}
263+
]
264+
}

.refiner/memory.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"patterns":[]}

0 commit comments

Comments
 (0)