self-evolving-single-agent

self-evolving-single-agent is a skill for Claude Code, Codex from agentlas-ai/Agentlas-OS. It costs 40 tokens per session (411 once invoked), scanned A, original, Apache-2.0.

A guide for creating one installable AI agent that can learn from new information, track sources, suggest repairs, and improve over time.

In plain words
What is it for?
Use it to build a single evolving agent, document its research and tools, store project knowledge, refresh sources, and evaluate its capabilities.
Why use it?
It helps design a self-improving worker with memory, research updates, and human approval before changes are applied.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions AGENTS.md.

About the project

Agentlas OS is a local-first system for creating, storing, borrowing, and running specialist AI agents and temporary agent teams through supported hosts and models. It serves people who want reusable agents that remain available across computers and model workspaces, and the catalogue contains its skills, commands, hooks, agents, instructions, plugin, and rule.

agentlas-ai/Agentlas-OS · 1,103 stars · on GitHub · agentlas.cloud

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.

agentmods
npx agentmods add skills/agentlas-ai/agentlas-os/self-evolving-single-agent
Any agent
npx skills add agentlas-ai/Agentlas-OS --skill self-evolving-single-agent
Clone the repo
git clone --depth 1 https://github.com/agentlas-ai/Agentlas-OS

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 self-evolving-single-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentlas-ai/agentlas-os/self-evolving-single-agent.svg)](https://agentmods.dev/skills/agentlas-ai/agentlas-os/self-evolving-single-agent)
Your own site
<a href="https://agentmods.dev/skills/agentlas-ai/agentlas-os/self-evolving-single-agent"><img src="https://agentmods.dev/badge/skills/agentlas-ai/agentlas-os/self-evolving-single-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 411 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00040 $0.00411
Opus 5 $0.00020 $0.00205
Sonnet 5 $0.00008 $0.00082
Haiku 4.5 $0.00004 $0.00041

Measured 6d ago against content hash 700e84029b0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

self-evolving-single-agent 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 6d 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.

.agents/skills/self-evolving-single-agent/SKILL.md · 39 lines

What it actually says

Self-Evolving Single Agent

Procedure

  1. Keep the package as one worker unless the user asks for a team.
  2. Run contracts/builder-interview-research-gate.md before generation: ask an 8-12 question first batch, research official sources, similar agent repositories or comparables, academic/professional theory, and plugin docs, compare tool/plugin choices, and write the domain-expert synthesis plus prompt-performance contract before creating the worker prompt.
  3. Add memory architecture even for the single worker:
    • .agentlas/memory-map.json;
    • .agentlas/vault-references.json;
    • project memory owned by PM Soul/project owner;
    • Memory Events and Memory Tickets for durable updates.
  4. If the task depends on current sources, add a research-refresh command, watchlist memory section, references, and optional scheduled workflow.
  5. Add docs/builder-interview.md, docs/research-sources.md, docs/tool-selection.md, docs/domain-expert-synthesis.md, docs/prompt-performance-contract.md, and .agentlas/capability-eval-plan.json unless explicitly creating a minimal private scaffold.
  6. Make self-evolution proposal-first: draft patches or repair kits, then wait for human approval before changing tools, connectors, secrets, or core instructions.
  7. Add .agentlas/global-commands.json and one public global command for the worker across Claude Code, Codex, Gemini CLI, generic AGENTS.md, and terminal adapters.

Output

Return agent_package, skills, memory_contract, refresh_loop, approval_gate, global_commands, and verification.

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. 6d ago First seen · 39 lines · 40 tokens per session scan A 700e84029b0e

Subscribe to this mod's changes

self-evolving-single-agent is a skill published in the GitHub repository agentlas-ai/Agentlas-OS (1,103 stars, last pushed today), licensed Apache-2.0. It adds 40 tokens to every session and 411 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-08-30.