cotabby icon indicating copy to clipboard operation
cotabby copied to clipboard

Add typing-history personalization with local continuous learning

Open FuJacob opened this issue 7 months ago • 1 comments

Problem

Tabby currently relies on the current prefix plus static custom instructions. That means it does not learn from how the user actually writes over time, and suggestions cannot improve based on accepted completions or repeated writing patterns.

Goal

Add a privacy-first local personalization system that learns from user-approved writing behavior and injects compact learned preferences into Use My Instructions mode.

Proposed Scope

  • Add a local database for personalization records.
  • Start with accepted completions as the default learning source.
  • Add an optional setting for learning from typed inputs later, separate from accepted-completion learning.
  • Process records asynchronously so personalization does not block autocomplete latency.
  • Convert raw records into compact preference summaries, such as tone, phrasing, vocabulary, formatting, and common tasks.
  • Inject the learned summary into Use My Instructions mode as local context.
  • Add data controls for pause, reset learned preferences, and delete all personalization data.

Acceptance Criteria

  • Accepted completions can be recorded locally when personalization is enabled.
  • Background processing produces a compact learned preference summary.
  • Generation can include the learned summary in Use My Instructions mode.
  • Users can disable personalization and delete stored personalization data.
  • Personalization does not run in secure fields or per-app disabled apps.
  • The system avoids adding noticeable latency to normal suggestions.

Open Questions

  • Should the database be encrypted at rest using a Keychain-protected key?
  • How long should raw records be retained before being summarized and deleted?
  • Should personalization be global, per-app, per-profile, or a mix?
  • What minimum amount of data is needed before injecting learned preferences?

FuJacob avatar Apr 21 '26 19:04 FuJacob

Closing for OSS launch cleanup. Too ambitious/speculative — requires local ML pipeline, database, privacy controls. Can reopen if there's concrete user demand.

FuJacob avatar May 21 '26 06:05 FuJacob