MCPcopy Index your code
hub / github.com/eradman/entr

github.com/eradman/entr @5.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.8 ↗ · + Follow
40 symbols 86 edges 9 files 10 documented · 25%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Event Notify Test Runner

A utility for running arbitrary commands when files change. Uses kqueue(2) or inotify(7) to avoid polling. entr was written to facilitate rapid feedback on the command line.

Source Installation - BSD, Mac OS, and Linux

./configure
make test
make install

To see available build options run ./configure -h

Docker and WSL

Incomplete inotify support on Windows Subsystem for Linux and Docker for Mac may cause entr to respond incorrectly. Setting the environment variable ENTR_INOTIFY_WORKAROUND enables entr to operate in these environments.

Platform Features

On Mac OS and Linux, symlinks are not followed unless the environment variable ENTR_FOLLOW_SYMLINK is set.

Man Page Examples

Rebuild a project if source files change, limiting output to the first 20 lines:

$ find src/ | entr -s 'make | head -n 20'

Launch and auto-reload a node.js server:

$ ls *.js | entr -r node app.js

Clear the screen and run a query after the SQL script is updated:

$ echo my.sql | entr -cp psql -f /_

Rebuild project if a source file is modified or added to the src/ directory:

$ while sleep 0.1; do ls src/*.rb | entr -d make; done

Auto-reload a web server, or terminate if the server exits

$ ls * | entr -rz ./httpd

News

Notification of new releases are provided by an Atom feed, and release history is covered in the NEWS file.

Core symbols most depended-on inside this repo

usage
called by 5
entr.c
strlcpy
called by 5
missing/strlcpy.c
terminate_utility
called by 4
entr.c
print_child_status
called by 2
entr.c
list_dir
called by 2
entr.c
run_utility
called by 2
entr.c
watch_file
called by 2
entr.c
start_log_filter
called by 1
status.c

Shape

Function 25
Class 15

Languages

C95%
C++5%

Modules by API surface

entr.c21 symbols
status.c8 symbols
missing/kqueue_inotify.c8 symbols
missing/sys/event.h2 symbols
missing/strlcpy.c1 symbols

For agents

$ claude mcp add entr \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact