frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: Context Harness – Local first context engine for AI tools

https://github.com/parallax-labs/context-harness
2•__parallaxis•1h ago
Context Harness is a single Rust binary that gives AI tools like Cursor and Claude project-specific memory. It ingests docs, code, Jira tickets, Slack threads, and anything else into a local SQLite database, indexes them with FTS5 and optional vector embeddings, and exposes hybrid search via CLI and an MCP-compatible HTTP server.

I built this because I kept hitting the same problem: AI tools are powerful but have no memory of my complex multi-repo project. They can't search our internal docs, past incidents, or architecture decisions. Cloud RAG services exist, but they're complex, expensive, and your data leaves your machine. I wanted something I could point at my sources and just run `ctx sync all`.

Quick start:

    # Install (pre-built binaries available for macOS/Linux/Windows)
    cargo install --git https://github.com/parallax-labs/context-harness.git

    # Create config and initialize
    ctx init

    # Sync your data sources (filesystem, Git, S3, or Lua scripts)
    ctx sync all

    # Search from CLI
    ctx search "how does the auth service validate tokens"

    # Or start the MCP server for Cursor/Claude Desktop
    ctx serve mcp
What it does differently from other RAG tools:

- *Truly local*: SQLite + single binary. No Docker, no Postgres, no cloud. Local embeddings (bundled or pure-Rust) so semantic and hybrid search work with zero API keys. Back up your entire knowledge base with `cp ctx.sqlite ctx.sqlite.bak`.

- *Hybrid search*: FTS5 keyword scoring + cosine vector similarity with configurable blending. Works without embeddings too (keyword-only mode); with local embeddings you get full hybrid search offline.

- *Lua extensibility*: Write custom connectors, tools, and agents in Lua without recompiling anything. The Lua VM has HTTP, JSON, crypto, and filesystem APIs built in.

- *Extension registry*: `ctx registry init` installs a Git-backed community registry with 10 connectors (Jira, Confluence, Slack, Notion, RSS, Stack Overflow, Linear, etc.), 4 MCP tools, and 2 agent personas.

- *MCP protocol*: Cursor, Claude Desktop, Continue.dev, and any MCP-compatible client can connect and search your knowledge base directly.

Embeddings: you can run *fully offline* — the default build uses local embeddings (fastembed with bundled ONNX on most platforms, or a pure-Rust tract path on Linux musl and Intel Mac). No API key required. Optional: Ollama (local LLM stack) or OpenAI if you prefer. Keyword-only mode needs zero deps. There's no built-in auth layer; it's designed for local or trusted network use.

Stack: Rust, SQLite (WAL mode), FTS5, mlua (Lua 5.4), axum, MCP Streamable HTTP. MIT licensed.

GitHub: https://github.com/parallax-labs/context-harness

Docs: https://parallax-labs.github.io/context-harness/

Community Registry: https://github.com/parallax-labs/ctx-registry

If you find it useful, a star on GitHub is always appreciated.

Would love feedback on the search quality tuning (hybrid alpha, candidate counts) and the Lua extension model.

Comments

fidorka•19m ago
Hey Parker, this is really cool! Thanks for sharing. Have you tried using the entire CLI? It might also be a tool which you could compose into your workflow to have better memory of what the agents themselves did in the repo.

Btw, I built something similar to solve the context problem for most of my laptop-based activity.

It's slightly more heavyweight (electron app ingesting screenshots) - that being said I took many similar design decisions (local embeddings, sqlite with vector search and FTS hybrid, MCP extension to claude). Feel free to check it out:

https://github.com/deusXmachina-dev/memorylane

__parallaxis•4m ago
Hey, thanks for the kind words — and for the CLI/agent-memory idea. I haven’t fully leaned into “index what the agents did in the repo” yet; that’s a great direction. The MCP server gets most of the love so far, but the CLI is the same pipeline (sync → chunk → embed → search), so wiring it in so agents can search their own history is totally doable. I’ll keep that in mind.

I have mostly used the entire API surface so far. Check out the usage in this github action script: https://github.com/parallax-labs/context-harness/blob/main/s...

This is used to build the search index on the website (below)

This tool is made for not only local, but embedded in a ci context

MemoryLane looks really cool — same problem, different surface. Local embeddings + SQLite + hybrid FTS/vector + MCP into Claude is basically the same stack; the screenshot-ingestion and Electron UX are a neat take for “everything I’ve seen on this machine.” I’ll definitely poke around the repo. If you want to see how we’re using custom agents on top of that pipeline, a couple of blog posts go into it: Chat with your blog

- https://parallax-labs.github.io/context-harness/blog/enginee... (persona grounded in your own writing, inline + Lua agents) this is in the same vein. Allowing agents to write into the vector store with an MCP tool is on the road map.

- https://parallax-labs.github.io/context-harness/blog/enginee... Unified context for your engineering team (shared KB, code-reviewer and on-call agents).

