webofbits

webofbits

I’ve released the first beta of Draught, a coding-agent CLI and runtime built with Elixir.

Draught can run agentic coding tasks using Ollama or an OpenAI-compatible provider. It supports interactive sessions and headless commands, with the initial focus on making local models practical for day-to-day development.

The current beta includes:

  • Interactive and headless task execution
  • Ollama model discovery and selection
  • OpenAI-compatible provider support
  • Persistent sessions with resume, rename, archive, and restore
  • Built-in file, search, and command tools
  • Per-operation approval prompts
  • Structured operation previews and file diffs
  • Workspace confinement
  • Optional web search and page fetching, disabled by default
  • AGENTS.md project instructions
  • Streaming terminal output and JSONL output
  • Native macOS and Linux binaries for ARM64 and x86-64 using Burrito

The runtime uses OTP supervision to separate session state from provider requests and tool execution. Model calls and tools run through bounded tasks with explicit timeout and cancellation behavior, so a failed operation does not need to terminate the complete session.

Documentation and installation instructions are included in the repository. The beta binaries are available from the v0.1.0-beta.1 release.

Showing Posts 1 to 10

webofbits

webofbits OP

shahryarjb

shahryarjb

I’ve been going through some of your content and source code, and I have a basic question.

For example, the source code and the harness you’ve provided are intended to run AI models on a server, right? If so, why not use OpenCode’s own harness directly on the server?

I’m trying to understand whether building these environments again with Elixir has a specific reason beyond learning and experimentation.

Also, I always find myself trying to compare these things with Jido in my head, but I can’t quite figure out how they map to each other.

Sorry if this is a basic question, and thanks!

mudasobwa

mudasobwa

Creator of Cure

There is a relatively long Motivation chapter directly in README.

I can only speak for myself, as a builder of another harness, I find harnesses provided by model providers to be a second-class citizens. Building a harness that would decrease token usage and drastically increase the quality of the outcome does contradict goals of the model providers.

E. g. my harness uses AST for RAG, 100+ MCP tools and whatnot to minimize the necessity of back-and-forth frictions calling the remote. This one aims to do the same, AFAICT.

shahryarjb

shahryarjb

Thank you, have you created automated loop with your harness? as i remember you are working with DeepSeek? something i want to see your experience

mudasobwa

mudasobwa

Creator of Cure

I am not interested in automated loops in the first place. I am positive that without human in the loop an LLM tech cannot produce anything reliable.

I am not “working with DeepSeek” either, I work with a harness, I don’t really give a shot what model is behind (while it’s not OpenAI/Anthropic/Google.) The worse the model, the better harness is.

webofbits

webofbits OP

I meant this to run models offline/local so I can share my obsidian notes, and other personal stuff.

I tried OpenCode. Don’t love their UI, looks like a desktop app inside your terminal. I wanted something simpler and more terminal-like.

I’m trying to understand whether building these environments again with Elixir has a specific reason beyond learning and experimentation.

Probably the reason that survives is to design this following OTP principles since people can use OpenCode, QwenCode, etc

Also, people have their own Neovim configs/setup (why not my own custom AI harness?)… it’s a bit more complex to build a harness but you can always fork my repo and build your own custom version.

About Jido: there’s substantial overlap. Jido would provide established abstractions for supervised agents, pure transitions, effects, events, persistence, plugins, and orchestration. Draught has built narrower equivalents specifically for a coding harness.

This project can certainly be just an experiment, for now, depending on engagement and my spare time and energy to keep evolving it.

Jido already has a harness CLI GitHub - agentjido/jido_code: Terminal-native AI coding assistant built on the Jido agent framework · GitHub , if you’re interested.

Sorry if this is a basic question, and thanks!

No worries. Thanks for checking it out!

webofbits

webofbits OP

I think, loops are dangerous :laughing: Even with Opus/Fable/Astra etc it doesn’t do what we ask but I am planning something simple enough like cron jobs for recurring no-brainer tasks.

webofbits

webofbits OP

Also, privacy matters now more than ever. “I have nothing to hide” is not a good reason to surrender all your data to private companies. You are doing nothing wrong only for as long as those in power agree on what “wrong” means.

There have been legitimate cases where people were arrested for credible threats they made to AI systems, and rightly so. Even users outside the US have been reported to local authorities after the FBI was alerted. But the deeper concern remains: what happens if the rules change and something considered acceptable today becomes grounds for punishment tomorrow?

Sounds like a conspiracy theory but it’s sadly true :sweat_smile:

webofbits

webofbits OP

Added “some” builtin skills draught/priv/builtin_skills/catalog at main · ccarvalho-eng/draught · GitHub so this is not so agnostic anymore. Probably an opinionated Elixir harness now

Where Next? Top

Trending in Announcing Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
261 13183 112
New
achempion
Hi, I would like to tell about my initiative to further maintain and develop Waffle project which is the fork of Arc library. The progre...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
charlenopires
Hi everyone :waving_hand: I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
gtcode
Aloha gang, There’s a new class of AI model out from TypeSafe. Jev is their flagship model. You can learn about it here: ...
New

Other Trending Topics Top

OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
bartblast
If you haven’t tried Hologram yet, what’s stopped you? Here’s why I’m asking. Building a framework turns out to be two jobs, the framewo...
New
AstonJ
With advancements in AI gathering pace and set to increasingly accelerate, perhaps it’s worth having an annual thread on the topic - feel...
New
mat-hek
Popcorn, the library that runs Elixir code in the browser, is now stable :popcorn: This is possible because it now builds on a very stab...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews