Knowledge Vault

The Knowledge Vault is the long-term memory of the agents. It holds the root causes of fixed bugs and the decisions behind shipped features, across sessions and teammates. It is the git repository Friendly-Technologies/ft-obsidian-knowledgebase. Git is the source of truth. Obsidian is the viewer. When one agent pushes a note, the agent of every teammate reads it on the next related task.

  1. AgentRead prior notes

    Search by JIRA key, repository slug, module or error text

  2. AgentDo the work

    The fix, the feature or the refactor

  3. AgentWrite one note

    One note per bug or feature

  4. AgentCommit and push

    Writing is done only after the push succeeds

    PUSHED
  5. TeammateReads it next time

    The agent of every teammate finds the note

Vault or Knowledge Base?

The vault is the writable layer, unlike the Knowledge Base.

Both layers give the agents prior knowledge. They differ in content, access and author.

TopicKnowledge Base (Qdrant)Knowledge Vault (Obsidian)
What it holdsProduct documentation, indexed code, protocol specifications, historical bugs.Our own root causes and design decisions, per repository.
AccessRead-only search with semantic_search.Read and write. The agents author the notes.
Written byOffline indexers.The agents, at the end of a task.
Reached throughMCP server qdrant-vector-db. MCP is the Model Context Protocol, a link between an agent and an external tool.MCP server obsidian, plus $FT_VAULT_PATH for git.

When the agents use the vault

The pipelines /ft-fix, ft-developer and bugfix-agent read the vault at the start of a task and write it at the end.

  1. 1

    Read at start

    The agent searches the vault. Every hit is prior knowledge.

    Agent
  2. 2

    Do the work

    The fix, the feature or the refactor.

    Agent
  3. 3

    Write at end

    One note per bug or feature, after a terminal outcome.

    Agent
  4. 4

    Commit and push

    The agent owns the commit. The note is visible to the team after the push.

    Agent

Every rule of the four steps

  1. Read at start. The agent searches the vault with the JIRA key, the repository slug, the module or the error text. It uses search_simple on the obsidian server (obsidian_simple_search on mcp-obsidian). Then it opens AI/<repo-slug> — Hub. Every hit is prior knowledge: a teammate's agent may have solved the problem already. The agent does not rediscover it.
  2. Do the work. The fix, the feature or the refactor.
  3. Write at end. After a terminal outcome, the agent writes one note per bug or feature. A bugfix root cause goes to AI/Bugfixes/. A design decision or feature goes to AI/Decisions/. If the note exists, the agent updates it in place. It never duplicates a note and never deletes one: it sets status: superseded and superseded-by.
  4. Commit and push. The agent owns the commit. It runs git -C "$FT_VAULT_PATH" pull --rebase, then add for the touched files only (never git add -A in a shared vault), then commit, then push. A note that is not pushed is invisible to the team, so writing is not done until the push succeeds. On a rebase conflict the agent stops and reports. It never force-pushes and never uses --no-verify.
Never write secrets to the vault

Never write secrets, tokens, credentials, or customer or personal data to the vault. Notes describe code and root causes, not customer environments. A note never contains a machine-specific vault path.

How the agents reach the vault

Neither route hardcodes a vault path.

RouteUsed for
obsidian MCP server (primary)Search, read and write notes in the vault that Obsidian has open. It calls the Local REST API. The mcp-obsidian bridge works instead of it.
$FT_VAULT_PATH (environment variable)Git commits, and a direct-write fallback when Obsidian is closed. You set it once per machine.

The order the agents choose

  1. 1

    The MCP server is reachable

    The agent uses it.

  2. 2

    Obsidian is closed and $FT_VAULT_PATH is set

    The agent writes the note into the clone and commits it. The agent reports "vault written directly, Obsidian was closed".

  3. 3

    Neither works

    The task is not blocked. The agent reports "no knowledge persistence this run" and gives you the note body to paste in.

If $FT_VAULT_PATH is not set, the agent still writes the note through the MCP server. The agent then reports that the note is not committed. Run deploy/scripts/install.sh --doctor to set the path.

Developer: set up the vault

Do these steps once per machine.

Run the installer from your clone of the toolkit repository (see Deployment & Usage, Install).

What the installer does

The installer verifies steps 4, 5 and 7. On a terminal, it offers to do steps 1, 5 and 7. You do steps 2, 3, 4 and 6 by hand. Step 8 checks the result. The names in the steps are explained under Names used on this page.

  1. 1

    Clone the vault repository

    You need access to the repository on GitHub.

    bash
    git clone https://github.com/Friendly-Technologies/ft-obsidian-knowledgebase.git <path>
  2. 2

    Open the clone in Obsidian

    In Obsidian, choose "Open folder as vault" and select the clone from step 1. The agents write notes to the vault that Obsidian has open. If that vault is another folder, git never sees the notes.

  3. 3

    Install the Local REST API plugin

    Install the Local REST API plugin in Obsidian and copy its API key. The plugin serves HTTPS on port 27124. Port 27123 is plain HTTP and is off by default.

  4. 4

    Register one MCP server in Claude Code

    Choose option A or option B, not both. Replace <key> with the key from step 3. The key is yours, so the installer cannot register either option. It checks that obsidian or mcp-obsidian is listed.

    Option A: built-in server

    bash
    claude mcp add --transport http --scope user obsidian https://127.0.0.1:27124/mcp/ --header "Authorization: Bearer <key>"

    Choose this option first. It is the built-in server of the plugin (primary).

    Option B: the bridge

    bash
    claude mcp add --scope user --transport stdio mcp-obsidian --env OBSIDIAN_API_KEY=<key> --env OBSIDIAN_HOST=127.0.0.1 --env OBSIDIAN_PORT=27124 -- uvx mcp-obsidian

    Choose this option when you use the mcp-obsidian bridge instead of the built-in server.

  5. 5

    Set FT_VAULT_PATH to the clone from step 1

    The installer reads env.FT_VAULT_PATH from ~/.claude/settings.json, and then the environment variable.

    What the installer asks, checks and saves

    If neither is set, it asks on a terminal: "set the vault path now?". It also offers to clone the repository when the folder does not exist. It saves the path as env.FT_VAULT_PATH in ~/.claude/settings.json. It never asks in a run without a terminal. In that case, run install.sh --doctor later on a terminal, or add the key to settings.json by hand. The entry is "env": { "FT_VAULT_PATH": "<path>" }. The Windows installer asks and offers the same things.

    The installer accepts the folder when it exists, holds AI/_Index.md and has a .git folder. Otherwise it reports "no such directory", "not a knowledge base" or "not a git clone", and asks "save it anyway?".

  6. 6

    Install the Git plugin in Obsidian

    In Community plugins, choose Browse and search for Git by Vinzent. The old name "Obsidian Git" finds nothing. Turn auto-pull (every 5 minutes) and pull on startup on. Turn auto commit-and-sync off. The agent owns the commits.

  7. 7

    Log in to GitHub

    Log in, so that the agent can push without a password prompt. An SSH remote with a key that GitHub accepts also works.

    bash
    gh auth login --hostname github.com --git-protocol https --web

    What the installer checks for git access

    The installer tests whether git reaches origin without a prompt. Any method that works passes: a credential manager, the keychain, gh or a token in the URL. For an SSH remote, it runs ssh -T git@github.com. If gh is installed and not logged in, it offers the login command above on a terminal.

  8. 8

    Verify

    Three lines must show ok: mcp obsidian, vault FT_VAULT_PATH and vault git auth. The installer pads the first word with spaces. On macOS and Linux a good line starts with a check mark. On Windows it starts with [ok]. A failed line contains MISSING.

    macOS, Linux

    macOS, Linux
    deploy/scripts/install.sh --doctor

    Run it from the toolkit clone.

    Windows

    Windows
    deploy/scripts/install.ps1 -Doctor

    Run it from PowerShell in the toolkit clone.

Unverified

The menu path in Obsidian for installing a community plugin, and the plugin names as the Obsidian plugin browser shows them, are unverified. The same holds for the label "Open folder as vault" and the 5 minute pull interval. The installer prints the plugin path, the name and the interval. The Obsidian application was not checked. The installer messages and commands above come from deploy/scripts/install.sh and install.ps1.

What is in the vault

Every note branches off the hub of its repository.

A hub branches off the root AI/_Index. Each hub also links to the curated Wiki/ of that repository. The hub and the Wiki index link to each other.

PathWhat it holds
AI/_Index.mdThe authoritative contract: the rules of the vault. The obsidian-knowledge-vault skill mirrors it. If the two differ, AI/_Index wins. Every hub links up to it.
AI/<repo-slug> — Hub.mdThe repository hub (a map of content). Every note of the repository branches from it. It links up to AI/_Index and sideways to the Wiki/ of the repository.
AI/Bugfixes/Root causes of fixed bugs. One note is one bug, not one note per incremental change. The name is <repo-slug> - <JIRA-key or slug>.
AI/Decisions/Accepted architecture and feature decisions. One note is one decision or feature. A feature note has type: feature. The name is <repo-slug> - <slug>.
AI/_Checkpoints/Temporary work notes for MAJOR or CRITICAL work in progress. A dropped session resumes from them. The agent folds them into the permanent note and deletes them when the work is complete.
Wiki/<repo-slug>/Curated documentation per repository: architecture, gotchas, conventions. Anyone may read it. The agents change it only when you ask.
Only links create graph edges

Only [[wikilinks]] in the body and link fields in the frontmatter create graph edges. Tags and Dataview results do not. A note without the hub line in its body is an orphan. An orphan is unfinished work. The note format shows the hub line.

The note format

The obsidian-knowledge-vault skill enforces one shape for every AI/ note.

Deviations are not allowed.

  • English only

    In the frontmatter and in the prose.
  • YAML frontmatter

    The fields are repo (the canonical hyphenated slug), type, jira, status, date, up: "[[<repo-slug> — Hub]]" and tags.
  • Clear sections

    The sections are ## sections, never a flat list of bold bullets.
  • A hub link and no orphans

    The note has up: in the frontmatter. The body has the line **Hub:** [[<repo-slug> — Hub]]. Type the asterisks as shown: Markdown prints the word Hub in bold. The body link creates the graph edge. The hub lists the note.
  • The hyphenated slug

    The canonical hyphenated repository slug in file names, tags and the hub. Never the underscore form.
  • A hygiene check after every edit

    No stray files, no broken links, no orphans, no placeholder links.

The sections of each note type

Bugfix note

Four sections

Frontmatter type: bugfix. Sections: Symptom, Root cause (with a file:line path), Fix and Notes.

Decision note

Four sections

Context, Decision, Alternatives and Consequences.

Templates

The vault folder templates/ holds bugfix.md, decision.md, hub.md and checkpoint.md. The graph excludes this folder, so the placeholder links never become nodes.

Names used on this page

Six different things carry the name "obsidian".

This page uses these names only.

NameMeaning
ObsidianThe desktop application that shows the vault.
Local REST API pluginAn Obsidian community plugin. It serves the open vault on https://127.0.0.1:27124 and ships an MCP server.
obsidian MCP serverThe server that you register in Claude Code. It is the built-in server of the Local REST API plugin. It is the primary route.
mcp-obsidianAn alternative MCP server. It runs through uvx, a Python tool runner, and calls the same plugin.
Git pluginAn Obsidian community plugin (obsidian-git, by Vinzent). It pulls changes into the vault.
obsidian marketplace pluginA Claude Code plugin named obsidian in the /plugin browser. The installer lists it as a manual row and has no plugin ID for it. It is not the route to the vault. The vault needs the obsidian MCP server and $FT_VAULT_PATH. The installer never turns this row green.

Questions

Is the vault the Knowledge Base?

No. The Knowledge Base is read-only search in Qdrant. The vault is read and write, and the agents author its notes.

Where does Obsidian fit, if git is the source of truth?

Obsidian is the viewer. The agents write notes to the vault that Obsidian has open. If that vault is another folder than your clone, git never sees the notes.

Does the obsidian plugin of the /plugin browser give vault access?

No. It is not the route to the vault. The vault needs the obsidian MCP server and $FT_VAULT_PATH.

Must Obsidian be open for an agent to write?

No. If Obsidian is closed and $FT_VAULT_PATH is set, the agent writes the note into the clone and commits it.

What if the push fails?

Writing is not done until the push succeeds. On a rebase conflict the agent stops and reports. It never force-pushes and never uses --no-verify.

Why is my note missing in the graph?

Only [[wikilinks]] in the body and link fields in the frontmatter create graph edges. A note without the hub line in its body is an orphan.

Next

Read the layer that the vault complements, or install the toolkit.

Knowledge BaseThe read-only Qdrant layer, in Knowledge Base.
Claude ToolkitWho runs whom, in Claude Toolkit.
DeploymentThe installer, in Deployment & Usage.
Open Deployment & Usage