Skip to content

Conversation

@markijbema
Copy link
Contributor

…ost autocomplete

(VIBECODED! needs selfreview)

BREAKING CHANGE: Complete rewrite of autocomplete response format

Changes:

  • Updated CURSOR_MARKER from <<<AUTOCOMPLETE_HERE>>> to <>
  • Replaced complex search/replace XML format with simple content format
  • Removed ~200 lines of fuzzy matching logic from GhostStreamingParser
  • Simplified prompt generation in AutoTriggerStrategy
  • Updated all test files to match new hole-filling format
  • Removed obsolete fuzzy-length-bug tests

Benefits:

  • Simpler parsing: No fuzzy matching or search pattern logic needed
  • Clearer intent: LLM just fills the hole at cursor position
  • Less error-prone: No CDATA escaping issues
  • Faster: Direct insertion without pattern matching
  • More predictable: Single insertion point

All 155 tests passing.

Context

Implementation

Screenshots

before after

How to Test

Get in Touch

…ost autocomplete

BREAKING CHANGE: Complete rewrite of autocomplete response format

Changes:
- Updated CURSOR_MARKER from <<<AUTOCOMPLETE_HERE>>> to <<HOLE>>
- Replaced complex search/replace XML format with simple <HOLE>content</HOLE> format
- Removed ~200 lines of fuzzy matching logic from GhostStreamingParser
- Simplified prompt generation in AutoTriggerStrategy
- Updated all test files to match new hole-filling format
- Removed obsolete fuzzy-length-bug tests

Benefits:
- Simpler parsing: No fuzzy matching or search pattern logic needed
- Clearer intent: LLM just fills the hole at cursor position
- Less error-prone: No CDATA escaping issues
- Faster: Direct insertion without pattern matching
- More predictable: Single insertion point

All 155 tests passing.
@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2025

⚠️ No Changeset found

Latest commit: c1b9d99

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Use XML-style tags for consistency with response format.

Changes:
- Updated CURSOR_MARKER constant in ghostConstants.ts
- Updated all prompt references in AutoTriggerStrategy.ts
- Updated test mock data in GhostStreamingParser.sanitization.test.ts
- Updated documentation files (hole-filling-strategy-plan.md, hole-filling-todo.md)

All 155 tests passing.
Enhanced prompts to provide clearer instructions and better context:

System Instructions:
- Added detailed completion quality guidelines
- Included context awareness instructions
- Provided multiple examples for different scenarios
- Emphasized code quality and style matching

User Prompts:
- Restructured for better clarity and organization
- Added explicit task breakdown
- Included completion guidelines for different code contexts
- Better formatting with clear sections

Comment-Driven Prompts:
- Enhanced with detailed comment type handling
- Added production-ready code requirements
- Clearer task structure and requirements

All 155 tests passing.
@markijbema markijbema closed this Oct 30, 2025
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.

2 participants