LLibrePatch
Product

Product features · License header edits

01

Update a source file’s SPDX header while keeping its interpreter line in first position. Check a byte-order mark, an existing license comment and a second run so the edit neither duplicates the header nor changes the body.

01

Connection

Base URL, credentials and a reachable server.

02

Selection

A model available through the configured endpoint.

03

Capabilities

Context limits and tool support are determined by the model and server.

License header edits

● ● ●LibrePatch●
A concrete starting point · License header edits ×
text = source.removeprefix("\ufeff")
head, separator, body = text.partition("\n")
if head.startswith("#!"):
    result = head + (separator or "\n") + update_spdx(body)
else:
    result = update_spdx(source)
✳Update a source file’s SPDX header while keeping its interpreter line in first position.
✓ ChangesReview before applying ↗
Illustrative workspace
AI coding workspace

Your next change starts here.

Get the Windows app ↗