Run real commands
Shell runs your build and test commands and shows the real exit code of each one.
LibrePatch is an AI agent for Windows 10/11 that reads the open source license of a project, explores its files, runs your build and test commands and shows every change as a diff. You review the diff, run the tests and send any contribution yourself. It is built for people who work on their own projects, and for those who contribute to projects whose rules allow it.
Shell runs your build and test commands and shows the real exit code of each one.
In Ask first, edit_file changes appear as a diff that you accept or reject before they are written.
Plan only writes a plan and runs nothing; Auto-run acts at once, so use it with care.
The agent picks a tool, runs it and shows the result as a card in the chat. You expand a card to read the command output or the file diff, and you decide whether the next step may run or whether you stop here. You can stop after any card.
.12 itemsLICENSE.txtread okSPDX3 matchesCONTRIBUTING.mdread oklicence-notes.txtsavedThe agent uses list_dir and glob to find the LICENSE or COPYING file, read_file to open it and grep to list the SPDX lines in the source files. Projects that are looking for contributors usually say so in the README or the CONTRIBUTING file, so those are the next files it reads for you. You see the real text on a card, and you can expand the card to read the whole file. Nothing is written yet. The agent can then save short notes about what the licence asks, for example keeping the copyright notice, in a text file next to the project files. Read the licence text yourself, and ask the project or a lawyer when a clause is unclear, because LibrePatch gives no legal advice.
The agent uses grep to find where the bug lives, read_file to open the file and edit_file to change a single line, and in Ask first the change appears as a diff before it is written. Shell then runs the project's own test command and reports its real exit code, and you can expand the card to read the full output. A passing test is a good sign, not a proof. You read the diff, run the tests again if you wish, and write a clear description of what changed and why. Then you send the pull request or patch yourself, following the CONTRIBUTING file and the project's policy on AI-assisted changes. If a project asks you to say that a tool helped with the change, say so in the description,.
The agent uses glob to find the dependency files of your own project and read_file to read the package names, versions and licence identifiers listed there. It then uses write_file to create licenses.csv with the columns package, version, licence and note. People search for lists of the best open source software, but a table of what you actually depend on tells you more about your own obligations. You can participate in open source as a designer too, for example by suggesting text changes after you read a project's documentation with such a table beside you. Check every row of the table against the licence text, because the inventory is information and gives no legal advice and no guarantee that the licences fit your use. Keep the file next to the project notes.
The agent uses grep and read_file to read your dependency lists and point out outdated or risky patterns for you to check. Shell can run a scanner command that you provide, and the agent shows its exit code and output on a card. It is not a scanner itself. It finds only some problems and gives no guarantee that the code or the scan is complete. The same habit works for a hobby script, such as one that tries to automate flashcards from word lists: change one thing, run the test command and read the result before the next change. write_file saves the findings as a text file that you review before you share it, and you test only code you may test, with the owner's written permission whenever the code is not your own.
LibrePatch is not a hosted service or a plugin for another program. It is meant only for your own files, your PC and servers you are allowed to use. The agent does not enforce scope, and Shell, web and SSH are not limited to the working folder. It gives no guarantee that code, scans or analysis are correct, and no legal advice. Read each licence yourself.