Self Improving Agent logo

Self Improving Agent

OrganizationPopular
omnimind-ai
self-improving-agent

Built-in self-improvement loop for Omnibot agents. Use to record non-trivial failures, user corrections, outdated assumptions, and reusable best practices into structured workspace learnings, then promote stable rules into memory.

Overview

Publisheromnimind-ai
RepositoryOmniBot
Skill nameself-improving-agent
Stars
2K
Forks
142
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by omnimind-ai on GitHub. Read the source before you install it.

Installation

Install the Self Improving Agent AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/omnimind-ai/OmniBot.git /tmp/OmniBot
mkdir -p .claude/skills
cp -r /tmp/OmniBot/app/src/main/assets/builtin_skills/self-improving-agent .claude/skills/self-improving-agent
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Self Improving Agent in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Self Improving Agent on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Self Improving Agent is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Self Improving Agent

This built-in skill is fixed-injected for Omnibot agent runs.

Use it to maintain a lightweight learning loop without interrupting the user's main task.

The runtime may auto-read this skill after a tool failure and auto-record the failure into data/ERRORS.md. Repeated failures with the same signature are merged into one bounded entry. If an argument/schema failure is followed by a successful call to the same tool in the same Agent run, the runtime closes that pending entry and distills the verified recovery into short-term memory.

When To Record

Record after the immediate task is safe or complete when any of these happens:

  1. a non-trivial command, tool, browser, or device action fails
  2. the user corrects your understanding, path, rule, or project assumption
  3. you discover an outdated Omnibot/runtime/project convention
  4. you find a reusable workaround or best practice that will likely save future retries
  5. the same mistake repeats in the same task or across tasks

Do not record ordinary chat, tiny one-off slips, or anything the user asked not to save.

Default Storage

  • skill-local learnings: .omnibot/skills/self-improving-agent/data/
  • project-local learnings: <project>/.learnings/ only when the lesson is repo-specific
  • long-term memory: .omnibot/memory/MEMORY.md via memory_upsert_longterm
  • short-term memory: .omnibot/memory/short-memories/ via memory_write_daily

Logging Workflow

  1. Finish or stabilize the current user-facing step first.
  2. Prefer the bundled scripts/omnibot_auto_log.sh for structured logging because it keeps IDs, headers, and append rules consistent.
  3. Use skill scope by default.
  4. Switch to --project /workspace/<repo> only when the lesson is clearly tied to one repository.
  5. Use learning for corrected knowledge or best practices.
  6. Use error for concrete failures with stderr, HTTP errors, stack traces, or invalid assumptions.
  7. Use feature for recurring capability gaps the user actually wants.
  8. Use promote <ENTRY_ID> only after the lesson looks reusable across tasks.

Memory Promotion

As soon as you actually fix a failure — or the same failure recurs — write one short "遇到 X 先 Y" rule to memory (memory_write_daily, or memory_upsert_longterm when it is broadly stable) and back-fill the ERRORS entry's 建议修复 and 状态 (pending → resolved). Do not leave a resolved failure sitting as pending with an empty fix.

The runtime can automatically close a same-run argument/schema failure after verified success. An execution/runtime failure remains pending and still needs a concrete fix from you before promotion. Do not promote a generic “retry succeeded” observation as a stable rule.

Promote a lesson into memory only when it is stable, short, and broadly reusable.

Good candidates:

  • a rule like “遇到 X 先检查 Y”
  • a stable workspace convention
  • a long-term user preference the user explicitly wants remembered

Prefer this order:

  1. log into the skill data first
  2. promote to the skill public area if it becomes broadly reusable
  3. write the distilled rule with memory_write_daily or memory_upsert_longterm

Do not invent Minis-only paths or tools such as /var/minis/... or memory_write.

Recall

Recorded failures and lessons are indexed into memory retrieval. Before retrying a tool, command, or environment step that has failed before — or when the injected memory context mentions a related pitfall — trust that recall (or call memory_search) and apply the known fix instead of repeating the failed step.

Command Patterns

Use the bundled script through sh:

bash
sh <scriptsDir>/omnibot_auto_log.sh init
sh <scriptsDir>/omnibot_auto_log.sh learning "摘要" "详情"
sh <scriptsDir>/omnibot_auto_log.sh error "摘要" "错误输出"
sh <scriptsDir>/omnibot_auto_log.sh feature "能力缺口" "用户背景"
sh <scriptsDir>/omnibot_auto_log.sh --project /workspace/my-repo learning "摘要" "详情"
sh <scriptsDir>/omnibot_auto_log.sh search 关键词
sh <scriptsDir>/omnibot_auto_log.sh promote LRN-20260409-ABC

If you need to refine an existing entry instead of appending a new one, use read and edit.

Output Discipline

  • keep summaries short and specific
  • include the concrete command/tool/context that failed
  • include the corrected rule, not only the symptom
  • avoid logging secrets, tokens, and personal data

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Self Improving Agent AI skill do?

Built-in self-improvement loop for Omnibot agents. Use to record non-trivial failures, user corrections, outdated assumptions, and reusable best practices into structured workspace learnings, then promote stable rules into memory.

Why use Self Improving Agent on TypingMind?

Because you install it once and use it with any model. Self Improving Agent is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Self Improving Agent in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/omnimind-ai/OmniBot/tree/main/app/src/main/assets/builtin_skills/self-improving-agent. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Self Improving Agent?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Self Improving Agent?

As many as you like. As long as a model supports skills, you can use Self Improving Agent with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Self Improving Agent AI skill free?

It is published on GitHub by omnimind-ai. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