autopoiesis-loop

autopoiesis-loop is a skill for Claude Code, Codex from isaacsight/kernel. It costs 39 tokens per session (637 once invoked), scanned A, original, MIT.

A workflow for improving a coding agent across multiple work sessions by recording lessons and turning repeated solutions into reusable skills. It treats the agent's tools and workbench as part of the same improvement process.

In plain words
What is it for?
It helps bootstrap a session, identify repeated patterns, write new skills, record lessons in a scratchpad, and leave corrective signals after failures.
Why use it?
It prevents useful discoveries and corrections from being forgotten between sessions. It creates a feedback loop for improving skills, routing, notes, and background maintenance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps bootstrap a session, identify repeated patterns, write new skills, record lessons in a scratchpad, and leave corrective signals after failures.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/isaacsight/kernel/autopoiesis-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add isaacsight/kernel --skill autopoiesis-loop
Clone the repo
git clone --depth 1 https://github.com/isaacsight/kernel

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for autopoiesis-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/isaacsight/kernel/autopoiesis-loop.svg)](https://agentmods.dev/skills/isaacsight/kernel/autopoiesis-loop)
Your own site
<a href="https://agentmods.dev/skills/isaacsight/kernel/autopoiesis-loop"><img src="https://agentmods.dev/badge/skills/isaacsight/kernel/autopoiesis-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00637
Opus 5 $0.00019 $0.00318
Sonnet 5 $0.00008 $0.00127
Haiku 4.5 $0.00004 $0.00064

Measured 4d ago against content hash f70ae6b5dda1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

autopoiesis-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/kbot/skills/self-improvement/autopoiesis-loop/SKILL.md · 48 lines

How it starts

The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Autopoiesis Loop

kbot is the tool and the workbench. Every session has two outputs: the thing the user asked for, and the incremental improvement to kbot itself. Sessions that only produce the first are leaving compound interest on the table.

The Five Moves (once per session)

  1. Session start — run kbot bootstrap. The bootstrap agent surfaces the highest-leverage improvement based on accumulated signals. Do this before feature work, not instead of it.
  2. During work — notice repeated patterns. Each repetition is a skill waiting to be written (skill-self-authorship).
  3. On friction — missing tool? forge-reflex. Wrong specialist? Update the learned router via corrective feedback.
  4. Session end — update SCRATCHPAD.md with what you learned (not what you did). The next session's opening context reads this file.
  5. Overnight — the dream engine consolidates transcripts into memory entries. The daemon reviews diffs, runs code quality scans, translates i18n. Work continues while the user sleeps.

Iron Law

NEVER END A SESSION WORSE THAN IT STARTED.

If kbot hit a wall and you didn't leave a corrective signal behind (a skill, a memory, a scratchpad note, a corrected learned-router pattern), the loop is broken.

The Three Signals That Compound

  • Corrections — user says "no, do X instead." These go into ~/.kbot/corrections/ and load as closed-loop prompts.
  • Teacher traces — every non-local Claude call is logged to ~/.kbot/teacher/traces.jsonl. Weekly, kbot train-self fine-tunes local models on the best ones.
  • Skills — successful patterns distilled into ~/.kbot/skills/. Loaded on relevance.

Each of these runs automatically once wired up. The skill is knowing to wire them up in the first place.

What Emerges

Three weeks of active use and kbot's answers start feeling tuned to this user specifically. Six weeks in, the local model (via train-self) is answering basic questions at zero cost. Three months in, kbot's corrections archive has more collective wisdom than the user's own notes.

Read the full file on GitHub · 48 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 48 lines · 39 tokens per session scan A f70ae6b5dda1

Subscribe to this mod's changes

autopoiesis-loop is a skill published in the GitHub repository isaacsight/kernel (16 stars, last pushed 9d ago), licensed MIT. It adds 39 tokens to every session and 637 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

routine-from-chat

Turn a plain-language "do this automatically" request into a routine — either event-triggered ("text me when I get an email from my landlord") or scheduled ("remind me every Friday at 9am"). For third-party events (Gmail, GitHub, Slack…) it confirms with the guardian and then subscribes to the connector trigger so the…

rome-os/rome · 124 tokens

inkbox-cli

Use when running or writing shell commands with the Inkbox CLI (inkbox / @inkbox/cli) for identities, email, mailbox imports, phone, text/SMS, iMessage, A2A task/message history, contacts, notes, contact rules, vault, mailbox storage, mail clients (IMAP/SMTP), phone number, webhook, or signup workflows.

inkbox-ai/inkbox · 81 tokens

instar-session

Spawn, monitor, and communicate with persistent Claude Code sessions running in the background. Use when a task needs to run without blocking the current session, when the user asks to do something in the background, or when a long-running task needs its own context window. Trigger words: background task, spawn…

JKHeadley/instar · 0 tokens

google

Gmail, Google Calendar, Drive, Docs, Sheets and Contacts for a connected Google account: read and search mail, send and reply, book and move meetings, find files, read and write Docs and Sheets, look people up. Use whenever the user mentions their email, inbox, calendar, meetings, Drive, a Google Doc or Sheet.

intentic/intentic · 0 tokens

iq

Workspace code search — one call from a question to ranked path:line anchors. Use for definitions, references, natural-language code questions, file skeletons, and git history.

intentic/intentic · 37 tokens

example-notes

Leave a short note for the owner in the Example rail view, using the intentic-example CLI. Use when the user asks you to note, jot, remember or flag something lightweight for them to read later, and when you want to leave a breadcrumb about work you did that has no better home.

intentic/intentic · 66 tokens