Programm 3 von 5 · LerntProgram 3 of 5 · Learns
SLP
Self Learning ProtocolSelf Learning Protocol
SLP macht sichtbar, was eine KI aus ihrer Arbeit lernt: Jede Lektion steht in klaren Worten mit Beleg in einer Datei, gilt erst, wenn ein Mensch sie genehmigt, und lässt sich wieder vergessen.SLP makes visible what an AI learns from its work: every lesson is written in plain words with its evidence in one file, takes effect only after a person approves it, and can be forgotten again.
Version 0.1.0Spezifikation und UmsetzungSpecification and implementationPython, keine AbhängigkeitPython, no dependency
Das BildThe image
LektionenbuchBook of lessons
Ein Beipackzettel für das, was eine KI lernt: Anwendungsgebiet (was gelernt wurde), Studienlage (der Beleg), Hersteller (wer es gelernt hat), Zulassung (wer zugestimmt hat), Verfalldatum (wann man es wieder anschaut), Rückruf (Vergessen nimmt genau zurück, was die Lektion geändert hat).A package insert for what an AI learns: what it is for (the lesson), clinical evidence (what it was learned from), manufacturer (who learned it), approval (who agreed, when and why), expiry date (when to look again), recall (forgetting takes back exactly what it changed).
Was es istWhat it is
Das «Lernt» von COSMICThe "Learns" of COSMIC
KI-Agenten merken sich Konventionen, schreiben sich selbst Regeln und ändern ihre eigenen Anweisungen, meist ohne dass es jemand sieht. SLP ist ein Python-Werkzeug ohne Abhängigkeiten, das jede Lektion in ein Lektionenbuch schreibt: ein Satz, den ein Mensch beurteilen kann, mindestens ein Beleg, wer gelernt hat, und die ganze Geschichte von Vorschlag bis Entscheid. Eine Lektion wird vorgeschlagen, ein Mensch genehmigt oder lehnt ab, erst «slp apply» schreibt sie in ein Ziel: einen von SLP verwalteten Block in der Gedächtnis-Datei des Agenten oder eine Regel für SEP in.sep.json. Sechs Regeln tragen das Protokoll: Lernen wird vorgeschlagen, nicht aufgezwungen; keine Lektion ohne Zeugen; jede Lektion ist umkehrbar; Wissen altert; klare Worte; wer lernt, genehmigt nie selbst.AI agents remember conventions, write rules for themselves and edit their own instructions, usually without anyone seeing it. SLP is a dependency-free Python tool that records every lesson in a ledger: one sentence a person can judge, at least one piece of evidence, who learned it, and the full history from proposal to decision. A lesson is proposed, a person approves or rejects it, and only "slp apply" writes it into a target: a block in the agent's memory file that only SLP manages, or a rule for SEP in.sep.json. Six rules carry the protocol: learning is proposed, not imposed; no lesson without a witness; every lesson is reversible; knowledge ages; plain words; a learner never approves its own lessons.
Was es kannWhat it does
Fähigkeiten, belegt im CodeCapabilities, backed by the code
Lektionenbuch mit Beleg und GeschichteLedger with evidence and history
Alle Lektionen liegen in einer Datei, slp.lessons.json, im Repository, versioniert und geprüft wie Code. Jede Lektion hat eine Kennung (8 Hex-Zeichen aus SHA-256 über die Änderung), einen Status (proposed, approved, rejected, retired), den Satz nach Sprache, mindestens einen Beleg (Art: observation, test, correction, document, note; mit Fundort und Datum), wer gelernt hat, ein Prüfdatum und die Geschichte aller Ereignisse. Dieselbe Änderung zweimal vorgeschlagen ist dieselbe Lektion; ihr Beleg kommt dazu.All lessons live in one file, slp.lessons.json, in the repository, versioned and reviewed like code. Each lesson has an id (8 hex characters of SHA-256 over the change), a status (proposed, approved, rejected, retired), the sentence by language, at least one piece of evidence (kind: observation, test, correction, document, note; with location and date), who learned it, a review date and the history of every event. The same change proposed twice is the same lesson; its evidence is added.
Vorschlagen, prüfen, genehmigen, anwendenPropose, review, approve, apply
Ein Agent oder ein Mensch schlägt mit «slp propose» eine Lektion mit Beleg vor. «slp review» zeigt, was wartet, in klaren Worten mit Belegen. Ein Mensch genehmigt («slp approve», standardmässig mit Prüfdatum in 180 Tagen) oder lehnt ab («slp reject --reason»). Erst «slp apply» setzt genehmigte Lektionen in Kraft. Entscheidende Befehle verwenden den Git-Namen als Unterschrift.An agent or a person proposes a lesson with evidence via "slp propose". "slp review" shows what waits, in plain words with its evidence. A person approves ("slp approve", by default with a review date 180 days out) or rejects ("slp reject --reason"). Only "slp apply" puts approved lessons into effect. Deciding commands sign with the Git name by default.
Zwei Ziele: Gedächtnis-Datei und SEP-RegelnTwo targets: memory file and SEP rules
Ziel «memory»: SLP pflegt in CLAUDE.md oder AGENTS.md genau einen Block zwischen «slp:begin» und «slp:end», neu gebaut aus allen genehmigten Lektionen für diese Datei; Text ausserhalb gehört den Menschen und bleibt. Ziel «sep-rules»: Die Lektion fügt.sep.json eine Regel hinzu; Vergessen entfernt genau das, was sie hinzugefügt hat, ausser was eine andere genehmigte Lektion noch braucht. Unbekannte Ziele werden gemeldet, nie verworfen.Target "memory": SLP maintains exactly one block in CLAUDE.md or AGENTS.md between "slp:begin" and "slp:end", rebuilt from all approved lessons for that file; text outside the block belongs to people and is kept. Target "sep-rules": the lesson adds a rule to.sep.json; forgetting removes exactly what it added, except what another approved lesson still needs. Unknown targets are reported, never dropped.
Vergessen nimmt genau zurückForgetting takes back exactly
«slp forget» setzt eine Lektion auf «retired» und entfernt ihre Änderung aus dem Ziel: die Zeile im Gedächtnis-Block, die Regel in.sep.json. Der Eintrag im Lektionenbuch bleibt mit seiner Geschichte erhalten, damit sichtbar ist, was einmal galt und wer es zurückgenommen hat."slp forget" sets a lesson to "retired" and removes its change from the target: the line in the memory block, the rule in.sep.json. The ledger entry stays with its history, so it remains visible what once applied and who took it back.
Prüfung für die CICheck for CI
«slp check» schlägt fehl, wenn eine genehmigte Lektion nicht in Kraft ist oder ein gelernter Block ohne Lektion geändert wurde («Lernen ohne Genehmigung»). Mit «--strict» auch, wenn ein Prüfdatum vorbei ist. «--format github» schreibt Anmerkungen für GitHub Actions; eine fertige Action liegt in action.yml."slp check" fails when an approved lesson is not in effect or a learned block was changed without a lesson ("learning without approval"). With "--strict" it also fails when a review date has passed. "--format github" writes annotations for GitHub Actions; a ready-made action lives in action.yml.
Agenten dürfen vorschlagen, nie genehmigenAgents may propose, never approve
«slp mcp» startet einen MCP-Server mit drei Werkzeugen: slp_lessons (was genehmigt ist), slp_review (was wartet), slp_propose (vorschlagen mit Beleg). Ein Werkzeug zum Genehmigen gibt es nicht. «slp approve», «slp reject» und «slp forget» verweigern sich in der Shell eines Agenten (wenn CLAUDECODE gesetzt ist). Ein Claude-Code-Hook schickt den Agenten zurück, wenn er direkt in den gelernten Block schreibt."slp mcp" starts an MCP server with three tools: slp_lessons (what is approved), slp_review (what waits), slp_propose (propose with evidence). There is no tool to approve. "slp approve", "slp reject" and "slp forget" refuse to run inside an agent's shell (when CLAUDECODE is set). A Claude Code hook sends the agent back when it writes directly into the learned block.
ZweisprachigBilingual
Jeder Satz im Lektionenbuch kann in mehreren Sprachen stehen (--says-en, --says-de). Die Ausgabe spricht Englisch oder Deutsch (--lang), die Texte stehen in texts.json. Die Datei erklärt sich selbst im Feld «about» in jeder Sprache, die das Werkzeug spricht.Every sentence in the ledger can exist in several languages (--says-en, --says-de). Output speaks English or German (--lang), texts live in texts.json. The file explains itself in an "about" field in every language the tool speaks.
BefehleCommands
Die BefehlszeileThe command line
| BefehlCommand | Was passiertWhat happens |
slp init | Legt ein leeres Lektionenbuch slp.lessons.json im aktuellen Ordner an.Starts an empty ledger slp.lessons.json in the current folder. |
slp propose --says … --evidence … --where … [--by …] [--memory FILE | --sep-rule KIND=PATTERN | --from-sep REPORT] | Schlägt eine Lektion mit Beleg vor; sie wartet auf den Entscheid eines Menschen. Mit --from-sep eine Lektion je Regelvorschlag aus «sep observe --format json».Proposes a lesson with evidence; it waits for a person's decision. With --from-sep, one lesson per suggested rule from "sep observe --format json". |
slp review | Zeigt, was auf einen Entscheid wartet, in klaren Worten mit Belegen.Shows what waits for a decision, in plain words with evidence. |
slp list [--status …] | Listet alle Lektionen mit Kennung und Status.Lists all lessons with id and status. |
slp show ID | Zeigt eine Lektion mit allen Belegen und ihrer Geschichte.Shows one lesson with all evidence and its history. |
slp approve ID… [--reason …] [--review-days N] | Genehmigt Lektionen (Prüfdatum standardmässig in 180 Tagen); verweigert sich in der Shell eines Agenten.Approves lessons (review date 180 days out by default); refuses to run in an agent's shell. |
slp reject ID… --reason … | Lehnt Lektionen mit Begründung ab.Rejects lessons with a reason. |
slp apply | Setzt genehmigte Lektionen in Kraft: schreibt den Block in die Gedächtnis-Datei, die Regeln in.sep.json.Puts approved lessons into effect: writes the block into the memory file, the rules into.sep.json. |
slp forget ID… | Nimmt eine Lektion zurück und entfernt genau ihre Änderung aus dem Ziel.Takes a lesson back and removes exactly its change from the target. |
slp check [--strict] [--format text|github] | Für die CI: schlägt fehl bei Lernen ohne Genehmigung oder nicht wirksamen genehmigten Lektionen; --strict auch bei abgelaufenem Prüfdatum.For CI: fails on learning without approval or approved lessons not in effect; --strict also on a passed review date. |
slp mcp | MCP-Server für Agenten: lesen, prüfen, vorschlagen; kein Werkzeug zum Genehmigen.MCP server for agents: read, review, propose; no tool to approve. |
Erweiterungen:Extensions: Claude Code
Wer entscheidetWho decides
Der Mensch, an einem klaren PunktA person, at a clear point
Ein Mensch entscheidet über jede Lektion: genehmigen (mit Begründung und Prüfdatum), ablehnen (mit Begründung) oder später vergessen. Die KI darf nur vorschlagen und lesen; genehmigen gibt es weder als MCP-Werkzeug noch in der Shell eines Agenten. Weil das Lektionenbuch im Repository liegt, ist jede Genehmigung eine Änderung an einer Datei, die wie Code geprüft wird. A person decides on every lesson: approve (with reason and review date), reject (with reason), or later forget. The AI may only propose and read; approval exists neither as an MCP tool nor inside an agent's shell. Because the ledger lives in the repository, every approval is a change to a file that is reviewed like code.
Im ZusammenspielIn concert
Was SLP mit den anderen verbindetWhat connects SLP with the others
SWP sagt, was die KI in einem Auftrag darf und hält in der Quittung fest, was sie getan hat; was sie dabei gelernt hat, wird SLP vorgeschlagen, und ein Mensch entscheidet, was sie behält.SWP says what the AI may do in a work order and records in the receipt what it did; what it learned along the way is proposed to SLP, where a person decides what it keeps.
SEP beobachtet Code beim Laufen und findet, was das Lesen übersieht; «slp propose --from-sep» macht aus jedem Regelvorschlag eine Lektion mit Belegen, und nach Genehmigung und «slp apply» steht die Regel in.sep.json, wo «sep lock» und «sep guard» sie durchsetzen.SEP watches code run and finds what reading missed; "slp propose --from-sep" turns each suggested rule into a lesson with evidence, and after approval and "slp apply" the rule sits in.sep.json, where "sep lock" and "sep guard" enforce it.
«SWELP init» legt das Lektionenbuch an und registriert den SLP-MCP-Server, «SWELP status» zeigt wartende und genehmigte Lektionen unter «Lernt», und «SWELP hook post» ruft nach jeder Änderung «slp check», damit kein Lernen ohne Genehmigung durchrutscht."SWELP init" creates the ledger and registers the SLP MCP server, "SWELP status" shows waiting and approved lessons under "Learns", and "SWELP hook post" runs "slp check" after every change so no learning without approval slips through.
Der SWELPER baut kein eigenes Lernbuch: sein Lernbuch je Kontext ist der SLP-Ledger, und der Dispatcher soll daraus später selbst Aufträge vorschlagen; bis der SWELPER einen eigenen SLP-Ledger führt, stehen Lektionen im Lernbuch des Kontexts, dessen Pfad der Kontext selbst nennt.The SWELPER builds no learning book of its own: its book of lessons per context is the SLP ledger, and the Dispatcher is meant to propose work orders from it later; until the SWELPER keeps its own SLP ledger, lessons go into the context's lesson book, whose path the context itself names.
Stand und GrenzenStatus and limits
Ehrlich, Stand November 2026Honestly, as of November 2026
Stand:Status: Version 0.1.0, Protokoll-Spezifikation 0.1 als Entwurf. Erstes Release am 1.11.2026. Entwicklungsstand laut pyproject.toml: Alpha. 24 Tests, alle grün (python -m unittest discover -s tests, am 8.11.2026 ausgeführt). Keine Laufzeit-Abhängigkeit, Python 3.10 oder neuer. Lizenz: proprietär, Copyright 2026 Alban Hyseni, alle Rechte vorbehalten; mit Zugang 30 Tage zur Prüfung, alles andere braucht eine Lizenz (LICENSE, NOTICE). Installation heute: pip install git+https://github.com/BanioX/swelp, danach «slp init»; PyPI-Veröffentlichung ist nicht belegt.Version 0.1.0, protocol specification 0.1 as a draft. First release on 1 November 2026. Development status per pyproject.toml: Alpha. 24 tests, all passing (python -m unittest discover -s tests, run on 8 November 2026). No runtime dependency, Python 3.10 or newer. Licence: proprietary, copyright 2026 Alban Hyseni, all rights reserved; 30 days of evaluation with access, everything else needs a licence (LICENSE, NOTICE). Installation today: pip install git+https://github.com/BanioX/swelp, then "slp init"; a PyPI release is not documented.
Grenzen:Limits: Dass «slp approve» sich in einem Agenten verweigert, ist eine Bremsschwelle, kein Schloss; was das Lektionenbuch schützt, ist die Prüfung der Datei durch Menschen. SLP sieht nur, was über SLP und seine Ziele gelernt wird (Gedächtnis-Blöcke, SEP-Regeln); lernt ein Agent anderswo, bleibt das unsichtbar. Heute gibt es zwei Ziele: Gedächtnis-Dateien und SEP-Regeln. Geplant laut Roadmap: weitere Ziele, Policies (Lektionen bestimmter Art dürfen durch eine von Menschen geschriebene Regel genehmigt werden) und eine Prüfseite im Browser mit Belegen nebeneinander. Die Spezifikation liegt nur auf Englisch vor. Refusing "slp approve" inside an agent is a speed bump, not a lock; what protects the ledger is people reviewing the file. SLP only sees what is learned through SLP and its targets (memory blocks, SEP rules); an agent that learns elsewhere stays unseen. Two targets exist today: memory files and SEP rules. Planned per the roadmap: more targets, policies (lessons of some kinds may be approved by a rule a person wrote), and a review page in the browser with the evidence side by side. The specification exists in English only.
LoslegenGet startedZurück zum ZusammenspielBack to how they fit