frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: ht-mcp – a Rust MCP server of headless terminal for agents

https://github.com/memextech/ht-mcp
12•alphag33k•4h ago
We built a Rust MCP server, which wraps the excellent headless terminal (HT)[1] to makes it available for agentic coding tools.

Most agentic coding tools struggle with blocking, interactive terminal tools (all the boilerplate generator, infra CLI tools etc). This is because many existing CLI dev tools are built for humans and require interactive input. We built this so agentic coding tools (Claude Code, Cursor, Memex, etc) can “see” and “interact” with terminals exactly like humans do.

In our demo video [2], you'll see it operating vim/emacs just as a human would - selecting options, navigating menus, and modifying text in real-time. This is crucial for AI coding assistants that need to work with tools designed for human interaction. We originally built an MCP server in TypeScript wrapping the HT (Rust) binary as a proof of concept. It worked so well that we decided to streamline it and make it more compact and easy to install.

In the process, we found that using Rust and the MCP Rust SDK makes it really compelling to build MCP servers, with significant performance improvements: - 40x faster startup time (~50ms vs ~2s) - 70% less memory usage (~15MB vs ~50MB) - Single 3MB binary vs ~200MB Node.js dependencies - No subprocess overhead or external dependencies

As Andy put it [4]: "Terminals are one of the oldest and most prolific UI frameworks in all of computing. And they are stateful." Without HT, an agent struggles to manage this state directly; with HT-MCP, an agent can observe and interact with the terminal just like a human does.

This is an early first release and we'd love to hear if you find it useful.

Here is a demo using it from Claude Code[2] and Memex[3] (our own desktop agent coding tool).

Install it via Homebrew: `brew tap memextech/tap && brew install ht-mcp`

1. https://github.com/andyk/ht by Andy Konwinski 2. https://github.com/user-attachments/assets/e70a3240-77f5-4ef... 3. https://github.com/user-attachments/assets/6a1b6e76-5d5c-4ba... 4. https://news.ycombinator.com/item?id=40552257

Comments

buremba•1h ago
The web console in ht appears to be quite helpful for debugging sessions. Great work!

Dancing Boss

https://boss.laurasirvent.com/
1•wonger_•1m ago•0 comments

What resistance to the digital coup looks like

https://news.elenarossini.com/this-is-what-resistance-to-the-digital-coup-looks-like/
3•jethronethro•5m ago•0 comments

Obama's awkward call for a broad-scale Trump resistance

https://www.cnn.com/2025/06/18/politics/obama-trump-resistance-analysis
1•vinnyglennon•8m ago•0 comments

This AI Model Never Stops Learning

https://www.wired.com/story/this-ai-model-never-stops-learning/
2•kevinsync•8m ago•0 comments

Strongbox Joins Applause

https://strongboxsafe.com/strongbox-joins-applause/
1•1659447091•8m ago•0 comments

Major oil companies face first 'climate death' lawsuit

https://www.dw.com/en/major-oil-companies-face-first-climate-death-lawsuit/a-72899631
2•jmsflknr•9m ago•0 comments

We made top AI models compete at Diplomacy

https://every.to/diplomacy
1•kkwteh•9m ago•0 comments

Elon Musk calls Grok answer a 'major fail'

https://www.independent.co.uk/news/world/americas/us-politics/elon-musk-grok-right-wing-violence-b2772242.html
2•labrador•9m ago•1 comments

US FDA approves Gilead's twice-yearly injection for HIV prevention

https://www.reuters.com/business/healthcare-pharmaceuticals/us-fda-approves-gileads-twice-yearly-injection-hiv-prevention-2025-06-18/
3•JumpCrisscross•14m ago•0 comments

A shell command to create JSON: jo (2016)

https://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo/
2•homebrewer•15m ago•0 comments

Using NotebookLM to Learn Things

https://www.augmentedswe.com/p/using-notebooklm-to-actually-learn
1•wordsaboutcode•16m ago•0 comments

Internet Relay Chat Protocol (1993)

https://datatracker.ietf.org/doc/html/rfc1459
3•coloneltcb•18m ago•0 comments

Basic Linear Algebra Subprograms

https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms
3•diggan•20m ago•0 comments

Judge smacks down Pentagon plan to slash university research funding awards

https://www.theregister.com/2025/06/18/judge_pauses_dod_university_funding_cuts/
3•rntn•23m ago•0 comments

Show HN: Tips for a lifetime Windows user switching to Mac

https://gist.github.com/rofrol/9ddf89e1f7a709bb85c53e1c2d782fa4
1•rofrol•23m ago•0 comments

Will Iran Be Next? (2004)

https://www.theatlantic.com/magazine/archive/2004/12/will-iran-be-next/303599/
2•dctoedt•25m ago•0 comments

What Is the Most Realistic Submarine Movie Ever Made? [U.S. Naval Institute]

https://www.usni.org/magazines/proceedings/2019/october/what-most-realistic-submarine-movie-ever-made
2•bookofjoe•26m ago•0 comments

Ubuntu Adopts Chrony and NTS for Secure Network Time

https://www.omgubuntu.co.uk/2025/06/ubuntu-chrony-nts-default-25-10
2•ulrischa•27m ago•0 comments

I Built a Kubernetes Cluster at Home (and Why You Should Too)

https://subnetsavy.com/wp-content/uploads/articles/build-k8-pi.html
1•subnetsavy•29m ago•0 comments

Midjourney launches its first AI video generation model, V1

https://techcrunch.com/2025/06/18/midjourney-launches-its-first-ai-video-generation-model-v1/
1•minimaxir•29m ago•0 comments

Stop Using Dangerous Faucets, Regulator Warns

https://www.consumerreports.org/home-garden/faucets/stop-using-kitchen-faucets-due-to-lead-exposure-risks-a4216002752/
4•perihelions•31m ago•1 comments

Silicon Valley Execs Join the Army as Officers (But Won't Attend Boot Camp)

https://gizmodo.com/silicon-valley-execs-join-the-army-as-officers-but-wont-have-to-attend-boot-camp-2000617223
5•ks2048•31m ago•1 comments

Building AI Agents

1•wander8jackson•33m ago•0 comments

Online game proven to reduce partisan animosity

https://phys.org/news/2025-06-online-game-proven-partisan-animosity.html
1•PaulHoule•38m ago•0 comments

UI Component Testing Revisited: Modern Implementation with Visual Verification

https://paulhammant.com/2025/06/17/ui-component-testing-revisited/
1•Bigpet•38m ago•1 comments

Your Brain on ChatGPT: Accumulation of Cognitive Debt

https://twitter.com/itsalexvacca/status/1935343874421178762
2•mgh2•38m ago•1 comments

The Genius Act Will Bring Economic Chaos

https://www.nytimes.com/2025/06/17/opinion/genius-act-stablecoin-crypto.html
2•paulpauper•38m ago•0 comments

Bordeaux Observations

https://marginalrevolution.com/marginalrevolution/2025/06/bordeaux-observations.html
1•paulpauper•39m ago•0 comments

The Joneses Aren't That Happy

https://awealthofcommonsense.com/2025/06/the-jonese-arent-that-happy/
1•paulpauper•39m ago•0 comments

Comprehensive sovereign solutions empowering European organizations

https://blogs.microsoft.com/blog/2025/06/16/announcing-comprehensive-sovereign-solutions-empowering-european-organizations/
1•ajdude•40m ago•0 comments