Better management of context output management structure

Resolved 💬 2 comments Opened Mar 11, 2026 by Lemonadeccc Closed Apr 18, 2026

What variant of Codex are you using?

CLI

What feature would you like to see?

During the interaction with the LLM CLI tool, a .context file is generated.

This file contains a project preferences folder (containing Markdown (.md) files for project code style and workflow), a temporary folder for currently uncommitted commits, and a folder with brief information on all commits.

The project preferences folder can contain coding-style.md and workflow.md files. The first can extract code style or specifications from other existing projects in the team to create Markdown documents. These can be permanently stored in the current conversation and committed to Git, prompting the LLM CLI tool to follow the entire workflow when fixing or adding new code, rather than simply fixing it without writing tests, etc.

The second temporary uncommitted commit folder stores the plans that need to be addressed in the current commit (such as feat/bug/chore, etc.). The LLM CLI records all contextual issues, actions, solution choices, and solutions within the current working directory. Before committing, this information is compressed into concise, human-readable data (e.g., headers like time, commit summary, author, plan, execute method, result, and bug). This compresses all issues and solutions within the commit to the most concise information, facilitating human analysis when hotfixes occur online.

The third folder is a document containing all this compressed information from each commit. It's used for tracing the source and providing bug fix guidance.

I believe this is a very necessary feature. On one hand, it improves LLM's ability to read the history of solution additions and fixes across all commits, making it more effective at identifying bugs. This contrasts with Git, which only commits the final code result, ignoring process details. This provides context engineering for future full automation of LLM.

  --prefs(coding_styels.md  workflow.md)
  --current/
      |
      --branches/
              |
              -- <branch-name>/
                          |
                          |-- uncommit.md (time commit  summary  author  plan  execute  method result&bug)
                          |--plan.md
  
  --history(commit.md)

Additional information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