Self Improving For Codex logo

Self Improving For Codex

Community
GODGOD126
self-improving-for-codex

Build or maintain a Codex-native self-improving memory loop using global `AGENTS.md`, a persistent memories directory, and optional nightly refinement automation. Use when Codex needs to adapt OpenClaw-style self-improvement ideas to Codex, set up long-term user/profile memory, create `PROFILE.md` / `ACTIVE.md` / `LEARNINGS.md` / `ERRORS.md` / `FEATURE_REQUESTS.md`, add promotion rules from raw learnings into active guidance, or create a recurring memory-refinement automation.

Overview

PublisherGODGOD126
Repositoryself-improving-for-codex
Skill nameself-improving-for-codex
Stars
130
Forks
16
Bundled files
4
LicenseMIT
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.

  • 4 bundled files

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

  • Open source

    Published by GODGOD126 on GitHub. Read the source before you install it.

Installation

Install the Self Improving For Codex 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.
    https://github.com/GODGOD126/self-improving-for-codex/tree/main
  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/GODGOD126/self-improving-for-codex.git \
  .claude/skills/self-improving-for-codex
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Self Improving For Codex 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 For Codex 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 For Codex 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 for Codex

Overview

Use this skill to give Codex a durable, Codex-native self-improving loop without depending on OpenClaw-only primitives such as SOUL or HEARTBEAT.md.

This skill assumes one stable rule-entry file and one stable memory directory:

  • Global rule entry: ~/.codex/AGENTS.md
  • Global memory directory: prefer ~/.codex/memories/

Workflow

1. Audit the current state

Inspect these locations first:

  • global AGENTS.md
  • the candidate memory directory
  • any existing PROFILE.md, ACTIVE.md, LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.md
  • any existing automation related to nightly review or memory maintenance

If the environment already contains a partial setup, preserve it and extend it instead of replacing it blindly.

2. Establish the memory layout

Create or normalize these files in the global memory directory:

  • PROFILE.md
  • ACTIVE.md
  • LEARNINGS.md
  • ERRORS.md
  • FEATURE_REQUESTS.md

Read references/memory-files.md when creating or repairing these files.

Use this separation consistently:

  • PROFILE.md: long-term stable user profile and communication preferences
  • ACTIVE.md: compact high-priority rules worth reading at the start of future tasks
  • LEARNINGS.md: reusable learnings and corrections not yet promoted to top-level rules
  • ERRORS.md: reusable debugging and environment failure knowledge
  • FEATURE_REQUESTS.md: missing capabilities worth tracking across sessions

3. Wire the loop through AGENTS.md

Use AGENTS.md as the single Codex-native entry point.

Its job is to tell Codex:

  • which memory files to read before starting work
  • when to log new entries
  • how to classify entries by file
  • when to promote content from raw logs into ACTIVE.md
  • that AGENTS.md itself must not be edited automatically unless the user explicitly asks

Read references/agents-snippet.md before proposing or updating the AGENTS.md text.

Unless the user explicitly asks for direct edits, propose the exact AGENTS.md snippet in chat and let the user apply it manually.

4. Add an optional nightly review loop

When the user wants recurring maintenance, create a nightly automation that:

  • reviews the current memory files
  • primarily refines LEARNINGS.md, ERRORS.md, and FEATURE_REQUESTS.md
  • proposes or applies safe updates to the memory files
  • never edits AGENTS.md automatically

Read references/nightly-review.md before designing the automation.

5. Validate the loop

Before finishing, confirm the setup actually forms a loop:

  1. AGENTS.md points Codex to PROFILE.md and ACTIVE.md
  2. the five memory files exist and have sane content
  3. promotion rules are explicit
  4. if automation was requested, the automation prompt clearly explains the refinement-only role and promotion rules

Promotion Rules

Apply these promotion rules consistently:

  • Promote to ACTIVE.md only when the content is stable, cross-task useful, and likely to improve future execution or communication
  • Keep PROFILE.md limited to durable user identity, style, and preference facts
  • Keep temporary context out of PROFILE.md
  • Keep one-off noise out of all memory files
  • If a candidate item is ambiguous, keep it in a raw log or leave it as a proposal instead of promoting it

Safety Rules

  • Do not assume Codex automatically reads arbitrary memory files; route the loop through AGENTS.md
  • Do not describe OpenClaw-only mechanisms as if they exist natively in Codex
  • Do not edit AGENTS.md automatically unless the user explicitly asks
  • Prefer updating ACTIVE.md over bloating AGENTS.md
  • Prefer compact, maintainable rules over long narrative summaries

Deliverables

When using this skill, aim to produce some or all of these:

  • a memory directory with the five core files
  • a proposed AGENTS.md snippet
  • an optional nightly automation prompt
  • a short explanation of what was created, what was not changed, and how the loop works

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 For Codex AI skill do?

Build or maintain a Codex-native self-improving memory loop using global `AGENTS.md`, a persistent memories directory, and optional nightly refinement automation. Use when Codex needs to adapt OpenClaw-style self-improvement ideas to Codex, set up long-term user/profile memory, create `PROFILE.md` / `ACTIVE.md` / `LEARNINGS.md` / `ERRORS.md` / `FEATURE_REQUESTS.md`, add promotion rules from raw learnings into active guidance, or create a recurring memory-refinement automation.

Why use Self Improving For Codex on TypingMind?

Because you install it once and use it with any model. Self Improving For Codex 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 For Codex in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/GODGOD126/self-improving-for-codex/tree/main. 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 For Codex?

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 For Codex?

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

Is the Self Improving For Codex AI skill free?

Yes. It is published on GitHub by GODGOD126 under the MIT license. 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 👇