Remix.run Logo
▲ padolsey a day ago

It is a pleasant sort of 180, that we obsessed with MCP and other myriad harness techniques only to discover that in the end it is the primacy of the unix shell that comes most naturally to LLMs, and so the only thing we should obsess with now is how to appropriately sandbox that latent competency (to be clear: nobody ever said you had to let an agent legit run bash on an actual system, only that it's how they like to 'talk'!!). Unix already solved how to let things represent state and hierarchical memory/context (files and dirs lol), advertise capabilities (yes, it's just --help), talk to other things (stdin/out, pipes, sockets), etc. It was always right in front of us. It should be humbling us that we keep stepping over ancestors' footsteps.

▲jameshart a day ago | parent | next [-]

It shouldn’t surprise people who use computers as tools that the best way to level up an LLM agent’s capabilities is to give it a computer to use as a tool.

Nor that when such models can only really process text in and text out that they would prefer to interact with those computers through a command line.

Turns out bots need bicycles for their mind just as much as humans do.

But I think we should be cautious about assuming that all the problems we can turn bots to solving can best be aided by just giving them a computer to use and hoping they figure out how to use it right.

Much as how we don’t generally like it when every individual employee in a company uses their own bespoke excel spreadsheet to track their expenses, but instead give them all a common tool to do that with, rather than just trusting agents to figure out how to do things with the computer you give them, it makes sense to at least do things like install particular software into the computer you issue them with, give them access accounts on specific shared systems, and tell them how you want them to handle certain tasks.

MCPs are one way to do that; another is to just drop a set of instructions in a markdown file in their home directory called README.md and hope they take a look at it when they log in.

▲traceroute66 a day ago | parent | prev | next [-]

> in the end it is the primacy of the unix shell that comes most naturally to LLMs

Given that LLM's learnt by scraping the likes of Stack Overflow, I'm not sure why it comes as such a surprise that shell wizardry is the path of least resistance ?

▲hackyhacky a day ago | parent [-]

> Given that LLM's learnt by scraping the likes of Stack Overflow,

They also scraped Renaissance French poetry, but for some reason that's an awkward way to communicate with them.

▲macleginn a day ago | parent | next [-]

Renaissance French poetry's vocabulary for building API endpoints is arguably not very rich, and there are fewer worked-out examples.

▲traceroute66 a day ago | parent | next [-]

> Renaissance French poetry's vocabulary for building API endpoints

Now I want to build a Renaissance French API endpoint ! ;)

    401 Trespassant — you are not of noble birth
    429 Trop De Requêtes — the King tires of your petitions
    451 Hérétique — this endpoint has been burned at the stake
▲simonh a day ago | parent [-]

408 Croquer le marmoset - Request timeout

▲kzrdude 6 hours ago | parent [-]

418 Ceci n'est pas une pipe

▲gumby a day ago | parent | prev [-]

Yes but the language still had three genders at that point so arguably was more expressive due to having more degrees of freedom.

▲ a day ago | parent | prev | next [-]
[deleted]
▲beepbooptheory a day ago | parent | prev [-]

Only because you tell it that it's awkward.

▲agentdev001 a day ago | parent | prev | next [-]

You've stated the reason why MCP things still have a place without directly pointing it out, haha.

"the only thing we should obsess with now is how to appropriately sandbox"

Kinda-counterpoint, "how do we sandbox" is the same question as "how do we give all agents an MCP client", in the fact that you are giving a capability to a fleet of agent clients. The first one is (generally) really hard to do at enterprise speed, if you're on prem. The second one is already solved- so, that's not a big lift to lean into.

Additionally I will note that MCP-advertised tools are Harness-level, ie same part of the hierarchy as Bash. Not super relevant in this comment but I want to use this opportunity to inform passerbys. :)

▲lelanthran 7 hours ago | parent | next [-]

> Kinda-counterpoint, "how do we sandbox" is the same question as "how do we give all agents an MCP client", in the fact that you are giving a capability to a fleet of agent clients

This is a circular argument: it boils down to "we need MCP because we said we need it".

The question is, do we actually need it if the agent can execute any command via bash?

I am starting to get convinced that MCP is a dead end.

▲gavinray a day ago | parent | prev | next [-]

An MCP client does not imply sandboxing or safe execution.

It's just a message protocol, it says nothing about what the messages actually do.

There's nothing preventing you from writing an MCP service that replies to every message by running "rm -rf /" in bash.

▲auggierose 20 hours ago | parent [-]

An MCP service is the sandbox. If you allow your sandbox to do "rm -rf /" in bash, that is up to you.

▲bigmadshoe 20 hours ago | parent [-]

By that argument isn't the shell you give the LLM in place of MCP also the sandbox? If you hand it a real shell that allows "rm -rf /" then that's up to you.

