惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
人人都是产品经理
人人都是产品经理
月光博客
月光博客
V
V2EX
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
V
Visual Studio Blog
宝玉的分享
宝玉的分享
雷峰网
雷峰网
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
博客园 - 聂微东
博客园 - 司徒正美
博客园 - 【当耐特】
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - dgr8akki/engram: Local personal knowledge system...
dgr8akki · 2026-06-14 · via Hacker News - Newest: "AI"

A local-first personal knowledge base with semantic search, built to work natively with Claude Code, Cursor, Antigravity, and Windsurf via MCP.

Everything runs on your machine — no cloud, no API costs, no data leaving your computer.

Features

  • Semantic search — find thoughts by meaning, not keywords
  • MCP integration — Claude Code, Cursor, and Antigravity can read and write your knowledge base mid-conversation
  • Auto-memory hooks — sessions automatically inject recent memories on start and save notes on end
  • Auto-save triggers — say "remember: ..." and your note is saved instantly
  • HTTP REST server — fallback for tools that don't support MCP
  • Dual embedding backends — sentence-transformers (offline) or Ollama

Quick Start

git clone https://github.com/dgr8akki/engram
cd engram
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
./engram init
./engram install

engram install does three things in one shot:

  1. Registers the MCP server for each detected tool
  2. Installs the agent skill (tells LLMs how to use Engram)
  3. Installs session-lifecycle hooks (auto memory read/write)

Then restart your IDE and Engram is active.

CLI Usage

./engram add "GraphQL subscriptions leak memory if you forget to unsubscribe"
./engram add "Prefer useReducer over useState for complex form state" --tags react,patterns
./engram search "memory leak javascript"
./engram list --limit 20
./engram delete 42
./engram stats
./engram -h          # help
./engram -V          # version

AI Tool Usage

Once installed, your AI coding tool can use Engram through natural conversation:

You say What happens
"remember: prefer Zod over Yup for schema validation" Auto-saved immediately
"what do I know about React patterns?" Searches your knowledge base
"show my recent thoughts" Lists last 20 entries
"save this: always check for null before accessing .data" Saved to Engram

Session Memory Hooks

Hooks run automatically at session boundaries — no configuration needed after engram install.

When What happens
Session starts Last 15 memories injected into context
You say "remember: ..." Content saved to Engram before LLM processes the message
Session ends First user message saved as a session record

Multi-Tool Setup

engram install auto-detects and configures:

Tool MCP Config Skill Hooks
Claude Code ~/.claude/settings.json via claude mcp add ~/.claude/skills/engram SessionStart, UserPromptSubmit, Stop
Antigravity CLI ~/.gemini/config/mcp_config.json ~/.gemini/antigravity/skills/engram SessionStart, BeforeAgent, SessionEnd
Cursor ~/.cursor/mcp.json ~/.cursor/skills/engram sessionStart, beforeSubmitPrompt, sessionEnd
Windsurf ~/.codeium/windsurf/mcp.json ~/.windsurf/skills/engram pre_user_prompt, post_cascade_response_with_transcript

HTTP Server

For tools without MCP support:

./engram serve                   # start on http://127.0.0.1:7823
./engram autostart install       # start automatically at login (macOS LaunchAgent)
./engram autostart remove        # disable autostart
./engram autostart status        # check if running
Endpoint Description
GET /thoughts?limit=20 List recent thoughts
GET /thoughts/search?q=... Semantic search
POST /thoughts Save a thought {"content": "...", "tags": "..."}
GET /thoughts/{id} Get by ID
DELETE /thoughts/{id} Delete by ID
GET /stats Statistics

Configuration

Edit config.yaml to customise behaviour:

embeddings:
  backend: "sentence-transformers"   # or "ollama"
  model: "sentence-transformers/all-MiniLM-L6-v2"
  dimensions: 384
  device: "cpu"                      # or "cuda"

  # Ollama (when backend: "ollama")
  ollama_url: "http://localhost:11434"
  ollama_model: "nomic-embed-text"
  ollama_dimensions: 768

search:
  default_limit: 10
  similarity_threshold: 0.3

http:
  host: "127.0.0.1"
  port: 7823

Switch to Ollama if you already have it running — no model download needed and better quality embeddings.

Troubleshooting

sqlite-vec install fails — use system Python or Homebrew Python instead of pyenv:

brew install python
/opt/homebrew/bin/python3 -m venv venv

MCP server not appearing — run claude mcp list (Claude Code) or check your tool's MCP config. Make sure paths are absolute. Restart the IDE.

Hooks not firing — confirm with engram install -v that hooks were written. For Claude Code, check ~/.claude/settings.json for a hooks block.

Empty search results — lower the threshold: engram search "query" --threshold 0.1