Repository navigation
M12.7, M12.8: modules 8000 and distros — build your own, plug into the kernel - #127
Merged
Merged
Conversation
~/.aloop/kernel/<name>/ modules (extension.json: on SubagentStop[:role] | Stop, command, timeout) add checks to the kernel. A project loads one only by pinning its sha256 in docs/agents/userspace/profile.json (aloop kernel pin, in git). kernel hook runs beside the core gates on SubagentStop and Stop, so a core block stands; exit 2 blocks with its reason; a module changed since its pin, missing, crashing or timing out, or an unreadable profile, blocks. Every run logs kernel.extension_run (gate-owned). aloop kernel profile names the opinion set (software, the TDD loop, is the default). Test: scripts/test/kernel-extensions.test.py (25 checks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8vyFzFFNgfzxTSoBd
…ffolds and how-to The host harness is the hardware, aloop is the kernel, modules plug into it, and a distro is a domain's full user-space bundle. Renamed from kernel extensions / packs / profile: aloop module new|add|remove|list|run|hook ~/.aloop/modules/<name>/module.json aloop distro [use|new|check|install] docs/agents/userspace/distro.json event: module.run (gate-owned) module new and distro new scaffold a working, commented example check; distro check refuses a distro that adds a role; distro install copies and adds its modules, copies its roles keeping the user's edits, and sets the distro. How-to: docs/BUILD-A-MODULE.md. Test: scripts/test/modules.test.py (34 checks). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8vyFzFFNgfzxTSoBd
adeelahmad
pushed a commit
that referenced
this pull request
Nov 20, 2026
… branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8wdhHQDM35jZMC9kX
adeelahmad
marked this pull request as ready for review
November 20, 2026 02:37
adeelahmad
pushed a commit
that referenced
this pull request
Nov 20, 2026
…randing branch; the site links the merged how-to Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FeZyj8wdhHQDM35jZMC9kX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Stacked on #124 (merged). This adds the second half of ROADMAP §4.15, using the names the owner chose on 2026-11-20:
aloop ships the means to build these, not a marketed one. Only the
softwaredistro (the TDD loop) ships.Modules:
aloop module new|add|remove|list|run|hookA module lives in
~/.aloop/modules/<name>/and contains:module.json, whoseonfield takesSubagentStop,SubagentStop:<role>orStop, pluscommandandtimeout.check.How it runs:
aloop module addpins the module's sha256 indocs/agents/userspace/distro.json, which is tracked in git.module hookis wired inhooks.jsonbeside the core gates on SubagentStop and Stop, so a core block stands whatever a module says.distro.json.module.runevent, which only the hook can write.Distros:
aloop distro [use|new|check|install]distro.json,modules/<name>/anduserspace/agents|skills/.module newanddistro newscaffold a working, commented example check.distro checkrefuses a distro that adds a role. A distro can only re-shape existing roles.distro installdoes four things: it copies the distro's modules, adds them, copies its roles while keeping the user's own edits, and sets the project's distro.docs/BUILD-A-MODULE.md("Build your own module").Evidence
scripts/test/modules.test.py: 34/34 pass. On master it fails because themoduletool doesn't exist there.userspace48/48,hook-matchers15,codex-hooks20,opencode-plugin,dsh-plugin,readme,check-tracking(121 requirements),shellcheck,pycheck.Calls / gaps
hooks.jsonhosts run modules so far (Claude Code and Codex). OpenCode and dsh are M12.12.🤖 Generated with Claude Code
https://claude.ai/code/session_01FeZyj8vyFzFFNgfzxTSoBd