self-improving-for-codex

Automate Codex memory maintenance with nightly pipeline scripts.

14|1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/cyjjjj-21/self-improving-for-codex --skill self-improving-for-codex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: self-improving-for-codex
Source: https://github.com/cyjjjj-21/self-improving-for-codex/tree/main
Command: npx skills add https://github.com/cyjjjj-21/self-improving-for-codex --skill self-improving-for-codex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps Codex build a durable, Codex-native self-improving memory loop by coordinating a global AGENTS.md entry point and a persistent memories directory, minimizing reliance on indirect primitives and ensuring memory hygiene across sessions.

Core Features & Use Cases

  • Deterministic maintenance scripts: memory_sync.py, nightly_refine.py, generate_local_skill_index.py, run_night_memory_pipeline.py.
  • Clear memory lifecycle: structured memory files (PROFILE.md, ACTIVE.md, LEARNINGS.md, ERRORS.md, FEATURE_REQUESTS.md) with audit logging and promotion rules.
  • Nightly automation for bridge syncing, memory refinement, and local skill index regeneration to support repeatable improvement.

Quick Start

Execute the nightly memory pipeline using the provided scripts to start the maintenance loop.

Frequently Asked Questions about self-improving-for-codex

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate a persistent memory loop for Codex across sessions?

You can automate Codex memory self-improvement by coordinating AGENTS.md with a persistent memories directory. This approach uses deterministic nightly maintenance scripts to sync bridges and refine memory files.

What is the memory lifecycle when managing AGENTS.md and structured memory files?

The memory lifecycle uses structured files like PROFILE.md, ACTIVE.md, and LEARNINGS.md. It applies audit logging and promotion rules to elevate stable learnings across cross-task scenarios.

How do I run nightly memory refinement and local skill index regeneration?

You run the nightly memory pipeline using scripts like nightly_refine.py and generate_local_skill_index.py. These scripts perform bridge syncing, memory refinement, and weekly indexing automatically.

Can I promote stable learnings into ACTIVE.md across cross-task scenarios?

Yes, the memory loop promotes stable learnings into ACTIVE.md or PROFILE.md. It leverages memory_sync.py to maintain memory hygiene and ensure durable improvements across different tasks.

Does this self-improving memory approach require external dependencies?

No, it operates without external dependencies. The self-improving memory loop relies entirely on internal scripts like run_night_memory_pipeline.py to perform deterministic maintenance and bridge syncing.

Why does Codex lose context and require a structured memory directory?

Codex loses context across sessions without a durable memory loop. A persistent memories directory with structured files and audit logging minimizes reliance on indirect primitives and ensures memory hygiene.