Browse documentation

Technical documentation / Reference

magi-code 0.96.1

New features

Local-agent pipe interface

Local clients can create and reopen sessions, read paged chat history, stream agent replies and tool activity, answer approvals, and cancel turns using existing magi-code configuration and tools.

How to use: Configure provider login and model selection through Mission Control first. On macOS or Linux, launch magi-code serve --stdio from your workspace as a subprocess with stdin/stdout pipes, not a terminal. Exchange newline-delimited JSON using protocol magi-code.local-agent, version 1. Initialize with required capabilities, then call session.create or session.open before turn.start. Save session ID only after input.persisted; replace streamed text with complete message.reconcile parts and wait for run.finished before another turn. Answer approval.requested through approval.answer; use turn.cancel to stop. Approvals default to denial after 60 seconds. Never automatically retry an uncertain accepted prompt. Windows serving remains unsupported.

Fixes

Other changes

Edit this page on GitHub ↗