mcr.test ← PART 2 · SHELBY · MCR TEST AGENT

Get shelby running in ten minutes

Shelby is a small coding agent you can read end to end. Install it, point it at the demo app, then open it up and see how an agent really works.

Setup

  1. Check you have Node 22.5 or newer
    node -v

    Prints v22.5 or higher? Carry on. The demo app stores its data with Node's built-in SQLite, which needs 22.5+. Otherwise install the current Node from nodejs.org first.

  2. Install shelby
    npm install -g shelby-agent

    Permissions error on Mac or Linux? Skip the install and use npx shelby-agent everywhere you see shelby below.

  3. Clone the demo app and go inside it
    git clone https://github.com/chris-mcr/MCR-Autos.git cd MCR-Autos && npm install

    Shelby works on the folder you run it in, so always start it from inside the app.

  4. Add your API key
    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

    The first run creates a .env file and stops. Open it, paste your key after OPENROUTER_API_KEY=, save, and run shelby again. Never commit .env.

  5. Check it works
    shelby --doctor

    Every line should show a tick, including tool-calling: emitted tool_calls. For a fuller test that makes the model write and read a real file, run shelby --doctor --deep.

  6. Start it and say hello
    shelby

    Answer y to trust the folder. Shelby asks before every edit or command. Type /trace first to watch each step as it happens.

  7. Let shelby learn the app
    /init

    Type this inside shelby. It reads the app and writes a SHELBY.md file so it knows how the project is built. Say y when it asks to write the file.

  8. Add the workshop skills
    cp workshop/skills/*.md .shelby/skills/

    Run this in a second terminal, in the app folder, not inside shelby. Then type /skills in shelby: it picks up the new files and should list 9 skills.

No key, or the wifi is bad? Run shelby --demo. It swaps the model for a scripted one so the real loop, /trace and /tools all work offline.

See inside the agent

/trace
Live view of every request, tool call and result
/prompt
The exact system prompt the model gets
/messages
The raw message list, resent every step
/tools
Everything the model can call
/context
How big the conversation has grown
/log
Where this session is recorded
/doctor <model>
Does this model emit tool calls?
--src
Prints the folder with shelby's readable source

Pick a task

Full list of 13: open the task board.

  • Use it: ask for a new page, then run /review and /security on the result.
  • Teach it a skill: ask it to make a skill for something you repeat, then use it.
  • Evaluate it: run /eval on your skill, and /doctor --deep on your model.
  • Models and subagents: run /doctor --deep on your model, then compare a research question with and without the subagent tool.

If something goes wrong

You seeTry
command not found: shelbyUse npx shelby-agent, or reopen the terminal after installing.
Missing OPENROUTER_API_KEYKey is empty or .env is in the wrong folder. It must sit in the app folder you run shelby from.
401 or "User not found"Stray space or quote in the key, or an expired key. Re-paste it and run --doctor.
It talks about editing files but nothing changesThe model can't call tools. Run /doctor and switch to openai/gpt-4o-mini.
Anything elseRun shelby --doctor, then put your hand up.