Skip to content

[FEATURE]: Hash Editing #13815

Closed as not planned
Closed as not planned

Description

@dennisrutjes-1

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

just have a look at this guy's idea and benchmark. Would be nice to have that option in opencode see how it is working? It's about giving hash identifiers to lines so edits will consume less tokens

https://blog.can.ac/2026/02/12/the-harness-problem/

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Feb 16, 2026
  2. github-actions commented on Feb 16, 2026

    @github-actions
    Contributor

    This issue appears to be a duplicate of existing discussion:

    Since the feature is already being tracked and assigned to maintainers, please continue the discussion there instead. You can add your support or additional feedback to #13393.

  3. izzzzzi commented on Feb 18, 2026

    @izzzzzi

    Hey! This feature already exists as a plugin — opencode-hashline.

    It annotates every line with a deterministic hash tag (#HL 5:a3f|code) so the AI can reference and edit code by hash instead of fragile string matching. Benchmarked at 100% correctness (60/60) on react-edit-benchmark vs 96.7% for standard str_replace.

    Install: npm install opencode-hashline

    Also submitted a PR to add it to the ecosystem page if you want to track that.

  4. AngDrew commented on Mar 11, 2026

    @AngDrew

    https://www.npmjs.com/package/@angdrew/opencode-hashline-plugin
    i made it as plugin for current workaround
    it will override the built in functions

  5. FurryWolfX commented on Mar 16, 2026

    @FurryWolfX

    https://www.npmjs.com/package/@angdrew/opencode-hashline-plugin i made it as plugin for current workaround it will override the built in functions

    It works great, but it lacks a diff view. I hope OpenCode can natively support it.

  6. AngDrew commented on Mar 22, 2026

    @AngDrew

    https://www.npmjs.com/package/@angdrew/opencode-hashline-plugin i made it as plugin for current workaround it will override the built in functions

    It works great, but it lacks a diff view. I hope OpenCode can natively support it.

    it now works (v1.5.0) with the built in instead of replacing. still uses the hashline, it will resolve the hashline right before the edit. so it collaborate with the built-in tools

  7. assigned and unassigned on Apr 26, 2026
  8. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  9. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions