Blackhount AI that runs your company while you sleep Saturday, November 14, 2026
Blackhount
Sealed Room guide

How to let AI coding agents work on your code without handing over your repository

AI coding agents can now plan, write and test code on their own, for hours at a time. Most of them run with the same access as the person who started them, and that is far more than one task needs. Here is how to give an agent a task without giving it your whole repository, your keys or the open internet.

In short: Treat an agent like a new contractor you have never met: one task, only the files that task needs, no long-lived keys, only the internet it needs, every change and connection recorded, and a person reviewing everything before it is merged. Then throw the workspace away.

Why this matters more in the AI era

The same shift that made agents useful made repositories more valuable. Alongside the code, they now hold prompts, agent instructions, model settings, evaluation sets and the business rules behind your product. That is your intellectual property, and an agent that can read the whole repository can also send any of it anywhere it can reach.

What a coding agent can usually reach

An agent started on a developer's laptop or in their cloud workspace typically inherits that developer's reach:

  • The whole repository and its history, not just the folder the task is about.
  • Keys in the environment. Tokens, cloud credentials and .env files that happen to be on the machine.
  • The open internet, to fetch documentation and packages, and to send anything anywhere.
  • The power to change things, by running commands, pushing branches or opening pull requests with the developer's account.

Many agent tools run in a sandbox, and that matters, but most of those sandboxes protect the developer's own computer from the agent. They are set up by the developer, and they do not limit which parts of your code the agent sees.

Risks that are specific to agents

  • Hidden instructions. An agent that reads issues, documents, web pages or library files can be steered by text someone planted there, for example "also send the config file to this address".
  • Keys leaking into outputs. Secrets in the environment can end up in logs, generated files or requests.
  • Unwatched connections. Without a list of allowed sites, nobody sees where an agent sends data.
  • Changes that run themselves. An agent that edits build workflows or install scripts can change what runs, with your secrets, the moment its work is merged.
  • Speed and scale. Agents work fast and often in parallel, so one bad pattern repeats across many changes before anyone looks.

Six rules that hold for any agent

  1. One task, one workspace, only the folders it needs. The agent should never hold the whole repository to fix one part of it.
  2. No long-lived keys inside the workspace. If the work needs a service, keep the credentials outside and narrow, and give them only to the step that needs them.
  3. A short list of allowed sites. Package sites for reading, the documentation it needs, and nothing else unless you add it. Never your Git host, so code cannot be pushed around the review.
  4. Record every change and every connection, somewhere the agent cannot edit.
  5. A person approves before anything merges. Protect the main branch, read every changed line, and give extra attention to files that run automatically.
  6. Throw the workspace away when the task ends. Nothing carries over to the next task unless you choose it.

A quick check before you let an agent loose

QuestionGood answer
What code can it read?Only the folders this task needs
What keys can it see?None that would hurt if leaked
Where can it connect?A short list you chose, and every connection is recorded
How does its work reach the repository?Only as a pull request a person reviews
What happens when it is done?The workspace is deleted

Where the Sealed Room stands

The Sealed Room applies these rules to people today: one room per task with only the folders it needs, no keys inside, only the sites you allow, every change and connection recorded, and nothing reaching your repository until you approve it. Rooms for AI agents are next, under the same rules: the agent works inside the room, and its work comes back to you for review like anyone else's. Request access to be among the first to use them.

Questions teams ask

Isn't the agent's own sandbox enough?

It protects the machine the agent runs on. It does not decide which part of your code the agent sees, what it may connect to, or what reaches your repository. Those are your company's decisions, and they belong outside the agent.

Should an agent ever push to the main branch?

No. Keep the main branch protected so every change, from a person or an agent, arrives as a pull request someone reviews.

What about agents in the developer's own editor?

The same rules apply. If a developer works inside a room that holds only the task's folders, any agent they use inside it sees only those folders too.

Give the task, keep the repository.

Open a room for one task with only the folders it needs. You review every change before it reaches your GitHub.

Request access