# Vendored Hermes Agent

Sourced from [Hermes Agent](https://hermes-agent.nousresearch.com) by Nous Research, MIT licensed.

**Upstream commit:** `64145a1996554e4e81b694e9737421f34f44e212`
**Vendored on:** 2026-05-12

## Why

CVC ships as a standalone PyPI package (`tm-ai`). Vendoring the Hermes tool surface here means:

- No runtime dependency on a local `~/.hermes/hermes-agent/` checkout
- `pip install tm-ai[all]` is sufficient for the full agentic OS feature set
- CVC inherits Hermes' 72 production-grade tools without sys.path hacks

## Modifications

All Hermes-internal imports rewritten via `tools/rewrite_imports.py`:
- `tools.X` → `cvc.agent._vendor.hermes.tools.X`
- `agent.X` → `cvc.agent._vendor.hermes.agent.X`
- (etc — see commit history for v2.25.0)

`tools/registry.py::discover_builtin_tools` patched to build module names from `__package__` rather than the hard-coded `tools.` prefix.

## Maintenance

To resync from upstream Hermes:

```bash
python3 /path/to/cvc/scripts/resync_vendor.py
```

## License

Hermes Agent is MIT licensed:

```
MIT License
Copyright (c) 2025 Nous Research
```

See `LICENSE-HERMES` in this directory for the full text.
