Skip to content

Support centralized memory consolidation service #29318

Open

Description

@zclllyybb

What variant of Codex are you using?

CLI

What feature would you like to see?

I need the ability to proactively trigger memory compaction from the front end, similar to codex memory maintain --wait.

Requirement Background:

I have a large number of temporary codex processes running on distributed temporary machines and headless environments, used for CI/CD tasks. I want them to share memory, but due to machine cost considerations, I cannot wait for memory compaction to complete in the temporary environment. Therefore, I need a central memory machine to collect session data and perform memory compaction and distribution centrally.

Additional information

Do not wish to disturb the official developers of codex, but if other users have the same need, a temporary patch is provided at https://github.com/zclllyybb/codex/tree/codex-memory-maintain-command.

Activity

  1. added
    enhancement
    on Jun 21, 2026
  2. added
    CLI
    on Jun 21, 2026
  3. Necmttn commented on Jun 21, 2026

    @Necmttn

    A central memory maintainer needs an import/export contract, not only a remote command.

    Useful manifest fields:

    • source host id and project key
    • session ids and history ranges included
    • compact revision before/after
    • memory schema/version
    • source transcript hashes or offsets
    • maintainer run id and timestamp
    • conflict policy for two hosts updating the same memory namespace

    Temporary workers should be able to upload a bounded memory package and exit. The central maintainer can compact later, then publish a new memory revision that clients fetch by project key. That keeps the expensive machine out of the critical path while preserving traceability.


    Generated with ax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIenhancementmemory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions