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

推荐订阅源

罗磊的独立博客
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
U
Unit 42
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
腾讯CDC
I
InfoQ
GbyAI
GbyAI
博客园_首页

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - AronDaron/dataset-generator: No-code desktop app for generating high-quality synthetic datasets to fine-tune LLMs — plan-then-execute pipeline, LLM-as-judge, HuggingFace upload. GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace
GitHub - nevenkordic/localmind: Run any local LLM with pe...
yotta25 · 2026-04-17 · via Hacker News - Newest: "LLM"

Run any local LLM with persistent memory.

localmind REPL banner

What it is

A single CLI binary (llm) that turns an Ollama-served model into an interactive agent with long-term memory, learnable skills, and permissioned tools. Everything runs on your machine — no cloud, no telemetry, no dependencies beyond Ollama.

What it does

  • Talk to any local chat / vision / embedding model Ollama has installed.
  • Remember what you tell it across sessions. Facts, decisions, skills, embeddings — all in one SQLite file you can back up or move.
  • Recall relevant prior context automatically at the start of every turn.
  • Read files, PDFs, docx, xlsx, images. Describe images with vision models.
  • Run shell, networking, and web tools with per-call permission prompts and a hard credential deny-list.

How it works

you type  ─►  auto-extract facts  ─►  hybrid recall  ─►  agent loop  ─►  streamed reply
                    │                      │                 │
                    ▼                      ▼                 ▼
              SQLite memory.db       BM25 + vector ANN    tool calls
  1. Auto-extract. A regex catches obvious directives (my name is X, call me X, remember X) before the model sees the turn. Stored regardless of whether the model would have called store_memory.
  2. Recall. Hybrid search (BM25 + vector, fused) over past memories is run concurrently, and the top hits are injected as a system message. BM25 and the embed round-trip execute in parallel so recall latency is the slower of the two, not the sum. Trivial turns (hi, ok, thanks) skip recall entirely.
  3. Agent loop. The model sees tool specs and may call read_file, shell, web_fetch, store_memory, etc. Side-effecting tools are gated by the permission mode and / or prompt before running.
  4. Streamed reply. Tokens are printed as they're generated — no long "thinking…" pause before the wall of text drops.
  5. Persistence. New facts, skills, and conversation summaries are written back to SQLite and embedded in the background.

Features

  • Portable memory. Single SQLite file, llm backup / llm restore copy it cleanly between machines. No re-teaching.
  • Hybrid recall. BM25 + vector ANN via sqlite-vec, fused with temporal decay. Falls back to pure BM25 with one config flag.
  • Learnable skills. Tell it "from now on when X, do Y" — stored as a kind="skill" memory, surfaced automatically on matching turns.
  • Safe-by-default tools. Workspace-confined writes, SSRF guard on web_fetch and whois, destructive-pattern detection on shell, credential deny-list that's always on.
  • Interactive permission grants. When the model wants to write / run something it isn't pre-approved for, you get a prompt: [y]es [a]lways this session [f]orever [n]o [e]dit(reason). Pick forever and the grant is saved to your config (comment-preserving toml_edit — other settings untouched) so the next session starts already pre-approved. No manual config editing required.
  • Streaming responses. Tokens appear in real time.
  • Fast repeat turns. keep_alive: 30m stops Ollama from unloading the model between turns; no cold-load per message.
  • Cascade router. Optional two-model setup: short / chatty turns run on a small fast_model (e.g. qwen2.5-coder:3b, ~50 tok/s), code-heavy or long turns route to the configured chat_model. /retry-big manually escalates the last turn when the router picked wrong.
  • Self-updating. Daily background check for a newer release; llm update re-runs the installer in place.
  • Model picker. llm models lists installed Ollama models and lets you set chat / vision / embed non-interactively or via a picker.
  • Inspectable. llm health reports DB, embedder, and Ollama state. /recall <q>, /context, /audit expose what the model is actually seeing. JSONL audit log of every tool call.

Install

One-liner (macOS arm64, Linux x86_64/arm64). Downloads the latest release binary, verifies SHA256, installs to ~/.local/bin/llm, installs Ollama (headless CLI via Homebrew on macOS, official installer on Linux), starts the server, and pulls the default chat + embed models:

curl -fsSL https://raw.githubusercontent.com/nevenkordic/localmind/main/install.sh | sh

Environment overrides:

