Feature Request: Support non-versioned project-level context for Codex
Problem
Codex currently uses AGENTS.md as the primary mechanism for providing project-specific instructions and context.
However, AGENTS.md is usually part of the repository and tracked by Git. This makes it unsuitable for storing persistent project knowledge that should not change with branches or be committed into the repository.
Developers need a place to keep long-lived project understanding, such as:
- Architecture overview
- System design background
- Domain knowledge
- Historical decisions
- Known issues
- Development environment notes
This information is valuable for Codex but is different from repository contribution rules.
Proposed Feature
Introduce a first-class non-versioned project context mechanism.
Possible examples:
~/.codex/projects/<project-id>/
context.md
architecture.md
decisions.md
notes.md
or:
<project-root>/.codex/context/
overview.md
architecture.md
decisions.md
Codex should automatically discover and load this context when operating inside the project.
Expected Model
Separate three types of context:
- User preferences
- Global coding preferences and workflow
- Repository instructions (
AGENTS.md)
- Coding rules
- Contribution requirements
- Team conventions
- Project context (new)
- Architecture understanding
- Historical decisions
- Domain knowledge
- Known tradeoffs
Why This Matters
Coding agents need persistent understanding of software systems, not only instructions.
Human developers maintain mental context about a project: why the architecture exists, which components are fragile, and what decisions were made previously. Codex should have a first-class way to maintain this knowledge without forcing developers to put everything into repository files.
Future Extensions
Potentially allow Codex to:
- Generate project context after exploring a repository
- Update project context as understanding evolves
- Integrate this with future memory capabilities
- Keep project knowledge independent from Git branches
This would make Codex significantly more effective for long-running projects and agent-driven development workflows.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional use case: Multi-folder project context.
Codex now allows users to add multiple folders into a single project/workspace. However, the agent currently has limited knowledge about the relationship between these folders.
For example:
A human developer understands:
frontendis a React application consuming APIs frombackendbackenddepends on models and utilities fromsharedinfrastructurecontains deployment definitions for both servicesBut from the agent's perspective, these may look like independent folders without explicit relationships.
A non-versioned project context could describe this topology:
This would allow Codex to reason about changes across multiple folders and avoid treating them as unrelated repositories.
This is especially important for:
This reinforces the need for a first-class project context model rather than only repository-level instructions.