Skip to content

Select targeted document context for each AI request #43

Closed

Description

@triggeredcode

Goal

Reduce irrelevant prompt content while preserving edit accuracy.

Depends on

Scope

Build a deterministic context bundle from:

  • a compact document overview;
  • the relevant section and nearby blocks;
  • explicitly named or cursor-focused blocks;
  • referenced diagram/table/chart details;
  • recent touched items and required relationships.

Preserve stable prompt prefixes where useful, and expand context when an instruction is genuinely document-wide.

Acceptance criteria

  • Narrow edits do not send unrelated full block content.
  • Whole-document requests still receive sufficient coverage.
  • Missing or ambiguous targets lead to clarification rather than guessed edits.
  • Before/after metrics show prompt reduction without lowering edit success or isolation.
  • No vector search or router model is introduced.

Activity

  1. triggeredcode commented on Oct 19, 2026

    @triggeredcode
    OwnerAuthor

    Claimed. Implemented on feat/provider-context-roadmap in commit d7e4d7f and included in draft PR #46. The synthetic large-document test verifies prompt reduction and isolation; live-model quality remains unclaimed because of the recorded LM Studio Metal OOM.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions