← Dean’s Workbench

Systems & Local AI

Dociler

A privacy-first terminal assistant and inference harness in Rust for analyzing sensitive documents with local LLMs (Qwen3.5 via managed llama.cpp). Features ephemeral in-memory BM25 indexing, out-of-process sandboxed extraction, and zero telemetry.

RustLocal LLMllama.cppBM25TUIPrivacy-First
dociler — v0.1.0-dev (Rust)
loopback llama-server · 4B
Dociler v0.1.0-dev · Local-first document assistant
Workspace: ./contracts/ (3 documents) · Profile: dociler-lite (Qwen3.5 4B)
Zero telemetry · Ephemeral in-memory BM25 index · 0 bytes persisted to disk
dociler >/analyze @quarterly_audit.pdf "flag undisclosed liabilities"
✓ [sandbox] Out-of-process PDF extraction... OK (48 pages sandboxed)
✓ [bm25] In-memory token indexation... 2 chunks matched (score 0.94)
✓ [defense] 5-layer adversarial prompt injection firewall verified
Identified $4.2M unhedged floating-rate debt covenant maturing Q4 2026. Material change disclosure clause (Section 11.4) accelerates repayment upon equity transfer.
«Borrower represents aggregate off-balance commitments exceed $2.1M under secondary credit facilities.» [PDF p. 19:line 42]
⚡ 42.8 tok/s · 17ms first-token · Local Qwen3.5 4B · 0 bytes leaked
RUN:
dociler >
The friction

Analyzing sensitive documents without leaking data

  • Uploading confidential audits, mergers, or medical records to cloud LLM APIs poses severe compliance and privacy risks.
  • Standard RAG stacks write unencrypted vector databases and embeddings onto disk, leaving residual artifacts long after the session closes.
  • Local setups often demand heavy Docker daemons, complex Python runtimes, or 16GB+ RAM requirements just to parse a PDF.
“I needed a native terminal assistant that reads PDFs, DOCX, and contracts with a local model on my laptop—with zero telemetry and zero trace left on disk.”
Under the hood

Engineered in Rust for strict privacy guarantees

Dociler runs 100% locally on your machine. Documents are parsed out-of-process, indexed into memory-only BM25 postings, and analyzed via an internal loopback router.

Sandboxing
Out-of-Process Extraction

Parsing for PDF, DOCX, ODT, RTF, and TXT runs in an isolated child process to isolate potential parser exploits from the main harness memory space.

Retrieval
Ephemeral In-Memory BM25

Search indexes and chunk postings reside exclusively in RAM. Zero tokens or embeddings are ever persisted to disk; all session memory is zeroized on exit.

Safety
5-Layer Prompt Assembly

Protects local models from indirect prompt injection hidden within untrusted documents using rigid structural delimiters and immutable skill definitions.

Runtime
Managed llama.cpp Loopback

Orchestrates a dedicated llama-server process directly from Rust. No Docker containers, no Python environments, and no external Ollama dependency required.

Hardware qualification

Strict memory budgets, not empty promises

Target RAM tiers are verified release gates to ensure sustained local execution without out-of-memory crashes on consumer hardware:

dociler-liteQwen3.5 4B Q4_K_M (8K context, ~3.2 GB peak RSS on 8 GB-class devices)
dociler-proQwen3.5 9B Q4_K_M (16K context, ~6.8 GB peak RSS on 16 GB-class devices)
remote-apioptional OpenAI-compatible endpoints with explicit per-session consent
supported filesMarkdown (.md), Text (.txt), PDF (.pdf), Word (.docx, .doc), OpenDocument (.odt), RTF (.rtf)
telemetryZERO: 100% offline, zero network requests, zero analytics
Installation

One line to start

Dociler provides user-local installation scripts for macOS, Linux, and Windows:

terminal · install.sh
curl -fsSL https://raw.githubusercontent.com/deanyouknow/dociler/main/install.sh | sh
View repository ↗
Keep looking around →