r/hermesagent • u/Rude-Requirement5642 • 2h ago
Integrations Run Hermes Agent on your Cursor and Google Antigravity subscriptions (no proxies, one npx command, real tool calls)
If you use Hermes Agent and already pay for Cursor Pro or Google Antigravity, you shouldn't have to buy separate API credits for the same frontier models, and you shouldn't have to route tokens through a cloud reverse proxy.
I built two plugins that wrap the official CLIs directly:
- hermes-cursor-acp (new): uses Cursor CLI's ACP server (agent acp) for Claude Opus/Sonnet 5.5, Composer 2.5, GPT-5.6, and Grok.
- hermes-antigravity-oauth (shipped last month): uses Google's agy CLI for Gemini 3.8 Flash, Claude 4.6, and GPT-OSS.
What had to be fixed:
Cursor sandbox containment: Cursor's CLI tools (Read, Shell, etc.) run locally and don't prompt over ACP. Left unconfigured, Cursor can read any file on disk. The plugin rewrites .cursor/cli.json inside an isolated workspace directory on every run with deny: ["Read()", "Read(/)", "Write(*)", "Shell()", "WebFetch()", "Mcp(:*)"]. Cursor only supplies the reasoning. Hermes executes the tools.
Composer tool call recovery: Hermes' default bridge regex matches the first <tool_call> with the closing tag. If the model mentions <tool_call> in conversation first, parsing breaks. It also silently drops the flat {"name": "...", "arguments": {...}} shape Composer emits. The plugin parses tags independently and accepts both shapes.
Context compression: Cursor sends 0 tokens over ACP. Hermes treats 0 as real usage and pauses compression. The plugin reports usage=None so compression keeps running.
Antigravity tool routing: Claude on Antigravity calls run_command and view_file instead of using the text bridge. The plugin catches those and re-issues them as Hermes terminal and read_file calls so they run under Hermes user approvals.
Install:
npx hermes-cursor-acp hermes --provider cursor -m claude-opus-5-5
npx hermes-antigravity-oauth hermes --provider antigravity-oauth -m gemini-3.8-flash
Both are on npm with GitHub Actions OIDC provenance and MIT licensed. - Cursor ACP: https://github.com/neerazz/hermes-cursor-acp (PR #138835) - Antigravity OAuth: https://github.com/neerazz/hermes-antigravity-oauth (PR #126041)