Skip to content

Feature Request: Support non-versioned project-level context for Codex #37085

Open

Description

@jo-hnny

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:

  1. User preferences

    • Global coding preferences and workflow
  2. Repository instructions (AGENTS.md)

    • Coding rules
    • Contribution requirements
    • Team conventions
  3. 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.

Activity

  1. added
    enhancement
    on Aug 5, 2026
  2. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. jo-hnny commented on Aug 5, 2026

    @jo-hnny
    Author

    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:

    my-project/
    ├── frontend/
    ├── backend/
    ├── shared/
    └── infrastructure/
    

    A human developer understands:

    • frontend is a React application consuming APIs from backend
    • backend depends on models and utilities from shared
    • infrastructure contains deployment definitions for both services

    But from the agent's perspective, these may look like independent folders without explicit relationships.

    A non-versioned project context could describe this topology:

    # Project Structure
    
    This project contains four components:
    
    - frontend:
      User-facing web application.
      Depends on backend APIs.
    
    - backend:
      Main service implementation.
      Depends on shared libraries.
    
    - shared:
      Common types and utilities shared by frontend/backend.
    
    - infrastructure:
      Deployment and operational configuration.
    
    Dependency relationship:
    
    frontend -> backend -> shared
    infrastructure -> frontend/backend

    This would allow Codex to reason about changes across multiple folders and avoid treating them as unrelated repositories.

    This is especially important for:

    • monorepos
    • microservice systems
    • full-stack applications
    • large enterprise projects
    • long-running agent-driven development workflows

    This reinforces the need for a first-class project context model rather than only repository-level instructions.

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

    enhancementmemory

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions