Koda Docs
Home KodaMemory Download
Docs / AI Second Brain

AI Second Brain

Koda's personal context layer. Where KodaMemory remembers your project, the Second Brain remembers you — who you are, what you're building, your goals, how you like to work, and how you actually write. It's seeded by a short guided interview, keeps learning ambiently as you work, and briefs every agent — in every workspace — with the facts relevant to each task. The result: outputs tailored to you instead of generic.

Included in your trial and ProThe Second Brain is active throughout the 7-day free trial and stays on with Pro. Everything it stores lives locally in ~/.koda/brain — nothing is uploaded or synced.

Overview

Every agent session starts knowing nothing about you. You end up re-explaining the same things — what you're building, who it's for, that you want answers short and direct — over and over, in every pane, in every project. The Second Brain fixes that: it's a per-user knowledge graph of identity facts, and Koda injects the relevant slice of it into your agents' context automatically.

Second Brain vs. KodaMemoryTwo graphs, two jobs. KodaMemory is per-workspace project knowledge — decisions, gotchas, where things live — shared by all agents in that repo. The Second Brain is per-user personal context — shared across all your workspaces, and about you rather than the code. Same engine underneath, deliberately separate stores.

Setting it up — the interview

Open the "👤 You" tab in the side panel and choose Set up my Second Brain. Koda launches a guided interview in an agent pane: a short, conversational intake that covers who you are, what you've built and are building, what you're aiming at, how you like to work, and how you want AI to respond to you — length, tone, format. Answer honestly and in your own words; as you answer, each response is distilled into typed facts and saved to your brain.

What it stores

The brain uses six identity-focused node types — the surface that actually changes an agent's output:

TypeWhat it captures
personWho you are — role, background, context.
projectWhat you've built and are building.
goalWhat you're aiming at, near-term and long-term.
preferenceHow you like work done and answers delivered — including your writing style.
skillWhat you're strong at and what you're still learning.
beliefStances and principles you hold.
Identity only — never project knowledgeThe Second Brain deliberately refuses project/code knowledge; that belongs in KodaMemory. Keeping the two apart is what lets the brain follow you across every workspace without leaking one project's details into another's context.

How it learns as you work

After the interview seeds it, the brain keeps itself current with ambient learning — no manual upkeep. When an agent session ends, Koda runs a lightweight background pass over what was said and proposes candidate facts about you: a new goal you mentioned, a preference that shifted, a project that changed shape.

The confidence gate

Not everything an AI thinks it noticed about you should be remembered. Candidates are split by how they were learned:

The digest appears in the "👤 You" panel as "✨ New knowledge to review", each candidate with a one-click Keep or Dismiss. It's passive — it never interrupts your work — and dismissed candidates aren't re-proposed. Facts learned ambiently carry a small ✨ auto tag in the viewer so you can always tell what you told Koda versus what it picked up.

Style synthesis

Separately, Koda periodically studies how you actually write — sampling your real prompts and distilling verbosity, tone, formatting and vocabulary into a single, always-current style profile. Agents use it to answer in your voice rather than a default one. It updates in place (the old profile is superseded, not duplicated) and is visible and forgettable like any other fact.

Kept deliberately cheap

Reading Queue — feed it links

The other way knowledge gets in is the 📚 Reading Queue in the "👤 You" panel. Paste a link you never had time to read — an X post or thread, or any article — and Koda fetches it in the background and runs a headless distiller over the content. You get three things back, per item, without reading a word yourself:

Kept in a separate scopeReading-Queue learnings live in their own graph scope (~/.koda/brain/reading), not the identity graph. That's deliberate: it keeps article takeaways from crowding out who-you-are facts when Koda ranks the brain for a prompt. Removing an item from the queue leaves any learnings you kept in place; forget-everything clears the queue and its learnings along with the rest.

How agents use it

On every prompt you send in an agent pane, Koda ranks your brain against what you're asking and injects only the facts that are relevant to that task — a handful, not the whole file. Ask something unrelated to who you are, and nothing is injected at all; your context stays clean and your usage isn't spent on facts the task doesn't need.

injected into an agent's context
What Koda knows about you (personal context from your AI Second Brain):
  - solo founder, building Koda (an ADE) [person]
  - ship v1 to first paying users this quarter [goal]
  - direct, concise answers — no corporate fluff [preference]
  - writes casual, short sentences, hates buzzwords [preference · style]

One exception is deliberate: ask an agent a question about yourself — "what do you know about me?", "sum me up" — and Koda injects the whole brain, so the answer is complete rather than a top-slice. Agents are also explicitly instructed to treat these facts as the only facts about you and never to invent details beyond them.

Injection is push — Koda decides what's relevant up front. Agents can also pull: the koda_brain_query tool lets an agent search your brain mid-task, the moment it realises knowing who you are (or what you've read) would change its output. It's read-only, Pro-gated, and searches both your identity facts and your Reading Queue learnings — so an agent can draft in your voice or ideate from something you saved without you re-explaining it.

Managing your brain

The "👤 You" panel is the single place to see and control everything the brain holds:

View

Every fact, grouped by type, with ambient facts tagged ✨ auto. Nothing the brain knows is hidden from you.

Remember

Manually add or correct a fact — the correction tool for anything the interview or ambient learning got wrong.

Review

The "✨ New knowledge to review" digest — Keep or Dismiss each candidate in one click.

Forget

One click on any fact removes it from the graph — a hard drop, not a soft hide. It stops being injected immediately.

Privacy & tiers

This is the most personal data Koda touches, and the stance matches:

Access gating fails closed, like the rest of Koda:

CapabilityUnverified accessTrial & Pro
Onboarding interview & "You" panel
Personal-context injection into panes
Ambient learning & review digest
Style synthesis

If your subscription lapses, injection and learning pause immediately — but the brain itself stays on your disk, intact, and reactivates when you're back on Pro.

Troubleshooting

Agents aren't using my facts

Injection is relevance-ranked — facts appear only when they bear on the task (or when you ask about yourself directly). Confirm you're signed in with an active trial or Pro; the gate fails closed.

It learned something wrong

Open the "👤 You" panel and forget the fact, or overwrite it with Remember. If it came from ambient learning, it will carry the ✨ auto tag; dismissed and forgotten facts aren't re-proposed.

Nothing new is being learned

Check the "Learn about me as I work" toggle is on. Very short sessions are skipped by design, and background passes are rate-capped — give it a few real sessions.

I want project knowledge remembered too

That's KodaMemory — the per-workspace graph. The Second Brain intentionally stores identity only.