Skip to content

feat(search): hits carry file context, windowed reads, read_many - #1

Merged
pequalsnp merged 1 commit into
mainfrom
feat/context-and-slicing
Jul 31, 2026
Merged

feat(search): hits carry file context, windowed reads, read_many#1
pequalsnp merged 1 commit into
mainfrom
feat/context-and-slicing

Conversation

@pequalsnp

Copy link
Copy Markdown
Contributor

Ideas adapted from tobi/qmd; no dependency (it runs its own in-process GGUF models — a second model runtime and second embedding universe beside the fleet's).

  • search_memory hits gain about: the containing file's H1 + first prose line, derived from content so there's nothing to author or keep in sync
  • read_memory gains from_line/max_lines, returns total_lines and partial
  • new read_many tool: glob across an expert's files in one call, per-file line cap, each with its description

Still no index — markdown in git, search is grep. docs/design.md records the trigger for revisiting that.

Tests: describe() table (title+prose / title only / prose only / heading-and-quote skipping / empty), hits-carry-description, windowed reads incl. past-end, read_many incl. truncation marking and error cases.

🤖 Generated with Claude Code

Three ergonomics fixes for the case memory is actually heading toward —
more files, longer notes:

- search hits include the containing file's description (H1 + first
  prose line, derived not authored), so a line lifted from a 30KB note
  is attributable without a second call
- read_memory takes from_line/max_lines and reports total_lines +
  partial, so long notes can be read in windows
- read_many reads a glob in one call with a per-file cap, replacing N
  round trips for 'show me all the notes'

Adapted from ideas in tobi/qmd without the dependency: it loads its own
in-process GGUF models, which would put a second model runtime and a
second embedding universe next to the fleet's existing one. No index is
added here — the substrate stays markdown in git and search stays grep.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pequalsnp
pequalsnp merged commit 8e38721 into main Jul 31, 2026
3 checks passed
@pequalsnp
pequalsnp deleted the feat/context-and-slicing branch July 31, 2026 12:22
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