self-improving-agent

self-improving-agent is a skill for Claude Code, Codex from fisker086/AIOps. It costs 18 tokens per session (607 once invoked), scanned A, original, Apache-2.0.

A learning record for the coding agent that stores errors, lessons, uncertainty, and user corrections in a persistent database. It is intended to help the agent improve its future work.

In plain words
What is it for?
Use it after failed commands, repeated problems, uncertain approaches, or corrections from the user to record the cause, fix, and lesson.
Why use it?
It prevents the same mistakes from being forgotten after a task ends. Recording what went wrong and how it was fixed gives later work useful context.

Skill for Claude CodeCodex

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

Good fit Use it after failed commands, repeated problems, uncertain approaches, or corrections from the user to record the cause, fix, and lesson.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fisker086/aiops/self_improving_agent
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 fisker086/AIOps --skill self_improving_agent
Clone the repo
git clone --depth 1 https://github.com/fisker086/AIOps

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-improving-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/fisker086/aiops/self_improving_agent/github.svg)](https://agentmods.dev/skills/fisker086/aiops/self_improving_agent)
Your own site
<a href="https://agentmods.dev/skills/fisker086/aiops/self_improving_agent"><img src="https://agentmods.dev/badge/skills/fisker086/aiops/self_improving_agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-improving-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/fisker086/aiops/self_improving_agent"><img src="https://agentmods.dev/badge/skills/fisker086/aiops/self_improving_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 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.
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.00018 $0.00607
Opus 5.5 $0.00007 $0.00243
Sonnet 5.5 $0.00004 $0.00121
Haiku 4.5 $0.00002 $0.00061

Measured 2mo ago against content hash d3237a62ff95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-improving-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 2mo 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.

skills/self_improving_agent/SKILL.md · 82 lines

How it starts

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

Self-Improving Agent

This skill enables continuous improvement by tracking errors, lessons learned, and user corrections. Uses persistent database storage.

When to Use

Use this skill proactively in these scenarios:

  1. Command or operation fails unexpectedly - A tool execution fails, command returns error
  2. User corrects you - User says "no, that's wrong", "not what I meant", or provides corrections
  3. Repeated failures - Same type of error occurs multiple times
  4. Unknown uncertainty - Not sure if approach is correct, want to verify before proceeding

How It Works

Using the Tool

Use builtin_learning tool with the following operations:

1. Record a Learning (add)

Record what you learned from an error or correction:

operation: "add"
error_type: "shell_command_permission_denied"
context: "Tried to run 'apt-get install' without sudo"
root_cause: "User not in sudoers file"
fix: "Use 'sudo' prefix or check if user has permission"
lesson: "Always check if elevated permissions are needed before system commands"

Parameters:

  • operation: "add" or "create"
  • error_type: Short identifier (e.g., "shell_permission", "wrong_editor")
  • context: What were you trying to do?
  • root_cause: Why did it fail?
  • fix: What did you do differently?
  • lesson: What did you learn? (general principle)
  • user_id: User ID (optional, omit for global learning)
2. List Learnings (list)

Get all learnings for a user (or global if no user_id):

operation: "list"
user_id: "123"
3. Get Specific Learning (get)

Retrieve a specific learning by error_type:

operation: "get"
error_type: "shell_command_permission_denied"

Key Principles

  • Don't repeat mistakes - Apply learnings to avoid same class of errors
  • Be specific - Log concrete details, not vague notes
  • Extract patterns - Look for recurring themes
  • Acknowledge uncertainty - It's okay to ask for verification when unsure
  • Learn from users - Their corrections are valuable feedback

Read the full file on GitHub · 82 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. 2mo ago First seen · 82 lines · 18 tokens per session scan A d3237a62ff95

Subscribe to this mod's changes

self-improving-agent is a skill published in the GitHub repository fisker086/AIOps (22 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 607 once invoked, about $0.0001 per session on Opus 5.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.

Related

self-improving-agent compared with skills from other repositories

self-improving-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-improving-agentfisker086/AIOpsSkill224mo agoApache-2.0A18Claude Code, Codex
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex