ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

Dein KI-Agent sollte nicht selbst entscheiden, wann committet wird

This one covers November 26 to December 3. It was a week about who gets the last word: my workflow kit now refuses a Claude session's commit or push unless I asked for it, and the same kit moved from shell scripts to Node so it runs on Windows the way it runs on a Mac. The rest went into my framewo

dev.toDonnerstag 22:00 · 03.12.DE5 Min. Lesezeit

Diese Ausgabe deckt den Zeitraum vom 26. November bis zum 3. Dezember ab. Es war eine Woche darüber, wer das letzte Wort hat: Mein Workflow-Kit verweigert jetzt das Commit oder den Push einer Claude-Session, sofern ich nicht darum gebeten habe, und dasselbe Kit wurde von Shell-Skripten auf Node umgestellt, damit es unter Windows genauso läuft wie auf einem Mac. Der Rest floss in mein Framework, das jetzt jeden Handler auf ein und dieselbe Weise lädt, und in die Synchronisation meiner Maschinen, wenn eine davon schläft.

workkit ist mein Workflow-Kit für Claude Code: GitHub-Issues als Arbeitsliste, Labels als Pipeline, Hooks, die die Regeln durchsetzen. Eine Regel war bisher nur Prosa: nicht committen oder pushen, sofern ich nicht darum bitte. Prosa ist eine Empfehlung. Bei genügend Sessions liest ein Agent "sollen wir committen?" als Ja oder entscheidet, dass eine abgeschlossene Aufgabe als Nächstes das Commit bedeutet.

Seit Version 0.109 ist die Regel eine Prüfung. Jede Nachricht, die ich sende, wird einmal auf vier Auftragswörter gelesen, und jeder Auftrag fügt dem Pass der Session eine einmalige Freigabe hinzu:

Das Lesen hat zwei Geschwindigkeiten. Eine Zeile, die nur das Wort enthält, etwa commit oder Ship., zählt sofort, ohne dass ein Modell gefragt wird. Jede andere Erwähnung geht an ein kleines Modell (Haiku, geringer Aufwand, eine Antwort mit 100 Tokens, insgesamt acht Sekunden), das mit einem einzigen JSON-Objekt antwortet: eine Zählung pro Wort und die Wörter, zu denen ich Nein gesagt habe. Ein Nein gewinnt, sodass ship in einer Zeile und in der nächsten Zeile tatsächlich kein ship keine Freigabe für ship ergibt. "sollen wir shiften" erteilt nichts. Ist das Modell nicht erreichbar, zählt ein Auftrag als null, denn ein Auftrag, den niemand lesen konnte, erteilt nichts.

Die Freigabe wird in gits eigenen Hooks für commit-msg und pre-push verbraucht, nicht im Chat. Das ist entscheidend: Der Hook bewertet das echte Commit und den echten Push, niemals den Text des Befehls, der sie ausgelöst hat. Ein Folge-Release machte das Verbuchen zu einer gesperrten Änderung, sodass zwei gleichzeitig laufende Aufrufe für ein Wort nicht beide durchkommen. Ein Issue mit dem Label agent:ok ist mein im Voraus gegebenes Wort, und ein Commit, das nur solche Issues schließt, öffnet die Freigabe von selbst.

Es ist ein Sicherheitsgurt, kein Tresor. Die Dokumentation sagt klar, dass es einen Pass nicht schwer fälschbar macht. Was es stoppt, ist der Standardfall: ein Agent, der committet, weil Committen sich wie der nächste Schritt anfühlte.

Warum das zählt: Ein Agent kann sich bei allem, was sich leicht rückgängig machen lässt, bewegen, so schnell er will. Commits und Pushes warten jetzt auf ein Wort, das ich tatsächlich getippt habe.

Der andere große Vorstoß galt Windows. Über drei Releases hinweg zog das Kit von der Shell auf Node um:

Der Teil, der mir gefällt, ist, wie klein die Ersetzungen sind. Die Hooks starten kein rm, wc, tail oder mkdir, die auf einem Windows-PATH fehlen könnten. Ein Marker wird beendet, indem man ihn leer schreibt. Die Größe eines Journals ist die seines stat-Eintrags. Sein Ende wird über Byte-Bereiche gelesen. Ein Schreibvorgang erstellt seine eigenen Ordner. Das Morgen-Briefing liest Claude Codes Changelog mit Nodes fetch, begrenzt auf 20 Sekunden, statt mit curl. Und ein Test enthält jetzt die Liste der Dateien, die eine Shell starten dürfen, sodass keine neue heimlich zurückkehren kann.