▲Sammi 19 hours ago | parent | next [-]

I feel like neither is really what is meant by the word "sandbox". Sandboxyness is a feature of the runtime environment, not the interface. It's what the environment allows not what the interface allows.

But if were talking about what the interface allows, then it's much simpler to define a restrictive mcp interface than a restrictive bash like interface.

▲auggierose 18 hours ago | parent [-]

The environment is an interface.

▲agentdev001 18 hours ago | parent | prev [-]

Sure, if you are looking at safety of agents from the perspective of effect-bound autonomy- you could say that the 'sandbox' is the total of the limits of its toolset.

▲lukeschlather 20 hours ago | parent | prev | next [-]

I think the main useful thing about MCP is if you are really sure you want the model to read something. Like when QA'ing things, if you just tell the model "QA this resource" and the resource has multiple files, the model might decide to read only part of some files, or totally ignore them. With an MCP the model asks for the resource and the MCP shoves all the data directly into the model's context in one go.

But I'm not sure what MCPs offer for sandboxing. Whatever API they're using, the API needs to be authed and prevent access to things it doesn't need access to. filesystem or REST are no different from MCPs, they can be sandboxed or not.

▲jeremyjh 19 hours ago | parent | prev [-]

MCP aren't primarily a way to sandbox an agent. The sandbox needs to rely on OS primitives that are well-assured, and its best if the code wrapping the sandbox - which is easy to get wrong - exists in one place and not in 20 different MCP servers or a massive agent harness accepting dozens or hundreds of PRs a day.

In my company, MCP is primarily useful for remote contexts because it drives more standardized documentation and authentication standards enabling simpler integration of various tools used in an enterprise.

▲agentdev001 18 hours ago | parent [-]

Rereading my comment, the point I was trying to make was a bit confusing; early morning posting. I still can't fully translate my thoughts- TLDR at the end.

To clarify a bit, I'm trying to contrast the point of "only to discover that in the end it is the primacy of the unix shell that comes most naturally to LLMs".

I agree with what you're saying here- I'm voicing my experience with trying to roll out on-prem sandboxing (EBPF/MicroVM/Network Control/TLS term/etc). If we set aside HITL + synchronous use of 'coding' agents, getting both a (true) shell, and enterprise resources, available to asynchronous agents is near impossible- without true best-practices sandboxing infra.

So- back to my original comment. Bash as a tool is a capability you give to an agent, an MCP client (ie, the bit in the harness that allows for connecting MCP Servers and resources) is as well. The former is really hard to do at scale (sanely) if you don't already have the infrastructure to support it, the latter is already solved.

Yes, everyone doing AI things knows that every agent under the sun should have a shell. The statement of "the only thing we should obsess with now is how to appropriately sandbox" is disjointed from "we obsessed with MCP ... only to discover ... unix shell ... comes most naturally to LLMs". The two exist together- neither is a replacement for the other, MCP still offers a smooth path through "hey but is this safe?" conversations.

I fear I am still doing a poor job of explaining. TLDR; one cannot say 'mcp bad' without reckoning with the reality of how best-practice looks if no sandboxes are available.

▲OleksandrC 16 hours ago | parent | prev | next [-]

Indeed, Unix is itself the extensible platform. And AIs are very good at using it (they have memory of all the commands and how to use them, and for those they don't, they can discover by reading --help or a man page). There is no need to invent other systems on top of it (in-process plugins, MCPs, etc).

FreeHand here seems prototype quality, if you'd want something in similar minimalist bash-centric direction, but more polished and ready for actual use, try hax - https://usehax.dev/ (disclosure: I am the author). Watch the Ubuntu Summit talk about it here: https://www.youtube.com/watch?v=4mS7UvCFc6c ("An AI coding agent as a lightweight Unix tool").

▲xg15 a day ago | parent | prev | next [-]

> (to be clear: nobody ever said you had to let an agent legit run bash on an actual system, only that it's how they like to 'talk'!!)

Bash and Python, apparently.

The irony is that there would have to go a lot of effort and complexity into a "harness" that looks like a bash shell with python installed from the inside but is really something completely different on the outside.

It would be much easier with a model defaulting to e.g. JavaScript or TypeScript instead, as JS runtimes are already built with sandboxing and arbitrary host environments in mind.

▲krzyk a day ago | parent | next [-]

Unix has built in sandboxing (users) and built-in in containerisation. It is something they was there for long and I think should be the most rock solid out of any other.

▲cyanydeez a day ago | parent | prev | next [-]

I hard forked opencode and am devising a "protocol" switch that forces all the tooling through ssh or docker or a vm.

I think the archtectural decision of loading your harness on bare metal is what makes it unsafe and instable. Afterall, this is all just text.

Text. If we can't make text safe, then linux engineers were way to praised for their capabilities.

▲akho 21 hours ago | parent | next [-]

Why not just run the agent in a container, with your project repo mounted in? Seems easier than modifying tools.

▲Vax- 18 hours ago | parent | prev | next [-]

See gondolin extension for pi, they're basically mounting the working dir on a microvm.

▲chrisweekly 16 hours ago | parent [-]

see also "smolvm" microvms from https://smolmachines.com

▲xg15 a day ago | parent | prev [-]

I like that idea, and I hope we will see more of it in the future.

And I agree, the way most harnesses are running is actively contributing to the "AI agents are dangerous and can go rogue" perception.

I find it strange how little consideration for security seems to be in the standard harnesses. It seems to go into the opposite direction. A year ago, the standard was still to inspect each tool call individual, however impractical that was. Now, Pi isn't even implementing permission checks for tool calls at all anymore, pointing to 3rd party plugins or telling you to vibecode your own if you want to have it.

▲fizzbuzzbarbazz a day ago | parent | prev [-]

xonsh.ai, lfg

▲xg15 a day ago | parent [-]

That gives you the shell syntax, but not yet the closed execution environment, simulated file system, etc. It's a good start though.

▲andai 16 hours ago | parent | prev | next [-]

>only thing we should obsess with now is how to appropriately sandbox that latent competency (to be clear: nobody ever said you had to let an agent legit run bash on an actual system,

I'm too stupid and lazy to understand Docker, so I just gave it a Linux user.

I should get around to setting it up on its own device, though, so that it can do GUI stuff more conveniently.

Similarly, everyone's like "how do I stop claude from bricking my server." Solution: Just rent a $3 server and make it root. It blows it up? You are down $3. (Well, you're not even down $3. Just reset the server!)

Give it a credit card with a $10 limit.

Expect doom, and simply design it so that doom is okay.

Expect blast; Minimize blast radius.

▲altmanaltman 20 hours ago | parent | prev | next [-]

I never got the hype of MCPs, its like an API wearing a hat.

I personally have never used any of these super advance AI coding things people talk. I have a simple VM that can fully get rekt for all I care, I ssh into it and run opencode and use my favorite models to code, sometimes i just use opencode to get "agentic tasks" done also because it can kindda do everything I want from the shell as long as it has appropriate permissions.

Never faced an issue with my setup and have shipped actual software to actual clients. I feel people get a bit lost with AI coding how to fully optimize it (in part as a reaction to how some of the biggest orgs are doing it) but my simple AI coding loop has lowkey changed my life and i love it and more importantly, fully understand it since i live in the terminal as well and just watch the fucker how it deals with things and intervene when needed.

Would things be better if i have some VM orchestra with pi and hermes making my to do list using MCPs etc but all that i feel is a distraction from actually building which is what we use ai coding for, right?

But no, we must push the frontier with our nerd cowboy hats and break encryption or else AI is not worth even a dollar.

▲jameshart 18 hours ago | parent [-]

This works because what you want to use your LLM agent for is as a coding pair programming buddy.

If you show up to pair on a coding exercise with a human you assume as a baseline ‘we will have a computer running dev tools which we can use to code on’.

But there are other things people want to collaborate with agents on.

For example if what you want your agent to do is be a data research buddy to help you answer inquiries from customers you are handling on the phone, it’s not obvious that that would be facilitated by your buddy showing up with a full Unix shell and a working python venv. What they probably do need is access to some knowledgebases and constrained APIs for checking customer history. That’s where MCPs fit in.

▲altmanaltman 18 hours ago | parent [-]

Well, two things: I talked about the coding part as a personal anecdote, and while it was related to the MCP comment, they are different. I don't really see what unique value MCPs provide in that example that APIs don't, you're just putting a hat on it and while yeah its valuable i guess but nothing that is like paradigm-defining like its often marketed. I still remember Anthropic making a big song and dance when they released the MCP Protocol and then I think a foundation around it? Like I feel it gets a bit overhyped for what it actually is. Nevermind the tech influencers talking about it like it will change the way every app will work ever and how its amazing that apps can now "TALK TO OTHER APPS"!!! like come on man

▲gavinray a day ago | parent | prev | next [-]

I think it's less about Unix as a special thing, than going from "here's specific instructions and a narrow set of tools" to "Here's one tool you can do anything with, and very few instructions."

Imagine if you asked Albert Einstein to work on a problem, but started by giving him a bunch of restrictions and narrow tools.

You're better off just saying "Can you please solve problem XYZ" and letting him decide how to do it, without restrictions, because he's almost certainly smarter than you.

▲Onavo 16 hours ago | parent | prev [-]

That's not something exclusive to Unix. Have the underlying LLM do post training in a brainfuck environment and it will speak fluent brainfuck too. Its more of a fuck up by Microsoft that more high level software engineering and R and D now predominantly happen in UNIX environments.