This extension integrates the Gemini CLI Agent Mode directly into the Pi coding agent. It allows Pi to delegate complex, multi-file autonomous tasks to Gemini's native agentic loop (YOLO mode).
gemini_agentTool: A tool that Pi can call to run the Gemini CLI autonomously./geminiCommand: A slash command to quickly trigger the Gemini agent from the Pi terminal.- Real-time Telemetry: Streams assistant output and tool usage from Gemini back to the Pi UI.
- Automatic Agent Discovery: Automatically installs specialized proxy agents for use with
pi-subagents.
- Pi Coding Agent installed and configured.
- Pi Subagents installed (for chaining features).
- Gemini CLI installed and authenticated.
This extension enables powerful agent chaining by providing "Proxy Agents" that Pi can orchestrate.
gemini: General-purpose autonomous worker.gemini-coder: Expert coding agent for complex refactoring and bug fixing.gemini-researcher: Specialized research and synthesis agent.
You can chain Gemini agents together using the /chain command from pi-subagents:
/chain gemini-researcher "Analyze competitive features of X" -> gemini-coder "Implement a similar feature in our project"Pi can automatically choose to use the gemini_agent tool when faced with complex tasks if it's enabled in your session.
Type /gemini <task> in the Pi terminal to start the Gemini agent:
/gemini "Refactor the authentication logic to use JWT"pi install ./extensions/gemini-agent -l- Copy the
extensions/gemini-agentdirectory to~/.pi/agent/extensions/. - Run
npm installin that directory. - Restart Pi or run
/reload.
MIT