Skip to content

nayasuda/phantom-template

Repository files navigation

πŸ•΅οΈ Project Phantom

A multi-agent AI system template powered by Gemini CLI.

Automate your daily operations with 10 specialized AI agents that collaborate, plan, and execute tasks β€” from GitHub project management to Gmail classification.

✨ Features

  • 10 specialized sub-agents β€” each with a distinct role (strategist, executor, debugger, etc.)
  • Gemini CLI native β€” runs directly in your terminal, no extra infrastructure needed
  • GitHub Project v2 integration β€” automated task sync with Google Tasks
  • Gmail auto-classification β€” sorts emails into actionable categories using Gemini AI
  • PDCA self-improvement β€” agents log failures and learn from past mistakes
  • Hook system β€” pre/post tool execution guards (secret detection, git safety, etc.)

πŸš€ Quick Start

Prerequisites

Supported OS: Linux, macOS, Windows (WSL2 / Ubuntu recommended)

Tool Version Purpose
Gemini CLI latest Core runtime
Node.js v18+ Gemini CLI dependency
Python 3.10+ Scripts & hooks
GitHub CLI latest GitHub integration
Git latest Version control

Windows users: Tested on WSL2 (Ubuntu). Native PowerShell is not supported. See Windows automated setup below.

Required services:

  • Google Workspace (Gmail, Google Drive, Google Tasks)
  • GitHub account with Project v2
  • Gemini API key (Get one here)

Installation

Windows (automated setup)

Right-click setup/setup-windows.bat β†’ Run as administrator. The script will automatically install WSL, Ubuntu, Node.js, Gemini CLI, and GitHub CLI β€” then walk you through the rest.

⚠️ Security software notice: Some antivirus software (Norton, Windows Defender SmartScreen, etc.) may block .bat files from running. If this happens:

  1. Allow the script in your security software, or
  2. Follow the manual setup below (Linux / macOS) using WSL terminal directly.

Linux / macOS (manual setup)

# 1. Clone this template
git clone https://github.com/YOUR_USERNAME/phantom-template.git
cd phantom-template

# 2. Run the setup wizard
bash setup.sh

# 3. Configure your API keys
#    Edit .gemini/.env with your credentials

# 4. Install Gemini CLI (if not already installed)
npm install -g @google/gemini-cli

# 5. Launch!
bash phantom_startup.sh
tmux attach -t phantom:main

# To quit: type /quit in Gemini CLI, then:
bash phantom_shutdown.sh

πŸ’‘ Once Navi starts, type /initial_setup! Navi will guide you through Google OAuth, GitHub Secrets, and enabling scheduled Actions β€” step by step. You can skip or pause any step and resume later by running /initial_setup again.

🎭 The Agents

Agent Role Specialty
Navi πŸ›°οΈ Orchestrator Coordinates all agents, talks to you
Queen πŸ‘‘ Strategist Mission planning & quality checks
Mona 🐱 Manager Task decomposition & PR reviews
Skull πŸ’€ Engineer Git operations & shell execution
Panther πŸ’ƒ Writer Documentation & reports
Wolf 🐺 Backend APIs & server-side code
Fox 🦊 Frontend UI & client-side code
Noir πŸŽ€ Tester Test creation & verification
Violet 🎻 Researcher Technical research & comparison
Crow πŸͺΆ Debugger Bug analysis & diagnosis
Sophie πŸ›‘οΈ Security Security audits & risk checks

πŸ“ Structure

phantom-template/
β”œβ”€β”€ .gemini/
β”‚   β”œβ”€β”€ system.md          # Navi's core system prompt
β”‚   β”œβ”€β”€ agents/            # 10 sub-agent definitions
β”‚   β”œβ”€β”€ hooks/             # Pre/post execution guards
β”‚   β”œβ”€β”€ commands/          # Custom slash commands (/mission, /plan, etc.)
β”‚   └── skills/            # Reusable skill documentation
β”œβ”€β”€ scripts/               # Automation scripts (sync, cleanup, etc.)
β”œβ”€β”€ phantom-antenna/       # Gmail classification module
β”‚   └── src/skills/
└── .github/workflows/     # GitHub Actions for scheduled tasks

πŸ“– Documentation

πŸ“„ License

MIT License β€” see LICENSE for details.

About

πŸ•΅οΈ Multi-agent AI system template powered by Gemini CLI β€” automate daily ops with 10 specialized agents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors