Haldwani Times
Haldwani Times
Technology

mindforge-memory 6.7.5

mindforge-memory 6.7.5
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version mindforge-memory 6.7.5 AI Agent 终身记忆系统 - 四层记忆架构 · 知识图谱 · 多模态支持

pip install mindforge-memory==6.7.5 Copy PIP instructions

A local-first, production-grade memory system for AI agents.

Maintainer — Gu Fengyu (顾冯雨), born 2008-01-10 · GitHub: opok-ops · 抖音: shidianduo3116 · 小红书: 4406811524 · Feedback: 2638895480@qq.com

MindForge gives AI agents a persistent, structured long-term memory: a four-tier lifecycle model, knowledge graphs, hybrid retrieval, end-to-end encryption, and MCP / CLI / REST interfaces. All data stays on your machine.

The story — one developer, eight months, from v1.0 (March 2026) to v6.7.5: no team, no funding, 1,613 tests in the suite. Read the journey →

Timeline note (v6.6.0): "seven months" counts from project start (2026-03, pre-git prototyping era). Git history begins 2026-07-17 with the v5.7.x repository consolidation — earlier code lived outside this repo. The 416+ commits reflect consolidated history only.

English · 中文文档 · Live Demo · Documentation · Discussions

Agent memory solutions that rely on cloud backends introduce latency, cost, and privacy trade-offs. MindForge takes the opposite approach: memory is computed and stored locally, encrypted at rest, and exposed through standard interfaces your existing agents already speak.

Key design decisions:

Local-first. No cloud dependency. Storage runs on SQLite + FTS5 with WAL, a single file that moves with you.

Structured memory. Four tiers (sensory, short-term, long-term, permanent) with promotion and decay driven by the Ebbinghaus forgetting curve.

Retrieval quality. Six complementary retrieval paths fused into one ranked result, instead of a single vector index.

Encryption by default. AES-256-GCM at rest with PBKDF2 key derivation; encrypted backups you can export and trust.

Open interfaces. MCP server (90 tools), Python SDK, CLI with shell completion, and a REST API for non-Python consumers.

Install from source, then start writing and reading memories in minutes:

git clone https://github.com/opok-ops/MindForge.git cd MindForge pip install -e . # zero ML deps: 3-path retrieval (TF-IDF + FTS5 + fuzzy) pip install -e ".[embedding]" # + vector path → full 6-way hybrid retrieval Without the embedding extra, MindForge runs in zero-dependency mode — fully functional, but paraphrased queries may go unrecalled (no semantic path). With it, a small sentence-transformers model downloads on first vector search.

from mindforge import MindForge m = MindForge(db_path="./data/memory.db", encrypted=False) m.add("User prefers type-hinted Python code", category="preferences", importance="HIGH") result = m.search("coding preferences") print(result.chunks[0].content) CLI:

MindForge add "User likes cats" --category preferences --importance HIGH MindForge search "what does user like" MindForge stats Benchmark Suite (v6.7.0, mindforge.bench)

Open standardized evaluation pipeline for agent memory systems — three-stage decoupled design: Backend (retrieval) → Answerer (generation) → Judge (scoring). MindForge is just one built-in backend; any system implementing the BaseBackend protocol (add/search) competes on equal footing.

# Zero-cost pipeline: no API key needed, reproducible MindForge-bench run # smoke set (12 zh questions) MindForge-bench run --backend context_window # bare context-window baseline MindForge-bench report out1.json out2.json --out cmp.md # comparison table # Full pipeline (same protocol as the 58.4% LoCoMo full-suite report) MindForge-bench run --dataset locomo --data locomo10.json \ --judge llm --answerer llm --judge-api-key sk-xxx Datasets: built-in zh smoke set (12 questions, singlehop/multihop/temporal) + LoCoMo loader (1,986 questions / 10 conversations; category map aligned bucket-by-bucket with the v6.5.12 full-suite report). LoCoMo data file not bundled — download from snap-research/locomo.

Judges: deterministic (keyword / gold-substring matching, zero cost) and llm (1–10 score, ≥9 = correct — the exact protocol of the 58.4% full-suite report).

Guardrails: per-conversation isolated memory stores; answerer never touches gold answers (interface-level leak prevention); judge failures are counted explicitly in reports, never silently dropped.

Scale & Quality Benchmarks (v6.4.9, measured)

Ten-million-character library, millisecond-class across all query types (v6.4.9): pathological 218→0.4ms (−99.8%), mixed 143→3.0ms (−98%), rare 6.8ms, combined 17.8ms (100k full-pipeline, clean environment). The last bottleneck — FTS5 high-frequency-phrase bm25 scoring — is now pruned query-side via trigram-df pre-check (df upper bound = min trigram df, pruned at 5% corpus size, symmetric to the TF-IDF max_df design; df served from an in-process cache — fts5vocab is a streaming virtual table, per-term probes scan it fully).

Index-blindness fix (v6.4.8): TF-IDF vocabulary was locked to the first 5 documents since v6.4.6 — incremental adds indexed as empty vectors (TF-IDF effectively half-dead; previous numbers carried by FTS5/fuzzy). Fixed with incremental vocabulary growth; all pipeline numbers above are now true full-pipeline measurements.

Retrieval quality (fixed-seed, benchmarks/quality_bench.py, 2k entries): needle Recall@1 = 1.0, MRR = 1.0, topic Recall@1 = 1.0, noise false-recall = 0.

LoCoMo full-suite, LLM-judged (v6.6.0, 2026-11-13): 1,986 questions across all 10 conversations — 51.5% accuracy (≥9/10 judge score), 2.13× over the 24.2% pre-assembly baseline; cross-validated by two independent judges (DeepSeek 51.5% / Kimi K3.1 52.72%, Δ1.2pt); excluding the adversarial "should-refuse" bucket, 43.05% (663/1540). Per-bucket: adversarial 93.9%, single-hop 57.8%, multi-hop 25.2%, temporal 9.6%, open-domain 10.4% — temporal evidence recall and two-hop chain retrieval are the named v6.6 targets. Data: benchmarks/results/, judge pipeline in benchmarks/.

LongMemEval — interface ready, not yet run (requires external LLM API key).

TF-IDF degraded mode process memory at 100k: ~700 MB. Index LRU cap: 100,000 docs (MINDFORGE_INDEX_MAX_DOCS).

v6.1.3 – v6.6.3 shipped in two weeks (2026-11-01 → 11-17), guarded by 1,400+ tests.

v6.6.3 — ultimate bug-fix pack + retrieval enhancement for the named v6.6 targets (2026-11-17). Three externally-found must-fix stability bugs closed (daemon dies on any invalid-UTF-8 input line — strict→replace decoding; REST double HTTP response after 413; lone-surrogate crash in the encrypted write path), plus rekey race honest-error and daemon error-dict forwarding. Temporal parsing overhauled: year-month queries (2024年5月 / 2024-05) no longer parse to None (full-month window now), English month-name dates (17 July 2023 / May 2023) parsed and matched on the evidence side, N-quantity windows actually multiply (two weeks ago had a 2-day window since v6.5.7), weekday expressions (last Wednesday / 上周三) resolved precisely, and Chinese phrases now flow through assembly-layer normalization. New retrieval layer (zero LLM, all rule-based): search_chain (hop1 evidence → entity extraction → hop2, the structural fix behind the multi-hop 25.2% bucket), path-aware graph retrieval (A-B shortest-path bridge evidence at 0.65), decompose_two_hop rule split, and search_broad open-domain entry. 40 new contract tests (tests/test_v663_fixes.py, test_v663_bench_header.py); full suite 1,481 green. LoCoMo re-judge pending an external API key.

v6.6.0 — security fix pack from dual-judge external review (2026-11-14). Qwen4-Max (Doubao) and Kimi K3.1 independently reviewed the codebase; their overlapping findings became this release. (1) GDPR erasure completed: gdpr_erase_all now cascades to 17 tables — added knowledge_graph entities, memory_snapshots, memory_templates, and the four drama_* creation-content tables that previously survived erasure (the "right to be forgotten" had a real gap). (2) Legacy key-file verification fixed: v5.5-era key files (no verify_blob) previously accepted any password during rekey — a wrong old password could rewrite the key file and orphan all data. Rekey now probe-decrypts a real ciphertext from the store; empty stores fall back to the old behavior. (3) KDF cost floor: KDFParams.from_dict rejects tampered parameters (PBKDF2 < 60k, scrypt N < 4096) that would downgrade brute-force cost — key files and ciphertext headers are attacker-visible input. (4) Compression × encryption unblocked: compress_memories previously raised SecurityError on encrypted stores, making the two flagship features mutually exclusive by default. Compression now hydrates its TF-IDF index via the same in-memory decryption path as fuzzy_search (_plaintext_for_index) — plaintext never touches disk or FTS5. (5) Interface matrix completed: REST gains /api/gdpr/report, /api/gdpr/export, /api/gdpr/erase (confirm=true required), /api/compress, /api/compressions; MCP gains gdpr_report, gdpr_erase (confirm required), memory_compress — 87→90 tools, all three interfaces now expose the full governance surface. (6) Honesty fixes: README previously claimed "six-way hybrid search"; the actual retrieval count is four (vector/FTS5/TF-IDF/fuzzy) — wording corrected, and the cross-encoder/heuristic distinction is now explicit. LoCoMo full-suite results (51.5%, dual-judge) added to the benchmarks section. 7+ new contract tests (tests/test_v656_security.py).

v6.4.9 — ten-million-char library at millisecond latency: FTS5 high-frequency-phrase scoring pruned (2026-11-11). The last honest bottleneck from v6.4.8's ledger. Root cause (30k per-path timing): under the trigram tokenizer, corpus-wide phrases (template data's "陈述性记忆") match every row — bm25 full-match scoring cost 50.5ms/query, the dominant remainder of 100k mixed latency. Fix, query-side df pre-pruning symmetric to TF-IDF max_df: a phrase's df upper bound = min df of its trigrams (phrase matches ⊆ every trigram's row set); prune at 5% of corpus size; keep the lowest-ub phrase if all pruned. df is served from an in-process cache keyed by max(rowid) (add/update invalidate; hard-delete leaves df slightly stale = prunes more conservatively) — two real pitfalls found en route: fts5vocab is a streaming virtual table — per-term probes AND IN batches trigger full scans (combined regressed 17→45ms before the cache). Plus: FTS5 path skipped on pathological fallback (no discriminating signal). Clean-environment 100k re-bench: pathological 122→0.4ms (−99.7%), mixed 134.9→3.0ms (−98%), all query types millisecond-class at ~10M chars. AI-flavored comment cleanup (essay-style docstrings → engineer-speak, info preserved). 5 new guards.

v6.4.8 — pathological query path & index-blindness fix: O(N) fallback eliminated, TF-IDF actually indexing (2026-11-11). Two deeper findings beyond the v6.4.6 stress test: (1) the all-common-word fallback traversed all inverted chains at full length (O(N×dims), 209ms p50 at 100k), and the 0.5×N max_df threshold still let half-corpus chains into the active set; (2) the TF-IDF vocabulary had been locked to the first 5 documents — every incremental add after that indexed as an empty vector (the TF-IDF path was effectively half-dead since v6.4.6; published numbers were carried by FTS5/fuzzy). Fix, six cuts: max_df tightened 0.5×N→0.05×N; fallback semantics → shortest-chain-first (≤3 dims, per-chain cap 5,000, islice); fuzzy candidate budget (SQL cap 2,000 with exact-substring-first ordering); fuzzy gating (runs only on zero TF-IDF hits — the true typo-correction scenario; encrypted mode unaffected); incremental_fit() vocabulary growth for adds after fit (old vectors not recomputed — new tokens contribute zero on old docs mathematically); empty-query fallback-signal reset. 30k repro: pathological steady-state 3825→4.0ms (−99.9%), mixed pipeline 1607→1.2ms, fuzzy single-path −93%. 100k re-bench: pathological −44%, all numbers now true full-pipeline. Remaining bottleneck honestly documented: FTS5 high-frequency-phrase scoring (v6.5). New observable _last_traversed + deterministic budget contracts. 9 new guards.

