@michaeljolley/heyio
v0.0.4
Published
IO — a personal AI assistant daemon built on the GitHub Copilot SDK
Maintainers
Readme
IO is a personal AI assistant daemon built on the GitHub Copilot SDK. It runs 24/7 on your machine, reachable via Telegram, a web dashboard, and an HTTP API.
✨ Features
- Copilot SDK Integration — powered by GitHub's Copilot SDK for LLM conversations with tool calling
- Multi-Interface — Web dashboard + Telegram bot + HTTP API
- Web Frontend — React 19 dashboard with chat, squad management, skills, usage analytics, and more
- Web Chat Attachments — Attach images/files in web chat (10MB per file, 25MB per message) with multimodal handoff
- Persistent Memory — wiki-based knowledge base stored at
~/.io/wiki/ - Squad System — persistent project teams with named specialist agents themed from pop culture universes (dynamically selected at squad creation)
- Skills — modular skill system; install from git repos or the skills.sh registry
- Adaptive Sessions — infinite sessions with automatic context compaction
- Named Agent Personas — each squad agent gets a character persona with personality, dynamic role title, and specialized charter
- GitHub Integration — create, list, view, and comment on issues and PRs via the
githubtool - Smart Model Routing — automatically selects the best model for each task based on complexity
- Self-Updating — checks for updates and can apply them automatically
- MCP Integration — Connect to external MCP servers for additional tools (Figma, databases, APIs)
- Scheduling — Cron-based scheduling for recurring tasks and squad stand-ups
- Squad Instances — Parallel worktrees for concurrent work within a single squad
- Unified Feed — Consolidated inbox and notification feed with web UI
- Telegram Attachments — Send images/files via Telegram for vision-capable model processing
- Token Usage Analytics — Track token consumption per squad/agent with charts and cost breakdowns
- Squad Wiki — Per-squad wiki context included in agent prompts and instance snapshots
- Instance Watchdog — Monitors active/merging instances and auto-aborts stale ones
📋 Prerequisites
- Node.js >= 22
- GitHub Copilot subscription — IO uses the Copilot SDK, which requires an active Copilot license
- GitHub CLI (
gh) — required for thegithubtool (issue/PR management). Install from cli.github.com and authenticate withgh auth login
🚀 Quick Start
Install
npm install -g yoioSetup
Run the setup wizard to configure your Telegram bot token and user ID:
io setupThis creates a config file at ~/.io/config.json.
Run
# Background daemon (Telegram + HTTP API + Web)
io daemon
# Allow IO to modify its own source code
io daemon --self-editHeadless Server (systemd)
To run IO as a background service on a headless server:
- Authenticate the Copilot SDK:
copilot login - Authenticate the GitHub CLI:
gh auth login - Create a systemd service file at
/etc/systemd/system/io.service:
[Unit]
Description=IO Personal Assistant
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/env io daemon
Restart=always
RestartSec=10
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.target- Enable and start:
systemctl enable --now io
💬 CLI Usage
| Command | Description |
| --- | --- |
| io daemon | Run as background daemon (Telegram + API + Web) |
| io daemon --self-edit | Allow IO to modify its own source |
| io setup | Configure Telegram bot token and user ID |
Skills are managed via the web dashboard.
⚙️ Configuration
IO stores its configuration at ~/.io/config.json. The setup wizard (io setup) handles initial configuration, but you can also edit the file directly.
Parameters
| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| telegramBotToken | string | — | Telegram bot token from @BotFather |
| authorizedUserId | number | — | Your Telegram user ID (only this user can interact with the bot) |
| telegramEnabled | boolean | false | Enable the Telegram bot interface |
| selfEditEnabled | boolean | false | Allow IO to modify its own source code |
| defaultModel | string | "gpt-4.1" | LLM model for the main orchestrator session |
| port | number | 3170 | Port for the HTTP server (API + web frontend) |
| supabaseUrl | string | — | Supabase project URL (enables web portal authentication) |
| supabaseAnonKey | string | — | Supabase anon/public API key |
| authorizedEmail | string | — | Email address allowed to access the web portal |
| backgroundNotifyMode | string | "meaningful" | Background task notification frequency: "all", "meaningful", or "off" |
| backgroundNotifyTelegram | boolean | true | Send background task notifications via Telegram |
| watchdogEnabled | boolean | true | Enable the daemon event loop watchdog |
IO discovers available models from the Copilot SDK at startup and automatically picks the most appropriate model for each task based on complexity and cost.
Migration note: If your config uses the old
apiPortfield, IO will automatically migrate it toport.
Example
{
"telegramBotToken": "123456:ABC-DEF...",
"authorizedUserId": 123456789,
"telegramEnabled": true,
"selfEditEnabled": false,
"defaultModel": "claude-sonnet-4.6",
"port": 3170,
"supabaseUrl": "https://your-project.supabase.co",
"supabaseAnonKey": "eyJhbGciOiJIUzI1NiIs...",
"authorizedEmail": "[email protected]"
}All persistent data is stored under ~/.io/:
| Path | Purpose |
| --- | --- |
| ~/.io/config.json | User configuration |
| ~/.io/wiki/ | Knowledge base (markdown files) |
| ~/.io/io.db | SQLite database (squads, tasks) |
| ~/.io/skills/ | Installed skills |
| ~/.io/mcp.json | MCP server configuration |
🧩 Skills System
Skills are modular extensions that add new tools and capabilities to IO. Each skill is a directory containing a SKILL.md manifest and tool definitions.
Managing Skills
Skills are managed through the web dashboard:
- View all installed skills with name, description, and slug
- Install new skills by providing a git repository URL
- Remove skills you no longer need
Creating a Skill
A skill is a directory with a SKILL.md file that describes the skill and its tools. See the Contributing Guide for details on the skill format.
👥 Squad System
Squads are persistent project teams with named specialist agents. Each squad:
- Has a pop culture universe theme (dynamically researched at creation time — never hardcoded)
- Contains dynamically-created specialist agents with roles tailored to the project (e.g., "Express API Engineer", "Vue.js Frontend Dev")
- Each agent is assigned a character persona with personality traits that color their work style
- Remembers decisions, context, and conversation history across sessions
- Persists across sessions in the SQLite database
How Squads Work
- Create —
squad_createassigns a random pop culture universe (or user picks one) - Analyze —
squad_analyzescans the project to determine languages, frameworks, and tools - Build the team —
squad_add_agentfor each specialist the project needs; characters are drawn from the universe pool - Delegate —
squad_delegatesends tasks to specific agents by character name - Track —
squad_task_statusmonitors progress and retrieves results
🏗️ Architecture
User → [Web Dashboard / Telegram / HTTP API]
↓
Orchestrator (Copilot SDK)
↕ ↕ ↕
Squad Manager Wiki/Memory MCP Servers
↓
Named Agents (Pop Culture Characters)IO is built around the Copilot SDK which handles all LLM interactions, including tool calling and context management. The Orchestrator manages the primary conversation session with automatic context compaction for infinite-length sessions.
For complex tasks, the orchestrator delegates work to Named Agents — persistent agent sessions with character personas, specialized roles, and per-agent system prompts. Each agent works autonomously within their squad's project context.
The Squad System provides persistent project context, while the Wiki serves as a long-term knowledge base that spans all conversations.
Web Frontend
IO includes a React 19 web dashboard served directly from the daemon on the same port as the API (default: 3170). The frontend provides:
- Chat — real-time conversation with SSE streaming and file attachments
- Squads — view and manage project squads, agents, instances, and history
- Feed — unified inbox for deliverables and notifications
- Skills — browse, install, and remove skills from multiple sources
- MCP Servers — manage external tool servers with per-tool toggles
- Schedules — cron-based recurring tasks for squads and the orchestrator
- Wiki — browse and edit the knowledge base
- Usage — token consumption analytics with charts and cost breakdowns
- Settings — configure all IO parameters from the browser
Access the web UI at http://your-server:3170/ when running in daemon mode.
Authentication
The web portal uses Supabase email authentication. All API endpoints (except /health) require a valid JWT. Users must sign in with email and password before accessing the dashboard. Only the configured authorizedEmail is allowed access.
Setup:
- Create a Supabase project (or use an existing one)
- Enable the Email auth provider in Supabase → Authentication → Providers
- Create your user account in Supabase → Authentication → Users
- Add the following to
~/.io/config.json:
{
"supabaseUrl": "https://your-project.supabase.co",
"supabaseAnonKey": "eyJhbGciOiJIUzI1NiIs...",
"authorizedEmail": "[email protected]"
}- Restart IO — the web portal will now require login
🏗️ Project Structure
src/
├── index.ts # CLI entry (commander)
├── daemon.ts # Daemon startup/shutdown
├── config.ts # Config loading
├── paths.ts # Path constants
├── notify.ts # Notification routing
├── watchdog.ts # Event loop stall + zombie detection
├── copilot/
│ ├── client.ts # CopilotClient singleton
│ ├── orchestrator.ts # Main session management
│ ├── agents.ts # Named agent sessions & personas
│ ├── tools.ts # Tool definitions
│ ├── model-router.ts # Complexity-based model selection
│ ├── skills.ts # Skills loader
│ ├── scheduler.ts # Squad cron scheduler
│ ├── io-scheduler.ts # IO-level cron scheduler
│ └── system-message.ts # System prompt builder
├── store/
│ ├── db.ts # SQLite database
│ ├── squads.ts # Squad & agent CRUD
│ ├── tasks.ts # Agent task tracking
│ ├── instances.ts # Squad instance management
│ ├── feed.ts # Unified feed/inbox
│ └── schedules.ts # Schedule persistence
├── wiki/
│ ├── fs.ts # Wiki filesystem
│ └── search.ts # Wiki search
├── telegram/
│ ├── bot.ts # Grammy Telegram bot
│ └── handlers.ts # Command handlers
├── mcp/
│ ├── config.ts # MCP server config
│ ├── registry.ts # Module-level tool registry
│ └── index.ts # MCP exports
└── api/
├── auth.ts # Supabase JWT auth middleware
└── server.ts # Express HTTP + SSE + static frontend
web/ # React 19 frontend (built to web-dist/)
├── src/
│ ├── lib/ # supabase.ts, api.ts, attachments.ts, notify.ts
│ ├── stores/ # Zustand stores (chat, auth)
│ ├── components/ # AppSidebar, AppHeader, ChatOverlay, IoMark
│ ├── components/ui/ # Shared UI (StatusChip, Buttons, Toggle, MarkdownRenderer)
│ ├── views/ # ChatView, SquadsView, FeedView, SkillsView, UsageView, etc.
│ ├── routes/ # React Router config + auth guard
│ └── main.tsx # App entry
├── vite.config.ts # Vite config (builds to ../web-dist/)
└── package.json
docs/ # VitePress documentation site
├── .vitepress/config.ts # Site configuration
├── guide/ # Getting started, configuration, etc.
├── architecture/ # System design documentation
├── reference/ # CLI, API, and tools reference
└── package.json🛠️ Development
# Clone the repository
git clone https://github.com/michaeljolley/io.git
cd io
# Install dependencies
npm install
# Run in development mode (watch)
npm run dev
# Build for production
npm run build
# Build everything (backend + web)
npm run build:all
# Run the daemon directly
npm run daemon
# Run the test suite
npm testTests use the Node.js built-in test runner with tsx for TypeScript support. Test files live alongside source files as *.test.ts.
See CONTRIBUTING.md for detailed development guidelines.
📄 License
This project is licensed under the MIT License.
🤝 Contributing
Contributions are welcome! Please read the Contributing Guide and Code of Conduct before submitting a pull request.
