mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
Adds a new extension that generates images via Google Antigravity's image models (gemini-3-pro-image, imagen-3). Features: - Returns images as tool result attachments for inline terminal rendering - Configurable save modes: none, project, global, custom - Supports env vars (PI_IMAGE_SAVE_MODE, PI_IMAGE_SAVE_DIR) and config files - Configurable aspect ratios (1:1, 16:9, etc.) Requires OAuth login via /login for google-antigravity provider. |
||
|---|---|---|
| .. | ||
| extensions | ||
| sdk | ||
| README.md | ||
Examples
Example code for pi-coding-agent SDK and extensions.
Directories
sdk/
Programmatic usage via createAgentSession(). Shows how to customize models, prompts, tools, extensions, and session management.
extensions/
Example extensions demonstrating:
- Lifecycle event handlers (tool interception, safety gates, context modifications)
- Custom tools (todo lists, questions, subagents, output truncation)
- Commands and keyboard shortcuts
- Custom UI (footers, headers, editors, overlays)
- Git integration (checkpoints, auto-commit)
- System prompt modifications and custom compaction
- External integrations (SSH, file watchers, system theme sync)