Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rhishi99v1.7.0MIT
Delegates scoped document summaries and local pytest runs from Claude Code to Google's Antigravity CLI, returning bounded output. Needs Python 3.9+ and an installed, authenticated agy binary before the first call.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
agy) headlessly — and actually get output back.Codename PtyGravity · pty + antiGravity
📖 Architecture & docs → rhishi99.github.io/agy-headless-bridge
Delegate documents and tests to get verified source quotes or observed pytest results in a bounded MCP response. The guide includes registration for Claude Code and Codex and two synthetic demos.
Real MCP calls against AGY on a demo workspace; waits shortened. Demo recorded on v1.6.0; current release is 1.7.0 (CHANGELOG). MP4
Contents: Quick start · How it works · Prerequisites · Install · Usage · Configuration · Advanced · Integrations · Troubleshooting · Development
pip install agy-headless-bridge
agy-bridge --no-workspace "reply with exactly: OK"
Needs Python 3.9+ and an installed, authenticated agy (Prerequisites).
To let an agent call agy as a tool: claude mcp add --transport stdio antigravity -- agy-mcp-server
(details).
agy -p "<prompt>" prints nothing when its stdout is not a real terminal.
So calling it from a subprocess, an MCP server, CI, or another coding agent
(Claude Code, Codex, …) returns an empty string and exit 0 — silently. This
package gives agy a fresh pseudo-terminal so it emits normally, then cleans
the output.
flowchart TB
subgraph B["❌ BEFORE — agy -p from any non-TTY caller"]
direction TB
a1["subprocess · MCP · CI · agent"] --> a2["agy -p prompt"]
a2 --> a3["stdout gated by isatty()"]
a3 --> a4["(empty string)<br/>exit 0 · no error · no output"]
end
subgraph A["✅ AFTER — through agy-headless-bridge"]
direction TB
b1["subprocess · MCP · CI · agent"] --> b2["run(prompt)"]
b2 --> b3["allocate fresh pseudo-terminal"]
b3 --> b4["agy -p prompt<br/>isatty() == True"]
b4 --> b5["clean() strips ANSI/TUI"]
b5 --> b6["clean text ✓"]
end
classDef bad fill:#2a1313,stroke:#f87171,color:#ffd9d9;
classDef good fill:#0f2a1e,stroke:#34d399,color:#d7ffe9;
class a1,a2,a3,a4 bad;
class b1,b2,b3,b4,b5,b6 good;
# ❌ The problem — plain subprocess
import subprocess
r = subprocess.run(["agy", "-p", "say hi"], capture_output=True, text=True)
print(r.stdout) # '' — prints nothing, exit 0
# ✅ The fix
from agy_headless_bridge import run
print(run("say hi")) # 'Hi! How can I help?'
Three entry points around one core:
| Entry point | Invoke | Use for |
|---|---|---|
| Library | from agy_headless_bridge import run | embedding agy in Python |
| CLI | agy-bridge "prompt" | shell scripts, quick calls |
| MCP server | python -m agy_headless_bridge.mcp_server | letting an agent call agy as a tool |
agy gates its stdout on isatty(). The instant stdout isn't a terminal, it
goes silent — no output, no error, exit 0:
$ agy -p "say hi" | cat
$ # empty. exit 0. nothing.
The common winpty agy -p "..." workaround needs a terminal that already
exists, so it still fails from any automated / non-TTY caller.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (rhishi99/agy-headless-bridge) — no native marketplace selected
npx claudepluginhub p/rhishi99-agy-headless-bridgePlugins from other owners that cover similar ground