Skip to main content

The project folder

A project can keep a small folder of its own, named after the product with a dot in front (.gcode), in its root, the way many tools keep .vscode. Commit it, and everybody who opens the project gets the same editor settings, the same commands, the same suggestions and the same instructions for agents.

.gcode/
├── settings.json editor settings of the project
├── tasks.json commands to pick from the Command Palette
├── extensions.json extensions the project recommends
└── agents.md what an AI agent is told when it starts here

Every file is optional. gCode reads the folder when the project opens and reads it again every few seconds, so a pull that brings a new version, or an edit in any editor, shows up without reopening the project. A file that cannot be used (invalid JSON, a value that makes no sense, a file that is too large) is named in a notification and left out; the other files still count.

Nothing here runs by itself

A file in the folder can change how the editor behaves and add entries to lists. It never starts a command, never approves language servers for the project, and never installs an extension. Commands run only when you pick one, and you still approve language servers yourself (Editor guide).

settings.json​

{
"tab_size": 2,
"hard_tabs": false,
"line_endings": "lf",
"format_on_save": true
}
SettingValues
tab_sizea number from 1 to 16
hard_tabstrue to indent with tabs, false for spaces
line_endings"preserve" (keep what the file has), "lf" or "crlf"
format_on_savetrue to format with the language server when a file is saved

A setting you leave out stays as you set it for the project. A setting in the file wins over what you saved in the project's own settings, and an .editorconfig that matches a file still wins over both for that file.

tasks.json​

{
"tasks": [
{ "name": "check", "command": "bun run check" },
{ "name": "dev", "command": "bun run dev" }
]
}

The tasks are listed next to the scripts gCode finds in package.json, Cargo.toml and a Makefile (Command Palette → Show Project Scripts), under project tasks. A task has a short name and a one-line command for the shell; the list shows the line before you run it. Running, stopping, restarting and the output work as for every script.

extensions.json​

{ "recommendations": ["issues"] }

An extension the project recommends and you do not have is marked Recommended in the Extensions view, and a notification offers to show it, once for each project. Nothing is installed for you.

agents.md​

Plain text: the rules of the project for an AI agent, such as how to run the tests or what not to touch. When you start Codex or Claude in the project (also in an agent worktree), the text is the first message of the session, with a line asking the agent to follow it and wait for your task. A file longer than 32 KB is not used.