Skip to content

memories: add extraction and prompt module foundation#11200

Open
jif-oai wants to merge 1 commit intojif/pr2-memory-consolidation-locksfrom
jif/pr3-memory-module-and-prompts
Open

memories: add extraction and prompt module foundation#11200
jif-oai wants to merge 1 commit intojif/pr2-memory-consolidation-locksfrom
jif/pr3-memory-module-and-prompts

Conversation

@jif-oai
Copy link
Collaborator

@jif-oai jif-oai commented Feb 9, 2026

Summary

  • add the new core/src/memories module (phase-one parsing, rollout filtering, storage, selection, prompts)
  • add Askama-backed memory templates for stage-one input/system and consolidation prompts
  • add module tests for parsing, filtering, path bucketing, and summary maintenance

Testing

  • just fmt
  • cargo test -p codex-core --lib memories::

/// Concurrency cap for startup memory extraction and consolidation scheduling.
pub(crate) const PHASE_ONE_CONCURRENCY_LIMIT: usize = MAX_ROLLOUTS_PER_STARTUP;
/// Maximum number of recent traces retained per working directory.
pub(crate) const MAX_TRACES_PER_CWD: usize = 10;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the name traces :(

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants