Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
An autonomous agent operating system in Go. Telegram-native, Claude Code-powered, semantic memory, persistent scheduling. One daemon, many projects, many agents.
Fetched from the repository for this visit.
An autonomous agent operating system in Go.
Telegram-native. Claude Code-powered. Built to stay light.
One persistent daemon, many projects, many agents.
Aurelia is an autonomous agent operating system accessible via Telegram. Talk naturally — Aurelia decides whether to respond directly, delegate to a specialist agent, or schedule automated execution.
It is built around a practical execution model:
The goal is not to reimplement what Claude Code already does. The goal is to orchestrate it — adding persistence, memory, scheduling, multi-project support, and a natural Telegram interface on top.
Aurelia separates three scopes:
~/.aurelia/)High-level flow:
flowchart LR
U[User] --> T[Telegram]
T --> P[Pipeline]
P --> R[Agent Router]
R --> B[Bridge TS]
B --> SDK[Claude Code SDK]
SDK --> TOOLS[Tools + MCPs + Skills]
P --> SESS[Session Manager]
P --> CRON[Cron Scheduler]
B --> RES[Response]
RES --> T
1. Message arrives on Telegram
2. Pipeline extracts text/photo/voice/document
3. Agent router classifies → specialist agent or general
4. System prompt assembled: persona + agent + cron instructions
5. Request sent to Bridge (long-lived TypeScript process)
6. Bridge calls Claude Code SDK → Claude Code CLI executes
7. Events streamed back: tool_use → progress, assistant → text, result → response
8. Response delivered to Telegram (reply-to original message)
9. Session token usage tracked, auto-reset if threshold exceeded
1. Scheduler polls every 15 seconds
2. Due job found → load agent config + persona
3. Execute via Bridge (Telegram plugin blocked to prevent wrong bot)
4. Result delivered to Telegram via TelegramDelivery
cmd/aurelia/ CLI entry point, onboarding, cron CLI, telegram CLI
internal/bridge/ Go <> Bridge client (long-lived, multiplexed, bundle embedded via go:embed)
internal/telegram/ Telegram I/O, async pipeline, progress, reactions, commands
internal/session/ Session store, token tracking, nudge buffer
internal/agents/ Agent registry (markdown definitions, LLM classification)
internal/persona/ Persona loader (IDENTITY / SOUL / USER)
internal/dream/ Memory consolidation (dream) and extraction (nudge)
internal/cron/ Persistent cron scheduler with Telegram delivery
internal/config/ App configuration (providers, Telegram, sessions)
internal/runtime/ Path resolver + instance bootstrap + project memory dirs
internal/orchestrator/ Git operations, worktree management, PR creation
pkg/stt/ Speech-to-text (Groq Whisper)
bridge/ TypeScript Bridge source (compiled to bundle.js via esbuild, embedded in binary)
The Bridge is a long-lived TypeScript process that wraps @anthropic-ai/claude-agent-sdk. Communication is via stdin/stdout NDJSON with request multiplexing:
Go → Bridge (stdin):
{"command":"query","request_id":"req-1","prompt":"...","options":{"model":"k2.5","system_prompt":"...","cwd":"/path","permission_mode":"bypassPermissions"}}
Bridge → Go (stdout):
{"event":"system","request_id":"req-1","session_id":"abc-123","tools":["Read","Write"]}
{"event":"tool_use","request_id":"req-1","name":"Read","input":{"file_path":"src/main.go"}}
{"event":"assistant","request_id":"req-1","text":"The project has..."}
{"event":"result","request_id":"req-1","content":"...","cost_usd":0.12,"session_id":"abc-123"}
Multiple requests run concurrently — each with its own request_id.
Configurable specialists defined in markdown (~/.aurelia/agents/):
---
name: prospector
description: Busca leads e entra em contato
model: kimi-k2-thinking
schedule: "0 9 * * 1"
cwd: D:\projetos\crm
mcp_servers:
google-places: { command: "npx google-places-mcp" }
allowed_tools: ["WebSearch", "WebFetch", "Bash"]
---
Voce eh um agente de prospeccao comercial.
Busque empresas no Google Places na regiao configurada.
Fields: name, description, model, schedule, cwd, mcp_servers, allowed_tools.
Agents with schedule are automatically registered in the cron scheduler.
Three markdown files in ~/.aurelia/memory/personas/:
IDENTITY.md — name, role, rules, personalitySOUL.md — tone, style, behaviorUSER.md — user information, preferencesCreated automatically via /start on Telegram (choose "Coder" or "Assistant" preset).
Aurelia has a 3-layer persistent memory that survives across sessions:
| Layer | Location | Purpose |
|---|---|---|
| Global | ~/.aurelia/memory/ | Personal facts, preferences, communication style |
| Project Private | ~/.aurelia/projects/<cwd>/memory/ | Personal notes, work log, task state |
| Project Team | ~/.aurelia/projects/<cwd>/memory/team/ | Stack, conventions, architecture (shareable) |
Memory is populated automatically:
/new or auto-reset)The model sees all memory layers in its system prompt and can read/write them during conversation.
| Command | Description |
|---|---|
/start | Setup persona (first run) or welcome |
/help | List available commands |
/new | New session (flushes memory, clears context) |
/cwd <path> | Set working directory for this chat |
/reset | Reset session (alias for /new) |
/usage | Show session token usage and cost |
/cron | Manage schedules (list, add, delete, pause, resume) |
/agents | List available agents |
# Run the bot
go run ./cmd/aurelia/
# Interactive onboarding
go run ./cmd/aurelia/ onboard
# Cron management
aurelia cron add "30 8 * * *" "pesquise noticias de tech" --chat-id 123456
aurelia cron once "2026-03-22T09:00:00Z" "gere relatorio" --chat-id 123456
aurelia cron list
aurelia cron del <job-id>
# Telegram interaction (used by the agent via Bash)
aurelia telegram react <chat-id> <message-id> <emoji>
aurelia telegram send <chat-id> <text>
aurelia telegram reply <chat-id> <message-id> <text>
Requirements:
1.25+18+claude login)Run onboarding:
go run ./cmd/aurelia/ onboard
Start:
go run ./cmd/aurelia/
Send /start to your bot on Telegram.
go install github.com/air-verse/air@latest
air
Main config lives in ~/.aurelia/config/app.json:
{
"default_provider": "anthropic",
"default_model": "claude-sonnet-4-6",
"providers": {
"anthropic": { "auth_mode": "subscription" },
"kimi": { "api_key": "sk-kimi-..." }
},
"telegram_bot_token": "your-token",
"telegram_allowed_user_ids": [123456789],
"stt_provider": "groq",
"max_iterations": 500,
"max_session_tokens": 100000
}
Provider base URLs are auto-configured. For Anthropic subscription mode, run claude login first.
go build -trimpath -ldflags "-s -w" -o ./build/aurelia.exe ./cmd/aurelia
| Document | Purpose |
|---|---|
| CLAUDE.md | Instructions for coding agents |
| CHANGELOG.md | Release history and changes |
| .specs/codebase/ARCHITECTURE.md | System architecture and patterns |
| .specs/codebase/CONVENTIONS.md | Code conventions and Go patterns |
| .specs/codebase/STACK.md | Technology stack and dependencies |
| .specs/project/PROJECT.md | Vision, constraints, current state |
| .specs/project/ROADMAP.md | Feature roadmap |
go build ./... # Build
go test ./... -short # Test
go vet ./... # Lint
air # Hot reload
To rebuild the Bridge bundle after modifying bridge/index.ts:
cd bridge && npx esbuild index.ts --bundle --platform=node --target=node18 --outfile=bundle.js --format=esm
cp bundle.js ../internal/bridge/bundle.js
main branchGitHub checked 40h ago - refresh overdue. Recently viewed repositories target hourly refresh.