I’ve experimented with ways to give agents useful capabilities while limiting mistakes and controlling access to credentials. My approaches include sandboxed RPC tools, credential access on demand, and questions about network-level credential injection. These concerns connect to agent permissions and least privilege, sandbox providers and hosting, and mcp authentication.
I described a Workers, Slack, and MCP connection problem: I need to establish the SSE connection to the MCP server, but the worker hibernates.
Establishing the connection whenever the worker wakes up times out the Slack responses (3s).
I described an agent that is “very dumb” about tools: Mostly it executes shell commands, and has some stuff like web search.
I run the agent in a container sandbox that lets me mount the filesystem as read-only, have a read-write workspace for certain things; it is intended to prevent accidents, not provide security.
I expose chat history as sessions/{conversation_id}.jsonl; running the agent on top of that history has been great.
I ended up with an RPC system where the agent has a CLI that gets installed in the sandbox, with commands such as [cli] schedule add and [cli] memory search.
I use RPC for capabilities that “didn't make sense as a file” or “needed write access with context.”
When the agent shells out to tools, I bind environment variables such as CHAT_ID so the tools automatically inject the appropriate context.
I said building my own clawdbot alternative has prepared me well for this internal slackbot for Sentry.
I am reimplementing my RPC system now for a credentials sandbox.
I described RPC as my solution for allowing the agent to on-demand get things it needs, with some control over it.
I asked, “Is there any prior art to do network proxy injection on top of Docker?”
I want to replicate what Vercel does with their firewall for injecting credentials into headers (outside the container).