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
npm global, npx, standalone binary, IDE plugin, or a manual single-file copy — all work on Node.js 18+.
Install once, use in every project. Also installs gen-context and gen-project-map globally.
Ideal for CI pipelines or one-off generation. No global state changes to your machine.
.github/copilot-instructions.md.Built with Node.js SEA (Single Executable Application). No Node.js runtime needed. Available on the GitHub Releases page.
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.
IDE Plugins
Native plugins for VS Code, Open VSX compatible editors, and all JetBrains IDEs — regenerate context without leaving your editor.
What's next