Skip to content

Codemind agent setup

These are instructions for a coding agent. Follow everything inside the block below.

Set up Codemind for this project. Codemind writes and verifies code from a story. This needs Node 18 or newer.

Setup creates a free account and saves its key. Do not create the account any other way, and do not read, print or write the key anywhere yourself: the Codemind command line does it.

1. Run: npx @g-a-l-a-c-t-i-c/codemind@latest init
   It creates the account (or keeps the one already saved, so running it again is safe), saves the key to ~/.config/codemind/credentials.json (private, never printed) and proves it works with a keyed call: it must print "key: valid". If your permission mode refuses to run it, tell me to run it myself (in Claude Code, type ! npx @g-a-l-a-c-t-i-c/codemind@latest init ) and wait until I say it is done.

2. Tell me the claim link that init printed, and remind me to open it. Until I do, the account is anonymous: it has no owner, I cannot see it in the dashboard, and it expires if unused.

3. Install the Codemind skill, so that every later session in this project knows how to use it without me pasting anything:
   npx skills add https://codemindhq.dev -a <your own agent name, for example claude-code, cursor, codex or opencode> -y
   If that is refused or fails, say so and go on.

4. For how to build, run: npx @g-a-l-a-c-t-i-c/codemind@latest skill
   and follow what it prints. If anything fails, follow https://codemindhq.dev/agent-onboarding/SKILL.md instead.

5. If this project has JavaScript or TypeScript code, pick one tiny, useful function this project does not have yet, to be written as a NEW TypeScript file with a .ts extension, even if the project is plain JavaScript (do not modify existing files, and do not ask for tests only: Codemind writes its own tests). Keep it plain: one function, two or three obvious behaviours, no floating-point rounding, dates, locales or other tricky edge cases. Tell me the story in one sentence and ask me yes or no. On yes, run one build for it and show me the files it wrote. If the project has no JavaScript or TypeScript, skip this step.

No MCP configuration and no restart are needed. If a command says the key was rejected, run init with --force.
Set up Codemind for this project. Codemind writes and verifies code from a story. This needs Node 18 or newer. Setup creates a free account and saves its key. Do not create the account any other way, and do not read, print or write the key anywhere yourself: the Codemind command line does it. 1. Run: npx @g-a-l-a-c-t-i-c/codemind@latest init It creates the account (or keeps the one already saved, so running it again is safe), saves the key to ~/.config/codemind/credentials.json (private, never printed) and proves it works with a keyed call: it must print "key: valid". If your permission mode refuses to run it, tell me to run it myself (in Claude Code, type ! npx @g-a-l-a-c-t-i-c/codemind@latest init ) and wait until I say it is done. 2. Tell me the claim link that init printed, and remind me to open it. Until I do, the account is anonymous: it has no owner, I cannot see it in the dashboard, and it expires if unused. 3. Install the Codemind skill, so that every later session in this project knows how to use it without me pasting anything: npx skills add https://codemindhq.dev -a <your own agent name, for example claude-code, cursor, codex or opencode> -y If that is refused or fails, say so and go on. 4. For how to build, run: npx @g-a-l-a-c-t-i-c/codemind@latest skill and follow what it prints. If anything fails, follow https://codemindhq.dev/agent-onboarding/SKILL.md instead. 5. If this project has JavaScript or TypeScript code, pick one tiny, useful function this project does not have yet, to be written as a NEW TypeScript file with a .ts extension, even if the project is plain JavaScript (do not modify existing files, and do not ask for tests only: Codemind writes its own tests). Keep it plain: one function, two or three obvious behaviours, no floating-point rounding, dates, locales or other tricky edge cases. Tell me the story in one sentence and ask me yes or no. On yes, run one build for it and show me the files it wrote. If the project has no JavaScript or TypeScript, skip this step. No MCP configuration and no restart are needed. If a command says the key was rejected, run init with --force.