AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Codex Memory Sync

skill-akin-lvyifang-codex-memory-lite-codex-memory-sync · by AKin-lvyifang

Use when the user says "Sync the current project memory", or when a long-running project changes phase, grows in context, or is about to end a thread.

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-akin-lvyifang-codex-memory-lite-codex-memory-sync

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-akin-lvyifang-codex-memory-lite-codex-memory-sync)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Codex Memory Sync? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Codex Memory Sync

When a task runs long, changes phase, approaches the end of a thread, or becomes context-heavy, sync the effective information from the session back into the project-local .codex-memory/.

Important: Always use the project-local .codex-memory/ (for example, {PROJECT_ROOT}/.codex-memory/), not the global ~/.codex-memory/.

Pre-Write Checks

Before any read, create, or write action, first define an absolute path variable: PROJECT_ROOT.

  • PROJECT_ROOT must be the project root for the current session
  • Do not treat ~, /, ~/.config/opencode, ~/.codex, a skills directory, or a config directory as the project root
  • If the current directory looks like a home directory or a config directory, or if the project root is still unclear, stop and confirm it first
  • All memory paths must be written as absolute paths: {PROJECT_ROOT}/.codex-memory/...
  • Do not treat the bare relative path .codex-memory/... as the final write target

When To Use

Use this when any of the following is true:

  • The user explicitly says "Sync the current project memory"
  • A phase of work just finished
  • The task changed direction
  • The current thread is about to end
  • Context has clearly grown large
  • The user explicitly asks to update current, write archive, or promote a rule

Natural Trigger Phrases

  • Sync the current project memory

Goal

Route information from the current session into the correct destination:

  • current effective state -> current.md
  • long-lived stable rules -> spec/
  • active task context -> tasks/active//
  • historical process -> archive/

Workflow

  1. Read:
  • .codex-memory/current.md
  • .codex-memory/spec/index.md
  • if an active task exists, also read its brief.md
  1. Extract information from the current session and classify it with the following rules:

A. current

Only write information to current.md if it is still currently effective:

  • current goal
  • scope / not doing
  • current status
  • stable constraints summary
  • key index
  • risks / next steps

B. spec

Promote a rule to spec/ if any of the following is true:

  • it stays valid across more than two sessions
  • it appears repeatedly in more than one topic
  • losing it would create obvious rework

C. tasks

If the current work belongs to an active task, sync:

  • brief.md
  • decisions.md
  • refs.md

D. archive

Write this round's process notes, old goals, one-off tweaks, and historical decisions into the monthly archive file

  1. Update rules:
  • current.md must be overwritten by section, not extended into a dated running log
  • historical information goes into archive/, not back into current.md
  • active tasks should keep only information that is still ongoing
  • do not dump every node ID into current; keep only the key few
  • if the target path is not {PROJECT_ROOT}/.codex-memory/, stop immediately and do not keep writing

Report Back

After sync finishes, report:

  • the PROJECT_ROOT used this time
  • updated files
  • what went into current
  • what went into archive
  • which rules were promoted into spec
  • whether any conflicts or pending confirmations were found

Constraints

  • Do not delete old archive records on your own
  • Do not mix "current state" and "historical process" back together
  • Do not create task directories unless they are actually needed
  • Do not create any .codex-memory/ directories or files before PROJECT_ROOT is confirmed

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.