GitHub - asgarovf/locusai: πŸ€– Local-first workspace for agentic engineering. Unified tasks, docs, and secure CI for AI agents.

5 min read Original article β†—

Locus

GitHub Stars License TypeScript

@locusai/cli @locusai/shared Documentation

Locus is an AI-native project management platform for engineering teams.

Plan sprints, manage tasks, and coordinate documentation in the cloudβ€”while AI agents run securely on your machine to build, test, and document your software.

Read the full documentation to learn more.

Warning

Active Development: Locus is currently in an early alpha stage and is under active development. Expect breaking changes, bugs, and evolving APIs. Use with caution in production environments.

Locus is the platform that manages your projects. Your actual product code lives in separate repositories.

Key Features

  • AI-Native Planning β€” Plan sprints, define tasks, and write documentation designed for AI agents. Use AI-powered sprint planning with a multi-agent meeting (Tech Lead, Architect, Sprint Organizer) to break down goals into structured, prioritized tasks.
  • Secure Local Execution β€” Agents run on your machine (or your server). Source code never leaves your infrastructureβ€”only task metadata is synced to the cloud.
  • Multiple AI Providers β€” Choose between Claude (Anthropic) and Codex (OpenAI) as your agent backend. Switch providers per-command or set a default.
  • Team Coordination β€” Cloud-based dashboard for visibility, collaboration, sprint boards, document editing, and task management.
  • Cognitive Context β€” Agents receive rich context including project instructions (.locus/LOCUS.md), semantic codebase index, workspace documents, sprint progress, and task details.
  • AI Code Review β€” Review pull requests or local changes with AI-powered analysis directly from the CLI.
  • Skills System β€” Extend agent capabilities with markdown instruction files for specialized domain knowledge.
  • Telegram Bot β€” Control agents, plan sprints, approve plans, and monitor execution remotely from your phone.
  • Self-Hosting β€” Deploy Locus on your own server for 24/7 agent availability with remote Telegram control.
  • AI Discussions β€” Start interactive AI discussions with full project context. Extracts structured insights (decisions, requirements, ideas, concerns) as the conversation progresses.
  • VSCode Extension β€” Chat with agents, explain code selections, and run exec tasks directly from your editor.

Quick Start

1. Install locus as global package

npm install -g @locusai/cli

2. Initialize a new project

3. Setup your configuration

4. Run the agent

Start agents to pick up and execute tasks from your active sprint:

Use a different provider:

locus run --provider codex

CLI Commands

Command Description
locus init Initialize a project with the .locus/ structure
locus config Manage settings (API key, provider, model)
locus run Start agent to execute sprint tasks sequentially
locus plan AI sprint planning with a multi-agent meeting
locus discuss Interactive AI discussions with insight extraction
locus exec Execute a prompt with repo context (supports interactive REPL)
locus review AI code review for PRs and local changes
locus index Create a semantic codebase index
locus docs Sync workspace documents
locus telegram Configure and start the Telegram bot
locus upgrade Upgrade CLI to the latest version
locus version Show current version
locus disccus Discuss an idea with agents

How It Works

Architecture

locus-dev/                       ← The platform (Open Source)
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ api/                     ← Cloud API & Engine (NestJS)
β”‚   β”œβ”€β”€ web/                     ← Cloud Dashboard (Next.js)
β”‚   └── www/                     ← Landing Page (Next.js)
└── packages/
    β”œβ”€β”€ cli/                     ← Local Agent Runtime & CLI
    β”œβ”€β”€ sdk/                     ← Core Logic & API Client
    β”œβ”€β”€ shared/                  ← Shared Types & Schemas
    β”œβ”€β”€ vscode/                  ← VSCode Extension
    └── telegram/                ← Telegram Bot for Remote Control

The Workflow

  1. Plan β€” Define tasks manually in the dashboard, or use locus plan "your goal" to have AI agents break down your objective into a structured sprint.
  2. Dispatch β€” Start agents with locus run. The API dispatches tasks with server-side locking to prevent conflicts.
  3. Execute β€” Each agent claims a task, creates an isolated git branch, builds rich context, and executes using your chosen AI provider.
  4. Review β€” Agents commit changes, push branches, and create pull requests. Review with locus review or in GitHub. Reject tasks with feedback to send them back for rework.

Project Structure

After running locus init, your project will have:

your-project/
β”œβ”€β”€ .locus/
β”‚   β”œβ”€β”€ config.json              # Project metadata
β”‚   β”œβ”€β”€ settings.json            # API key & provider (gitignored)
β”‚   β”œβ”€β”€ LOCUS.md                 # Agent instructions
β”‚   β”œβ”€β”€ LEARNINGS.md             # Continuous learning log
β”‚   β”œβ”€β”€ codebase-index.json      # Semantic index
β”‚   β”œβ”€β”€ documents/               # Synced workspace documents
β”‚   β”œβ”€β”€ artifacts/               # Generated files
β”‚   β”œβ”€β”€ sessions/                # Exec session history
β”‚   β”œβ”€β”€ reviews/                 # Code review reports
β”‚   └── plans/                   # Sprint plans

Telegram Bot

Control your agents remotely with the built-in Telegram bot:

  • /plan β€” Start AI sprint planning
  • /approve / /reject β€” Approve or reject generated plans
  • /run β€” Start agents remotely
  • /exec β€” Execute a prompt with repo context
  • /tasks β€” List active tasks
  • /stop β€” Stop running processes
  • /git β€” Run whitelisted git commands
  • /dev β€” Run lint, typecheck, build, or test

Set up with locus telegram and connect your Telegram chat.


Self-Hosting

Deploy Locus on your own server for 24/7 agent availability:

curl -fsSL https://locusai.dev/install.sh | bash

The installer sets up Node.js, Bun, GitHub CLI, your chosen AI provider CLI, and configures system services for automatic startup. Supports Linux (systemd), macOS (LaunchAgent), and Windows (Scheduled Tasks).

See the self-hosting guide for full details.


Development

For detailed instructions on how to set up the development environment, run tests, and contribute code, please see CONTRIBUTING.md.

# Quick check
bun run lint && bun run typecheck

License

MIT