# Your company brain will leak secrets: how we stopped it for big banks — Tanmai Gopal, PromptQL <!-- ref: @content/youtube/aie/your-company-brain-will-leak-secrets-how-we-stopped-it-for-big-banks-tanmai-gopal-promptql tags: [company knowledge base, agent access control, shared memory, credential passthrough, enterprise security, collaborative agents] version: 3 updated_at: 2026-11-24T04:28:41.054Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=0uC6u0lJJl4)** # Your company brain will leak secrets: how we stopped it for big banks — Tanmai Gopal, PromptQL *Synthesized from Tanmai Gopal's talk on AI Engineer, 2026-09-03.* Tanmai Gopal, CEO and co-founder of PromptQL (a company from the Hasura lineage), presents what his team learned building a shared company "brain" for early customers, including large banks. ## Core Thesis Tanmai Gopal argues that a company brain, defined as shared context in Markdown files plus rules for who can read and change what, will leak company secrets unless access control is designed in from the start. He proposes one company-wide wiki where every change is attributed to a named person, agents suggest additions instead of writing them, and every read runs under the asking user's own credentials. ## Key Insights - **Healthy brains keep growing.** In PromptQL's own brain of about 5,000 wiki pages, daily updates rose steadily over the last two months rather than fading after launch. He reads a steady climb as a sign the system is being taught useful skills. - **Two use cases.** A personal brain lets one person's agent answer a client security questionnaire from company knowledge. A multiplayer brain lets several people work with one agent in Slack, for example during collaborative incident management. - **Silos are the failure mode.** Per-channel agent memory and team-only shared spaces each lock knowledge away from the rest of the company. The target is one wiki whose pages link to each other. - **Three rules.** Keep one company-wide wiki. Attribute every change to the human who confirmed it, never to "Claude" or "your AI agent". Do not allow automatic memory writes: the agent proposes an addition with suggested access levels, and the person approves or rejects it in a dialog. - **Access is per page.** Each wiki page carries its own owner and access levels. Someone adding financial material sets financial access, and the agent reads each page as the asking user, so a user without financial access does not get financial answers. - **Disagreement creates the best context.** In an SRE example, an agent corrected a "like" query to an "equals" query and surfaced that a page-name prefix caused search problems. Two engineers then argued over an undocumented technical decision, and the resolution became the highest-quality entry in the brain. - **Privilege must split by action.** One agent that can debug, open pull requests and deploy to production is too much privilege, even though the knowledge sits in the same shared conversation. The people who debug and the people who release are often different. - **Architecture rules.** Never store credentials in a cloud sandbox. Inject the user's credentials at the HTTP or SQL level, and proxy or virtualize every interaction with real data so the user who adds a tool controls who can use it. He says the approach is not tied to one cloud or model provider. ## Actionable Takeaways 1. Keep a single company wiki and record the confirming person's name on every change. 2. Have agents propose wiki additions with access levels, and let the page owner approve or reject them. 3. Set access levels on each page, and run agent reads under the asking user's own credentials. 4. Do not store credentials in sandboxes; pass user credentials at the HTTP or SQL layer. 5. Give debugging, staging and production-deploy powers to separate agent grants, even when the same conversation uses them. ## Notable Quotes > "The third thing you do, and this is the most important thing, is not to let the agent automatically add data to memory." — Tanmai Gopal > "So, two rules. First: make sure everything goes into one company-wide wiki." — Tanmai Gopal --- *Related: `@content/youtube/nate-herk/a-week-of-grok-bot-lessons-in-10-mins` · `@content/youtube/yc-root-access/how-to-give-ai-agents-enough-context-to-be-useful` · `@content/youtube/aie/tethered-our-agents-are-us-shu-fang-two-sigma` · `@content/youtube/ai-jason/agent-memory-resolved`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*