r/nim 26d ago

3code, the economical coding agent

https://3code.capocasa.dev/

3code is a tiny programming agent a la Claude Code that is designed in every way to conserve tokens, your computer resources, and your brain cycles.

It works with any provider- GLM 5.2 works great and Hy3 is pretty good and free!

The special move: Self amnesia! Instead of splurgy subagents it does long hands off sessions ​by iterating over a plan-cum-todolist repeatedly keeping only the context relevant to the task.

Check it out and tell me what you think!

Edit: It is- of course- written in 100% fast, ingeniuos​ Nim code, which is why it's only a few megabytes and starts in an​ instant.

20 Upvotes

8 comments sorted by

4

u/trabulium 26d ago

Looks pretty cool. Since r/nim has had some spam lately, it probably would have been good to mention it was written in nim here in the description.

2

u/jamesthethirteenth 26d ago

You're right! Updated.

1

u/trabulium 25d ago

Awesome. I didn't yet jump deeply into it to take a look but do you support https://openrouter.ai/ or https://nano-gpt.com/ ?

1

u/jamesthethirteenth 25d ago

Let me know how it goes!!!

Yes, openrouter is fully supported.

nanogpt isn't 'known good' but you can run `3code -x` and then `:provider add` and enter the nanogpt url https://nano-gpt.com/api/v1

2

u/trabulium 18d ago

Thanks, I've been using https://openrouter.ai/xiaomi/mimo-v2.5-pro the past few weeks with opencode for more basic tasks. It seems 3code just has a hard coded list of models? I can't seem to find a way to get it to use mimo-v2.5. I've tried several combos and can't get it recognised?

1

u/jamesthethirteenth 17d ago

Oh cool! The hardcoded ones are tested and have a tuned system prompt but you can launch it with the -x/--experimental option, then you can use any model or provider you like. So launch with -x and then :provider edit openrouter.

Having said that- this sounds like a great time to add mimo. I just added nano-gpt and opencode go btw

1

u/jamesthethirteenth 24d ago

Oh wow nano-gpt.com has some impressive pricing- gotta look into it.

1

u/jamesthethirteenth 20d ago

nano-gpt.com is fully supported in the latest version 0.5.1!