The South Korean Anduril

https://theventures.substack.com/p/bone-ai-forging-the-flame-of-the
1•jefflee0127•2m ago•0 comments

Show HN: Capture context. Give your agent the full picture

https://github.com/semihcihan/ContextBrief
1•semihcihan•3m ago•0 comments

Life's a bi*ch CHUM, and then you die

https://himanshusinghbisht.substack.com/p/lifes-a-bich-chum-and-then-you-die
1•gilfoyle_7•3m ago•0 comments

US threatens Anthropic with deadline in dispute on AI safeguards

https://www.bbc.co.uk/news/articles/cjrq1vwe73po
1•louthy•4m ago•0 comments

Show HN: APA citation generator that explains missing metadata

https://apacitationgenerator.online
1•visiohex•6m ago•0 comments

Show HN: Clawned.io Crowdsource public security scanner for OpenClaw skills

https://clawned.io
1•jensec•6m ago•2 comments

Codex was able to port KittenTTS to JavaScript

https://github.com/jokkebk/KittenTTS-JS
2•jokkebk•9m ago•1 comments

Show HN: Play Fun Clicker Game Online

https://funclicker.app/
1•tomstig•9m ago•0 comments

Grep, Sed, Awk – The Unix Text Processing Trinity

https://grep-sed-awk.com/
1•m4c-pl•10m ago•1 comments

Is it possible to build it

1•Petersevcik•11m ago•0 comments

There is no reason Canadian Tire company should have any of my data

https://infosec.exchange/@pgl/116131275583976424
3•jalict•11m ago•0 comments

Age Requirements for Apps in Brazil, Australia, Singapore, Utah, and Louisiana

https://developer.apple.com/news/?id=f5zj08ey
1•petethomas•11m ago•0 comments

Visualizing DeepSpeed Ulysses: Sequence Parallelism for 1M Context Windows

https://darshanfofadiya.com/part3.html
1•DARSHANFOFADIYA•12m ago•1 comments

Show HN: Tspages – static site hosting platform for your Tailscale network

https://github.com/Radiergummi/tspages
1•9dev•14m ago•0 comments

From Noise to Image – interactive guide to diffusion

https://lighthousesoftware.co.uk/projects/from-noise-to-image/
1•simedw•14m ago•0 comments

React Native Is Not Dead – Nor Is It Deprecated

https://devdong.textlanes.com/en/react-native-is-dead-support-discontinued-not-at-all
1•textlanes33•15m ago•1 comments

Teams Or Not? Check what the domain/email is using

https://teamsornot.com/
1•punnerud•20m ago•0 comments

Show HN: AccIQ; A local-first financial IDE for sovereign founders

https://acciqmvp3.vercel.app/
1•auvira_systems•20m ago•0 comments

Discussion: Why Testing Is Important

1•simile_test•23m ago•0 comments

"AI raises the quality of tuning beyond what most of us can achieve manually"

https://medium.com/@fransverduynlunel/a-fluitje-van-een-cent-my-experience-automating-postgres-pe...
1•lnardi•23m ago•1 comments

Show HN: PolyTell-AI Chrome extension that shows Polymarket odds as you browse

https://polytell.app/
1•fengyiqicoder•24m ago•0 comments

Show HN: NetWatch – A Wireshark-style network analyzer TUI built in Rust

https://github.com/matthart1983/netwatch
1•matthart1983•24m ago•0 comments

Show HN: Treekei – File Tree with Line Counts in CLI

https://github.com/zihao-liu-qs/treekei
1•zihao-liu-qs•25m ago•1 comments

Free AI Headshot Generator – Professional Photos from Any Selfie

https://aiheadshotgenerator.online/
1•jewelryde•30m ago•0 comments

LM Link: Use local models on remote devices, powered by Tailscale

https://tailscale.com/blog/lm-link-remote-llm-access
1•calcifer•30m ago•0 comments

$2.1B in Epstein Financial Records. Here's Every Name the Money Touched

https://randallscott25-star.github.io/epstein-forensic-finance/narratives/19_grand_opus_narrative...
3•sschueller•34m ago•0 comments

Anthropic/Pentagon: allow AI to be used for all military purposes by this Friday

https://www.nbcnews.com/tech/security/anthropic-pentagon-us-military-can-use-ai-missile-defense-h...
1•ollieza•34m ago•1 comments

Show HN: Rewrite Text – On-Device AI Writing Tool for iOS

https://apps.apple.com/us/app/rewrite-text-ai-writing-tool/id6758913519
1•8mobile•38m ago•0 comments

Investment Supply Chain Analysis

https://investment.binhph.am
1•davedx•43m ago•1 comments

Show HN: Skillscape – Engineering skills matrix without the spreadsheet

https://www.skillscape.dev/
1•danielyefet•49m ago•0 comments