← AI for marketing

Lesson 2 of 4 · Second brains

How to give your AI assistant your marketing knowledge

What a second brain is, when you don’t need one, and how to set one up so your assistant uses your notes.

About 9 minutes · Checked 7–9 November 2026

A second brain is a set of notes your AI assistant can read, so it answers with your facts, like your pricing or what customers said on their calls. Without one, you get the same generic answer anyone else would get.

You may not need one. If you want Claude or ChatGPT to remember your role and how you like your drafts, the memory built into both already does that. You need a second brain when you keep pasting the same background into new chats, or when you need to know where each answer came from.

People usually go wrong by dumping every file into one folder and trusting whatever comes back, by typing rules into a chat that are gone the next day, or by never testing whether the assistant finds the right note.

Before you read on: your customer-call notes are in a folder your assistant can search, and you ask it about migration. Give one reason it might still miss the right call.

Show the answer

Search finds text that sounds like your question. If the customer said “moving our data over” and you asked about “migration,” a generic passage can rank above the right one. Or the folder was never connected to this chat at all.

How it works

How a second brain works

A model doesn't learn from talking to you. Think of it as someone who can only read what's on their desk right now. The desk is the context window: the app's instructions, your messages, the files you attach and whatever its tools look up. A new chat starts with a clear desk, and Claude Code's documentation says the same about every new session.

A second brain decides which notes go on the desk, and when. There are three common ways to do it.

SetupWhat goes on the deskGood for
Built-in memoryShort notes about you and recent decisionsHow you like to work, what you decided last week
SearchThe few passages that sound most like your questionBig piles of documents you rarely read yourself
Maintained wikiSummary pages the assistant keeps up to date, plus the original file when it needs exact wordingKnowledge you look up again and again, with sources

Built-in memory

Claude keeps memory as short entries that it reads and updates as you talk. You can see and edit them under Settings > Your Claude, by choosing Manage next to Your memory. Projects keep their own memory, and on paid plans Claude can also search your past chats. In ChatGPT, memory lives under Settings > Personalization > Memory.

Search

Search (also called retrieval, or RAG) is what most “chat with your documents” tools do. Your documents are cut into short passages, and each passage gets a spot on a map where passages with similar meanings sit close together. Your question gets a spot too, and the tool puts the nearest passages on the desk. It works on huge collections, but the assistant only ever sees fragments, and it has to piece them together again for every question.

A maintained wiki

Andrej Karpathy published this pattern in April 2026 and called it an LLM wiki. When you add a source, the assistant reads it once and updates a set of pages, one per topic, competitor or type of customer, plus an index. When you ask a question, it reads the index, opens the right pages, and goes back to the original file only for exact wording. Karpathy says it “works surprisingly well at moderate scale (~100 sources, ~hundreds of pages),” and suggests adding search beyond that.

What lands on the deskTry it

Question: “What do engineering leads worry about most when switching databases?”

Context window

An illustration with made-up notes: the same question, asked of the same notes.

A wiki stays trustworthy if you keep three things apart. raw/ holds your sources exactly as you saved them; the assistant reads them and never edits them. wiki/ holds the pages the assistant writes. A rules file (CLAUDE.md in Claude Code, AGENTS.md in Codex) says how pages are named, cited and updated. Because sources and summaries stay separate, every claim on a page links back to the file it came from, and you can tell whether a fact changed in the world or only in a summary.

Three commands keep it running. Ingest reads a new source and updates every page it touches (Karpathy notes that “a single source might touch 10-15 wiki pages”). Query answers from the pages, with sources. Lint looks for contradictions, stale claims and pages nothing links to.

Worked examples

Three examples

Worked example 1 · A pricing conflict (illustrative)

The $49 answer

You ask your assistant for the launch price. It says $49, from an old planning note. A newer, approved price sheet in the same folder says $59.

  1. Open both sources. Read the passage the answer came from, and the one it skipped.

  2. Check scope before date. Make sure the approved sheet covers the same plan, region and launch date as the question.

    Newer isn't always right. If the sheet is for a different region, $49 might still be correct here.

  3. If scope or approval is unclear, ask whoever owns pricing. Anything that goes into the wiki gets read as fact later, so leave guesses out.

  4. Mark the old note as superseded in the index. Keep the file in raw/. A price's history is often useful.

  5. Add a conflict rule to the rules file. When sources disagree, keep both, note their dates and scope, and flag it.

The repaired answer: “The approved sheet lists $59 for this plan and region. An earlier planning note says $49 and is marked superseded.”

Worked example 2 · Customer calls (illustrative)

Turning calls into a persona page

You market a database product. You drop a discovery-call transcript into raw/calls/ and say “ingest this.” The assistant:

  1. Adds two quotes to the page for engineering leads, each linked to the transcript.

  2. Adds a new objection (“we switched databases in 2024 and the cutover took a whole weekend”) to the migration page, marked as heard once.

  3. Flags that the prospect mentioned a competitor feature your competitor page doesn't list, and asks whether to check the competitor's site.

    A wiki catches this the day the call comes in. With search alone, nobody notices until someone happens to ask.

  4. Updates the index and adds a line to the log.

Three months in, “what do engineering leads worry about most?” has an answer with counts and sources. Switch the figure above between Search and Maintained wiki to see why search alone can't give you that.

Worked example 3 · This guide's own sources

A lint pass that needed checking

The project behind this guide kept its 29 checked sources in one file and its lessons as whole documents. Set up as a wiki, it looks like this:

guide-notes/
├── CLAUDE.md              page types, citation format, conflict rules
├── raw/sources/           one file per source, with url, type and date checked
├── raw/bookmarks/         saved posts, dated
└── wiki/
    ├── index.md           every page, one line each
    ├── log.md             one line per ingest and lint pass
    ├── topics/ai-video.md
    └── tools/claude-motion.md

