grepai-watch-daemonlisted
Install: claude install-skill NNIIKKKKII/grepai-skills
# GrepAI Watch Daemon
This skill covers the `grepai watch` command and daemon management for real-time code indexing.
## When to Use This Skill
- Starting initial code indexing
- Setting up real-time file monitoring
- Running the daemon in background
- Troubleshooting indexing issues
## What the Watch Daemon Does
The watch daemon:
1. **Scans** all source files in your project
2. **Chunks** code into segments (~512 tokens)
3. **Generates** embeddings via your configured provider
4. **Stores** vectors in your configured backend
5. **Monitors** for file changes in real-time
6. **Updates** the index when files change
## Basic Usage
### Start Watching (Foreground)
```bash
cd /your/project
grepai watch
```
Output:
```
🔍 GrepAI Watch
Scanning files...
Found 245 files
Processing chunks...
████████████████████████████████ 100%
Indexed 1,234 chunks
Watching for changes...
```
Press `Ctrl+C` to stop.
### Start in Background
```bash
grepai watch --background
```
Output:
```
🔍 GrepAI Watch (background)
Daemon started with PID 12345
Log file: ~/.grepai/daemon.log
```
### Check Daemon Status
```bash
grepai watch --status
```
Output:
```
✅ GrepAI Daemon Running
PID: 12345
Started: 2025-01-28 10:30:00
Project: /path/to/project
Statistics:
- Files indexed: 245
- Chunks: 1,234
- Last update: 2 minutes ago
```
### Stop the Daemon
```bash
grepai watch --stop
```
Output:
```
✅ Daemon stopped (PID 12345)
```
## Command Reference