loci
Local-first harness and ticket operations for AI assistants via CLI or MCP.
README
<p align="center"> <img src="packages/web/src/assets/logo.svg" alt="Loci Logo" width="128" /> </p>
🗂️ Loci
Local-first harness and ticket operations. Run it in any project, track work with your AI assistant via CLI or MCP.
Why Loci?
Loci is a lightweight local-first harness system that runs entirely on your machine.
Your AI coding assistant (Claude, Gemini, Cursor, etc.) can read and update workflow tickets directly via loci CLI or MCP.
Install
Recommended one-line install (macOS Apple Silicon + Linux x86_64/aarch64):
curl -fsSL https://raw.githubusercontent.com/thienhm/loci/main/scripts/install.sh | bash
Install a specific version:
curl -fsSL https://raw.githubusercontent.com/thienhm/loci/main/scripts/install.sh | bash -s -- v2.0.1
Transition bootstrap (legacy Bun launcher):
bun install -g github:thienhm/loci
loci update
During the transition, loci update refreshes both the managed Rust binary and the global Bun package that still provides loci serve and loci open.
Managed binary location: ~/.loci/bin/loci
What's New In 2.0.1
Loci 2.0.1 is a patch release for the Rust-primary 2.0 line:
loci updatenow refreshes both the managed Rust binary and the global Bun wrapper used byloci serveandloci open.- Dashboard reads now recover from local SQLite open edge cases and keep healthy registered projects visible.
- Ticket creation no longer reports a hard failure when only the post-create registry summary refresh fails.
- CLI help and release documentation now describe the
loci update/loci upgradeboundary more clearly.
Quick Start
# In your project directory
loci init
# Optional: start the server + web UI
loci serve
# Optional: open the web UI in your browser
loci open
The web UI is available at http://localhost:3333 by default.
Connect Your AI Assistant
CLI (Recommended)
Use the local CLI directly in your agent workflow. loci init generates project instructions and foundation docs:
AGENTS.mdLOCI.mdloci/project.mdloci/architecture.mdloci/validation.mdloci/guardrails.mdloci/current-state.mdloci/glossary.mdloci/backlog.md
MCP
Loci also exposes an MCP server at http://localhost:3333/mcp (requires loci serve to be running).
Claude Desktop / Claude Code
{
"mcpServers": {
"loci": {
"url": "http://localhost:3333/mcp"
}
}
}
Gemini CLI (~/.gemini/settings.json)
{
"mcpServers": {
"loci": {
"url": "http://localhost:3333/mcp"
}
}
}
Cursor / Windsurf
{
"loci": {
"url": "http://localhost:3333/mcp"
}
}
CLI Reference
Project
| Command | Description |
|---|---|
loci init |
Initialize Loci in the current project |
loci doctor |
Check harness/project health |
loci serve |
Start the MCP server and web UI |
loci open |
Open the web UI in your browser |
loci update |
Update the managed Rust binary and transitional Bun wrapper |
loci upgrade |
Upgrade project templates/data |
Tickets
| Command | Description |
|---|---|
loci list [--json] |
List workflow tickets |
loci add "title" [--json] |
Create a workflow ticket |
loci get <id> [--json] |
Get one ticket by ID |
loci status <id> <status> [--json] |
Update ticket status |
loci patch <id> [--assignee] [--progress] [--priority] [--labels] [--json] |
Update ticket fields |
loci plan, loci ready, loci validate, loci evidence, loci trace, loci summary, loci review |
Harness workflow commands |
Docs & Attachments
| Command | Description |
|---|---|
loci doc read <id> <filename> [--json] |
Read a ticket document |
loci doc write <id> <filename> --content "..." |
Write a ticket document |
loci attachments <id> [--json] |
List attachments for a ticket |
How It Works
- Project docs live under
loci/(human/agent-visible context and workflow packets) - Operational state lives under
.loci/(SQLite + local tool state) - The CLI is local-first and does not require a running server for core workflows
- The MCP server and web UI are served by
loci serve
Updating
loci update
This installs the managed Rust binary and refreshes the global Bun loci package so TypeScript fallback commands such as loci serve use the latest server/web code. If the wrapper refresh fails, the command prints the manual recovery command:
bun remove -g loci && bun install -g github:thienhm/loci
If you're on an older install and loci update cannot run yet, bootstrap once manually:
bun remove -g loci && bun install -g github:thienhm/loci
Then run:
loci update
Migration Notes
loci synchas been retired. Useloci upgrade.loci skillhas been retired from product CLI.
Contributing
See CONTRIBUTING.md.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。