CLI Commands
The kit ships a small installer CLI (src/cli.js, invoked via npx github:Cratis/Eventmodelers-Build-Kit-CSharp <command>) that manages the .build-kit/ directory in your project. It does not run the agent loop itself — that’s node .build-kit/ralph-claude.js, started separately once the kit is installed.
| Command | Description |
|---|---|
install |
Install .build-kit into the current directory |
uninstall |
Remove .build-kit from the current directory |
status |
Check installation files and saved settings |
install
Section titled “install”npx github:Cratis/Eventmodelers-Build-Kit-CSharp install- Copies the starter app (
templates/root/) into the project root - Copies the agent loop and skills (
templates/build-kit/) into.build-kit/ - Runs
npm installinside.build-kit/for the loop’s own dependencies - Adds
.build-kit/to.gitignore - Prompts for Eventmodelers credentials and writes
.eventmodelers/config.jsonat the project root, with a copy under.build-kit/.eventmodelers/config.json - Writes the
mcpServers.eventmodelersentry into.build-kit/.claude/settings.json, pointing at<baseUrl>/mcp - Generates the code export server’s secret and stores it as
codeExportSecretin.build-kit/.eventmodelers/config.json, keeping one that already exists
See Install the Kit for the full walkthrough.
uninstall
Section titled “uninstall”npx github:Cratis/Eventmodelers-Build-Kit-CSharp uninstallRemoves the .build-kit/ directory. It does not remove the starter app files that were copied into the project root during install, or .eventmodelers/config.json.
status
Section titled “status”npx github:Cratis/Eventmodelers-Build-Kit-CSharp statusReports whether the kit directory, skills, and both config files are present. When .eventmodelers/config.json at the project root is valid JSON, it displays the saved URL, organization, and board below. This does not test board access or inspect the values in the loop’s kit-directory config:
.build-kit Status
Kit dir: ✅ installedSkills: ✅ installedConfig (root): ✅ presentConfig (kit): ✅ present
Connected to: https://api.eventmodelers.aiOrganization: <your-org-id>Board: <your-board-id>If .eventmodelers/config.json exists but isn’t valid JSON, status reports ⚠️ Config file is invalid JSON instead of the configured values. For the skill’s board access check and consumer-specific configuration guidance, follow Connect a Board.
Running the loop
Section titled “Running the loop”These aren’t CLI subcommands — they’re the scripts install copies into .build-kit/, run directly with Node:
| Script | Purpose |
|---|---|
node .build-kit/ralph-claude.js |
Run the loop with Claude (default) |
node .build-kit/ralph-claude.js /path/to/project |
Point the loop at a project directory other than the kit’s parent |
For a first run, follow Run Your First Slice. See Understanding the Loop for how the running loop selects work.
Code export server
Section titled “Code export server”node .build-kit/code-export.mjsThe code export server lets the board write slice files and screen images into the project and commit them. Because those routes change your working copy, the server:
- Listens on
127.0.0.1only (port3001, orPORT). - Accepts browser requests only from the board’s origin,
https://app.eventmodelers.ai. SetcodeExportAllowedOriginsin.build-kit/.eventmodelers/config.json, or the comma-separatedCODE_EXPORT_ALLOWED_ORIGINSenvironment variable, to allow others, such as a local board. - Requires the per-install secret on every request, as
Authorization: Bearer <secret>orX-Export-Secret: <secret>. The secret iscodeExportSecretin.build-kit/.eventmodelers/config.json; the server generates it on first start when the installer has not. Give it to the board’s code export settings, and treat it like the board token.
Requests without the secret get 401; requests from another origin get 403.