One file. One command. Your AI coding agent gets full codebase context at every session start.
Prerequisites
One requirement. That's it.
node --version. Install from nodejs.org if needed. No other tools, runtimes, or package managers required.Installation
No package manager. No build step. Just copy one file into your project.
.github/copilot-instructions.md.--setup flag installs a git post-commit hook and starts a file watcher. From now on, every save and every commit automatically regenerates the context file.Verification
The token report and a structured context file your AI agent reads at every session start.
Configuration
Create gen-context.config.json in your project root. All fields optional.
copilot, claude, cursor, windsurf..contextignore file in your project root using the same gitignore syntax to exclude specific paths. This file is compatible with .repomixignore — you can symlink them to share one exclusion list.All CLI flags
Every flag the CLI accepts.
What's next