Der 9-Uhr-Job läuft jetzt auch unter Windows, als Aufgabe im Task Scheduler, und Git Bashs Schreibweise eines Home-Ordners ( /c/Users/name ) wird als das echte Home gelesen statt als ein Ordner unter dem Laufwerksstamm.

Warum das zählt: "läuft auf meinem Mac" war bisher die gesamte Support-Story. Jetzt braucht das Kit Node 22.22, wo es früher bash und jq brauchte, und jedes Programm prüft diese Untergrenze selbst.

Auch der Test-Runner ist gewachsen. noDisplay() überspringt einen Fall, der auf einer Linux-Maschine ohne Display ein Fenster öffnen würde. workkit test out führt Suites aus, die ein Build in einen von git ignorierten Ordner geschrieben hat. Und workkit ship watch endet nicht mehr ohne Antwort, wenn GitHub mitten im Watch-Vorgang einen Fehler meldet: Es schaut erneut, und ein Lauf, der grün endete, antwortet grün.

omega ist mein Framework, um aus einem Projekt eine Website, ein Backend, eine Desktop-App und eine Browser-Erweiterung auszuliefern. Seine größte Änderung diese Woche (auf main, noch nicht in einem Release) ist ein absichtlicher Bruch.

Jeder dateibasierte Handler auf jedem Target ist jetzt ein ES-Modul mit einem einzigen Default-Export: die 195 Route-, Schema- und Event-Handler des Backends, die MCP-Datei, die Hooks der Desktop-App samt ihrer Tray- und Menüdateien und die Hooks der Erweiterung. Es gibt kein doppeltes Lesen. Eine Datei mit module.exports wird namentlich abgewiesen, und der manuelle Umstellungsschritt steht im Dokument der Breaking Changes.

So funktioniert es: zwei Loader, einer pro Familie, die beide dieselbe devkit-Prüfung namens defaultExport aufrufen. Das Folge-Update brachte vier weitere Dateiarten darunter, darunter jedes targets test/_init.js, das jetzt eine synchrone Factory sein muss. Eine, die ein Promise zurückgab, führte früher kein Setup aus und gab keinen Fehler. Jetzt wird sie abgewiesen.

Derselbe Batch ließ eine Datei eine Aufgabe erledigen, für die vorher drei nötig waren. Ein Target ohne eigenes Markenbild nimmt das brandmark.svg aus den brand-Assets unter assets/logo: Der Web-Build leitet daraus das Favicon-Set und das Social Image ab (per Hash gecacht), die Desktop-App ihr App-Icon, die Erweiterung ihre Icon-Größen. Die alte Icon-Brücke und der separate Favicon-Schritt des Managers sind weg.

Warum das zählt: Ein Framework, das für immer zwei Formate akzeptiert, testet zwei Loader und schreibt "beides funktioniert" in jede Dokumentation. Eine Form, sonst laut abgewiesen, ist für alle nach der Migration billiger.

Eine private Geschichte aus den Skripten, die meine Maschinen einrichten. Ein Sync pushed jedes Update über SSH auf jede andere Maschine. Ein Laptop, der gerade schlief, verpasste es schlicht und blieb ein Release zurück, bis ich es bemerkte.

Jetzt merkt sich der Sync jede Maschine, die er nicht erreichen konnte, und ein Job auf der Maschine, die ihn ausführte, wiederholt genau diese alle 15 Minuten, bis jede antwortet. In derselben Woche wurde meine Claude-Anmeldung zu einer einzigen Anmeldung über alle Maschinen hinweg: ein Wechsel auf einer beliebigen Maschine erreicht die anderen, und der neueste Wechsel gewinnt.

Warum das zählt: Eine Flotte, die man von Hand in Schuss halten muss, ist keine Flotte.

Nächste Woche möchte ich omegas ES-Modul-Änderung in einem getaggten Release haben. Wie halten Sie einen Agenten davon ab, von selbst zu committen? Die Kommentare sind offen.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

This one covers November 26 to December 3. It was a week about who gets the last word: my workflow kit now refuses a Claude session's commit or push unless I asked for it, and the same kit moved from shell scripts to Node so it runs on Windows the way it runs on a Mac. The rest went into my framework, which now loads every handler one way, and into keeping my machines in step when one of them is asleep.

workkit is my workflow kit for Claude Code: GitHub issues as the work list, labels as the pipeline, hooks that enforce the rules. One rule had always been prose: don't commit or push unless I ask. Prose is a suggestion. Given enough sessions, an agent will read "should we commit?" as a yes, or decide a finished task means the commit is next.

Since version 0.109, the rule is a check. Each message I send is read once for four order words, and each order adds a one-time grant to the session's pass:

The reading has two speeds. A line holding only the word, like commit or Ship., counts at once with no model asked. Any other mention goes to a small model (Haiku, low effort, a 100-token reply, eight seconds in all) that answers with one JSON object: a count per word, and the words I said no to. A no wins, so ship on one line and actually dont ship on the next gives no ship. "should we ship" orders nothing. If the model cannot be reached, an order counts zero, since an order nobody could read orders nothing.

The grant is used up in git's own commit-msg and pre-push hooks, not in the chat. That matters: the hook judges the real commit and push, never the text of the command that ran them. A follow-up release made the spend a locked edit, so two calls racing for one word cannot both get through. An issue carrying the agent:ok label is my word given in advance, and a commit that closes only such issues opens the ship by itself.

It is a seatbelt, not a vault. The docs say plainly that it does not make a pass hard to forge. What it stops is the default: an agent committing because committing felt like the next step.

Why it matters: an agent can move as fast as it likes on everything that is easy to undo. Commits and pushes now wait for a word I actually typed.

The other big push was Windows. Over three releases the kit moved from shell to Node:

The part I like is how small the replacements are. The hooks start no rm, wc, tail or mkdir, which a Windows PATH may lack. A marker is ended by writing it empty. A journal's size is its stat's. Its tail is read by byte ranges. A write makes its own folders. The morning brief reads Claude Code's changelog with Node's fetch, bounded at 20 seconds, instead of curl. And a test now holds the list of files allowed to start a shell, so a new one cannot creep back in.

The 9am job also runs on Windows now, as a Task Scheduler task, and Git Bash's spelling of a home folder ( /c/Users/name ) is read as the real home instead of a folder under the drive root.

Why it matters: "works on my Mac" was the whole support story. Now the kit needs Node 22.22 where it used to need bash and jq, and each program checks that floor itself.

The test runner grew too. noDisplay() skips a case that opens a window on a Linux machine with no display. workkit test out runs suites a build wrote into a git-ignored folder. And workkit ship watch no longer ends with no answer when GitHub errors mid-watch: it watches again, and a run that ended green answers green.

omega is my framework for shipping a website, backend, desktop app and browser extension from one project. Its biggest change this week (on main, not in a release yet) is breaking on purpose.

Every file-based handler on every target is now an ES module with one default export: the backend's 195 route, schema and event handlers, the MCP file, desktop's hooks and its tray and menu files, and the extension's hooks. There is no dual read. A module.exports file is refused by name, and the by-hand step is in the breaking-changes doc.

How it works: two loaders, one per family, both calling one devkit check, defaultExport. The follow-up brought four more kinds of file under it, including each target's test/_init.js, which must now be a synchronous factory. One that returned a promise used to run no setup and give no error. Now it is refused.

The same batch let one file do a job three did before. A target with no brand image of its own takes the brand's assets/logo/brandmark.svg: the web build derives the favicon set and social image from it (cached by hash), desktop its app icon, the extension its icon sizes. The old icon bridge and the manager's separate favicons step are gone.

Why it matters: a framework that accepts two shapes forever tests two loaders and writes "either works" in every doc. One shape, refused loudly otherwise, is cheaper for everyone after the migration.

One private story, from the scripts that set up my machines. A sync pushes each update to every other machine over SSH. A laptop that was asleep just missed it, and stayed a release behind until I noticed.

Now the sync remembers each machine it could not reach, and a job on the machine that ran it retries only those every 15 minutes until each one answers. The same week, my Claude sign-in became one sign-in across all of them: a switch on any machine reaches the others, and the newest switch wins.

Why it matters: a fleet you have to remember to fix by hand is not a fleet.

Next week I want omega's ES-module change in a tagged release. How do you keep an agent from committing on its own? Comments are open.

Originaltitel: Your AI agent should not decide when to commitQuelle: dev.to (dev.to). Original öffnen