r/PiCodingAgent • • 1d ago

Discussion Another alternative to Pi, currently in beta

To be clear, no hate or issues with Pi. But if for some reason you're looking for an alternative, you might find Tuse interesting.

Tuse is just as minimalistic. But it's written in Rust and runs on Lua configs. Tuse is like nvim/the Linux kernel: a super thin core that nonetheless works without problems, benchmarks the same as Pi, but has orders of magnitude more features out of the box.

But the real power is the Lua configs. I really tried to design it so that we can build anything you want on top of Tuse. Your own compression, your own subagent system, your own orchestration, and so on.

Everything in the UI can be changed, you can subscribe to every event in the app, you can create your own commands, prompts, functions for the agent, and so on. And all of it is not a huge TS codebase but 10-20 lines of Lua config.

I hope you like it, share your ideas, there's a lot more planned. If the user base grows, the first thing I want to build is a package manager)

https://github.com/ethanhamilthon/tuse

13 Upvotes

29 comments sorted by

3

u/hifanxx 16h ago

interesting, but too bare. lua config is intriguing, especially for us neovim users, but the forced external proxy dependency means that it’s not a complete product, yet. 

3

u/g-rizzle84 15h ago edited 15h ago

In my humble opinion, I think its a bit harsh to call an incomplete because it depends on an external proxy. He clearly states its because services change so often. Plus why reinvent the wheel if a decent solution already exists? One could argue that is a simple dependency just like Node.js is for just about every single coding harness on earth.

1

u/aldapsiger 14h ago

that is a real problem now, but we wll get plugin system soon, it will be solved

5

u/bitzap_sr 15h ago

> Skills are an over-engineered name for reusable prompts. Add one to your config:
> ...
> Then type #showme in the TUI.

Huh. No, I never invoke a skill manually myself. Skills are auto-loaded by the agent based on their description.

Hard pass for me.

3

u/aldapsiger 14h ago

it is 20 lines of lua code to implement auto-loaded skills system in Tuse, so it is not a blocker

But I really recommend to try prompt system in Tuse, #prompts also can take args, so you can dynamically create the exact context your agent needs for your intent

2

u/bitzap_sr 14h ago

That does not correct the "an over-engineered name for reusable prompts" claim, which is wrong given the use case I just described.

2

u/Asleep_Literature_70 11h ago

It looks interesting but honestly some horrible design decisions, mcp, plugins and skills specifically, even if there are workarounds.

1

u/aldapsiger 5h ago

What is horrible about it? Skills/MCP aren’t native LLM thing, that is why I don’t want to see them as the core of Tuse. I let everyone implement their version of skills/mcp in 20-30 loc

1

u/Asleep_Literature_70 2h ago

They are a "standard" now more or less, you're asking everyone to reinvent the wheel every time they use your app.

7

u/Complex-Birthday-216 14h ago edited 14h ago

good luck. IMO it has potential, but I simply not ready to invest rewriting my pi plugins yet.
also, from my experience, software is feature first, performance later and I'm convinced it's gonna take time to optimize it if ever to be better than pi, consuming less memory when a large session is active.

give you a start anyway

edit:

I take my words back. you don't read the code and I'm convinced it can't be any meaningful quality. it has 28k LoC Rust.

I work on a project for a year, it has 30k lines. Again, took me a year to bloat it to that size.

Yours took you a week for prompting

1

u/cuberhino 10h ago

Could you give any advice on pi config? Or where to start? I’m tired of codex and Claude harnesses running my operations

1

u/Complex-Birthday-216 4h ago

Not really, add on demand what you need, but can look at my extensions. Ask me more if any plugin confuses you.

https://github.com/dennypenta/home/tree/main/.pi/agent

1

u/johnson_detlev 9h ago

Maki.sh already has the rust and lua angle

1

u/McBobrow 0m ago

soon going to release my PHPI agent, the pi rewrite in PHP, and you are all going to be amazed!!

1

u/jruz 1d ago

I was about to build this myself now that they went the opencode route, will take a look.

3

u/Corythebeast7 17h ago

What exactly do you mean they went the opencode route? I'm not following

0

u/nerdoubt 1d ago

how to use opencode go subs?

0

u/aldapsiger 1d ago

install it with the script in README. Then: `tuse connect --name opencode-go --base https://opencode.ai/inference/go/openai/v1 --api openai-chat --key '$OPENCODE_API_KEY'`

0

u/nerdoubt 1d ago

0

u/aldapsiger 1d ago

Oh, I forgot about this...

I didnt implemented custum headers yet, maybe today/tomorrow i will ship a patch for it. For now you can ask your opencode to make a small proxy, so you can try Tuse with it, thank you

0

u/aldapsiger 1d ago

or use CliProxyAPI, not just for Tuse, for everything. It is a bit unsafe to give your API key to unknown app from GitHub

1

u/vk3r 15h ago

I wouldn't use anything that didn't encrypt api-keys.

0

u/aldapsiger 23h ago

patch released, you can just add --header flag to tuse connect

0

u/abecodes 16h ago

It reads not bad. Pi - unfortunately - is going into a very weird direction. Minimal core, extendable, script- and config driven sounds great. Time to brush up my lua skills. Hope to give this a spin before the year ends.

-1

u/firebat-66 1d ago

Are you the developer of this? If you decide to implement cordis with this, I would be VERY interested in working on a project with a Cordis implementation...

-2

u/linux4random 1d ago

will try it out, got bored with pi after a bunch of changes lol

1

u/aldapsiger 1d ago

Tell me how is it👌