LLibrePatch
AI coding workspace

License header edits

Keep the first line intact. LibrePatch is a Windows AI coding workspace for discussing license-header edits against your project files, with model suggestions and the resulting code available for review.

● ● ●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
01

Project

Check a byte-order mark, an existing license comment and a second run so the edit neither duplicates the header nor changes the body.

02

Review before applying

Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.

03

Connection

Base URL, credentials and a reachable server.

Workflows

License header edits

Workflows ↗
A concrete starting point
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)
AI coding workspace

Your next change starts here.

Get the Windows app ↗