About
A memory palace for AI: persistent memory, identity, and multi-project orchestration for Claude Code
Developer ToolsMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
A local memory and data layer shared across agents. AI helps you capture it; you can inspect and edit it.
Supports Claude Code · Codex · Hermes · Qwen Work · Doubao Work · Qoder · WorkBuddy
中文 | English
What is Loci?
AI tools often keep separate memories. Switching agents may mean explaining your preferences, tasks, and project background again, while scattered records are hard to organize.
Loci keeps this information in your own local “brain” directory. Instructions in each agent's native entry point describe where to read, what is worth saving, and how to write it. Agents connected to the same brain can retrieve shared context that has already been saved.
Memory, tasks, schedules, contacts, and knowledge use Markdown, JSON, and attachments. Open the files directly or inspect and edit them through the Dashboard. No external database or cloud memory service is required; the Dashboard is a local Node.js service.
What can it do?
| Capability | Use |
|---|---|
| Personal memory | Save names, language preferences, personal facts, reflections, and decisions; retrieve them when relevant |
| Tasks and schedules | Manage todos, meetings, and time blocks; a timed todo remains a task and is not automatically copied to the calendar |
| Project context | Keep state, technical decisions, and development todos in the project repository; the brain holds an index |
| People and places | Record contacts, relationships, interactions, and relevant locations |
| Knowledge | Collect links, scraps, and attachments; index your own notes and research |
| Journals and review | Inspect activity records and organize recent work and saved information |
For example, tell a connected agent:
Use English when replying to me.
Remind me to send the materials tomorrow at 9 AM.
Save this link with the note “interview reference”.
Remember this project, then tell me where we left off.
The agent's file and command tools perform the operations. Results depend on instruction loading, access to the brain, and correct execution; installing instruction files does not force a model to follow them.

Install with your AI agent
All agents below use the same two prompts: install Loci for the first time, or connect another agent to your existing brain.
| Supported agent |
|---|
| Claude Code |
| Codex |
| Hermes |
| Qwen Work |
| Doubao Work |
| Qoder |
| WorkBuddy |
First installation
Install Loci for me. Read and follow:
https://raw.githubusercontent.com/codesstar/loci/main/docs/AI-INSTALL.md
Reuse an existing brain and preserve all data. Connect this client and verify the result.
Connect another agent
Connect yourself to my existing Loci brain. Read and follow:
https://raw.githubusercontent.com/codesstar/loci/main/docs/AI-CONNECT.md
Find the brain yourself, preserve my data, and do not create another installation.
Requires Node.js 18+, Git, and local file/command tools. No npm package needed. Details · Validation scope
To open the Dashboard, say: “Open my Loci Dashboard using my existing brain.” Keep its local service running. Saving a reminder does not prove delivery.
One entry, one manual, shared data
LOCI.mdprovides the brain path, startup preference reader and triggers to read the manual.LOCI-RULES.mdcontains the complete operating rules. Read it at first Loci use, reuse while valid, reload after changes or lost context.- Data stays on demand. Tasks, contacts and notes are not loaded at startup. Full project memory lives in its own repository.
- Hooks are an optional delivery mechanism, using the same preference reader as the instruction fallback. They do not create a second rulebook.
Ordinary requests avoid a full manual read; the first Loci operation pays that cost once. Instruction files guide an agent but cannot force model compliance. Architecture and trade-offs · Short entry · Full manual.
Data and privacy
Files stay on your machine and can be backed up, inspected, and moved. Loci does not require a separate cloud memory service. When an agent calls a model, accesses the network, or uses other tools, data handling follows the configuration of that agent and those services. Local storage does not imply fully offline model use.
Loci is an MIT-licensed open-source project. Models and third-party services may have their own charges.
Documentation and contributions
- Full user guide (中文)
- English getting started guide · 中文指南
- AI installation
- Connect a new agent to an existing brain (中文) · Entry, startup map, and rules explained (中文)
- Dashboard · API
- Example brain
- Contributing · MIT License
Report reproducible problems and suggestions in Issues, or submit a pull request.
Explore related projects
Loading…