Clark says agents now handle longer-running tasks with less supervision, which makes it harder to know what they might do. He frames safety around three parts: the harness that runs the agent, the sandbox it works in, and the MCP tools and context it can access.
How Many Credentials Should Your AI Agent Have? Zero.
Speaker
Jim Clark, an engineer at Docker, explains how to make AI agents safer by shaping their sandboxes and MCP access around each task at AI Engineer.
Clark compares agent workflows to a newsroom with separate researcher, fact-checker, and reporter roles. The researcher can access the web but cannot publish; the fact-checker can use a fact database without network access; the reporter can publish filtered research without browsing the web. Separating these capabilities avoids giving one agent both unfiltered information and powerful tools.
For coding work, Clark describes an agent that runs for about an hour but needs Git signing keys for only about two minutes while committing. He argues that a sandbox should provide capabilities based on the task's intent, so signing keys are absent when a commit is not needed.
Clark describes an MCP gateway that funnels tool calls, resources, and prompts through one endpoint. It gives teams a control point for configuring access across different harnesses, without separately setting up MCPs for Codex, Claude Code, or other harnesses. He says sandboxes should contain zero credentials, with access granted through authorization instead.
Clark describes cross-app authorization work involving Docker, Anthropic, and Octo, using existing identity providers and resource servers such as Notion, Atlassian, GitHub, and Slack. He says orchestrators can choose a harness, MCPs, network rules, resources, and worktrees based on the task. Smaller task-specific sandboxes limit access while capabilities are disclosed as needed.
Takeaways
- Design each sandbox around the specific task an agent must complete.
- Separate research, fact-checking, and publishing into roles with different access.
- Keep credentials out of sandboxes and route authorization through a controlled gateway.
- Grant tools and network access only where the task requires them.
- Use task-specific capabilities to reduce risk during longer-running agent work.
Mentioned in this talk
Search inside this talk
What was claimed 11
- works atJim Clark works at
Docker, Inc.
Principal Software Engineer“I'm an engineer at Docker.”
YouTube Verified2 sources· Talk, Web· archived
- works atTushar Jain works at
Docker, Inc.
Executive Vice President, Engineering“Our EVP of Engineering, Tushar Jain, is giving a talk upstairs today.”
YouTube Verified2 sources· Talk, Web· archived
- uses
“I made this presentation with Claude Code.”
YouTube Unverified1 source· Talk
- uses
“The MCPs that helped me write these slides were Marp and Mermaid.”
YouTube Unverified1 source· Talk
- uses
“The MCPs that helped me write these slides were Marp and Mermaid.”
YouTube Unverified1 source· Talk
- uses
“I used the Codex model.”
YouTube Unverified1 source· Talk
- feature
Docker Sandbox: Uses a gateway endpoint to funnel MCP traffic and control capabilities available inside a sandbox.
“This is driving how we think about exposing things like an MCP gateway in our Docker Sandbox product.”
YouTube Unverified1 source· Talk
- featureMCP: Routes MCP traffic through a central endpoint and manages which tools, resources, and prompts are available to each sandbox.
“The endpoint funnels all MCP traffic.”
YouTube Unverified1 source· Talk










