Forgememo Cli
FreeNot checkedSilent memory layer for AI coding agents — captures tool usage, distills insights, injects context
About
Silent memory layer for AI coding agents — captures tool usage, distills insights, injects context
README
Silent background daemon and CLI that captures agent tool usage, distills engineering principles, and automatically injects relevant context into future sessions.
Codebase Architecture
┌────────────────────────────────────────────────────────┐
│ AI Coding Agent (Client) │
│ (Claude Code, Gemini CLI, Codex, OpenCode) │
└───────────────────────────┬────────────────────────────┘
│
Hook Events │ MCP StdIO (Tools)
(Tool Use, Prompts) │ (get_principles, search)
▼
┌────────────────────────────────────────────────────────┐
│ forgememo CLI / IPC │
│ (cmd/cli.go, cmd/hook.go) │
└───────────────────────────┬────────────────────────────┘
│
│ IPC Socket / Named Pipe
▼
┌────────────────────────────────────────────────────────┐
│ forgememo Daemon │
│ (cmd/daemon.go) │
├───────────────────────────┼────────────────────────────┤
│ internal/scanner/ │ internal/distill/ │
│ Agent detection │ Inference engine │
├───────────────────────────┼────────────────────────────┤
│ internal/ipc/ │ internal/mcp/ │
│ Connection listener │ Model Context Protocol │
└───────────────────────────┬────────────────────────────┘
│
▼
┌───────────────────────┐
│ SQLite DB │
│ (internal/db/db.go) │
│ events & principles │
└───────────────────────┘
Directory Structure
cmd/: CLI commands, hooks, daemon entrypoints.internal/:agent/: Adapters for agent hook and skill configurations.config/: Configuration handling (~/.forge/config).db/: SQLite connection, migrations, CRUD logic, FTS5 indexes.distill/: LLM distillation pipeline (mines raw logs to extract principles).ipc/: Unix domain socket (POSIX) and named pipe (Windows) communication.mcp/: MCP server implementation exposing memory tools.scanner/: Auto-detection routines for active agent directories.service/: Service manager (launchd/systemd/Windows scheduled tasks).
skills/: Prompt and integration files loaded by agents.npm/: Node package wrapper.payment/: Payment server (auth, Stripe checkout, credits).
Quick Install
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/intelogroup/forgememory-cli/main/install.sh | sh
# Windows
irm https://raw.githubusercontent.com/intelogroup/forgememory-cli/main/install.ps1 | iex
Quick Start
forgememo init # Detect agents and set up hooks
forgememo start # Start background daemon
forgememo status # Check daemon and memory health
Documentation Reference
Configuration Precedence & Caching
Configuration is loaded using the following precedence (highest priority first):
- Environment Variables:
FORGE_PROVIDER,FORGE_API_KEY,FORGE_MODEL,FORGE_BASE_URL(Warning: The background daemon parses only~/.forge/configat startup). - Project Local Config:
.forge/config.local(private/gitignored) and.forge/config(committed to repo). - Global Config:
~/.forge/config(managed viaforge config).
[!NOTE] The background daemon caches configuration at startup. You must run
forge stop && forge startto apply new configuration changes.
Distillation Threshold
To maintain high-quality principles and avoid noise, the distillation engine requires 3+ semantically related events or a completed session boundary before extracting principles. If forge distill returns 0 principles while events remain queued, this is normal behavior indicating the cluster density threshold was not met.
Supported Providers
Supported providers include:
forgememo/openai/anthropic/groq/nvidia/ollamaopenrouter(URL:https://openrouter.ai/api/v1)antigravity(Gemini CLI backend)
Install Forgememo Cli in Claude Desktop, Claude Code & Cursor
unyly install forgememo-cliInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add forgememo-cli -- npx -y forgememo-cliFAQ
Is Forgememo Cli MCP free?
Yes, Forgememo Cli MCP is free — one-click install via Unyly at no cost.
Does Forgememo Cli need an API key?
No, Forgememo Cli runs without API keys or environment variables.
Is Forgememo Cli hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Forgememo Cli in Claude Desktop, Claude Code or Cursor?
Open Forgememo Cli on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Forgememo Cli with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
