The character as a program: Architecture of an AI character that lives and acts on the command line
The most widely used coding agents today act from the terminal: they read text, run commands and observe the output and the exit status. This white paper asks what happens if what lives in the terminal is not a programming assistant but a character, with a canon, a voice and a memory. We review the Unix text contract (standard input, output and error, exit statuses and pipes), the line of research that runs from ReAct and Toolformer to InterCode, CodeAct and the agent-computer interface of SWE-agent, the official documentation of Claude Code, Codex CLI, Gemini CLI and Aider, and current CLI design guidelines. We propose a three-plane architecture: a read-only canon, a memory that only grows through the character's own commands, and a plane of acts made of composable verbs with a fixed input and output contract: JSON Lines on standard output, diagnostics on standard error and a meaningful exit status. On top of it we define sandbox and approval rules based on least privilege, a headless mode for cron, pipelines and continuous integration, and six testable properties. It is a design proposal with no system built and no data of our own; its companion papers, DM-2026-21 and DM-2026-22, deal with the character's memory and with its creative direction.
Authors
- Cris Olmedo (ORCID: https://orcid.org/0009-0008-7657-0751)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-12-01
- DOI
- https://doi.org/10.5281/zenodo.24722519
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00