Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Inject and manage personas across AI CLIs with persistent memory and consistent behavior.
Jump to setup instructionsFetched from the repository for this visit.
| English | 日本語 |
|---|
Inject a unified AI persona with persistent memory into any coding CLI.
Relic manages AI Engrams (memory + personality) and injects them across coding assistants like Claude Code, Codex CLI, and Gemini CLI. It also integrates with OpenClaw and other Claw-based agent frameworks. One persona, shared across any shell.
npm install -g @ectplsm/relic
relic init
# → Prompts: "Set a default Engram? (press Enter for "rebel", or enter ID, or "n" to skip):"
relic list # List available Engrams
relic config default-engram commander # (Optional) Set your default Engram
Relic ships with two sample Engrams:
Try both to feel how persona injection changes the experience. For creating your own, see docs/engram-guide.md.
Register the MCP server so the Construct can search past conversations and distill memories. Pick your shell:
Claude Code:
claude mcp add --scope user relic -- relic-mcp
Codex CLI:
codex mcp add relic -- relic-mcp
Gemini CLI — add this to ~/.gemini/settings.json:
{
"mcpServers": {
"relic": {
"command": "relic-mcp",
"trust": true
}
}
}
For shell setup, approvals, and memory flow, see docs/integration-and-memory.md.
Claude Code:
relic claude
# Example with an explicit Engram
relic claude --engram commander
Codex CLI:
relic codex
Gemini CLI:
relic gemini
As you use a Construct, conversation logs are automatically saved to archive.md by background hooks. To distill these into lasting memory, periodically tell the Construct:
"Organize my memories"
The Construct will review recent conversations, group them by the actual dates recorded in archive.md, extract key facts and decisions into the matching memory/*.md files, promote important long-term insights to MEMORY.md, and update your preferences in USER.md. These distilled memories are then loaded into future sessions automatically.
For install, expanded quick start, workspace layout, and sample Engrams, see docs/getting-started.md.
For logging, shell setup, approvals, and memory flow, see docs/integration-and-memory.md.
If you are upgrading from an older Relic version, see docs/migration.md for sample replacement, metadata migration, and cleanup steps.
+--------------+ +--------------+ +--------------+
| Mikoshi | | Relic | | Shell |
| (backend) | | (injector) | | (AI CLI) |
+--------------+ +--------------+ +--------------+
^ | |
| sync full Engram |
| | |
| compose & inject |
| v v
| ╔═══════════╗ +---------+
+------------║ Engram ║--------->|Construct|
| ║ (persona) ║ | (live) |
| ╚═══════════╝ +---------+
| SOUL.md claude / codex / gemini
| IDENTITY.md |
| USER.md | hooks append logs
| MEMORY.md |
| memory/*.md v
| +-----------+
push / |archive.md |
pull / | raw logs |
sync +-----------+
| |
v MCP recall | user-triggered
+-----------+ search/pending | distillation
| OpenClaw | v
| & Claws | +-----------+
+-----------+ | distilled |
|memory/*.md|
+-----------+
|
promote key
insights
v
MEMORY.md / USER.md
For the full system model and domain terms, see docs/concepts.md.
Relic supports Claude Code, Codex CLI, and Gemini CLI.
Background hooks append raw conversation logs to archive.md, and the MCP server handles archive search and memory distillation.
For shell compatibility, hook behavior, setup, approvals, prompt inclusion, and distillation flow, see docs/integration-and-memory.md.
Relic can push, pull, and sync Engrams with OpenClaw and other Claw-based frameworks.
The default rule is Agent Name = Engram ID, and relic claw handles persona transfer plus memory sync.
For command details, overwrite behavior, and the behavior matrix, see docs/claw-integration.md.
For Engram creation, the smoothest path is to use your LLM with the relic_engram_create MCP tool. If you prefer the CLI, use relic create.
For LLM-assisted creation, persona authoring, template examples, and deletion rules, see docs/engram-guide.md.
Relic can push plaintext persona files and (end-to-end) encrypted memory files to Mikoshi, so you can keep Engrams in the cloud and move them across machines without turning Mikoshi into your authoring source of truth.
This includes avatar-aware persona push/pull: local image paths and external https:// avatar URLs can be snapshotted into Mikoshi-managed storage during relic mikoshi push.
For setup, API key configuration, persona push/pull, encrypted memory sync, and the recommended command flow, see docs/mikoshi.md.
Relic stores its runtime defaults in ~/.relic/config.json.
Use relic config to manage the default Engram, Claw path, memory window, and distillation batch size.
For command examples and precedence rules, see docs/configuration.md.
Upcoming milestones that shape where Relic is heading:
MEMORY.md down into episodic, semantic, and procedural memory so the Construct can recall the right kind of knowledge at the right time.We welcome contributions! To set up the project locally for development:
git clone https://github.com/ectplsm/relic.git
cd relic
npm install
npm run build: Compile TypeScript into the dist/ directory.npm run typecheck: Run the TypeScript compiler without emitting files.npm run dev:cli: Run the CLI in development mode (using tsx).npm run dev:mcp: Run the MCP server in development mode (using tsx).npm run release:prepare -- <version>: Generate release notes, validate the package, create and push the version commit and annotated tag, then create a draft GitHub Release. Codex generates the notes by default; use --no-ai-notes, --notes-file <path>, or --dry-run when needed.gh workflow run release.yml --ref main -f tag=v<version> to publish the package and GitHub Release. Before the first release, create a protected GitHub Environment named npm: restrict deployment branches to main, limit required reviewers to trusted release maintainers, and disable administrator bypass. Then configure npm Trusted Publishing for ectplsm/relic, workflow release.yml, environment npm, with direct publishing enabled. No long-lived npm token is used.Before contributing, please read CLAUDE.md for strict coding conventions, parent documents, and PR rules.
This project is licensed under the MIT License - see the LICENCE.md file for details.
GitHub checked 208h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.