OPENROUTER_API_KEY and put it in .envbootstrap.ts to make sure that it works.mise is a way to setup a development environment on your local machine. Once we do this, everything will be smoother.
Open up a terminal and run the following command:
curl https://mise.run | sh
You may need to restart your terminal after running the above command.
mise use bun
Then we need to get an OPENROUTER_API_KEY. You can do this on the key page and you'll need to create an account and add a credit card if necessary.
Copy the smallest coding agent from thefocus.ai into bootstrap.ts.
I'm going to use AGENT_MODEL=google/gemini-3-pro-preview but feel free to use opus-4.5
Its a simple loop gives the model access to the bash tool, which is letting it call functions on your laptop.
Then we can start up our agent, and chat with it.
% bun run ./bootstrap.ts
what files are in this directory?
Reasoning details: **Executing the Command**
I'm focusing on executing the `ls` command now. To get a clear view, I've decided to use `ls -F`. This will give me not just the file names, but also indicators for the file types, like the slash for directories. I want to make sure I quickly see what's what.
**Listing the Files**
I've successfully run the `ls -F` command. I'm now processing the output, aiming to present the file list to the user clearly. I'm considering the best way to format the output, perhaps adding some visual cues to enhance readability.
$ ls -F
bootstrap.ts
mise.toml
STEPS.md
The files in the current directory are:
* `bootstrap.ts`
* `mise.toml`
* `STEPS.md`
Looks good!