Skip to main content

Colleague

Colleague is the AI assistant that knows YOUR company. It is powered by your fine-tuned model (trained by Forge) and designed to improve from every correction.

What It Does

  • Answers questions using your company's knowledge
  • Learns implicitly from every interaction
  • Routes corrections back into the training loop
  • Surfaces knowledge through chat, voice, and a visual mind map

Interfaces

InterfaceStackPurpose
Web appNext.jsChat, voice, mind view, knowledge safes
API serverExpressREST API (port 4000) for native clients
Slack botSlack BoltAsk questions and ingest knowledge
macOS appSwiftUINative desktop client
macOS widgetSwiftUIStatus bar quick access
MCP serverMCP SDKClaude Code integration with direct DB
Background workerBullMQAsync job processing

The Correction Loop

People interact with Colleague daily. When Colleague gets something wrong:

  1. User corrects the answer
  2. Correction becomes a new preference pair
  3. Forge retrains the model
  4. Colleague improves

This is the designed feedback loop -- every correction is an investment in a better model.

Architecture

Packages

PackagePurpose
packages/coreDomain objects, policies, interfaces (no vendor SDKs)
packages/orchestratorUse-cases, workflows, knowledge engine
packages/providersAdapters: OpenRouter, STT, TTS, Slack, pgvector
packages/dbDrizzle schema, migrations, repositories
packages/sharedConfig, logger, utilities
packages/authzAuthorization tuples and audit logging
packages/worker-sdkBackground job task definitions

Background Jobs

JobIntervalPurpose
Vault Promotion1 hourPromotes high-connectivity reserves to their own vaults
Distillation12 hoursConsolidates knowledge within vaults

Queues: ingestion, distillation, expert-consultation, vault-promotion, watcher-events.

Quick Start

# Install dependencies
make install

# Start web stack (postgres, redis, web app, background worker)
make dev

# Or start native/macOS stack
make dev-native
make dev-macos

Environment Variables

DATABASE_URL=postgres://ody:ody_dev_password@localhost:5433/ody
REDIS_URL=redis://localhost:6379
OPENROUTER_API_KEY=your-key-here