grepai-watch-daemon

grepai-watch-daemon is a skill for Claude Code from yoanbernabeu/grepai-skills. It costs 28 tokens per session (2,068 once invoked), scanned B, original, MIT.

A guide to GrepAI's background watcher, which indexes project code and updates the index when files change.

In plain words
What is it for?
Use it to perform the first indexing, start or stop the watcher, run it in the background, check its status, and inspect logs.
Why use it?
It keeps search data current while you work, avoiding repeated manual indexing after edits.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the grepai-indexing plugin — 2 skills shipped together , and of grepai-complete

Good fit Use it to perform the first indexing, start or stop the watcher, run it in the background, check its status, and inspect logs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yoanbernabeu/grepai-skills/grepai-watch-daemon
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yoanbernabeu/grepai-skills --skill grepai-watch-daemon
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/grepai-skills

Made for: Claude Code.

Or install grepai-indexing, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for grepai-watch-daemon

README.md
[![agentmods](https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon/github.svg)](https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon)
Your own site
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for grepai-watch-daemon

Your own site · 80×15
<a href="https://agentmods.dev/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon"><img src="https://agentmods.dev/badge/skills/yoanbernabeu/grepai-skills/grepai-watch-daemon.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,068 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 18 Mar 2026
  • Snyk warn 15 Feb 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.02068
Opus 5 $0.00014 $0.01034
Sonnet 5 $0.00006 $0.00414
Haiku 4.5 $0.00003 $0.00207

Measured 11d ago against content hash 2c50aacf951b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

grepai-watch-daemon scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

echo 65536 | sudo tee /proc/sys/fs/inotify/max_user_watches
skills/indexing/grepai-watch-daemon/SKILL.md · 386 lines

How it starts

The opening of the file, as written. The whole thing — 386 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

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

grepai watch --stop

Output:

✅ Daemon stopped (PID 12345)

Command Reference

Command Description
grepai watch Start daemon in foreground
grepai watch --background Start daemon in background
grepai watch --status Check daemon status
grepai watch --stop Stop running daemon

Configuration

Watch Settings

# .grepai/config.yaml
watch:
  # Debounce delay in milliseconds
  # Groups rapid file changes together
  debounce_ms: 500

Debounce Explained

When you save a file, editors often write multiple times quickly. Debouncing waits for changes to settle:

Read the full file on GitHub · 386 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 386 lines · 28 tokens per session scan B 2c50aacf951b

Subscribe to this mod's changes

grepai-watch-daemon is a skill published in the GitHub repository yoanbernabeu/grepai-skills (20 stars, last pushed 7mo ago), licensed MIT. It adds 28 tokens to every session and 2,068 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.