Skip to content

feat(examples): add Linux PipeWire /voice shim, trajectory store maintenance, and portable skills - #1467

Open
AjarnSpencer wants to merge 1 commit into
google-antigravity:mainfrom
AjarnSpencer:main
Open

AjarnSpencer wants to merge 1 commit into
google-antigravity:mainfrom
AjarnSpencer:main

Conversation

@AjarnSpencer

@AjarnSpencer AjarnSpencer commented Nov 7, 2026 •

Copy link
Copy Markdown

Summary

Adds three self-contained, zero-dependency, cross-distro examples and utilities under examples/ following the existing examples/statusline and examples/title conventions:

1. examples/linux-voice/ — Linux PipeWire /voice Shim & Real-Time AGC

  • Problem: On Linux distributions running PipeWire 1.0+ (Ubuntu 24.04+, Fedora 40+, Debian 12/13, Arch, NVIDIA DGX OS), /voice invokes pw-record with --raw, which PipeWire's pw-record rejects (unlike PulseAudio's parec), or records low-gain audio from .monitor loopback sinks.
  • Solution:
    • examples/linux-voice/pw-record: Pure Python 3 stdlib (array) shim that strips --raw when streaming raw PCM (-), auto-selects active physical microphone sources via pactl, performs real-time 16kHz s16le DC-offset removal and Automatic Gain Control (AGC), and optionally falls back to a local Faster-Whisper UNIX socket.
    • examples/linux-voice/install.sh & README.md.

2. examples/startup-maintenance/ — Pre-TUI Stdin Drain & Trajectory Store Maintenance (Fixes #1465)

  • Problem: When ~/.gemini/antigravity-cli/conversations/ accumulates internal subagent trajectory SQLite databases (trajectory_type = 22) alongside primary user conversations (trajectory_type = 4), reconcile_summaries.go stalls manager_created before tui_init_start enters raw mode, allowing buffered agy\n stdin bytes to bleed into input_loop.go:HandleUserInput as prompt #0 ([Bug]: Pre-TUI summary reconciliation stall on trajectory_type=22 DBs allows launch stdin ('agy') to bleed into initial prompt #1465).
  • Solution:
    • examples/startup-maintenance/agy-store-maintain.py: Archives trajectory_type = 22 databases out of conversations/ while preserving all trajectory_type = 4 user conversations, and audits ~/.agents/rules/*.md for required YAML trigger: frontmatter.
    • examples/startup-maintenance/agy-tty-wrapper.sh & README.md: Pre-TUI termios.tcflush(sys.stdin, termios.TCIFLUSH) shell wrapper.

3. examples/skills/ — Portable Mainstream Community Skills

  • examples/skills/local-llm-web-search/ (SKILL.md + ollama_web_cli.py): Zero-API-key live web search, parallel article extraction, and local LLM synthesis via Ollama (127.0.0.1:11434) or OpenAI-compatible local servers.
  • examples/skills/linux-usb-xhci-diagnostics/ (SKILL.md): Hardware-register-first Linux USB-C, xHCI link error count (portli), and USB 2.0 Single-TT vs. Multi-TT hub collision diagnostic workflow.
  • examples/skills/headless-vector-pdf/ (SKILL.md): User-space Markdown-to-Print-CSS vector PDF and Graphviz SVG-to-PNG compilation via headless Chromium/Chrome.

@AjarnSpencer AjarnSpencer changed the title docs(examples): add startup summary reconciliation stall & TTY stdin bleed workaround feat(examples): add Linux PipeWire /voice shim, trajectory store maintenance, and portable skills Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Pre-TUI summary reconciliation stall on trajectory_type=22 DBs allows launch stdin ('agy') to bleed into initial prompt

1 participant