Skip to content

Records link in folder form, so Obsidian resolves them (0.4.2) - #9

Merged
moderniselife merged 1 commit into
mainfrom
feat/obsidian-links
Nov 23, 2026
Merged

moderniselife merged 1 commit into
mainfrom
feat/obsidian-links

Conversation

@moderniselife

Copy link
Copy Markdown
Owner

What

  • Record links are written as [[people/sam]] (the folder), not [[person/sam]]. Obsidian resolves the folder form as a path, so its links, backlinks and graph work on brain files as they are.
  • record_save writes links: as a block list of quoted wikilinks (- "[[people/sam]]"), the shape Obsidian reads as link properties.
  • Links also parse with Obsidian #heading and |alias suffixes ([[projects/launch#now|the launch]]).
  • Templates, record READMEs, skills, MCP tool descriptions and docs/CONTEXT-SYSTEM.md use the folder form.

Compatibility

  • The type form ([[person/sam]]) and old inline links: [a, b] frontmatter still read. Re-saving with the old form doesn't duplicate a link.
  • record_get returns refs in folder form (brain:people/sam).
  • Cross-brain links ([[brain:people/sam]]) still only resolve in Brainium.

Tests

npm test: 52/52 pass, including a new test that covers writing, round-tripping, aliases/headings, backlinks across both forms, and lint.

🤖 Generated with Claude Code

Brainium now writes record links as [[people/sam]] rather than
[[person/sam]]: the folder form is a real path, so Obsidian's links,
backlinks and graph work on the same files. record_save stores links:
as a block list of quoted wikilinks (the shape Obsidian reads as link
properties), and the templates, READMEs, skills and MCP descriptions
use the folder form.

Reading is unchanged for existing brains: the type form still parses,
and so do Obsidian #heading and |alias suffixes. Saving a link in the
old form doesn't duplicate one already stored in the new form, and old
inline [a, b] frontmatter lists still parse.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@moderniselife
moderniselife merged commit 8d18bcd into main Nov 23, 2026
5 checks passed
@moderniselife
moderniselife deleted the feat/obsidian-links branch November 23, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant