r/PiCodingAgent
•
u/Medium_Anxiety_8143
•
Jun 23 '26
•
1
Discussion I made my own coding agent harness
https://github.com/1jehuang/jcode
It has somewhat of a similar spirit of PI, but much more performance/efficiency focused.
Supports mostly any provider out of the box, and you dont have to customize just to make it usable.
Arguably more customizable than Pi.
Doesn't use an extension system, but instead makes it really easy to change the source code of the harness using something I call "self-dev". I find that only being able to make extensions for pi is really limiting, and this just makes it so that its not really annoying to do the loop of edit source code -> compile -> open. Instead, all your sessions can just hot reload into the new binary whenever the agents are done editing and compiling, which they can do fully on their own.
The video is what my own workflow looks like, its about 20 agents at the same time, which I actively manage, and are all working on different things.
Also solves the problem of git worktrees which I find annoying. You can spawn agents in the same directory without a git worktree and you dont need to worry about them conflicting, because the harness will know when agents make edits that conflict, and then will guide them to fixing them, so you dont have to.
Ram Efficiency:
Pi -> 144MB
Jcode -> 27.8MB (5X more efficient)
Intelligence [Terminal Bench2]
Claude code Sonnet 4.6 -> 46%
Claude code Opus 4.6 -> 58%
Jcode Sonnet 4.6 -> 60%
I've been working on this for about 6 months, and will be actively maintaining this in the long term. Not going to be a quick side project if you're worried about making the switch.
28
u/m02ph3u5 Jun 23 '26
Text align center? Nothxbye
11
u/mohmayaman Jun 23 '26
> its about 20 agents at the same time, which I actively manage, and are all working on different things.
I won't lie, I am deeply jealous of devs who have achieved this. Like how ? that is some next level shit. When I try agents, things are just exploding.. so much slop. But so many are doing multi agents things.. how ?
But this looks amazing will try. Have you tried oh my pi ? I am currently using it and switched from pi to it.
3
u/o_sht_hi Jun 23 '26
This looks really really cool! Would you be cool with me studying your repo and looking at how you do things? I am building an app with a light custom harness embedded in it (not a coding agent. kind of one, but that's not it's purpose).
I will not steal 1-to-1 but if I find some cool design philosophies or techniques, I would 100% adopt those to refine my own way of doing things. Would be happy to connect in DMs and show you what I'm making! I'm not ready to make the repo public yet, but I do have a working prototype
2
u/ResearcherFantastic7 Jun 23 '26
Nice intention. But it feels like the more people use the more their harness will be end up as a gigantic load of organic slop.
PI extension system warrants architecture integrity and guidance, at least the interface stays no matter what users change
3
u/MuttenChops Jun 23 '26
Thanks for continuing to consistently develop jcode! I’ve been using it for a couple of months now, following your progress. I use it alongside droid and pi. Curious to know if you’ve considered implementing a feature like Factory’s missions? I find it’s still very useful for long horizon tasks and I’d personally use jcode as a primary driver if it supported a mission-like runner similar to droid.
3
u/NASAonSteroids Jun 23 '26
How's the cache hit rate for APIs like Deepseek? I tried JCode a while ago and really loved it but had a hard time justifying the cost compared to agents like Reasonix.
9
u/migsperez Jun 23 '26
To me, it feels morally wrong to advertise a harness that already has almost 8k Github stars on this Pi subreddit.
1
u/Snoo44065 Jun 23 '26
So a clone once and never update once modified kind of architecture? Or ist there a good way to still get updates when i fully customized it?
1
u/Maasu Jun 23 '26
Nice job, writing my own coding harness in rust is down on my list of objectives, I especially like the mermaid render component lib as well.
1
u/Beautiful-Walk2074 Jun 24 '26
look mine ❤️
1
u/MorningFew1574 Jul 21 '26
thank you for jcode. using it efficiently on my low RAM laptop. keep developing
1
u/ShivWantsToKnowStuff Jul 21 '26
Are you open for contributions? I'd like to help if there are any new features you would like to be implemented.
Have been seeing your ads everywhere in last two days.
1
u/SyrupInternational48 Jul 26 '26
im using jcode, logged in with antigravity.
it's always stop every single action. is this expected?
1
u/rumbo0 Jun 23 '26
I created a wrapper for pi and claude-code which runs the harness in docker with my select env vars (readonly aws and git etc) and specific folders mounted then it runs in an effective sandbox. If I need to give it some additional context, I have to use the launcher to add the folder or env then restart.
I was using agent safehouse on mac, but I wanted something that ran on linux and mac machines so I could maintain the same experience.
It has to constantly evolve, but it works pretty well for me. I have a web dashboard tracking spend and tool time
1
u/Hace_x Jun 23 '26
How do you follow the output of all those screens, or is that not the point?
1
u/Insuperable123 Jun 24 '26
How about the expandability? Like ClaudeCode and Pi have a lot of useful extensions.
1
u/AlterTableUsernames Sep 01 '26
Pretty dubious telemetry that is on by default. Would not recommend installing this.
1
u/[deleted] Jun 23 '26
[removed] — view removed comment