Skip to content

Repo-map context artifact: tree-sitter + ranked digest injected into threads #274

Closed

Description

@currentbits

Inspired by aider's repo-map (tree-sitter tags across the repo, PageRank-ranked, compressed to ~1k tokens).

Generate a per-worktree ranked symbol/structure digest and offer it as a standard context artifact for threads (especially new workers and handoffs, where the agent knows nothing about the codebase). Refresh on file changes. Pairs with the repo wiki issue as the cheap, mechanical layer underneath the prose.

Activity

  1. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    Research note (CodeScaleBench, 1,281 runs): agents barely call powerful retrieval tools even when available (57 deep-search calls in 602 MCP runs) — inject the artifact AND steer usage with explicit when-to-use instructions in the system prompt. Also: do not build the index for repos under ~400K LOC; grep wins there.

  2. added and removed on Oct 9, 2026
  3. currentbits commented on Oct 9, 2026

    @currentbits
    OwnerAuthor

    Shipped (#377): electron/codeindex.js builds a ranked per-repo symbol digest injected into threads (services-notes.js:449). It is line-based rather than tree-sitter, which is fine. Closing in the 2026-10-09 board cleanup (#1532).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions