Skip to content

Termblock ​

Warp-Style Block-Based Intelligent Terminal · 30-Day Tutorial ​

Project Status: D030 / 30 · v0.1.0 · AGPL-3.0
Technology Stack: Rust · PTY · OSC 133 · Ratatui
Runtime Scope: The current MVP targets macOS only.
Study Label: warp-clone; public codename termblock.

Termblock combines a Block output model beyond terminal emulation with an Agent approval workflow: commands, output, and Agent units can all be presented in structured form, and users can make natural-language requests within the terminal and confirm actions before execution.

← Back to Series Overview · View Source Code · Upstream Warp

MVP Features ​

PTY and Block Output ​

  • PTY sessions connected to a local Shell.
  • Three Block unit types: command, output, and Agent.
  • OSC 133 Shell Integration for identifying command boundaries.
  • Session Resume and basic terminal-state restoration.

Natural Language and Approvals ​

  • Ask mode for Natural Language → Command.
  • Commands require approval before execution.
  • Minimal Agent Loop connecting Shell and Edit tools.
  • Edit operations provide a Diff preview to prevent invisible writes.
  • BYO Key: users configure their own model credentials.

Terminal Rendering and Engineering Trade-offs ​

  • Uses Ratatui instead of custom GPU rendering to keep the 30-day tutorial scope under control.
  • Focuses on macOS and does not claim that the current implementation is a cross-platform terminal.
  • Drops cloud capabilities and full compatibility with official Warp.
  • Uses Selftest, Fixtures, Soak, E2E, and packaging acceptance to validate core workflows.

30-Day Learning Focus ​

StageMain Topics
Terminal FundamentalsPTY, Shell sessions, and the Block data model
Shell IntegrationOSC 133, command boundaries, and output attribution
Block InteractionCommand/output/Agent units and terminal behavior
Agent ModeNL→Command, approvals, Shell/Edit, and Diff
SessionsResume, Selftest, Fixture, and stability checks
ReleaseClippy, Format, E2E, Release Build, Tarball, and SHA-256

Acceptance Record ​

The D030 evidence index records tests, Format, Clippy, Release Build, Tarball, SHA-256, Fresh Extraction, and Selftest. The test records include 45 unit, integration, Fixture, and Soak checks. Release evidence covers only the local aarch64-apple-darwin build and does not extend to other platforms, Live Providers, or official Warp compatibility.

Explicit Boundaries ​

Termblock is a clean-room educational MVP, not an official Warp client. It currently does not include custom GPU rendering, cloud services, multi-platform support, or full Warp functionality, nor does it treat Mock tests as evidence of production performance with real Providers.

Licensing and Clean Room ​

The research pin is Warp v0.2026.06.03.09.49.stable_00. Upstream as a whole uses AGPL-3.0, while some UI Crates are MIT-licensed; Termblock itself is released under AGPL-3.0. The project uses ADRs, third-party attributions, and a Clean-room Log to document license verification and the independent implementation process.

Keep building. Stay curious.