rad coding agent · rust · one binary

A fast, efficient coding agent that fits in your pipeline.

radian is one Rust binary. It starts with no runtime to boot and spends context on the lines a task needs. Its headless command prints every step as a JSON line and exits with a code that says how it ended.

$ brew install hisea/tap/radian

Open source under MIT or Apache-2.0: github.com/hisea/radian.

◜ radian · ~/code/radian120 × 74
❯ finish ADR 0037 slice 3 and show me the diff                                                                          
                                                                                                                        
▾ thinking · 3.2s                                                                                                       
│ Checking the inbox lanes first.                                                                                       
│                                                                                                                       
│ The job notice must not lower the turn's source: observe_input_source only ever lowers the source, so an inject       
│ from a System job would turn a human turn into a non-human one.                                                       
│                                                                                                                       
│ - followup wakes a new turn, so the source is set fresh                                                               
│ - inject lands mid-turn and lowers it                                                                                 
│                                                                                                                       
│ So the completion should arrive as a notice with a System source, never as a user turn.                               
                                                                                                                        
• shell $ cargo test -p radian-host --locked · exit 0 · 12.4s ✓                                                         
│ running 41 tests                                                                                                      
│ test job_notify::settled_job_wakes_the_idle_model ... ok                                                              
│ test job_notify::a_waited_job_sends_no_notice ... ok                                                                  
│ test result: ok. 41 passed; 0 failed; 0 ignored                                                                       
                                                                                                                        
• read crates/radian-host/src/job_notify.rs 100-160 · 0.01s ✓                                                           
                                                                                                                        