v6.4.6 — scale validation & retrieval benchmarks (2026-11-10). First 100,000-entry stress test: add throughput ~600/s (linear), ~98MB db, memory peak ~700MB (TF-IDF degraded mode), search p50 7.4ms (rare token, −92% vs pre-fix) / 143ms (realistic mixed); pathological all-common query 421→218ms (−48%). Fixed a real bottleneck found by the stress test: Chinese long-query p50 was 421ms — profile showed low-IDF common words degenerating the inverted index into full-corpus scans. Fix: two-tier pruning (relative-eps + standard IR max_df stop-wording for df > 0.5×N) + heapq.nlargest; pathological all-common-word queries (synthetic-template data only) honestly documented as known O(N) characteristic, realistic queries verified unaffected (8k A/B, 30k side-by-side: 43ms mixed vs 86ms pathological). Shipped reproducible benchmarks (benchmarks/scale_bench.py, benchmarks/quality_bench.py): needle Recall@1 = 1.0 / MRR = 1.0, zero noise false-recall. Full LLM-judged benchmarks (LoCoMo/LongMemEval) deferred — needs external LLM API key. 7 new guards.

v6.4.5 — audit-driven fixes (2026-11-10; v6.4.4 skipped by maintainer decision). Two inverse doc-code inconsistencies (v6.4.3 fixed "claimed but not done"; this one fixes "done but not tracked"): connectors.py outgoing HTTP User-Agent was hardcoded MindForge-Connector/5.8.9 — lying about the version to every target site since the 5.8.9 era (event_bus.py fixed the same disease in v5.6.8; this one slipped through). Now dynamic from the single version truth. Website "core modules" count was stale (17 in prose, 15 in stat card, 31 measured) — both fixed to the measured 31; MCP tool count 87 verified exact, untouched. Audit archive (not a defect): WAL auto-checkpoint verified healthy under daemon-like load — 4 rounds × 400 mixed ops, WAL converged at ~4.1MB (default 1000-page threshold), TRUNCATE resets to zero. 5 new guards in tests/test_v645_fixes.py.

v6.4.3 — documentation-code consistency fix (2026-11-10). Pre-release audit found that v6.4.2's claimed first cut — WAL + synchronous=NORMAL — never landed in code: _get_conn() set only journal_mode=WAL, leaving synchronous at SQLite's default FULL. The 2.1× search gain was real, but carried entirely by the other four cuts — real numbers, misattributed cause. This release adds PRAGMA synchronous=NORMAL on the WAL branch (per-connection, cross-thread; network-FS DELETE fallback stays FULL by design). Same-machine A/B on SSD shows no statistically significant latency delta (search p50 1.8 → 1.8ms — fsync is ~0.1ms-scale here); the benefit targets slow disks and IO-saturated containers, and more importantly makes the documented power-loss semantics (un-checkpointed access counts / search audits may be lost; compliance audits still commit immediately) actually hold. 4 new guard tests in tests/test_v643_fixes.py.

v6.4.2 — tens-of-thousands-chars latency: another 2× (2026-11-09). Same-machine A/B benchmark (400 memories / ~47k chars, 3 runs each): search p50 6.3→3.0ms (2.1×), p95 11.7→4.2ms (2.8×); 24k-char library p50 2.5ms; fast machine state 1.8ms. Five surgical cuts: WAL + synchronous=NORMAL (commits skip per-write fsync), enum-downgrade memo, row.keys() set reuse, first-visit access-count batching merged into one flush_access() transaction per search, and search-audit INSERT folded into the same commit. The v5.6.3 throttle contract and v5.5.4 recently_accessed semantics are pinned by 23 contract tests — all green. Compliance-grade audits still commit immediately. (Note: the synchronous=NORMAL cut landed in v6.4.3 — see above.)

v6.4.1 — million-character millisecond search (2026-11-09). Scale benchmark (8,000 memories / ~990k chars) exposed a fuzzy-fallback long tail: search p95 881ms. Root causes: SequenceMatcher wasted on mathematically-impossible matches (ratio = 2M/(m+n), M ≤ m, so n ≥ 4m can never pass 0.4) + a ~50μs/entry Python full-scan tax. Fixed with a math-capped prune + SQLite-level candidate pre-filtering: search p95 881→30.7ms (28×), add p50 2.6ms flat at 10k-scale. New scripts/bench_scale.py + CI scale guard (3000 memories, millisecond contract) + 4 behavior-level regression tests pin the semantics.

v6.4.0 — resident daemon & performance guards (2026-11-08). New mindforge daemon subcommand: line-JSON over stdio, engine resident in a long-lived process — per-request p50 2.5ms vs 400–700ms for CLI subprocess spawning (two orders of magnitude; 2026-11-09 quiet-machine re-bench: 2.5ms vs 401ms p50, ~160×). CI now guards latency (engine in-process thresholds) and daemon 13-step E2E alongside the 16-step CLI E2E guard.

v6.3.6 — E2E-verified fixes (2026-11-07). Found by real-bridge E2E testing of dsh-mindforge v3.0: compression TF-IDF index was never hydrated on real stores (compress always reported 0 clusters — now hydrated from storage), four v6.3.5 commands ignored --json (fixed), adaptive_search leaked session_id into privacy access control (INTERNAL memories always rejected — permanently empty results, now separated), and key_file="" misdetected as encryption. Tests 1210 → 1219.

v6.3.5 — Memory compression & adaptive context (2026-11-07). Two new capabilities: MemoryCompressor clusters near-duplicate memories (TF-IDF cosine), replaces them with a searchable summary, and restores originals on decompress — compressed sources stop appearing in every retrieval path; STRICT memories never participate. AdaptiveContextEngine tracks per-session query patterns and dynamically adjusts the relevance threshold (exploration mode lowers it, focus mode raises it, always bounded). Facade methods + four new CLI commands (compress, compress-list, decompress, adaptive-search). Also fixes a P0-class integration issue in the draft compression write path (raw SQL bypassing FTS/embedding/audit — including a plaintext-into-encrypted-store flaw) and a ZeroDivisionError in keyword search.

v6.3.2 — Explain everywhere (2026-11-06). Retrieval explainability, previously CLI/Python-only, is now aligned across all three interfaces: MCP memory_search gains an explain parameter and REST /api/search accepts ?explain=1 — per-result score breakdowns (per-path scores, winner, fusion details) everywhere, zero overhead and byte-identical responses when not requested.

v6.3.1 — Encryption upgrade: scrypt KDF (2026-11-06). The default key-derivation function moves from PBKDF2 to scrypt (N=2^16, r=8, p=1 — a 64 MiB memory wall): GPU/ASIC rigs can no longer parallelize offline brute-force; per-derivation cost ~0.3 s. New key files and encrypted exports use scrypt; every historical key file (PBKDF2 600k / 60k / legacy) still decrypts unchanged, and rekey migrates an existing store in one step. Also fixes a P0: facade rekey() had been broken since v5.8.13 (dead import path), and bumps cryptography to ≥50.0.2.

v6.3.0 — Retrieval explainability (search --explain). Hybrid search used to be a black box: you saw the ranking, not the reasoning. Every result can now carry its full score breakdown — per-path scores (TF-IDF / FTS5 / fuzzy / vector), the winning path, and text+vector fusion weights when both hit. Debug why a memory ranked first — or why another was never recalled at all. Zero overhead when disabled.

v6.2.0 — Growth governance & reproducible benchmarks. Audit logs get a brake: search-audit debouncing (one row per unique query per 60 s, compliance events never sampled or pruned), audit-prune for trimming, and a 7th doctor check that flags runaway growth. Also ships benchmarks/repro_benchmark.py — the methodology that killed the "encrypted writes are faster" benchmark artifact: same-N alternating rounds, P50/P95 latency over 50 samples per query type, 8-thread concurrency runs, orphan-repair verification.

v6.1.3 — Self-healing data integrity. GDPR erasure now removes derived data too — embeddings, notes, review schedules, evolution history, and graph relations (five tables previously survived "the right to be forgotten"). doctor gained orphan detection with one-command repair (--fix): dangling graph references, orphaned versions, and stray embeddings left behind by older cascade deletes are found and cleaned, with dry_run for impact assessment.

v6.1.1 — Follow-up closed loop. Memories don't just wait to be queried — they nudge. Follow-up items can now trigger proactive reminders when their time comes (90 MCP tools total).

v6.0.0 — multi-agent spaces & 6G preview (2026-10-31)

Multi-agent memory spaces — shared spaces with three-tier roles (owner / editor / reader), last-write-wins conflict resolution, and PRIVATE / STRICT privacy guardrails. Promoted from experimental to a supported capability; available through the multi_agent facade, CLI space-*, MCP space_*, and the v6 port registry (status AVAILABLE).

6G AI memory preview — four capabilities on the preview port, each replacing a former stub: parallel Preview Channels (isolated SQLite stores that never touch the stable database), context distillation (distill_context ranks memories HIGH / MEDIUM / LOW under a token budget), incremental index statistics (write-time indexing with near-real-time recall metrics), and per-memory timelines (versions, evolutions, and audit trail). Available through CLI preview-*, REST /api/preview/*, and MCP preview_*.

Agent workflow toolkit — eight features covering the full memory lifecycle: chat-history import for cold start, timeline visualization, shareable skill packs, memory evolution, outcome-based learning, memory passports for cross-model migration, explainable principled forgetting, and follow-up tracking. Each is exposed consistently across CLI, REST, and MCP.

v6 port registry — v6_status() reports capability readiness; v6_port(capability) injects a ready-to-use instance (multi-agent adapter or memory preview), so callers can depend on ports instead of concrete modules.

Six-way hybrid retrieval (real, as of v6.6.0) — six recall paths fused into one ranked result set: vector, FTS5, TF-IDF, fuzzy (the four core paths, RRF-style max-fusion with per-path score breakdown via search --explain), temporal anchoring (query absolute dates / anchored relative phrases → windowed SQL recall; v6.6.0) and knowledge-graph adjacency (entity match → 2-hop relation walk → memory back-references; v6.6.0). Paths 5-6 run in "blind-spot fill" mode — they only add candidates the four core paths missed, never re-rank existing high-quality hits. Degradation is per-path and safe: encrypted stores skip temporal (ciphertext is not SQL-matchable), empty KG skips graph, missing time anchor degrades to absolute-date-only.

Knowledge graph — automatic entity and relation extraction, path finding, and associative recall.

Weighted recall — multi-factor scoring (coverage, importance, access frequency, time decay) instead of similarity alone.

Four-tier memory — sensory buffer, short-term, long-term, and permanent tiers with Ebbinghaus-based decay and periodic consolidation.

Conflict detection — antonym pairs, attribute inconsistencies, and timeline conflicts, with automatic decay.

Procedural memory (Cases → Skills) — record_experience() stores agent success cases, distill_skills() turns them into reusable skill templates (persisted, restart-safe), skill_match()/skill_render() reuse them on new tasks with parameterized steps (v5.8.0).

Knowledge-graph pipeline — auto_extract_graph hooks into add(); extract_graph() draws entities/relations into a persisted graph (survives restarts), graph_related/graph_path query it, STRICT-privacy memories are never extracted (v5.7.9).

Reproducible embedding eval — benchmarks/embedding_eval.py compares hybrid / vector / FTS5 / TF-IDF on a fixed multilingual set with fixed seeds (Recall@5 / MRR@10 / NDCG@10); deterministic fake backend runs without any model for CI baselines (v5.7.8).

Agent memory governance — agent_pin freezes decay and pins key memories, agent_forget soft-deletes with a reason, agent_decay_boost accelerates forgetting, and expire_memory closes a fact's validity window (v5.7.7).

Conflict auto-reconcile — reconcile_conflicts closes the stale side of keep_newer / keep_higher_importance conflicts (Bi-temporal expiry, never deletes), and routes merge / review_needed to human review (v5.7.7).

Connector framework — pluggable json / csv / markdown / file / url connectors with a registry and SSRF guard; extensible via register_connector (v5.7.7).

Bi-temporal facts — valid_from / valid_to windows with as-of queries (valid_at) and supersede fact replacement that expires the old fact instead of deleting it, keeping full version history (v5.7.6).

Skill extraction — clusters memories into reusable slots, steps, and trigger words.

Privacy and security

Privacy engine — four isolation levels (PUBLIC / INTERNAL / PRIVATE / STRICT) with fine-grained access control.

At-rest encryption — AES-256-GCM with PBKDF2-SHA256 key derivation.

Encrypted export / import — export-json --password and import-json --password produce encrypted backups that remain unreadable even if the file leaks (v5.7.3).

GDPR toolkit — gdpr-report / gdpr-export-all / gdpr-erase for data portability and the right to be forgotten, with automatic backup before erasure (v5.7.6).

Memory health report — memory_report() aggregates four-tier counts, TTL expirations, trash, conflict events, FTS consistency, database health, and encryption status, without exposing any plaintext memory content (v5.9.0).

Audit export — export_audit() returns machine-readable audit entries (limit / since / actor filters) for GDPR and forensics; exposed as GET /api/audit (v5.9.0).

Privacy health check — privacy_report() aggregates privacy-tier distribution, STRICT count, trash, audit events, encryption / key-file state, and the federated sharing surface, without exposing any plaintext memory content (v5.9.2).

Knowledge-graph export — export_graph() exports entities and relations as structured JSON (schema mindforge-knowledge-graph/1.0, memory IDs attached, no plaintext) for external visualization, audit, and migration (v5.9.2).

Privacy-filtered graph export — export_graph(max_privacy="INTERNAL") drops edges sourced from STRICT/PRIVATE memories (fail-closed, isolated nodes pruned); CLI --privacy and REST GET /api/meta/graph?max_privacy= support the same filter (v5.9.3).

Unknown-privacy grouping — privacy_report() buckets unknown/malformed privacy levels into unknown_privacy_count instead of leaking raw level names into the distribution (v5.9.3).

MCP server — 90 tools, drop into Claude Code, OpenClaw, or any MCP client.

Federated memory — P2P sharing between agents with trust levels, ACLs, and conflict resolution.

REST API — standard HTTP endpoints for non-Python applications.

CLI — 200+ commands with bash / zsh / fish completion.

Embedding backends — sentence-transformers, OpenAI, Ollama, or a custom HTTP endpoint.

┌──────────────────────────────────────────────────────┐ │ MindForge v6.7.5 │ │ Cognitive Layer Personality · KnowledgeGraph │ │ MemoryEvolution · FederatedMemory │ ├──────────────────────────────────────────────────────┤ │ Function Layer RecallEngine · HybridSearch │ │ IntentRouter · ConflictDetector │ │ SkillExtractor · SessionFocus │ ├──────────────────────────────────────────────────────┤ │ Core Layer Storage (SQLite+FTS5) · Index │ │ Encryption (AES-256-GCM) · Query │ ├──────────────────────────────────────────────────────┤ │ Adapter Layer OpenClaw · Claude Code · MCP │ │ REST API · CLI · Python SDK │ └──────────────────────────────────────────────────────┘ Four-Tier Memory Model

High-value entries strengthen over time through consolidation; low-value entries decay naturally.

Benchmarked on i7-12700H / 32GB RAM / NVMe SSD / Python 3.12 / SQLite WAL.

Retrieval quality (500 multi-domain memories, 50 annotated queries):

from adapters import ClaudeCodeAdapter adapter = ClaudeCodeAdapter.from_env() adapter.remember("User prefers concise code style", ["preferences"]) context = adapter.get_context("database optimization") MCP Server

MindForge-mcp --db-path ./data/memory.db REST API

MindForge serve --api --port 9000 # GET /api/memories # POST /api/memories # GET /api/search?q=... # GET /api/stats OpenClaw

memory: adapter: MindForge adapter_config: db_path: ~/.MindForge/data/memory.db encrypted: true auto_consolidate: true Security

Encrypted databases: when a key file is present, set MINDFORGE_PASSWORD so the process can unlock the store. This is required for the dsh-mindforge bridge and any non-interactive integration (MCP / REST API / scripts) accessing an encrypted store.

API authentication: if MINDFORGE_API_KEY is configured, unauthenticated callers are treated as anonymous and can only reach PUBLIC memories. All read/write paths carry actor identity for authorization and audit.

Access logs are sanitized: search terms and memory IDs are stripped from logs.

Upgrade note: v5.5.7 removed the experimental HMAC-XOR downgrade path (config flag EXPERIMENTAL_HMAC_XOR, the 「降级加密」 experiment). Blobs created under that flag can no longer be decrypted — back up your database before upgrading if you enabled it.

See SECURITY.md for the full security policy.

v6.0 — multi-agent memory spaces and the 6G AI memory preview, both promoted from experimental ports to supported capabilities, alongside an eight-feature agent workflow toolkit (released 2026-10-31)

v6.1 – v6.3 — trust & quality: retrieval explainability (search --explain), data-integrity self-repair in doctor, GDPR-complete erasure, audit-log growth governance, reproducible benchmarks (released 2026-11-05)

Vector database backend (Qdrant / Chroma)

Solo maintainer building open-source memory infrastructure for AI agents — systems that remember, forget, and retrieve knowledge the way humans do.

Focus areas: agent memory architecture · local-first AI infrastructure (no cloud lock-in) · privacy-preserving AI (encryption, access control, on-device data) · hybrid retrieval (vector + lexical + graph + fuzzy).

Tech stack: Python · TypeScript · SQLite · FastAPI · MCP · Embeddings · Knowledge Graphs

Official plugin: dsh-mindforge — encrypted memory bridge for DeepSeek Harness.

Released: Nov 29, 2026

Both files in this release have provenance metadata.

View provenance details

MIT View SPDX License List

ai agent memory knowledge-graph llm

Development Status 4 - Beta

Intended Audience Developers

Programming Language Python :: 3

Topic Scientific/Engineering :: Artificial Intelligence

Release files for mindforge-memory 6.7.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.6 MB

Release files / mindforge_memory-6.7.5.tar.gz

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Release files / mindforge_memory-6.7.5-py3-none-any.whl

Security for mindforge-memory 6.7.5

Both files in this release have been uploaded with provenance metadata.

With provenance mindforge_memory-6.7.5.tar.gz Nov 29, 2026

Attestation for mindforge_memory-6.7.5.tar.gz

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Nov 29, 2026 2 release files Full provenance

Nov 24, 2026 2 release files Full provenance

Nov 23, 2026 2 release files Full provenance

Nov 21, 2026 2 release files Full provenance

Nov 20, 2026 2 release files Full provenance

Nov 18, 2026 2 release files Full provenance

Nov 17, 2026 2 release files Full provenance

Nov 16, 2026 2 release files Full provenance

Nov 14, 2026 2 release files Full provenance

Nov 13, 2026 2 release files Full provenance

Nov 12, 2026 2 release files Full provenance

Nov 11, 2026 2 release files Full provenance

Nov 10, 2026 2 release files Full provenance

Nov 9, 2026 2 release files Full provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from fc0d8e6

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.