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

type1fool
WebAuthnLiveComponent WebAuthnComponents See this post about renaming the package. Passwordless authentication for Phoenix LiveView app...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
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
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
kip
In 2021 I started a new library called Tempo with the objective of modelling time as a set of intervals - not as instants. In 2022 I gave...
New
quatermain
Hello, I’m sharing my plugin here in forum after some time so it has time to mature and proof yourself. I use Claude Code daily on a pr...
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

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
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
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New
CodeSync
Code BEAM Europe 2026 – Call for Talks is Open! We’re excited to announce that Code BEAM Europe 2026 is now open for talk submissions :t...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews