# Git Hook: Hermes Agent plugin

> Auto fetch/pull before reads, and commit + push only the files each turn changed, for every git worktree Hermes touches.

Canonical: https://hermeswatcher.com/plugins/git-hook  
Tier: Community  
Official page (Nous Research): https://hermes-agent.nousresearch.com/docs/plugins/git-hook  
Last updated in catalog: 2026-10-08

Auto fetch/pull before reads, and commit + push only the files each turn changed, for every git worktree Hermes touches.

## Good to know before installing

After each turn it commits and pushes (push on by default; GIT_HOOK_PUSH=0 keeps commits local) the changed files of git worktrees under GIT_HOOK_ROOTS (default PROJECTS_ROOT, "*" for every repo), pushing to origin HEAD when no upstream is set; it pulls --ff-only before reads. A branch whose direct push the remote refuses on policy grounds (branch protection, a PR-required ruleset) is never committed to again: the hook drops its own unpushed commit, leaves the edit staged and dirty, and reports it once.

From the plugin's catalog listing.

## How to install

1. Install it. Hermes asks for any API keys it needs, then asks whether to turn it on.

```bash
hermes plugins install git-hook
```

2. Said no? Turn it on later:

```bash
hermes plugins enable git-hook
```

3. Restart Hermes so it loads the plugin.

Some plugins also need a sign-in or settings: see the official page. Memory plugins ask whether to become your memory provider instead. Steps follow the official plugins guide: https://hermes-agent.nousresearch.com/docs/user-guide/features/plugins

## Facts

- Category: Coding & developer tools, Automation & multi-agent
- Maintained by: aean0x (Community)
- Needs: No API keys declared
- Version: 0.5.1
- In the catalog since: 2026-10-02, updated 2026-10-08

## Links

- [Full setup and settings (official page)](https://hermes-agent.nousresearch.com/docs/plugins/git-hook)
- [Source code](https://github.com/aean0x/hermes-git-hook#readme)
- [All plugins](https://hermeswatcher.com/plugins.md)

---

HermesWatcher is an independent guide. It is not affiliated with or endorsed by Nous Research. The [official Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs) and [repository](https://github.com/NousResearch/hermes-agent) from Nous Research are the authority; each page here lists the official sources it was written from. If this site and the official docs disagree, trust the official docs. Index for agents: https://hermeswatcher.com/llms.txt
