# Guard

> Run commands automatically when files change, for Ruby projects

Source: https://talira.ai/catalog/guard-bcktzq0h
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [developer tools / build / file watchers](https://talira.ai/categories/developer-tools/build/file-watchers), [languages / ruby](https://talira.ai/categories/languages/ruby)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Guard](https://talira.ai/orgs/guard-project.md)

Guard is a Ruby command line tool that watches the file system and runs rules you write in a `Guardfile` whenever files or directories change: rerun the tests for the file you saved, reload a server, rebuild assets, and the like. File changes come from the Listen gem, it can show desktop notifications, and more than 300 plugins (guard-rspec, guard-minitest, guard-livereload and others) give it ready-made rules. You add it to a project's Gemfile and start it with `bundle exec guard`. It's MIT-licensed and maintained in the Guard GitHub organization.

## Links

- Website: https://guard.github.io/guard/
- GitHub: https://github.com/guard/guard
- Docs: https://github.com/guard/guard/wiki

## Problems it solves

- rerun my RSpec tests automatically when I save a Ruby file
- restart or reload my Ruby app when its code changes
- watch a folder and run a command whenever a file changes

## Features

- run rules from a Guardfile when files change
- 300+ plugins such as guard-rspec and guard-livereload
- desktop notifications for results
- file watching through the Listen gem
- guard-bundler plugin installs or updates the gem bundle when the Gemfile or gemspec changes
- guard-minitest plugin reruns Minitest tests when files change

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.27, adoption 0.76, momentum 0.46, community 0.92, backing 0.30, extensibility 0.00.

- latest release v2.21.0 12 days ago
- 6.4k GitHub stars
- 195 contributors
- has a company behind it

Warnings:

- last commit 4 months ago

## Alternatives

- [watchexec](https://talira.ai/catalog/watchexec-dq0r57ke.md): Executes commands in response to file modifications
- [Watchman](https://talira.ai/catalog/watchman-cfwycc54.md): A file watching service that records changes and triggers actions
- [entr](https://talira.ai/catalog/entr-tnjj7sns.md): Run arbitrary commands when files change
- [nodemon](https://talira.ai/catalog/nodemon-5wy219he.md): Restart your Node.js app automatically when files change
- [Air](https://talira.ai/catalog/air-x5em024g.md): Live reload for Go apps
- [bacon](https://talira.ai/catalog/bacon-sqn1nm4z.md): Background code checker

## Sources

[^1]: https://github.com/guard/guard/blob/master/LICENSE (checked 26 Nov 2026)
