Skip to content

Rewrite README for end users; move internals to docs and CONTRIBUTING - #9

Merged
Igloczek merged 4 commits into
mainfrom
readme-end-users
Nov 30, 2026
Merged

Igloczek merged 4 commits into
mainfrom
readme-end-users

Conversation

@Igloczek

@Igloczek Igloczek commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The README now targets a developer who has never heard of the tool and wants memory search in their agent's repo within five minutes. It covers what the tool is and why you would use it, then install, then a 3-command quick start (init → prepare → search) with real output. That output was captured from a throwaway demo repo using the built dist/iglo.memory: one prepare and one search. The example is shortened with …: the response metadata (responseVersion, scoreKind, retrievalRevision, preparedAt), passageId and snippetSpan are elided and the second result is collapsed. The pitch and quick start use a calm, confident voice and name no internals (no ranking methods, model names, snapshots or locks); those live in docs/how-it-works.md.

After that the README has these sections:

  • fit / not a fit
  • a copy-paste AGENTS.md snippet
  • commands table
  • a ≤10-line "How it works"
  • Privacy
  • Configuration
  • Troubleshooting table covering all 20 codes in src/errors.ts
  • Migration from iglo.mem
  • Prior art
  • a "More" link list

All technical content moved to the new docs/how-it-works.md and CONTRIBUTING.md. Nothing was dropped.

Accuracy fixes along the way

  • Privacy: the README names OpenRouter and says, in plain words, what each command sends; the per-model table is in docs/how-it-works.md#what-providers-receive. In detail, that search sends the question to the embedding model and to the expansion model (openai/gpt-5.6-luna). The generated rephrasings are embedded too. The question plus up to 40 complete candidate passages, with project, path and headings, go to voyageai/rerank-2.5. The old README said "search embeds only the query" (roadmap U2).
  • Default model: now qwen/qwen3-embedding-8b in the example config. It was openai/text-embedding-3-small.
  • Batch size: Qwen is limited to 32 inputs / 32,768 tokens per request (the old text said 64). Chunking now targets 500 Qwen body tokens (markdown-lossless-v2), not 5,000 code points.
  • retrieval.model: not advertised in the README. docs/how-it-works.md says to leave it unset and points to roadmap U12.
  • docs/decisions.md:
    • The stale "Ranking…" paragraph (cosine 0.80 + lexical bonuses, 0.25 minimum) is rewritten. It now describes the v2 pipeline: BM25 + vector + typed expansion, RRF k=60 with ×2 original weight, a protected union of the original top-8s, a 40-candidate cap, Voyage rerank and the 0.435546875 cutoff. It links retrieval-v2-design.md.
    • The markdown-blocks-v1 chunking details are marked as superseded.
    • "Search owns one query embedding" is corrected.

Where each old README section went

