HAVE AI NEWS HAVE AI NEWS
tg subscribe
Tools

Terminal for Multi-Agent Development: Electron, xterm.js, and 16,000 Lines of Tests

Terminal for Multi-Agent Development: Electron, xterm.js, and 16,000 Lines of Tests

The author of Slightly Parallel created a cross-platform terminal integrated with project and agent management. Development took just over four days, while the estimated cost of API requests came to $927 including related tasks.

The author of the open-source Slightly Parallel project developed a custom terminal for working with multiple projects and AI agents. The application’s main feature is its close integration with Slightly Parallel’s tasks, notes, skills, and workspaces, eliminating the need to constantly switch between the terminal and graphical interface.

The final version runs on Linux, macOS, and Windows. Electron was chosen as the foundation, the terminal interface is built with xterm.js, and project management is handled by Slightly Parallel.

Why a Separate Terminal Was Needed

Conventional terminals are suitable for running commands, but they do not provide convenient access to project data and the state of agent-based development. The new tool was intended to combine multiple workspaces, terminal sessions, and task-management controls in a single window.

The interface includes project switching, tab grouping, and sidebars with current terminals, pinned messages, and tasks. A workspace can be temporarily “put to sleep”: agents are paused while servers continue running.

What Changed Between Fable 5.1 and 5.2

The first version was created with Fable 5.1. It received 26 commits, 3,114 added lines of code, and 535 lines of tests, but was barely used in practice. Problems included the browser-based implementation, limited variety in the interface options, and an insufficiently clear initial product vision.

After the release of Fable 5.2, six noticeably different layouts were produced in 40 minutes. They did not become a finished solution, but helped collect ideas for the final design. The author emphasizes that no proper controlled comparison of the two model versions was conducted.

Why Electron Was Chosen

A fully native Rust implementation could have delivered better resource efficiency, but would have required at least seven days of work for an MVP and significantly higher token usage. Electron proved to be a more practical compromise: it officially supports the three target operating systems and uses a shared Chromium base.

The main limitation of the stack is the requirement for Node.js 20 or newer. For an additional feature of Slightly Parallel, this was considered an acceptable compromise.

Performance and Memory Usage

In the tests, 20 MB of colored output—around 280,000 lines—was sent through a 1,000×640 window. The terminal history was limited to 10,000 lines. The comparison included VTE, GNOME Terminal, Chromium with xterm.js, WebKitGTK with xterm.js, and web-engine variants using WebGL rendering.

  • WebKitGTK was approximately four times slower than Chromium and ten times slower than the native terminal.
  • WebGL provided no noticeable acceleration in either Chromium or WebKitGTK.
  • The native GNOME Terminal delivered the best speed, but its cross-platform implementation would require separate interfaces for each system.

The Electron version was also measured with multiple windows and tabs. One window used 222 MB with tmux and 281 MB without it. Each additional window added approximately 44 MB in the tmux configuration and about 64 MB without tmux.

With 20 windows, usage reached 1,051 MB with tmux and 1,501 MB without it. For comparison, the native GNOME Terminal used 343 MB. Tabs within a single window were considerably cheaper than separate windows.

Results Across Three Operating Systems

SystemTime to Output 20 MB
Linux with tmux0.9 s
Linux without tmux1.8 s
macOS with tmux3.8 s
macOS without tmux10.7 s
Windows17.2 s

The test was performed in GitHub Actions on Ubuntu, macOS, and Windows virtual machines. On Windows, the main limitation was the slow ConPTY console: when output was sent directly to the window, the same amount of data was processed in 2 seconds. In the current version, Linux and macOS use tmux, while Windows uses ConPTY without preserving sessions after the server is stopped.

Timeline, Code, and Cost

It took 4 days, 8 hours, and 50 minutes from defining the task to the final commit of the second version. During that time, the project gained 186 commits, 16,321 added lines of main code, and 16,055 lines of tests.

The agents worked for a total of 54 hours and 53 minutes, including 25 hours and 52 minutes of subagent work. Claude Code used 44 assistants, while Codex used 27. The estimated API development cost for the terminal was approximately $550, or $927 including related tasks.

Additionally, GitHub Actions completed 58 runs with a combined duration of 29 hours and 12 minutes.

Features of the Finished Application

  • workspaces linked to projects;
  • terminal tab grouping;
  • quick restoration of previous work;
  • pinning important messages and tasks;
  • built-in text editor;
  • indicators for computer resources and operating time;
  • configurable break timer;
  • skins, keyboard shortcuts, and a compact top bar;
  • direct access to Slightly Parallel data.

The Slightly Parallel project is distributed under the MIT license and is available on GitHub. The terminal source code includes a separate benchmark: it can be run with npm run bench, while output speed alone can be tested with npm run bench -- -g speed.

Author: nmar

Source: habr.com

Torvalds and Claude Code Tandem: A 23x Linux Speedup and a Critical Bug Caught by a Human
Tools

Torvalds and Claude Code Tandem: A 23x Linux Speedup and a Critical Bug Caught by a Human

Linus Torvalds enlisted Claude Code to tackle a task that had lingered in the Linux kernel for two and a half years. The neural network helped boost parallel file reading by up to 23 times, but missed a dangerous race condition.

Local Neural Networks in AppSec: How Open Source is Reshaping Code and Service Security Testing
Tools

Local Neural Networks in AppSec: How Open Source is Reshaping Code and Service Security Testing

The shift from closed cloud APIs to autonomous local LLMs opens new opportunities for security teams: from automated SAST false-positive filtering to dynamic pentesting without the risk of source code leaks.

Inkling 2 Mini: Thinking Machines’ 20GB open model matches Qwen3.8-27B
Models

Inkling 2 Mini: Thinking Machines’ 20GB open model matches Qwen3.8-27B

Thinking Machines Lab has released Inkling 2 Mini, an open multimodal model for agentic tasks. It uses about 20GB and scored 20.1 on Artificial Analysis, matching Qwen3.8-27B.

Vibe coding comes to every device
Gadgets

Vibe coding comes to every device

Large language models help users modify the firmware, interfaces and features of TVs, cameras, music devices and game consoles.

AI Agents in Messaging: The Best Services of 2026
Tools

AI Agents in Messaging: The Best Services of 2026

A roundup of AI agents that work through SMS, iMessage, WhatsApp, and other messaging platforms—from personal assistants to services for families, travel, and work.

The West’s Answer to China: Reflection AI Unveils the Beam Open Model After Two Years of Silence
Models

The West’s Answer to China: Reflection AI Unveils the Beam Open Model After Two Years of Silence

Valued at $25 billion, the startup Reflection AI has released a public model for the first time. Called Beam, the development aims to compete with Chinese open-source neural networks in coding and autonomous agents.