Skip to content

v1.0.1 - Agent Stability, Universal Tool Calling & Keep-Alive Heartbeat

Latest

Choose a tag to compare

@metagliatore metagliatore released this 13 Nov 23:24

🚀 Release v1.0.1 — Agent Stability, Universal Tool Calling & Keep-Alive Heartbeat

This release brings critical stability improvements and bug fixes for running autonomous coding agents (such as Hermes Agent, Pi Agent, OpenCode, Aider, and Cline) against the Antigravity backend.


🐛 Bug Fixes & Improvements

  • 🧠 Agent-on-Agent Inception Fix:

    • Automatically provisions /root/.gemini/config/GEMINI.md system rule on container startup via entrypoint.sh.
    • Strictly forces the underlying agy model to act as a pure LLM inference engine, preventing it from executing bash commands or exploring the container environment when given user/agent prompts.
    • Enforced cwd="/tmp" across all subprocess executions to prevent container workspace inspection.
  • 🛠️ Universal Tool Calling Parser:

    • Enhanced tool call extraction (_extract_single_tool_call in tasks.py) to flawlessly handle both flat {"name": ..., "arguments": ...} and standard nested OpenAI {"id": ..., "type": "function", "function": {"name": ..., "arguments": ...}} formats.
    • Fixes the Model generated invalid tool call: error observed in Hermes Agent and other OpenAI-compatible tooling.
  • 💓 Two-Tier SSE Liveness Keep-Alive:

    • Emits HTTP SSE comments (: ping\n\n) every 10 seconds to maintain persistent connections across reverse proxies (Caddy, Nginx, Cloudflare).
    • Emits empty OpenAI completion chunks ({"choices":[{"delta":{}}]}) every 10 seconds during model thinking/wait phases. This resets client-side inactivity timers (such as Hermes' StreamingWaitMonitor), completely preventing premature 180s stream disconnects on long-running tasks.
  • 🩺 Internal Diagnostics CLI & Endpoint:

    • Run docker compose exec api python -m doctor to verify Copilot token, Antigravity session, Redis connection, and Rate Limiter health.
    • Authenticated diagnostic endpoint available at GET /v1/doctor.

📦 Container Images

Published to GitHub Container Registry:

  • ghcr.io/metagliatore/cli2api-llm-gate:v1.0.1
  • ghcr.io/metagliatore/cli2api-llm-gate:latest