# instibrain > One curated brain your team owns, that every AI you use can read. Plain markdown files on your computers, an MCP endpoint for any AI, and a server that stores every sealed space as ciphertext it cannot open. instibrain is made by WebWork AI, Inc. A brain is every space a person reads: their Personal and Sealed, the team spaces of their account, and any space opened for a few people. A space is open, so the server can read it, or sealed, so only the computers of everyone it is shared with can; a brain holds both kinds, and you choose per space. A space is shared whole, with reader, editor, and manager roles, and it starts from a template with a skeleton the structure check holds it to. Specialists, each a persona and a method, each shared with people of its own, sit beside the spaces, and the system, instibrain's own rules, the same for everyone, sits beside both. An AI reads the brain over MCP with 85 tools in three scopes, asks before it acts with proposals and two-call changes of access, and is refused by the guard's save rules with the fix named; a tool's script runs only at a version a manager approved. The wire contract, the limits (100,000 pages and 2 GiB an account, 100 pages a second), the security model with every limit stated, the sync client's commands, and a new teammate's setup are on the pages below. Every page is also served as markdown at its address plus .md. ## Start here - [Home](https://instibrain.ai/): One brain between your systems and every AI you use: what your company knows and who may know it, as pages you own. Your files stay in your own store. ([markdown](https://instibrain.ai/index.md)) ## Product - [The brain](https://instibrain.ai/brain): Agent memory for a company: the pricing floor, the deploy runbook, a client's history, as pages your team keeps and every AI you use reads before it answers. ([markdown](https://instibrain.ai/brain.md)) - [Spaces](https://instibrain.ai/spaces): A space is shared whole with a person, a group, Everyone, or an agent: sales reads pricing, leadership reads pay, and each AI reads only what its person may. ([markdown](https://instibrain.ai/spaces.md)) - [Sealed spaces](https://instibrain.ai/spaces/sealed): A sealed space is encrypted on your computers before it leaves them, path included: what the design does that a password cannot, and how a team shares one. ([markdown](https://instibrain.ai/spaces/sealed.md)) - [Rooms](https://instibrain.ai/rooms): Each Claude Code window, server AI, and agent is a voice of its own: they ask each other, say when they finish, and open rooms; you read every word. ([markdown](https://instibrain.ai/rooms.md)) - [Specialists](https://instibrain.ai/specialists): How your team does a job, written once and shared with people of its own; each person's AI runs it on the spaces they may read, beside Claude Code's skills. ([markdown](https://instibrain.ai/specialists.md)) - [Markdown editor](https://instibrain.ai/markdown-editor): Read and fix what your AIs read, in the browser: every space as folders and pages, a markdown editor that keeps every byte, and every version with its writer. ([markdown](https://instibrain.ai/markdown-editor.md)) - [Version history](https://instibrain.ai/history): Every write to an open space keeps a version: who wrote it, when, and what changed. Restore any page, undo a removal, see who wrote each block. ([markdown](https://instibrain.ai/history.md)) ## Your AI - [Your AI](https://instibrain.ai/agent): Claude Code, Codex, and Claude read your company's pages before they answer: the pricing floor, a client's history, the runbook. One installer, or one address. ([markdown](https://instibrain.ai/agent.md)) - [Claude Code](https://instibrain.ai/connect/claude-code): On a linked computer, the installer connects Claude Code to the brain, and it reads as you. Elsewhere, one command adds it by address, and your rules go first. ([markdown](https://instibrain.ai/connect/claude-code.md)) - [Cursor](https://instibrain.ai/connect/cursor): Cursor speaks MCP, the protocol the brain serves, and has not run on our brain yet. Where its address would go, and what Cursor could read once connected. ([markdown](https://instibrain.ai/connect/cursor.md)) - [Codex](https://instibrain.ai/connect/codex): One command, or two lines in config.toml, adds the brain to Codex as an MCP server: what it reads first, what it reaches as files, and how writing is approved. ([markdown](https://instibrain.ai/connect/codex.md)) - [ChatGPT](https://instibrain.ai/connect/chatgpt): Memory inside one AI is one person's; a brain is pages your team keeps, read by every AI you connect over MCP. ChatGPT speaks MCP and has not run on ours yet. ([markdown](https://instibrain.ai/connect/chatgpt.md)) - [Built for AI](https://instibrain.ai/for-agents): The identity every AI reads first, an index of what exists, pages loaded one at a time, a way to ask before acting, and refusals that name the next move. ([markdown](https://instibrain.ai/for-agents.md)) ## Your computer - [Sync client](https://instibrain.ai/device): The sync client keeps every space you read as markdown files, holds its keys, updates itself daily, and never overwrites a page two writers changed. ([markdown](https://instibrain.ai/device.md)) - [Linked computers](https://instibrain.ai/computers): Link a computer with a one-time code, and every space you read lands in ~/instibrain as plain markdown, kept in step, with keys made on that machine. ([markdown](https://instibrain.ai/computers.md)) - [Works with](https://instibrain.ai/works-with): Every system your AI runs, by kind: password managers, documents, team chat, code, websites, browsers and terminals; each credential stays yours, never ours. ([markdown](https://instibrain.ai/works-with.md)) - [Tools](https://instibrain.ai/tools): Every tool the brain offers an AI over MCP, by scope, read, write, and manage, in the words the AI reads: what it takes, what it says back, how it refuses. ([markdown](https://instibrain.ai/tools.md)) - [Get started](https://instibrain.ai/get-started): How a new teammate joins their team's brain and connects an AI: accept the invite, get a link code, run the installer, and add the brain to Claude Code. ([markdown](https://instibrain.ai/get-started.md)) ## Learn - [Why instibrain](https://instibrain.ai/why): The difference is what yours knows: the eight questions a company meets when it puts AI to work, where instibrain stands on each, and pages beside retrieval. ([markdown](https://instibrain.ai/why.md)) - [Context engineering](https://instibrain.ai/context-engineering): Context engineering decides what your AI knows before it answers. A brain keeps who it is, what is true, and how you work as pages it loads in steps. ([markdown](https://instibrain.ai/context-engineering.md)) - [Second brain](https://instibrain.ai/second-brain): A personal second brain is one person's notes in one app; a company's is pages the team keeps, each space with its own people, read by every AI it uses. ([markdown](https://instibrain.ai/second-brain.md)) - [Compare](https://instibrain.ai/compare): instibrain beside Claude's and ChatGPT's memory, Basic Memory, Mem0, Glean, Notion AI, Obsidian and Markdown in Git: what each keeps, and where the other wins. ([markdown](https://instibrain.ai/compare.md)) - [How it works](https://instibrain.ai/how-it-works): How a page travels between your computers and the brain: the page record, the version rule the server enforces, the merge on your computer, and the two doors. ([markdown](https://instibrain.ai/how-it-works.md)) - [Security](https://instibrain.ai/security): For your security review: who reads each space, what each AI reaches, the guard on every save, the encryption of sealed spaces, and every limit. ([markdown](https://instibrain.ai/security.md)) - [Tour](https://instibrain.ai/tour): The whole product on one page: what your AI does with your company's pages, then five steps from a page your team writes to your AI reading it, on real screens. ([markdown](https://instibrain.ai/tour.md)) - [Demo](https://instibrain.ai/demo): instibrain keeps what your company knows as pages every AI you use reads. Try it on an example company: ask, edit a page, switch reader. No account. ([markdown](https://instibrain.ai/demo.md)) - [Use cases](https://instibrain.ai/use-cases): Sales, support, engineering, operations, legal, and a new hire: what each team writes into its brain, what its AI answers from it, and where the files stay. ([markdown](https://instibrain.ai/use-cases.md)) - [Guides](https://instibrain.ai/guides): Beginner series in four kinds: the AI you use, your brain, the two together, and the words under all of it; each lesson one idea, one picture, one thing to try. ([markdown](https://instibrain.ai/guides.md)) ## Company - [About](https://instibrain.ai/about): WebWork AI, Inc. owns instibrain, founder Vahagn Sargsyan designs it, Evistep engineers it, and both companies keep their own pages in it, read every day. ([markdown](https://instibrain.ai/about.md)) - [Changelog](https://instibrain.ai/changelog): Every change a person meets in instibrain, newest first and dated: the cockpit, each release of the sync client, the brain's tools, sign-in, and the system's rules. ([markdown](https://instibrain.ai/changelog.md)) - [Enterprise](https://instibrain.ai/enterprise): What a company gets from instibrain, role by role: one brain it owns, control by space, its own AI, its files in its own systems, and the setup with its team. ([markdown](https://instibrain.ai/enterprise.md)) - [FAQ](https://instibrain.ai/faq): Which AIs connect, who keeps the pages, who reads each space, what our server can and cannot read, what a restore loses, and what you keep if we shut down. ([markdown](https://instibrain.ai/faq.md)) - [Glossary](https://instibrain.ai/glossary): Each word defined once, in one line: brain, space, sealed space, specialist, room, then the market's words: context engineering, agent memory, RAG, embeddings. ([markdown](https://instibrain.ai/glossary.md)) - [Sign up](https://instibrain.ai/signup): Sign up with your email for a free personal brain: one person, up to 200 pages and 20 MB, read by every AI you connect. For a team's account, write to us. ([markdown](https://instibrain.ai/signup.md)) - [Contact](https://instibrain.ai/contact): Write to hello@instibrain.ai for anything, and to the security, privacy, and legal addresses for each matter; the company's registered address is here too. ([markdown](https://instibrain.ai/contact.md)) ## Works with - [1Password](https://instibrain.ai/works-with/1password): What your AI does in 1Password as you: read an item at the moment of use, list items with values hidden, rotate a secret. No value reaches instibrain. ([markdown](https://instibrain.ai/works-with/1password.md)) - [Bitbucket](https://instibrain.ai/works-with/bitbucket): What your AI does on Bitbucket Cloud as you: lists and creates repositories, opens pull requests with their reviewers, reads and searches code uncloned. ([markdown](https://instibrain.ai/works-with/bitbucket.md)) - [Bitwarden](https://instibrain.ai/works-with/bitwarden): What your AI does in Bitwarden as you: reads one field inside the command that uses it, lists collections and members, creates and edits items by stdin. ([markdown](https://instibrain.ai/works-with/bitwarden.md)) - [Chrome](https://instibrain.ai/works-with/chrome): What your AI does in your Chrome: it opens a window in a profile, reads its bookmarks, and changes them through Chrome's own API, so sync records each change. ([markdown](https://instibrain.ai/works-with/chrome.md)) - [Codex](https://instibrain.ai/works-with/codex): Codex, OpenAI's coding AI, on your own ChatGPT plan: a session in your brain's folder, a task Claude Code hands it, images to a brief, a second opinion. ([markdown](https://instibrain.ai/works-with/codex.md)) - [Gmail](https://instibrain.ai/works-with/gmail): Your AI searches, reads, sorts and drafts your Gmail through a script you deploy in your own account. It sends only on your go, with no connector in between. ([markdown](https://instibrain.ai/works-with/gmail.md)) - [Google Apps Script](https://instibrain.ai/works-with/google-apps-script): A web app you deploy from your own Google account gives your AI Gmail, Drive, Docs, Sheets, Slides and Calendar as you, with one key you hold. ([markdown](https://instibrain.ai/works-with/google-apps-script.md)) - [Google Docs](https://instibrain.ai/works-with/google-docs): Your AI edits your Google Docs in place through a script you deploy in your own account: inserts, fills, styles, links and images, no connector between. ([markdown](https://instibrain.ai/works-with/google-docs.md)) - [Google Drive](https://instibrain.ai/works-with/google-drive): Your AI works your Drive as you: real files through the Drive folder, and search, sharing and shared drives through a script you deploy in your own account. ([markdown](https://instibrain.ai/works-with/google-drive.md)) - [Google Sheets](https://instibrain.ai/works-with/google-sheets): Your AI works your Google Sheets through a script you deploy in your own account: formats, formulas, tabs and real dates, with no connector in between. ([markdown](https://instibrain.ai/works-with/google-sheets.md)) - [Keeper](https://instibrain.ai/works-with/keeper): What your AI does in Keeper as you: reads a record at the moment of use, lists folders with passwords masked, adds and shares records, the admin's commands. ([markdown](https://instibrain.ai/works-with/keeper.md)) - [Keychain](https://instibrain.ai/works-with/keychain): The login Keychain, the PowerShell SecretStore or the Secret Service: where a script's credential lives on your computer, and why a read never prompts. ([markdown](https://instibrain.ai/works-with/keychain.md)) - [Notion](https://instibrain.ai/works-with/notion): What your AI does in Notion as you, through Notion's MCP connector or a personal token: search, read and edit pages and databases, each edit under your name. ([markdown](https://instibrain.ai/works-with/notion.md)) - [Search Console](https://instibrain.ai/works-with/search-console): What your AI reads in Search Console as you: clicks, impressions and position per query and per page, from your own Google account on the property. ([markdown](https://instibrain.ai/works-with/search-console.md)) - [Semrush](https://instibrain.ai/works-with/semrush): What your AI reads in Semrush on your seat: positions, landing pages and keyword metrics through its MCP server, which plan gives what, and what is modelled. ([markdown](https://instibrain.ai/works-with/semrush.md)) - [Slack](https://instibrain.ai/works-with/slack): What your AI does in Slack as you: reads the channels and threads you are in, searches when the scope allows, posts a message only after you have seen it. ([markdown](https://instibrain.ai/works-with/slack.md)) - [Terminal](https://instibrain.ai/works-with/terminal): How your AI opens terminal windows: a window per operation, specialist or project, named and coloured, with one command on a Mac, Windows or Linux. ([markdown](https://instibrain.ai/works-with/terminal.md)) - [WordPress](https://instibrain.ai/works-with/wordpress): What your AI does on a WordPress site as you: a post in blocks with author, category, language, image, SEO fields and both dates set, by admin or wp-cli. ([markdown](https://instibrain.ai/works-with/wordpress.md)) ## Guides - [Claude basics](https://instibrain.ai/guides/claude-basics): Seven short lessons on Claude Code, the AI on your computer: what it is, context, effort and models, where you start it, CLAUDE.md, permissions, connectors. ([markdown](https://instibrain.ai/guides/claude-basics.md)) - [Claude basics 1: What Claude Code is](https://instibrain.ai/guides/claude-basics/what-claude-code-is): Claude Code is Claude working on your computer: it reads files, writes files and runs commands in a loop you can stop or steer. Lesson 1 of Claude basics. ([markdown](https://instibrain.ai/guides/claude-basics/what-claude-code-is.md)) - [Claude basics 2: Context](https://instibrain.ai/guides/claude-basics/context): Context is everything Claude can see right now, its working memory for the session: what fills the window, what the summary keeps, and three commands. ([markdown](https://instibrain.ai/guides/claude-basics/context.md)) - [Claude basics 3: Effort and models](https://instibrain.ai/guides/claude-basics/effort-and-models): The model is which Claude does the work; effort is how long it thinks first. The four models, the five effort levels, instibrain's xhigh, and ultrathink. ([markdown](https://instibrain.ai/guides/claude-basics/effort-and-models.md)) - [Claude basics 4: Where you start Claude, and what it loads](https://instibrain.ai/guides/claude-basics/where-you-start-claude): Claude reads its instructions from the folder where you start it: what loads from the instibrain button, what loads inside a code folder, and /context. ([markdown](https://instibrain.ai/guides/claude-basics/where-you-start-claude.md)) - [Claude basics 5: .md files and CLAUDE.md](https://instibrain.ai/guides/claude-basics/md-files-and-claude-md): A .md file is plain text with a few marks: a document for people, instructions for Claude. What CLAUDE.md is, and how a line with @ imports a whole file. ([markdown](https://instibrain.ai/guides/claude-basics/md-files-and-claude-md.md)) - [Claude basics 6: Permissions](https://instibrain.ai/guides/claude-basics/permissions): Permissions decide what Claude may do without asking: the four modes behind Shift+Tab, the question before one action, limits in auto mode, and Esc twice. ([markdown](https://instibrain.ai/guides/claude-basics/permissions.md)) - [Claude basics 7: Connectors](https://instibrain.ai/guides/claude-basics/connectors): A connector lets Claude reach another app, like Notion, with your own account: the brain connector, the ones from claude.ai, and what /mcp shows you. ([markdown](https://instibrain.ai/guides/claude-basics/connectors.md)) - [AI hygiene](https://instibrain.ai/guides/ai-hygiene): Eight habits for using any AI with or without instibrain, so you pay for fewer tokens and get better answers, each saving worked out at Anthropic's list prices. ([markdown](https://instibrain.ai/guides/ai-hygiene.md)) - [AI hygiene 1: What one message costs](https://instibrain.ai/guides/ai-hygiene/what-one-message-costs): Every message sends the whole window to the model again, so one message in a 100,000-token window reads $0.40 of tokens on Opus 5.5, and in 6,000 tokens $0.024. ([markdown](https://instibrain.ai/guides/ai-hygiene/what-one-message-costs.md)) - [AI hygiene 2: One subject, one window](https://instibrain.ai/guides/ai-hygiene/one-subject-one-window): When the subject changes, start a new window: 100,000 tokens of yesterday read by 20 messages cost $8.00 on Opus 5.5, $0.88 cached, and the answers get worse. ([markdown](https://instibrain.ai/guides/ai-hygiene/one-subject-one-window.md)) - [AI hygiene 3: The stable part first](https://instibrain.ai/guides/ai-hygiene/the-stable-part-first): Keep the long part that does not change first and unchanged, so it is read from the cache at a twentieth of the price on Opus 5.5; one changed byte misses. ([markdown](https://instibrain.ai/guides/ai-hygiene/the-stable-part-first.md)) - [AI hygiene 4: A fact on a page, not in the chat](https://instibrain.ai/guides/ai-hygiene/a-fact-on-a-page): What must hold tomorrow goes in a file your AI reads at the start, since a chat ends with its window and a summary keeps your requests but loses details. ([markdown](https://instibrain.ai/guides/ai-hygiene/a-fact-on-a-page.md)) - [AI hygiene 5: Give it the source](https://instibrain.ai/guides/ai-hygiene/give-it-the-source): Ask from a source, not from the model's memory: point it at the page, ask for the sentence the answer rests on, and let it say when the page does not say. ([markdown](https://instibrain.ai/guides/ai-hygiene/give-it-the-source.md)) - [AI hygiene 6: The smallest model that does the job](https://instibrain.ai/guides/ai-hygiene/the-smallest-model-that-does-the-job): Pick model and effort per task: Haiku 5.5 costs 40 times less than Opus 5.5 for prompts up to 100,000 tokens, 8 times less above, and thinking bills as output. ([markdown](https://instibrain.ai/guides/ai-hygiene/the-smallest-model-that-does-the-job.md)) - [AI hygiene 7: Read less](https://instibrain.ai/guides/ai-hygiene/read-less): Point your AI at what it needs: a 5,000-line log is about 60,000 tokens, 6% of the window, read again with every message, where a search's 20 lines are 240. ([markdown](https://instibrain.ai/guides/ai-hygiene/read-less.md)) - [AI hygiene 8: Check what it says](https://instibrain.ai/guides/ai-hygiene/check-what-it-says): Trust a fluent answer after a check: a sum done by a tool, a claim against the line it rests on, and a correction written where it lasts, not in the chat. ([markdown](https://instibrain.ai/guides/ai-hygiene/check-what-it-says.md)) - [instibrain basics](https://instibrain.ai/guides/instibrain-basics): Six short lessons on your brain: spaces and pages, specialists, tools, the instibrain button and its windows, the inbox and proposals, where a lesson goes. ([markdown](https://instibrain.ai/guides/instibrain-basics.md)) - [instibrain basics 1: Spaces and pages](https://instibrain.ai/guides/instibrain-basics/spaces-and-pages): A page holds one thing your company knows; a space is pages shared with one set of people. Your brain, your two own spaces, team spaces, and the three roles. ([markdown](https://instibrain.ai/guides/instibrain-basics/spaces-and-pages.md)) - [instibrain basics 2: Specialists](https://instibrain.ai/guides/instibrain-basics/specialists): A specialist is one job, done by the AI you use: it knows the method and which pages to read first. Its persona and method, what your company knows, the staff. ([markdown](https://instibrain.ai/guides/instibrain-basics/specialists.md)) - [instibrain basics 3: Tools](https://instibrain.ai/guides/instibrain-basics/tools): A tool is the way into an app outside instibrain, such as Notion: its page names the account, the two layers of a tool, where your credential stays, scripts. ([markdown](https://instibrain.ai/guides/instibrain-basics/tools.md)) - [instibrain basics 4: The button and windows](https://instibrain.ai/guides/instibrain-basics/the-button-and-windows): Start every session from the instibrain button, and Claude loads your spaces and specialists: the menu and its keys, Claude or Codex, and a specialist's window. ([markdown](https://instibrain.ai/guides/instibrain-basics/the-button-and-windows.md)) - [instibrain basics 5: Inbox and proposals](https://instibrain.ai/guides/instibrain-basics/inbox-and-proposals): A note goes to your inbox when there is no time to file it; a proposal asks for a change on a page you cannot edit. The two phrases, and who closes what. ([markdown](https://instibrain.ai/guides/instibrain-basics/inbox-and-proposals.md)) - [instibrain basics 6: Where a lesson goes](https://instibrain.ai/guides/instibrain-basics/where-a-lesson-goes): When you learn something that will help again, put it on a page: a chat ends, a page stays. Which page takes a lesson about work, an app, or not sure yet. ([markdown](https://instibrain.ai/guides/instibrain-basics/where-a-lesson-goes.md)) - [instibrain with Claude Code](https://instibrain.ai/guides/instibrain-with-claude-code): Your first week on the brain with Claude Code: the first session, a question, a page, the folder on your computer, history, two windows, an operation. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code.md)) - [instibrain with Claude Code 1: Your first session](https://instibrain.ai/guides/instibrain-with-claude-code/your-first-session): In your first session Claude asks who you are, writes it to your profile, names your spaces and sets the computer up; every later one starts from your pages. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/your-first-session.md)) - [instibrain with Claude Code 2: Ask your brain](https://instibrain.ai/guides/instibrain-with-claude-code/ask-your-brain): How Claude finds a page: a few words it holds, or a question in plain words, then the page read whole and named with its space and its label, how far its text may travel. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/ask-your-brain.md)) - [instibrain with Claude Code 3: Write a page together](https://instibrain.ai/guides/instibrain-with-claude-code/write-a-page-together): Before a new page Claude reads the folder map, puts the page where its kind lives, and adds its index line; where you only read, it leaves a proposal. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/write-a-page-together.md)) - [instibrain with Claude Code 4: The folder on your computer](https://instibrain.ai/guides/instibrain-with-claude-code/the-folder-on-your-computer): Every space is a folder of plain files on your computer; the watch keeps it in step with the brain, and a conflict comes as a copy beside your file. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/the-folder-on-your-computer.md)) - [instibrain with Claude Code 5: Every change kept](https://instibrain.ai/guides/instibrain-with-claude-code/every-change-kept): Every version of a page names its writer: you, a window of yours, an AI login or an agent. What an open space keeps and for how long, and how a page comes back. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/every-change-kept.md)) - [instibrain with Claude Code 6: Two windows, one room](https://instibrain.ai/guides/instibrain-with-claude-code/two-windows-one-room): A second Claude Code window hears its rooms with nobody typing: one window asks in Your AIs, the other answers from the brain, and the asker has it in 36 s. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/two-windows-one-room.md)) - [instibrain with Claude Code 7: An operation](https://instibrain.ai/guides/instibrain-with-claude-code/an-operation): An operation is a task with an end goal, days to weeks, in a folder with a brief: how it starts, how a window opens on it, how its files say where it stands. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/an-operation.md)) - [instibrain with Claude Code 8: Keep the brain clean](https://instibrain.ai/guides/instibrain-with-claude-code/keep-the-brain-clean): The curator keeps every page indexed, every link resolving, one place per fact and current state only; the structure check finds what is wrong, the sweep rot. ([markdown](https://instibrain.ai/guides/instibrain-with-claude-code/keep-the-brain-clean.md)) - [AI basics](https://instibrain.ai/guides/ai-basics): Eight short lessons on the words under Claude and instibrain: tokens, the three levers, vectors, embeddings, cosine, chunking, RAG, fine-tuning versus context. ([markdown](https://instibrain.ai/guides/ai-basics.md)) - [AI basics 1: Tokens and the context window](https://instibrain.ai/guides/ai-basics/tokens-and-the-context-window): A token is the unit a model reads and pays for, about three-quarters of a word; the context window is how many fit in one call: a million on today's Claude. ([markdown](https://instibrain.ai/guides/ai-basics/tokens-and-the-context-window.md)) - [AI basics 2: The three levers](https://instibrain.ai/guides/ai-basics/the-three-levers): A generic model becomes yours in three places: its weights, through training; what it looks up at question time; and what it is told at the start of a session. ([markdown](https://instibrain.ai/guides/ai-basics/the-three-levers.md)) - [AI basics 3: A vector is a list of numbers](https://instibrain.ai/guides/ai-basics/a-vector-is-a-list-of-numbers): A vector is a list of numbers in a fixed order, and two vectors are close when their numbers are close: three people as three numbers each, and their distance. ([markdown](https://instibrain.ai/guides/ai-basics/a-vector-is-a-list-of-numbers.md)) - [AI basics 4: An embedding is a vector made from text](https://instibrain.ai/guides/ai-basics/an-embedding-is-a-vector-made-from-text): An embedding model reads a text and writes a vector: two texts that mean the same get nearby vectors with no word in common. Why word counts fail, and the cost. ([markdown](https://instibrain.ai/guides/ai-basics/an-embedding-is-a-vector-made-from-text.md)) - [AI basics 5: Similarity is an angle: cosine](https://instibrain.ai/guides/ai-basics/similarity-is-an-angle): Two vectors are similar when they point the same way; cosine similarity measures that, 1 for the same direction and 0 for unrelated, with a toy that ranks live. ([markdown](https://instibrain.ai/guides/ai-basics/similarity-is-an-angle.md)) - [AI basics 6: Chunking and the index](https://instibrain.ai/guides/ai-basics/chunking-and-the-index): A document is cut into chunks of 200 to 800 tokens, each chunk gets one vector, and the table of them is the index: the counts, cost and size of a firm's files. ([markdown](https://instibrain.ai/guides/ai-basics/chunking-and-the-index.md)) - [AI basics 7: RAG: one question, end to end](https://instibrain.ai/guides/ai-basics/rag-one-question-end-to-end): RAG is four steps at question time: embed the question, find the nearest chunks, paste them into the prompt, answer with a citation. The prompt, cost and fixes. ([markdown](https://instibrain.ai/guides/ai-basics/rag-one-question-end-to-end.md)) - [AI basics 8: Fine-tuning versus context](https://instibrain.ai/guides/ai-basics/fine-tuning-versus-context): Training teaches a model how to answer; a page in its context teaches what is true today, with a source. Nine methods, deepest first, and where a fact belongs. ([markdown](https://instibrain.ai/guides/ai-basics/fine-tuning-versus-context.md)) - [How a model works](https://instibrain.ai/guides/how-a-model-works): Nine short lessons inside a language model: one pass to the next token, tokens, the embedding matrix, attention, layers, training, running, and kinds of model. ([markdown](https://instibrain.ai/guides/how-a-model-works.md)) - [How a model works 1: One pass, one token](https://instibrain.ai/guides/how-a-model-works/one-pass-one-token): A chat model writes one token per pass, from text to tokens, vectors, layers and a score for every token, and it keeps nothing between calls but the text. ([markdown](https://instibrain.ai/guides/how-a-model-works/one-pass-one-token.md)) - [How a model works 2: Tokens are learned pieces](https://instibrain.ai/guides/how-a-model-works/tokens-are-learned-pieces): A tokenizer learns its pieces by merging the pair it sees most often, again and again, worked by hand on seven words and then at Llama 3's 128,256 pieces. ([markdown](https://instibrain.ai/guides/how-a-model-works/tokens-are-learned-pieces.md)) - [How a model works 3: The embedding matrix](https://instibrain.ai/guides/how-a-model-works/the-embedding-matrix): Each token fetches its row from a table of 128,256 rows by 4,096 numbers, and words used alike end up close, though nobody names what the directions mean. ([markdown](https://instibrain.ai/guides/how-a-model-works/the-embedding-matrix.md)) - [How a model works 4: Attention](https://instibrain.ai/guides/how-a-model-works/attention): Each token takes a share of the tokens before it through a query, a key and a value, with three tokens worked by hand and every number of the softmax shown. ([markdown](https://instibrain.ai/guides/how-a-model-works/attention.md)) - [How a model works 5: Layers and weights](https://instibrain.ai/guides/how-a-model-works/layers-and-weights): A layer is attention then feed-forward, and Llama 3 8B stacks 32 of them: count its 8,030,261,248 weights matrix by matrix, and see where most of them sit. ([markdown](https://instibrain.ai/guides/how-a-model-works/layers-and-weights.md)) - [How a model works 6: Picking the next token](https://instibrain.ai/guides/how-a-model-works/picking-the-next-token): The LM head scores every token, softmax turns the scores into probabilities, and temperature decides how boldly one is picked, in a toy you move yourself. ([markdown](https://instibrain.ai/guides/how-a-model-works/picking-the-next-token.md)) - [How a model works 7: Training, in four stages](https://instibrain.ai/guides/how-a-model-works/training): Training nudges random numbers after every guess of the next token, and four stages, from pretraining to reasoning training, make the chat model you use. ([markdown](https://instibrain.ai/guides/how-a-model-works/training.md)) - [How a model works 8: Running a model](https://instibrain.ai/guides/how-a-model-works/running-a-model): Every token reads every weight once, so memory decides speed: an 8B model needs 16 GB at 16 bits and 4 GB at 4, and a long context fills the KV cache. ([markdown](https://instibrain.ai/guides/how-a-model-works/running-a-model.md)) - [How a model works 9: Kinds of models](https://instibrain.ai/guides/how-a-model-works/kinds-of-models): One design since 2017, finished three ways: a chat model that writes, an embedding model that finds, a reranker that orders, then reasoning and images. ([markdown](https://instibrain.ai/guides/how-a-model-works/kinds-of-models.md)) - [Around the model](https://instibrain.ai/guides/around-the-model): Nine short lessons on what people build around a model: the context window, priming, tools and agents, prompt injection, evals, and the kinds of memory. ([markdown](https://instibrain.ai/guides/around-the-model.md)) - [Around the model 1: The context window](https://instibrain.ai/guides/around-the-model/the-context-window): Context is everything a model reads in one call: instructions, tools, pages, the conversation, your question. Where each part sits, why the middle counts least, and what context engineering decides. ([markdown](https://instibrain.ai/guides/around-the-model/the-context-window.md)) - [Around the model 2: Priming and sycophancy](https://instibrain.ai/guides/around-the-model/priming-and-sycophancy): Six things decide what a line in the context window is worth. The first lines set the tone of every answer, and sycophancy bends a right answer to please you. ([markdown](https://instibrain.ai/guides/around-the-model/priming-and-sycophancy.md)) - [Around the model 3: Tools and the agent loop](https://instibrain.ai/guides/around-the-model/tools-and-the-agent-loop): A model only writes text. A program lists tools, runs the call the model writes, puts the result back and calls the model again: the agent loop. MCP brings the tools to every AI app. ([markdown](https://instibrain.ai/guides/around-the-model/tools-and-the-agent-loop.md)) - [Around the model 4: Subagents and orchestration](https://instibrain.ai/guides/around-the-model/subagents-and-orchestration): A subagent works in a context window of its own and returns only its answer. Orchestration picks the next step: code, a workflow, or the model, agentic. Guardrails sit around the loop. ([markdown](https://instibrain.ai/guides/around-the-model/subagents-and-orchestration.md)) - [Around the model 5: Prompt injection](https://instibrain.ai/guides/around-the-model/prompt-injection): A model reads your instructions and a poisoned page the same way, as tokens. Six ways an injection arrives, and the lethal trifecta: private data, outside text, and a way out. ([markdown](https://instibrain.ai/guides/around-the-model/prompt-injection.md)) - [Around the model 6: What works against injection](https://instibrain.ai/guides/around-the-model/what-works-against-injection): No filter catches every prompt injection. What holds is the system around the model: least privilege, a person's yes, no secret in the context, an allowlist, and taint tracking. ([markdown](https://instibrain.ai/guides/around-the-model/what-works-against-injection.md)) - [Around the model 7: Evals and the golden set](https://instibrain.ai/guides/around-the-model/evals-and-the-golden-set): A benchmark tests the model; only your own questions test your system. Build a golden set, score five kinds of answer, run it after every change, and judge each answer live. ([markdown](https://instibrain.ai/guides/around-the-model/evals-and-the-golden-set.md)) - [Around the model 8: The kinds of memory](https://instibrain.ai/guides/around-the-model/the-kinds-of-memory): Seven kinds of thing reach an AI: identity, instructions, procedures, knowledge, events, data and tools. Semantic, procedural and episodic memory, the environment, and the test for each. ([markdown](https://instibrain.ai/guides/around-the-model/the-kinds-of-memory.md)) - [Around the model 9: instibrain in these words](https://instibrain.ai/guides/around-the-model/the-stack-in-these-words): Where each word of the series sits in one brain: the right pages in the context window, every other system reached by retrieval, the AI deciding when to look, and memory kept as linked pages. ([markdown](https://instibrain.ai/guides/around-the-model/the-stack-in-these-words.md)) - [RAG](https://instibrain.ai/guides/rag): Retrieval beside your brain, in eight lessons: what to index, the ingestion job, cutting by structure, hybrid search, the reranker, the prompt, the measure. ([markdown](https://instibrain.ai/guides/rag.md)) - [RAG 1: What goes in the index](https://instibrain.ai/guides/rag/what-goes-in-the-index): A reviewed position is a page, read whole in the window; the thousands of raw files nobody reviewed, contracts, tickets, mail, notes, are what an index is for. ([markdown](https://instibrain.ai/guides/rag/what-goes-in-the-index.md)) - [RAG 2: Ingestion as a job](https://instibrain.ai/guides/rag/ingestion-as-a-job): Ingestion is a job that reads the files, cuts them, embeds each chunk and stores it with its source and who may read it; it runs again on change, cheaply. ([markdown](https://instibrain.ai/guides/rag/ingestion-as-a-job.md)) - [RAG 3: Chunking by structure](https://instibrain.ai/guides/rag/chunking-by-structure): Cut a document on its headings and paragraphs, never every N characters: carry the section's title, repeat one sentence as overlap, keep each chunk whole. ([markdown](https://instibrain.ai/guides/rag/chunking-by-structure.md)) - [RAG 4: Hybrid search](https://instibrain.ai/guides/rag/hybrid-search): Keyword search finds an exact code or name, vector search a meaning in other words; hybrid search runs both and merges the two, so a chunk high in both wins. ([markdown](https://instibrain.ai/guides/rag/hybrid-search.md)) - [RAG 5: The reranker](https://instibrain.ai/guides/rag/the-reranker): An embedding compares a question to 100,000 chunks in one pass but is coarse; a reranker reads the question with each of the top 50 and scores the pair. ([markdown](https://instibrain.ai/guides/rag/the-reranker.md)) - [RAG 6: The prompt and the citation rule](https://instibrain.ai/guides/rag/the-prompt-and-the-citation-rule): The prompt puts the passages first, numbered with their source, and the question last, under one rule: answer only from them, cite the number, or say so. ([markdown](https://instibrain.ai/guides/rag/the-prompt-and-the-citation-rule.md)) - [RAG 7: Measuring recall](https://instibrain.ai/guides/rag/measuring-recall): Twenty real questions, the chunk that answers each, and the share found in the top five: recall at 5. Under 80%, fix retrieval, not the prompt. ([markdown](https://instibrain.ai/guides/rag/measuring-recall.md)) - [RAG 8: Where instibrain sits](https://instibrain.ai/guides/rag/where-instibrain-sits): Pages are read whole, reviewed and cited by path; the index serves the files nobody reviewed, five chunks at a time; the loop turns a found answer into a page. ([markdown](https://instibrain.ai/guides/rag/where-instibrain-sits.md)) ## Legal - [Privacy](https://instibrain.ai/privacy): What this site and the account plane collect: no cookies here, no trackers, one session cookie for an account, and what we can read of each space. ([markdown](https://instibrain.ai/privacy.md)) - [Terms](https://instibrain.ai/terms): Permitted use, who owns your content, availability and what a restore returns to, termination, liability, and governing law for an instibrain account. ([markdown](https://instibrain.ai/terms.md)) ## Optional - [llms-full.txt](https://instibrain.ai/llms-full.txt): every page above as plain text, in one file - [sitemap.xml](https://instibrain.ai/sitemap.xml)