• patch crates/radian-host/src/job_notify.rs · +5 −2 · 0.03s ✓                                                          
│ @@ -120,9 +120,12 @@ impl JobNotify {                                                                                 
│  120       fn notice(&self, job: &Settled) -> Message {                                                               
│  121 -         let source = InputSource::User;                                                                        
│  121 +         // ADR 0037: a notice is low-trust data, never a user turn.                                            
│  122 +         let source = InputSource::System;                                                                      
│  123           let mut meta = MessageMeta::default();                                                                 
│  124           meta.source = Some(source);                                                                            
│  124 -         Message::user(format!("job {} done", job.id)).with_meta(meta)                                          
│  125 +         let body = format!("<job id={} exit={} />", job.id, job.exit);                                         
│  126 +         Message::user(body).with_meta(meta)                                                                    
│  127       }                                                                                                          
                                                                                                                        
╭─ ask ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ How should the UI extension be loaded?                                                                                
│ ◉ External process plugins                                                                                            
│   ↳ a separate program, JSON-RPC over stdio                                                                           
│ ○ Built-in Rust components                                                                                            
╰──                                                                                                                     
                                                                                                                        
▸ thinking · 3.2s · 8 lines                                                                                             
                                                                                                                        
● What I did                                                                                                            
                                                                                                                        
  1. Added background: true to the shell tool and a job registry in radian-host.                                        
  2. Ran the Verify commands; cargo test --workspace --locked passed with 0 warnings.                                   
                                                                                                                        
╭─ rust ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ fn notice(&self, job: &Settled) -> Message {                                                                          
│     Message::user(body).with_meta(meta) // never a user turn                                                          
│ }                                                                                                                     
╰──                                                                                                                     
                                                                                                                        
  ┌─────────────────────────────────┬────────────────┐                                                                  
  │ Command                         │ Result         │                                                                  
  ├─────────────────────────────────┼────────────────┤                                                                  
  │ cargo clippy --workspace        │ ok, 0 warnings │                                                                  
  ├─────────────────────────────────┼────────────────┤                                                                  
  │ cargo test --workspace --locked │ 412 passed     │                                                                  
  └─────────────────────────────────┴────────────────┘                                                                  
                                                                                                                        
── context compacted (rev 2, 148k → 61k) ──                                                                             
                                                                                                                        
* background job bg-2 finished · cargo test -p radian-host · exit 0 · 38s                                               
! background job bg-3 has printed nothing for 6m                                                                        
                                                                                                                        
── ◜  Working · 12s · esc to interrupt ─────────────────────────────────────────────────────────────────────────────────
❯ explain the inbox lanes▏                                                                                              
                                                                                                                        
Usage: 5h: 80% · 7d: 19% · 30d: 40% · 5h ↺1h35m                                                                         
 glm-5.3-flash ·  radian ·  notice-source +2 ·  render-study                              ▣ ━━━━━━━━──────── 41%  ◐ high
                                                                                    ↑15M ↓2.6M R1962M $14.510 41.3%/1.0M
                                                                                                                        
theme: built-in light
❯ finish ADR 0037 slice 3 and show me the diff                                                                          
                                                                                                                        
▾ thinking · 3.2s                                                                                                       
│ Checking the inbox lanes first.                                                                                       
│                                                                                                                       
│ The job notice must not lower the turn's source: observe_input_source only ever lowers the source, so an inject       
│ from a System job would turn a human turn into a non-human one.                                                       
│                                                                                                                       
│ - followup wakes a new turn, so the source is set fresh                                                               
│ - inject lands mid-turn and lowers it                                                                                 
│                                                                                                                       
│ So the completion should arrive as a notice with a System source, never as a user turn.                               
                                                                                                                        
• shell $ cargo test -p radian-host --locked · exit 0 · 12.4s ✓                                                         
│ running 41 tests                                                                                                      
│ test job_notify::settled_job_wakes_the_idle_model ... ok                                                              
│ test job_notify::a_waited_job_sends_no_notice ... ok                                                                  
│ test result: ok. 41 passed; 0 failed; 0 ignored                                                                       
                                                                                                                        
• read crates/radian-host/src/job_notify.rs 100-160 · 0.01s ✓                                                           
                                                                                                                        
• patch crates/radian-host/src/job_notify.rs · +5 −2 · 0.03s ✓                                                          
│ @@ -120,9 +120,12 @@ impl JobNotify {                                                                                 
│  120       fn notice(&self, job: &Settled) -> Message {                                                               
│  121 -         let source = InputSource::User;                                                                        
│  121 +         // ADR 0037: a notice is low-trust data, never a user turn.                                            
│  122 +         let source = InputSource::System;                                                                      
│  123           let mut meta = MessageMeta::default();                                                                 
│  124           meta.source = Some(source);                                                                            
│  124 -         Message::user(format!("job {} done", job.id)).with_meta(meta)                                          
│  125 +         let body = format!("<job id={} exit={} />", job.id, job.exit);                                         
│  126 +         Message::user(body).with_meta(meta)                                                                    
│  127       }                                                                                                          
                                                                                                                        
╭─ ask ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ How should the UI extension be loaded?                                                                                
│ ◉ External process plugins                                                                                            
│   ↳ a separate program, JSON-RPC over stdio                                                                           
│ ○ Built-in Rust components                                                                                            
╰──                                                                                                                     
                                                                                                                        
▸ thinking · 3.2s · 8 lines                                                                                             
                                                                                                                        
● What I did                                                                                                            
                                                                                                                        
  1. Added background: true to the shell tool and a job registry in radian-host.                                        
  2. Ran the Verify commands; cargo test --workspace --locked passed with 0 warnings.                                   
                                                                                                                        
╭─ rust ────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ fn notice(&self, job: &Settled) -> Message {                                                                          
│     Message::user(body).with_meta(meta) // never a user turn                                                          
│ }                                                                                                                     
╰──                                                                                                                     
                                                                                                                        
  ┌─────────────────────────────────┬────────────────┐                                                                  
  │ Command                         │ Result         │                                                                  
  ├─────────────────────────────────┼────────────────┤                                                                  
  │ cargo clippy --workspace        │ ok, 0 warnings │                                                                  
  ├─────────────────────────────────┼────────────────┤                                                                  
  │ cargo test --workspace --locked │ 412 passed     │                                                                  
  └─────────────────────────────────┴────────────────┘                                                                  
                                                                                                                        
── context compacted (rev 2, 148k → 61k) ──                                                                             
                                                                                                                        
* background job bg-2 finished · cargo test -p radian-host · exit 0 · 38s                                               
! background job bg-3 has printed nothing for 6m                                                                        
                                                                                                                        
── ◜  Working · 12s · esc to interrupt ─────────────────────────────────────────────────────────────────────────────────
❯ explain the inbox lanes▏                                                                                              
                                                                                                                        
Usage: 5h: 80% · 7d: 19% · 30d: 40% · 5h ↺1h35m                                                                         
 glm-5.3-flash ·  radian ·  notice-source +2 ·  render-study                              ▣ ━━━━━━━━──────── 41%  ◐ high
                                                                                    ↑15M ↓2.6M R1962M $14.510 41.3%/1.0M
                                                                                                                        
theme: built-in dark
fig. 1 · radian at 120 columns, rendered by the prototype script
/01 why radian
◜ speed

Quick to start, quick to come back.

A native binary with no runtime to boot. A foreground command never moves to the background on its own: only background: true starts a job, and a finished job's notice reaches the model, so it keeps working.

no runtime to boot · one file per session
◝ efficiency

Context goes to the work.

Reads take line ranges. A budget guard watches the window and compacts before it overflows. The footer shows tokens and cost as you go.

read by range · auto compaction
usage and cost in the footer
◞ orchestration

Built to be orchestrated.

radian runs no outside agents; it is built to be run by them. One prompt in through radian exec, every step out as a JSON line, and an exit code that tells completed from failed from out of budget. Inside herdr it reports working, idle or blocked by itself, and radian attach watches any session read-only. Parallel work stays inside one reply: several subagent calls run side by side.

exec --output jsonl · exit codes by outcome
herdr-ready · attach · control socket
◟

Under all three: every step goes to a journal you can resume and fork, the sandbox is a switch (one flag, or saved per project, and it can only narrow), and only you can approve.

/02 headless

Headless, observable.

One prompt in, the journal out: a JSON line per step and the outcome on the last line. It is the same session file, so a script can stop halfway and you pick it up in the full-screen app.

Inside herdr, radian reports working, idle and blocked by itself, and nothing about commands, paths or content.

/03 compatibility

Works with what you have.

Instruction files, skills, MCP servers and themes carry over.

  • AGENTS.md · CLAUDE.mdRead from the workspace up to the repo root, with @path imports.
  • skills~/.agents/skills/<name>/SKILL.md, the directory pi, Codex and opencode share.
  • MCPmcpServers config, ${VAR} expansion, stdio servers.
  • hooksThe Claude / Codex JSON subset: PreToolUse, PostToolUse, Stop.
  • themespi theme files, imported once with radian theme import.
  • memoryGlobal and project scopes. The agent cannot edit the records you wrote.
/04 operad

Plans in, merged work out.

Planning, task orchestration, gates and review now live in operad, which drives radian through radian exec.

Meet operad →
/05 install

Install.

Homebrew on macOS and Linux, a release tarball, or Cargo from source.

$ brew install hisea/tap/radian
$ cargo install --git https://github.com/hisea/radian radian-tui
github.com/hisea/radian/releases signed macOS and static Linux tarballs
  • Homebrew links only radian: homebrew-core already has a rad formula. The tarball and Cargo also give you the rad alias.
  • On Linux the workspace profile needs bubblewrap.
  • Then radian login and radian. Full steps: quickstart.
/06 run

One binary, two ways in.

Full screen at the keyboard. Headless for scripts, CI and other orchestrators.

radian

The full-screen terminal app.

radian
# sandbox
radian --profile workspace

radian exec

One prompt in, the steps out as JSON lines.

radian exec --resume demo \
  --output jsonl \
  -p "now read docs/"
Providers: Anthropic, OpenAI, ChatGPT (browser OAuth sign-in), opencode-go, and any OpenAI-compatible endpoint. /login stores the key in ~/.radian/credentials/auth.json.
same session file~/.radian/sessions/demo.jsonl
θ = 1 r s = r
/∠ the name

One radian is the angle where the arc is exactly as long as the radius.

1 rad = 180°/π ≈ 57.2958°