by andai · 3mo ago · 0 comments
I use a custom harness, but I constantly hear good things about Pi.
EDIT: Checked out Pi and Oh-My-Pi. 250k LoC and 1.5M LoC respectively. Sheesh. How's that for minimalism...
Mine's 50. (Lines.)
https://gist.github.com/a-n-d-a-i/bd50aaa4bdb15f9a4cc8176ee3...
Vendored in my own LLM micro library (100 LoC) so it's 150.[0]
There's no parallelism or anything, but I use it for surgical edits and it's much faster and cheaper than the official harnesses for some reason. (Absence of sysprompt bigger than my repo probably helps there...)
[0] This one uses OpenRouter so you can use it with any model, but jerry rigged Codex sub version available on demand :)
---
I also have a ultra turbo bloated version (500 lines... need to strip it down a bit!) which has autorun files (for grep-based context injection), notification (frog croak when agent done, etc.) Watch this space!
(Edit: I failed too mention, using a different harness with a CC/Anthropic subscription bumps you up to the pay-per-token rate.)
However! I have seen projects which use CC under the hood, in order to get the subsidized rates.
Writing comments which get me to go look through anthropic documentation, and find friction I wasnt aware of (CC does not have an app-server), refreshes my frustration towards anthropic.
Is there any provider that doesn’t do this? That’s the one I want to support.
> TLDR: they are all probably doing it because they are banking on you not using all your tokens.
I would be surprised though, it makes business sense to make the default vendor native TUI cheaper because it’s understood that most nascent users will just use the harness offered by the LLM provider and those that would stray off that would probably be more power users who would spend their token share more consistently till it drains.This is... close. They offer ways to leverage openai subscription directly for 3rd party app use. https://learn.chatgpt.com/docs/app-server
> Is there any provider that doesn’t do this? That’s the one I want to support.
Yes, IIRC, OpenAI. In sama we trust??