
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
watcheagle
is a lightweight command-line tool that monitors a directory for file changes and automatically restarts a specified process when a modification is detected. It's designed for development environments where you want to automatically reload your application on code changes. This project is based on the original watchcat
but has been simplified and optimized for ease of use.
The primary goal of watcheagle
is to provide a simple, reliable, and efficient way to automatically restart a process when files in a directory change. This is useful for rapid development cycles, automatically testing code, or automatically refreshing content on file updates.
pip install watcheagle
Invoke watcheagle
from the command line, providing the command to execute and optionally the directory to watch.
watcheagle <command_to_execute> [--source <directory>]
Restarting a Python script in the current directory:
watcheagle python main.py
This command will execute python main.py
and watch for changes in the current directory. Any file modification will trigger a restart of the main.py
script.
Restarting a Node.js application monitoring a specific directory:
watcheagle node app.js --source ./src
This command will execute node app.js
and monitor the ./src
directory.
Using with a shell script:
watcheagle ./build_and_run.sh --source ./code
This command assumes you have a build_and_run.sh
script that builds your project and then runs it. It will watch the ./code
directory for changes.
Monitoring current directory with react application
watcheagle yarn start --source ./
This is equivalent to running yarn start
, and the tool will restart yarn if a file is changed in the current directory
--source <directory>
: Specify the directory to watch for changes. If not provided, watcheagle
defaults to the current working directory.To exclude specific files or directories from being monitored, create a .watchignore
file in the root directory being watched. Use fnmatch
patterns. The changes may occur as implemented in watchcat original(exclude implementation).
# Ignore the logs directory and its output
logs/
*.log
# Ignore temp files
temp_*
Contributions are welcome! Feel free to fork the repository, make improvements, and submit pull requests.
This project is under the MIT License.
FAQs
watcheagle - is hot reloader for your project based on watchdog!
We found that watcheagle demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.