Haikode: putting AI in Haiku

Using Claude Code and Codex plus lots of testing an real use, I’ve made haikode; a tool for agentic coding and AI workloads on Haiku. I originally made it for myself because I wanted an AI coding agent I could run directly on Haiku while debugging things and working on drivers, directly on the machine instead of via SSH.
It runs natively on Haiku, talks directly to the model providers over HTTPS, and is written using only the Python 3 standard library. It has a curses TUI, a plain terminal interface and a native BeAPI desktop frontend. The latter is a work in progress, as I prefer working in the cli.
So yes: I’ve used AI to build something that helps me use AI to work on Haiku. And I’m fairly sure I’m not the first person to call a project “haikode”.
My favourite feature is probably one that serves absolutely no practical purpose: the haiku.

When haikode starts, it greets you with a haiku from its collection. When you finish a session with /farewell, the agent writes a new haiku based on the conversation you just had, signs it with its model name, and saves it to your personal collection and become part of the pool of poems that greet you in future sessions. (The above haiku was made after a session where I wanted to understand the errors I was getting when running pkgman full-sync; and GPT 5.6 Sol made this amusing haiku.)
Since Haiku itself is named after a form of poetry, it felt like the application ought to behave accordingly.
It has become genuinely useful for my own Haiku work, particularly when debugging and experimenting with driver development, so I thought others might find it interesting too.
The repository is public here: GitHub - big-hill/haikode: An AI coding agent that runs natively on Haiku OS. Python stdlib only, no server. Independent reimplementation of opencode. · GitHub

The readme includes an account of what works, what is incomplete, and the known gaps.
I’m not expecting everyone to approve of how it was made, but feedback, bug reports and experiments on real Haiku installations are very welcome.

Thanks for a great forum! Haiku is awesome!!

5 Likes

75 posts were merged into an existing topic: genAI temporary thread

Yeah, this went more or less as I expected, unfortunately. But “message received”, loud and clear.

I’ve tried to edit my original post, but I am unable to, due to “slow mode” being enabled. I have considered deleting the post altogether, but for the same reasons I cannot. Bosses; if you want to delete it, be my guests. As I said; I made this for myself because I needed it for my own work. I only wanted to inform others in search of the same thing.

To whom it may concern: I respect the fact that your opinion differs from mine. I am sorry if I have offended you in any way, it was never my intention. Nor was it my intention to cause harm on “children working in mines”.

7 Likes

If you want to have even more fun, implement the ability to connect to an MCP server. For an example on Haiku, search for “Pippo MCP” on Codeberg—I’ve been playing around with it for a couple of weeks, and it integrates really well with Haiku, both for BFS and for interacting with applications.

4 Likes

Thanks for the tip! Pippo worked without any code changes as a fact. After adding one line of config /mcp reports pippo connected with 38 tools. Truly a great project. It is now part of my standard setup :slight_smile:

I’ve just pushed a small update making it easier to set up mcp.

I have noted a couple of small bugs I will try to report on the Pippo tracker, pertaining to window adressing with multiple instances, and hardcoded Italian notifications.

Thanks again for pointing me to Pippo!

1 Like

A post was merged into an existing topic: The great genAI moderation debate, vol. 1

@bighill after a brief discussion with the mods we agreed to proceed like that. If you still wish to discuss Haikode, feel free to start a new topic (but please write the text yourself without the help of LLM), and I’ll rename the current thread. It makes sense as at this point this thread is 95% off-topic.

3 Likes

Thanks for taking the time to clarify and taking action. I haven’t made up my mind yet on whether to start a new topic or not.

3 Likes

A post was merged into an existing topic: The great genAI moderation debate, vol. 1

2 posts were merged into an existing topic: The great genAI moderation debate, vol. 1

OK; I split this thread into 3.

I also hid the posts here that were about the mods not having done that yet. :slight_smile:

2 Likes

Are you still unable to edit the original post?

Nope, “slow mode is enabled..”. If it’s still necessary at this point, I will gladly do it.

I have disabled it temporarily now, you can do it now if you want :slight_smile:

1 Like

Nice idea, this is a newer one for Haiku

1 Like