# Limit what agents learn about private repos with enclaves

DevFeed: [Limit what agents learn about private repos with enclaves](<https://devfeed.tech/articles/limit-what-agents-learn-about-private-repos-with-enclaves-114844.md>)

Original publisher: [Read original article](<https://githubnext.com/posts/enclaves/>)

Published: 2026-11-02T00:00:00Z

Content type: article

Language: en

Sources: [GitHub Next](<https://devfeed.tech/sources/github-next.md>)

Topics: [GitHub Agentic Workflows](<https://devfeed.tech/topics/github-agentic-workflows.md>), [agentic workflows](<https://devfeed.tech/topics/agentic-workflows.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Cryptography](<https://devfeed.tech/topics/cryptography.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [attack](<https://devfeed.tech/tags/attack.md>), [broker](<https://devfeed.tech/tags/broker.md>), [budget](<https://devfeed.tech/tags/budget.md>), [communication](<https://devfeed.tech/tags/communication.md>), [github](<https://devfeed.tech/tags/github.md>), [github-agentic-workflows](<https://devfeed.tech/tags/github-agentic-workflows.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [security](<https://devfeed.tech/tags/security.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

## AI overview

Enclaves let a workflow's primary agent delegate private-repository analysis while receiving only a schema-constrained result. A trusted broker runs the enclave in isolation, validates its response, and charges the schema's maximum information capacity against a shared per-repository budget before execution. For confidential repositories, the example budget is 8 bits per run; status and timing channels also count. Script enclaves run bounded Python over read-only snapshots without network access, while agent enclaves use a configured model provider and may have a narrow GitHub interface. The primary agent never receives the private snapshot or credentials. These controls block unrestricted file copying but do not make every permitted answer harmless or ensure correctness. Agent enclaves still send repository-derived content to the model provider, and workflows must keep private repositories inaccessible to the primary through other means. Budgets apply per run, so maintainers must consider repeated workflow runs.

## Source excerpt

Enclaves are a new security primitive for cross-repository GitHub Agentic Workflows. Enclaves let agents work on different repositories while limiting what they say to each other.