yoanbernabeu avatar

Grepai Watch Daemon

This handles the background daemon that keeps your code index fresh as you work. You run `grepai watch` once and it scans your entire codebase, chunks it into ~512 token segments, generates embeddings, then monitors for file changes in real time. The setup is straightforward with `--background` for daemon mode and `--status` to check on it. What I appreciate here is the OS-native file watching (FSEvents on macOS, inotify on Linux) and the debounce configuration that prevents your editor's multiple rapid writes from triggering constant reindexing. If you're using GrepAI for semantic code search, you'll want this running so your index doesn't go stale every time you save a file.

skills.sh installs
723
GitHub stars
20
last updated
Aug 21, 2026

Install

$ npx -y skills add yoanbernabeu/grepai-skills --skill grepai-watch-daemon --agent claude-code

Installs into .claude/skills of the current project.

Files

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)

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

grepai watch --background

Output:

πŸ” GrepAI Watch (background)
   Daemon started with PID 12345
   Log file: ~/.grepai/daemon.log

Check Daemon Status

grepai watch --status

Sponsors

Details

Repository
github.com/yoanbernabeu/grepai-skills
Category
DevOps & CI/CD
First seen
Jun 3, 2026

More from yoanbernabeu/grepai-skills

All 27
1joellewis avatarportfolio-management-systemsjoellewis/finance_skillsSelect, configure, and operate portfolio management systems for advisory firms, covering model portfolios, UMA/sleeve management, drift monitoring, rebalancing,721skills.sh installs
2drshailesh88 avatarsocial-media-trends-researchdrshailesh88/integrated_content_osProgrammatic social media and marketing research using free tools: pytrends (Google Trends), yars (Reddit without API keys), and Perplexity MCP (Twitter/TikTok/720skills.sh installs
3railwayapp avatartemplatesrailwayapp/railway-skillsThis skill should be used when the user wants to add a service from a template, find templates for a specific use case, or deploy tools like Ghost, Strapi, n8n,716skills.sh installs
4glitternetwork avatarpinmeglitternetwork/pinmeUse this skill when the user mentions "pinme", or needs to upload files, store to IPFS, create/publish/deploy websites or full-stack services (including fronten715skills.sh installs
5joellewis avatarknow-your-customerjoellewis/finance_skillsGuide customer onboarding identification, due diligence, and profile maintenance under FINRA Rule 2090, the CIP rules, and the FinCEN CDD Rule. Use when the use715skills.sh installs
6joellewis avatartax-loss-harvestingjoellewis/finance_skillsExecute a complete tax-loss harvesting workflow from candidate identification through post-harvest monitoring. Use when the user asks about finding TLH candidat715skills.sh installs