On 7 November 2026, a short script compared the source list with every lesson and found three things. Three of the 29 sources weren't cited anywhere. All 29 had been checked on the same day, so they'll go out of date together. And nobody had recorded how big the bookmark archive was.

The first draft of that list had a fourth finding: five links supposedly pointing at old addresses. The fact check opened both the old and the new addresses, found both working, and deleted the finding. Check lint results the way you'd check any AI output, by opening what they point at.

Your turn

Your assistant keeps quoting last year's price

Your assistant runs in Claude Code over a folder of sales material. For the third time this month, it gives a rep last year's price. What do you change?

Add this year's price sheet again, with “2026” in the filename.

What happens

Now there are three price files. Next week it quotes the right price on Monday and the old one on Thursday.

Without a rule for conflicts, another file is one more thing to find.

Tell it in the chat: “always use the newest price.”

What happens

It works for the rest of the afternoon. Tomorrow, or once a long session gets compressed, the instruction is gone and so is the right price.

Claude Code reloads CLAUDE.md after a long session is compressed. Instructions typed only into the chat can be lost.

Check both price sources, mark the old one superseded, and add a conflict rule to CLAUDE.md.

What happens

The next answer cites the approved sheet and says an older price was superseded, which is what a rep needs if the prospect still has the old deck.

You changed what reaches the desk and gave the assistant a rule for choosing.

Switch to a bigger model.

What happens

The same wrong price, in nicer sentences.

A bigger model reads the same desk. If both prices are on it and nothing says which one wins, size doesn't decide.

Takeaway

What you can do now

You can decide whether you need a second brain, pick the lightest setup that works, keep sources apart from summaries, and fix a wrong answer by changing what reaches the context window. Next, how the same idea works across the whole web, and how to get your pages into AI answers.

How to

How to set up a second brain

If you only need your assistant to remember your role and preferences, built-in memory is enough. Otherwise, start with a project and move to a wiki when you outgrow it.

Start with a project

  1. In Claude or ChatGPT, create a project for one subject, such as your product and its competitors.
  2. Upload the files you keep pasting into chats: your positioning, your pricing sheet, a few call notes. Every chat in the project can use them.
  3. Add project instructions, such as “Answer from the project files and name the file you used. If the answer isn't in the files, say so.”
  4. Run the recall test below.

On paid Claude plans, a project whose files outgrow the context window switches to search on its own. When you want the assistant to keep summaries up to date as new material arrives, move to a wiki.

Start a wiki in Claude Code or Cowork

  1. Create an empty folder for one subject, such as your market and competitors.
  2. Open it in Claude Code or Cowork and paste the prompt below.
  3. Put five to ten sources into raw/, each filename starting with the date.
  4. Say “ingest everything in raw/”, then read index.md and two of the pages it wrote.
  5. Start a new session and run the recall test below.
  6. If you like reading in Obsidian, open the folder there; the files are plain Markdown.
Set up this folder as an LLM wiki about [subject]. Write these rules into CLAUDE.md (keep it under 80 lines):

Layers
- raw/: sources exactly as saved. Filenames start with YYYY-MM-DD. Never edit these.
- wiki/: pages you write and maintain. One page per [competitor / persona / product / idea].
- wiki/index.md: every page with a one-line description. Read it first on every question.
- wiki/log.md: append one line per event: ## [date] ingest|query|lint | title

Rules
- Every claim on a wiki page links to the raw/ file it came from.
- When sources conflict, keep both, note the dates and scope, and flag it in log.md.
- If a question can't be answered from the wiki or raw/, say so.

Operations
- "ingest": read new raw/ files, update every affected page, update index.md, append to log.md.
- "lint": look for contradictions, stale claims (older than 90 days), orphan pages and missing links.

Then ingest everything already in raw/ and show me index.md.

Test recall

In a new session, ask five questions you already know the answers to, and ask for the file name and the supporting passage with each answer:

  1. One answered by a single note.
  2. One that needs two notes combined.
  3. One where two notes disagree.
  4. One whose answer isn't in the notes.
  5. One whose source changed recently.

Done when every answer cites the right passage, the conflict is flagged, and the missing answer is admitted. If an answer is made up, fix how notes are found or written before you add more.

If you use Claude Code

Put your rules in CLAUDE.md, which loads at the start of every session and again after a long session is compressed. The documentation says to “target under 200 lines per CLAUDE.md file,” because “longer files consume more context and reduce adherence.” Claude Code also keeps auto memory, notes it writes for itself in a folder per project, and loads the first 200 lines or 25KB at the start of each session.

Sources and fact check

Checked 7 November 2026 against Anthropic's help centre and Claude Code documentation, Karpathy's gist and the project files; ChatGPT's memory settings and projects in Claude and ChatGPT checked 9 November 2026. The 7 November check removed one wrong finding from worked example 3 and made three details more precise.

  1. Andrej Karpathy: LLM Wiki (April 2026).primary
  2. Anthropic: Chat search and memory and release notes (memory change, 10 July 2026).vendor
  3. OpenAI: Memory in ChatGPT and Projects in ChatGPT.vendor
  4. Anthropic: What are projects? and RAG for projects.vendor
  5. Claude Code: How Claude remembers your project and Explore the context window.vendor
  6. Anthropic: Effective context engineering for AI agents.vendor
  7. Obsidian: How Obsidian stores data.vendor

Next lesson

Lesson 3 · SEO and AI answers

How to show up in search and AI answers

Start the next lesson

Lesson 1 · AI video

How to quickly get started with AI video for marketing

Read the lesson

Lesson 4 · Agents and harnesses

How to set up AI agents for recurring marketing work

Read the lesson