var default what
LOCALMIND_INSTALL_DIR $HOME/.local/bin install target (auto-added to PATH)
LOCALMIND_VERSION latest pin a release tag
LOCALMIND_CHAT_MODEL qwen2.5-coder:3b chat model the installer pulls (1.9 GB, fast)
LOCALMIND_EMBED_MODEL nomic-embed-text embed model the installer pulls
LOCALMIND_OLLAMA_GUI=1 install the full Ollama.app (macOS cask)
LOCALMIND_SKIP_OLLAMA=1 don't install or start Ollama
LOCALMIND_SKIP_MODELS=1 don't pull models (saves ~5 GB on metered)

Build from source (Intel Mac / Windows, or if you don't want the release binary):

git clone https://github.com/nevenkordic/localmind
cd localmind
./scripts/install.sh        # macOS / Linux
.\scripts\install.ps1       # Windows

Use

llm                         # interactive REPL
llm ask "fix the failing test"
llm health                  # DB stats, Ollama reachability, recall config
llm memory search "deploy procedure"
llm memory search "deploy procedure" --bm25    # skip embedding (fast)
llm models                  # pick chat / vision / embed models
llm backup [<path>]         # copy memory DB to a file
llm restore <path>          # replace memory DB from a backup
llm update                  # grab a newer release

REPL slash commands:

/help    /quit    /init    /stats    /health    /audit
/config  /tools   /mode    /model
/skills  /forget <id>  /remember <fact>
/recall <query>  /context

Configure

cp config/config.example.toml config/local.toml

Common knobs in config/local.toml:

[ollama]
chat_model capable model — used for code / tools / long prompts
fast_model optional small model for short/chatty turns (cascade)
embed_model for the memory index
num_ctx per-reply token budget (default 8192)
keep_alive how long Ollama holds the model in RAM (default 30m)
[memory]
vector_search false = pure BM25 recall, ~10× faster
expansion_variants LLM query paraphrasings (default 0)
bm25_weight / vector_weight fusion weights
[tools]
mode read-only / workspace-write / unrestricted
workspace_root confines writes to a directory tree
deny_globs extra paths to refuse
[web]
brave_api_key enables web_search
block_private_addrs refuse fetches to RFC1918 / metadata IPs

Env vars override: LOCALMIND_CHAT_MODEL, LOCALMIND_DB_PATH, BRAVE_API_KEY, LOCALMIND_NO_UPDATE_CHECK, etc.

Permission modes

read-only          no writes, no shell mutations, no outbound network
workspace-write    writes confined to workspace_root; shell/web prompt
unrestricted       prompts only; no extra guard-rails

Switch mid-session with /mode <ro|ww|full>. Default in [tools].mode.

Backup / move to another machine

The memory DB is a single SQLite file — everything the agent knows lives there.

llm backup                          # ~/localmind-backup-YYYYMMDD-HHMMSS.db
llm backup /path/to/somewhere.db    # explicit destination

# On the other machine:
llm restore /path/to/somewhere.db   # prompts y/N before overwriting

backup uses SQLite's VACUUM INTO — safe while localmind is running. restore keeps your previous DB at memory.db.bak-YYYYMMDD-HHMMSS so repeat restores never clobber each other's rollback points.

Update

localmind checks GitHub for a newer release once every 24 hours (background, non-blocking). When one is available, you see this at startup:

↑ v0.2.0 available (you have 0.1.6) — run 'llm update' to upgrade

Then:

llm update            # re-runs install.sh
llm update --force    # reinstall even when on latest

Disable with [updates] check = false or LOCALMIND_NO_UPDATE_CHECK=1.

Uninstall

curl -fsSL https://raw.githubusercontent.com/nevenkordic/localmind/main/uninstall.sh | sh

Removes the binary and strips the PATH line. Your memory DB and audit log are kept. Opt-in flags: LOCALMIND_PURGE_DATA=1 wipes the memory DB; LOCALMIND_PURGE_MODELS=1 runs ollama rm on the default models. Ollama itself is never removed.

Where things live

~/Library/Application Support/com.calligoit.localmind/   macOS
~/.local/share/localmind/                                Linux
%LOCALAPPDATA%\localmind\                                Windows
  ├── memory.db       facts, skills, embeddings, KG
  ├── audit.log       JSONL log of every tool call
  └── history.txt     REPL history (mode 0600 on Unix)

llm health prints the resolved paths.

Development

cargo test                 # unit + smoke + e2e
bash scripts/preflight.sh  # full pre-ship verification
cargo build --release      # binary at target/release/llm

License

MIT — see LICENSE.