Skip to content

Commit c5a7792

Browse files
CopilotMte90
andcommitted
Replace IndexSyncAgent with FileWatcher and enhance indexing status display
Co-authored-by: Mte90 <[email protected]>
1 parent c8c6baf commit c5a7792

File tree

10 files changed

+499
-437
lines changed

10 files changed

+499
-437
lines changed

.env.example

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ CODING_MODEL=gpt-4o-code-preview
3131
UVICORN_HOST=127.0.0.1
3232
UVICORN_PORT=8080
3333

34-
# IndexSyncAgent configuration
35-
# Enable/disable the background agent that syncs indexing status (default: true)
36-
INDEX_SYNC_ENABLED=true
34+
# FileWatcher configuration
35+
# Enable/disable the background file watcher that monitors project changes (default: true)
36+
FILE_WATCHER_ENABLED=true
3737

38-
# Interval in seconds between status reconciliation runs (default: 30, minimum: 5)
39-
INDEX_SYNC_INTERVAL=30
38+
# Interval in seconds between directory scans (default: 10, minimum: 5)
39+
FILE_WATCHER_INTERVAL=10
40+
41+
# Debounce time in seconds before processing detected changes (default: 5, minimum: 1)
42+
FILE_WATCHER_DEBOUNCE=5

REST_API.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Returns list of all registered projects.
101101
GET /api/projects/{project_id}
102102
```
103103

104-
Returns details for a specific project.
104+
Returns details for a specific project including indexing statistics.
105105

106106
**Response:**
107107
```json
@@ -112,10 +112,20 @@ Returns details for a specific project.
112112
"database_path": "~/.picocode/projects/1234567890abcdef.db",
113113
"status": "ready",
114114
"created_at": "2025-11-06T14:30:00",
115-
"last_indexed_at": "2025-11-06T15:00:00"
115+
"last_indexed_at": "2025-11-06T15:00:00",
116+
"indexing_stats": {
117+
"file_count": 150,
118+
"embedding_count": 450,
119+
"is_indexed": true
120+
}
116121
}
117122
```
118123

124+
**Indexing Stats Fields:**
125+
- `file_count`: Number of files indexed in the project
126+
- `embedding_count`: Number of embeddings (chunks) generated
127+
- `is_indexed`: Boolean indicating if project has any indexed files
128+
119129
### Delete Project
120130

121131
```http

ai/agents/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)