Old README heading New location
Intro + command list, JSON/stderr/exit contract README Quick start + Commands; full contract in docs/how-it-works.md#command-contract
Credentials README Configuration + Privacy (user view); full storage, permissions, trust-model and no-prompt rules in docs/how-it-works.md#credentials
Migrating from iglo.mem README "Migrating from iglo.mem" (short, including the CREDENTIALS_INVALID fix for an unsafe legacy file); fallback rules + manual install -d/mv/chmod commands in docs/how-it-works.md#moving-a-key-saved-by-iglomem
Sources and freshness README "How it works" (summary); details in docs/how-it-works.md → Sources, Prepare, Search, Status and gc, Freshness/worktrees/locking
Configuration and recovery: config README Configuration; model/profile/re-embedding rules in docs/how-it-works.md#configuration
Configuration and recovery: error list README Troubleshooting table (all codes)
Configuration and recovery: retries, provider data, cron docs/how-it-works.md → Prepare (retries), Search (deadline), What providers receive, Keeping the index fresh
Build and verification (incl. #6's release text) CONTRIBUTING.md (set up/check, build, pinned build inputs, CI and releases, running from source, QA) and docs/releasing.md; docs/verification.md now links there
Prior art README Prior art (facts unchanged)

Rebased on #6

Rebased onto main after #6 (release workflow, install.sh, --version) merged. Reconciliation:

  • README: keeps the end-user README; Release executables for Linux and macOS with a verified installer #6's build/release/verification text is gone from it. Install matches install.sh: ~/.local/bin/iglo.memory, the printed PATH line and iglo.memory init next step, --version → {"version":"0.1.0"}, four platforms (glibc, AVX2 on x64), IGLO_MEMORY_VERSION / IGLO_MEMORY_INSTALL_DIR / IGLO_MEMORY_DOWNLOAD_URL, curl only (no wget), iglo.memory-<os>-<arch>.tar.gz + SHA256SUMS, and optional gh attestation verify via docs/releasing.md#verifying-a-release. "More" links releasing through Contributing.
  • CONTRIBUTING: Node-API headers come from the pinned node-api-headers dev dependency (scripts/native.sh; NODE_INCLUDE_DIR overrides). New "Pinned build inputs" (tokenizer + notice inputs in .cache/, hash-checked) and "CI and releases" (Linux check workflow, four-platform release workflow, link to docs/releasing.md, scripts/qa-install.sh).
  • docs/decisions.md: main's platform, notices and "Ship retrieval v2 as the 0.x default…" sections kept. That decision now says the evaluation skipped its clean-machine check, while CI runs scripts/qa-clean.py per Linux platform. The ranking-paragraph rewrite stays.
  • docs/evaluation/retrieval-v2-heldout.md: "no default rollout follows from this report" now points to that decision.
  • docs/verification.md: main's Linux/macOS wording, prerequisites link to CONTRIBUTING.md#build. docs/third-party.md is main's.

Supersedes #3 and #4

Supersedes #3 and #4. From them this PR keeps:

Left out as stale:

Checks

  • npx --yes [email protected] install --frozen-lockfile: OK
  • bun run format:check: all files formatted
  • sh scripts/check.sh: lint, format, typecheck and 190 tests pass (headers from node-api-headers)
  • All relative links and anchors in README, CONTRIBUTING, docs/how-it-works.md, docs/decisions.md, docs/verification.md and every other tracked Markdown file resolve (scripted check).
  • git grep -nP 'iglo\.mem(?!ory)': beyond origin/main's hits, new ones only in the how-it-works migration subsection (README hits are the migration section).

🤖 Generated with Claude Code

Igloczek and others added 4 commits November 30, 2026 18:53
The README now covers what the tool is, install, a three-command quick start
with real output, agent usage, a short how-it-works, privacy, configuration,
a troubleshooting table for every error code, migration and prior art.

Technical detail moves to docs/how-it-works.md (command contract, sources,
prepare/search/status/gc behavior, locking, credential storage, provider
data, cron) and CONTRIBUTING.md (build, tokenizer cache, source launcher, QA).

docs/decisions.md: replace the stale v1 ranking paragraph with the v2
pipeline (BM25 + vector + typed expansion, RRF k=60 with x2 original weight,
Voyage rerank, 0.435546875 cutoff) and mark the v1 chunking details as
superseded by markdown-lossless-v2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…very

- Quick start: run init yourself in a terminal (no TTY gives
  API_KEY_MISSING), add a paste-able auth.md note, then prepare and search.
  Example output is re-captured from that exact note and marked as shortened.
- Install: the installer prints the PATH line when ~/.local/bin is missing;
  the OpenRouter key needs credit because every model is billed per use.
- CREDENTIALS_INVALID: --reset-credentials validates the existing folder and
  file first, so unsafe permissions need chmod (or removing the file). Same
  note in docs/how-it-works.md.
- EXPANSION_FAILED/RERANK_FAILED mention key and credit;
  CREDENTIALS_SAVE_FAILED points at ~/.config/iglo.memory.
- Index commit guidance (~16 KiB per passage vector with the default model).
- Privacy: generated rephrasings are embedded too.
- decisions.md: results at or above the reranker cutoff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keep the first screen to what, why, install and quick start with no
internals: drop model names and response metadata from the example
(still real output, shortened), and point to docs for field details,
which model receives what, and the configuration file. Make "Is it a
good fit?" brief, plain-language the troubleshooting rows for the
rephrasing and ordering requests, and say the installer needs curl.

Add a CREDENTIALS_INVALID fix to the migration section: reset
credentials (it never reads the old file) or chmod the old folder.
Move the 16 KiB per-vector note to docs/how-it-works.md and rewrap
long lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rebased onto the release work (#6). The README install section now matches
install.sh: next step after install, --version output, IGLO_MEMORY_DOWNLOAD_URL,
curl-only downloads and attestation verification. CONTRIBUTING uses the pinned
node-api-headers default, describes both workflows, qa-install.sh and the
cached build inputs. The retrieval decision separates the evaluation's missing
clean-machine check from the CI qa-clean runs, and the held-out report points
to that decision.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Igloczek

Copy link
Copy Markdown
Contributor Author

Council verdict: APPROVE (unanimous, round 3, head e3c25d0). Two independent reviewers from different providers (Claude Opus 5.5 and DeepSeek V4 Pro via OpenCode) reviewed this end-user README rewrite against the owner's criteria: a first screen with what/why/install and a three-command quick start with real output; plain language; "How it works" in about ten lines; a troubleshooting table of code → meaning → fix; a plain and accurate privacy statement; a short migration section and prior art at the end; technical material moved to docs/ and CONTRIBUTING.md with nothing lost; and, after the owner's voice correction, a confident Laravel/Rails/Apple-style voice with no internals above the fold. One reviewer role-played the target reader in every round. Round 1 found the quick start was not copy-paste to a first result, one troubleshooting fix was wrong (--reset-credentials cannot repair unsafe permissions), and the key's need for credit was missing; all were fixed and re-verified with real output and a disposable-HOME test. Round 2 approved with nits (folded in). The voice rewrite then moved model names and internals to docs/how-it-works.md, and the branch was rebased onto the merged release PR #6, reconciling CONTRIBUTING.md, docs/decisions.md and the install docs with the shipped install.sh. In round 3 the reader-role reviewer installed-to-first-result from the README alone in about 3–4 minutes with no improvising and found no voice violations; both reviewers verified every claim against the code (all 20 error codes, installer behaviour, privacy data flows, legacy-key migration, ranking description), confirmed links, formatting and CI, and explicitly agree the solution meets the criteria and is correctly implemented. This PR supersedes #3 and #4.

@Igloczek
Igloczek merged commit 89c6341 into main Nov 30, 2026
2 checks passed
@Igloczek
Igloczek deleted the readme-end-users branch November 30, 2026 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant