Forgememo Cli
БесплатноНе проверенSilent memory layer for AI coding agents — captures tool usage, distills insights, injects context
Описание
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)
Установить Forgememo Cli в Claude Desktop, Claude Code, Cursor
unyly install forgememo-cliСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add forgememo-cli -- npx -y forgememo-cliFAQ
Forgememo Cli MCP бесплатный?
Да, Forgememo Cli MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Forgememo Cli?
Нет, Forgememo Cli работает без API-ключей и переменных окружения.
Forgememo Cli — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Forgememo Cli в Claude Desktop, Claude Code или Cursor?
Открой Forgememo Cli на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: 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
автор: xuzexin-hzCompare Forgememo Cli with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
