A Unity Editor tool that exports your staged C# and Markdown files as ChatGPT-ready context (Code.txt, Instructions.md, and optional git_status.txt).
- Stage/unstage system for
.csand.mdfiles - Search and filter support for staged files
- Git diff export (
git log+git diffwith author/grep filters) - Prompt generator with New, Ongoing, or Don’t Open modes
- Quick range selectors: Last 24h, Last 7 Days, This Month, All Time
- Persistent settings via
EditorPrefs - Fully modular architecture (
FileStagingManager,GitIntegration,PromptWindow, etc.)
You can install this package via Git URL using Unity’s Package Manager.
- Open Unity → Window → Package Manager
- Click + → Add package from git URL...
- Paste the following link:
https://github.com/zenoxzx/chatgpt-context-exporter.git#upm
Alternatively, you can edit your Packages/manifest.json file directly:
{
"dependencies": {
"com.zenoxzx.chatgpt-context-exporter": "https://github.com/zenoxzx/chatgpt-context-exporter.git#upm"
}
}After installing the package, open the exporter from the Unity menu:
Tools → ChatGPT → Project Context Exporter
| Tab | Description |
|---|---|
| Code | Stage or unstage .cs files to include in Code.txt. |
| Instructions | Stage .md instruction files for Instructions.md. |
| Settings | Configure export and root paths. |
| Git | Export git diff and logs within a selected date range. |
Shows the staging system for .cs files — select which code files will be exported to Code.txt.
Stage .md documentation or design files for Instructions.md.
Select a date range, apply filters, and export diffs to git_status.txt.
The generated prompt window shown after export (if enabled).
You can copy the prompt directly to ChatGPT.
- Quick Range Buttons: Quickly set date ranges such as Last 24h, Last 7 Days, This Month, or All Time.
- Author Filter: Filter commits by author.
- Grep Filter: Search commit messages by keyword.
- Export Git Status: Enable or disable inclusion of
git_status.txt.
When exporting, the prompt window can behave in three ways:
| Mode | Description |
|---|---|
| New Conversation | For starting a brand-new ChatGPT discussion about the project. |
| Ongoing Conversation | For continuing a previous ChatGPT conversation (updates only). |
| Don't Open Prompt Window | Skips opening the prompt window after export. |
com.zenoxzx.chatgpt-context-exporter/
│
├── package.json
├── CHANGELOG.md
├── LICENSE.md
├── README.md
│
└── Editor/
├── ChatGPTContextExporter.asmdef
├── ProjectContextExporterWindow.cs
├── PromptWindow.cs
├── PromptMode.cs
├── Tab.cs
├── GitIntegration.cs
└── FileStagingManager.cs
After pressing Export, three files are generated in your chosen export directory:
Code.txt
Instructions.md
git_status.txt (if Export Git Status is enabled)
You can then copy the auto-generated prompt from the popup window or disable it via “Don’t Open Prompt Window”.
This package is distributed under the MIT License.
See LICENSE.md for full details.
Aygün ÖZGÜR
GitHub: github.com/zenoxzx



