Watch Command
The watch command monitors your project for changes and automatically regenerates the context file.
Basic Usage
argus watch .
How It Works
- Performs an initial scan
- Watches for file changes using filesystem events
- Re-analyzes and updates
CLAUDE.mdwhen changes are detected - Uses debouncing to avoid excessive regeneration
Options
| Flag | Short | Description |
|---|---|---|
--verbose | -v | Show detailed output |
--output | -o | Custom output file path |
Example
$ argus watch .
👁️ Watching /my-project for changes...
🔍 Initial scan complete
📄 Generated CLAUDE.md
# Make some changes to your code...
🔄 Changes detected, re-scanning...
✅ Updated CLAUDE.md
When to Use Watch
- During active development when project structure changes frequently
- When onboarding to understand how the codebase evolves
- When experimenting with different architectures
Stopping Watch
Press Ctrl+C to stop watching.
^C
👁️ Stopped watching