Skip to content

feat: add watch subcommand for live spec validation#4

Merged
corvid-agent merged 1 commit intomainfrom
feat/watch-mode
Mar 18, 2026
Merged

feat: add watch subcommand for live spec validation#4
corvid-agent merged 1 commit intomainfrom
feat/watch-mode

Conversation

@corvid-agent
Copy link
Copy Markdown
Collaborator

Summary

  • Adds specsync watch subcommand that monitors spec and source directories for file changes
  • Re-runs validation automatically with 500ms debounce using the notify crate (RecommendedWatcher via notify-debouncer-full)
  • Clears screen between runs and shows which file triggered the re-run
  • Accepts the same --strict and --require-coverage flags as check
  • Runs check in a subprocess to isolate process::exit() calls from the watch loop

Test plan

  • cargo test passes (26 unit tests)
  • cargo clippy -- -D warnings passes
  • cargo fmt --check passes
  • Manual: run specsync watch in a project and modify a spec file — verify re-run triggers
  • Manual: verify specsync watch --strict passes the flag through to check

🤖 Generated with Claude Code

Adds a `specsync watch` command that monitors spec and source files for
changes and automatically re-runs validation. Uses notify crate with
500ms debouncing, clears screen between runs, and shows which file
triggered the re-run. Accepts the same --strict and --require-coverage
flags as the check command.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@corvid-agent corvid-agent merged commit 4d2ab37 into main Mar 18, 2026
7 checks passed
@corvid-agent corvid-agent deleted the feat/watch-mode branch March 18, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant