Guides
Claude basics
/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.
2 sections
- Seven lessons, a few minutes each.
- Keep this beside your keyboard.
Claude basics 1: What Claude Code is
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 2: Context
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 3: Effort and models
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 4: Where you start Claude, and what it loads
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 5: .md files and CLAUDE.md
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 6: Permissions
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Claude basics 7: Connectors
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene
/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.
2 sections
- Eight habits, from what one message costs to checking the answer.
- The eight habits, and the number under each.
AI hygiene 1: What one message costs
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 2: One subject, one window
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 3: The stable part first
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 4: A fact on a page, not in the chat
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 5: Give it the source
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 6: The smallest model that does the job
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 7: Read less
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI hygiene 8: Check what it says
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics
/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.
2 sections
- Six lessons, from a page to where a lesson goes.
- Six things to type, for the first week.
instibrain basics 1: Spaces and pages
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics 2: Specialists
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics 3: Tools
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics 4: The button and windows
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics 5: Inbox and proposals
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain basics 6: Where a lesson goes
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code
/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.
2 sections
- Eight lessons, from the first session to a clean brain.
- Eight things to type, for the first week.
instibrain with Claude Code 1: Your first session
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 2: Ask your brain
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 3: Write a page together
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 4: The folder on your computer
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 5: Every change kept
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 6: Two windows, one room
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 7: An operation
/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.
4 sections
- new words
- the lesson
- try it
- you should see
instibrain with Claude Code 8: Keep the brain clean
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics
/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.
2 sections
- Eight lessons, from a token to why pages beat training.
- The numbers to hold.
AI basics 1: Tokens and the context window
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 2: The three levers
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 3: A vector is a list of numbers
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 4: An embedding is a vector made from text
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 5: Similarity is an angle: cosine
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 6: Chunking and the index
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 7: RAG: one question, end to end
/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.
4 sections
- new words
- the lesson
- try it
- you should see
AI basics 8: Fine-tuning versus context
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works
/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.
2 sections
- Nine lessons, from your text to the next token.
- The map: every word, in its place.
How a model works 1: One pass, one token
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 2: Tokens are learned pieces
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 3: The embedding matrix
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 4: Attention
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 5: Layers and weights
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 6: Picking the next token
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 7: Training, in four stages
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 8: Running a model
/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.
4 sections
- new words
- the lesson
- try it
- you should see
How a model works 9: Kinds of models
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model
/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.
2 sections
- Nine lessons, from the context window to the memory.
- The map: every word, in its place.
Around the model 1: The context window
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 2: Priming and sycophancy
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 3: Tools and the agent loop
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 4: Subagents and orchestration
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 5: Prompt injection
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 6: What works against injection
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 7: Evals and the golden set
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 8: The kinds of memory
/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.
4 sections
- new words
- the lesson
- try it
- you should see
Around the model 9: instibrain in these words
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG
/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.
2 sections
- Eight lessons, from the files to the loop back to a page.
- The numbers to hold.
RAG 1: What goes in the index
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 2: Ingestion as a job
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 3: Chunking by structure
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 4: Hybrid search
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 5: The reranker
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 6: The prompt and the citation rule
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 7: Measuring recall
/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.
4 sections
- new words
- the lesson
- try it
- you should see
RAG 8: Where instibrain sits
/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.
4 sections
- new words
- the lesson
- try it
- you should see