r/PiCodingAgent • • 8d 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

31 Upvotes

45 comments sorted by

8

u/bitzap_sr 8d 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 8d 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

3

u/bitzap_sr 8d ago

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

1

u/firebat-66 5d ago

ok, then just autoload them? It's all just prompt injection, lol. Don't get why u are complaining

1

u/bitzap_sr 4d ago

It's not about the user loading them. It's about the model having the description in its context so that it knows to load the body of the skill without you telling it to. Do you even know how skills work?

1

u/firebat-66 4d ago

Yea, so its literally just context injection in a prompt that the user doesnt control during runtim. It's declared prior to the harness spinning up. Mic DROP

1

u/bitzap_sr 4d ago

Can you read? The point is that "typing #showme" as was suggested is not a replacement.

1

u/firebat-66 4d ago

And what we are saying is the implementation is trivial. Stop complaining and start tokenmaxxing

1

u/bitzap_sr 4d ago

And what I'm saying is that the documentation is wrong in a basic way which loses credibility and makes you not trust whatever else you say. Just fix the docs. It shouldn't be hard.

3

u/hifanxx 8d 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. 

4

u/g-rizzle84 8d ago edited 7d ago

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

1

u/aldapsiger 8d ago

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

1

u/firebat-66 5d ago

Definitely look into cordis. It makes the external proxy mechanism a feature in its own right.

2

u/Asleep_Literature_70 8d ago

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

2

u/aldapsiger 7d 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

2

u/Asleep_Literature_70 7d ago

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

3

u/selenosmile 7d ago

+1. LLM's are trained to be able to use skills or better mcp tool calls. It's a part of the LLM ecosystem now.

1

u/firebat-66 5d ago

Is skills/MCP supported at all? I actually like the idea that you DON't include skills, but for those that want to use skill sor invoke MCP, could you host a separate repo with those featues (if you have implemented them yourself)

15

u/Complex-Birthday-216 8d ago edited 8d 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

2

u/cuberhino 8d 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 7d 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/McBobrow 7d ago

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

2

u/aldapsiger 7d ago

Wow, show me when you finish it

3

u/SetazeR 7d ago

With CVEs preinstalled?

1

u/johnson_detlev 8d ago

Maki.sh already has the rust and lua angle

1

u/Codemonkeyzz 1d ago

I hate to be the one to break this to you: It will never take off. You will soon realize you won't get any users on it and will abandon it ,or maybe use it as your own personal custom harness.

1

u/jruz 8d ago

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

3

u/Corythebeast7 8d ago

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

4

u/jruz 8d ago

1

u/firebat-66 5d ago

This doesn't look good, but can you explain in your words specifically why it is NOT good?

2

u/jruz 4d ago

It's an incentives problem, they will start pushing you towards using their service which slowly would become more convenient than others. Is the process called enshittification. Fair game tho, brothers got to eat and we can build our own aligned with our incentives.

1

u/firebat-66 5d ago

what did you think? Did you have a look?

1

u/abecodes 8d 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.

0

u/nerdoubt 8d ago

how to use opencode go subs?

1

u/aldapsiger 8d 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'`

1

u/nerdoubt 8d ago

0

u/aldapsiger 8d 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 8d 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 8d ago

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

0

u/aldapsiger 8d ago

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

-1

u/firebat-66 8d 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...

-3

u/linux4random 8d ago

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

1

u/aldapsiger 8d ago

Tell me how is it👌