A Markdown Notefor AI Native
The format AI reads best and understands best — plain Markdown. Voice memos, messenger pings, meeting notes, stray ideas — all pile into one file tree and become your personal knowledge base.
The language AI understands best,
Markdown
Claude, GPT, Gemini — the structured format every frontier LLM saw most during training is Markdown. Headings, lists, code blocks, links: structure carries directly as meaning. Cosmica stores every input as a .md file so your thoughts accumulate in a format that models read natively.
## Voice memo summary — 2026-04-14 09:32
**Transcript**
> Applying dependency inversion from
> clean architecture to Cosmica…
**Summary**
- Domain layer knows nothing about the outside
- Communicate only through adapters
- File I/O abstracted behind port interfaces
**Tags**
#AI #Cosmica
**Related notes**
[[Cosmica-design]] [[AI-ideas]]Notes and AI, fused from day one
Obsidian's data sovereignty, Notion's smooth editor, Claude's reasoning — all of it, none of it forced.
Voice → note
Record and Whisper STT, AI summary, and tag extraction are written to Markdown automatically.
Markdown editor
Milkdown WYSIWYG + CodeMirror source mode. Files are the source of truth.
Local AI on your machine
Auto-detects your installed Claude Code · Codex CLI, or talks to the Anthropic API directly. Keep the AI setup you already use — no extra subscription.
Knowledge graph
Backlink and tag graphs in one view. D3 force-directed, up to 500 nodes.
Full-text search (⌘K)
SQLite FTS5 with tag · folder · source filters and a ⇧⌘K command palette.
Messenger bot inbox
Slack · Telegram · Discord send into notes — and notes can be sent back to channels.
NotebookLM integration
MCP-based uploads. Raw or AI-condensed mode, tag-bundled batch export.
Multi-device sync
Keep devices in sync through Google Drive or a GitHub repo (gh CLI).
Mobile bridge
One QR pairs your phone over Wi-Fi or Tailscale, so the desktop Claude CLI answers straight from your mobile — no cloud relay.
Canvas · calendar
Whiteboard and a created/modified-date calendar view.
Captured as you speak,
summarized on arrival
Record → STT → AI summary → tag extraction → Markdown save. The whole pipeline runs from a single click. The transcript is always preserved; extracted tags can be edited anytime.
- Whisper.cpp · Web Speech APIDefaults to the Web Speech API; switch to local Whisper when you need offline and higher accuracy.
- Customizable summary promptsEdit the template to match your project, team, or personal voice.
- Auto-save option5-second preview then auto-save. Raw audio is kept as WebM under ~/CosmicaNotes/Voice.
Files are the source.
The editor assists.
Milkdown-based WYSIWYG, but what gets saved is plain Markdown. Open the same file in VS Code, Obsidian, or anywhere else — it just works.
- [[Backlink]] autocompleteType double brackets to link notes. Indexes refresh on save and propagate to the graph.
- #tag recognitionInline tags are extracted automatically; sidebar, graph, and export stay in sync.
- Folder drag & dropReorganize in the sidebar tree — every change is a real file system move.
Cosmica design notes
Markdown files are the source of truth; the DB is only a cache. Storing everything in an AI-readable format is the core principle.
Backlink syntax like [[voice-memo-20260414]] is auto-completed, and the tag index refreshes on save.
- Milkdown WYSIWYG + Markdown compatible
- #tag recognition → propagates to graph view
- Injectable as context straight to Claude CLI
Your own constellation,
stitched by tags
A D3 force-directed graph surfaces the relationships across your notes at a glance. Node size scales with connections; colors group by tag.
- Tag filtersNarrow the view to a subset of tags to zoom into a topic.
- Click to openClick a node to jump straight into that note.
- Incremental indexingIndexes update only on save, keeping things light even with thousands of notes.
Your notes move only through
your drive
Cosmica runs no servers and holds no accounts. Sync happens through your own Google Drive or a GitHub repository you control. Desktop, laptop, studio, home — the same Markdown tree flows inside your cloud, and nowhere else.
- Google Drive · GitHub RepoPick the Google Drive API (OAuth) or any GitHub repo authenticated through the gh CLI. Multi-device sync follows the same rules either way.
- Auto-bootstrap GitHub reposBrowse and pick from your gh-authorised repos. Empty repos get a README and a sync marker committed automatically; non-Cosmica repos are safely refused.
- Per-kind targetsToggle Markdown, attachments, and audio independently. Keep raw audio local, sync only the notes — up to you.
- MD5 incremental + conflict keep-bothOnly changed bytes leave the machine. When both sides changed, Cosmica keeps both copies so you merge deliberately.
Multi-device Sync
Google Drive · GitHub Repo · no relay
- Cosmica-design.mdGoogle Drive
- voice-memo-20260414.mdGitHub Repo
- Attachments/2026-04/diagram.pngGoogle Drive
Use the Claude Codeyou already have
installed
On launch, Cosmica detects your installed Claude Code CLI and Codex CLI automatically. No extra API keys, no extra subscriptions. Output streams in via SSE and lands straight into the note.
- CLI auto-detection + priorityClaude → Codex → API fallback. Reorder in settings.
- Five AI actionsSummarize · suggest tags · find related notes · expand ideas · generate Q&A.
- Token-thrifty indexingSends title + tags + first 200 chars, not the full body — cheap and fast.
Cosmica uses the local Claude CLI as its backend to deliver an AI notes environment without cloud dependencies.
The file system is the source; the DB is a cache — notes remain shareable with any other editor.
Tag and backlink indexes refresh incrementally on save, so it stays fast at any scale.
From mobile, your
desktop Claude as-is
Scan one QR and your phone is wired directly to the desktop over the same Wi-Fi or Tailscale. No new subscription, no cloud relay. AI calls reuse the Claude CLI already installed on your desktop; notes travel only between your two devices.
- One-shot 60-second codeThe QR only ever mints a 256-bit bearer token once and is burned on first use. A photo of it cannot be replayed.
- Tailscale · LAN auto-detectionCGNAT (100.64/10), RFC1918, and link-local are all detected so the phone connects over whichever path is available. No external servers.
- Desktop AI from mobileRun summarize, suggest tags, related notes from your phone; the desktop Claude CLI answers and streams the tokens back via SSE.
Mobile pairing
Scan the QR → talk straight to desktop
- Tailscale100.101.42.7 · CGNAT
- LAN192.168.1.24 · en0
- iPhone (Ray)Tailscale · just now
- iPadLAN · Wi-Fi · 3h ago
Thousands of notes,
⌘K away
A MiniSearch-powered index targets sub-100ms responses on 10,000 notes. When keywords fall short, AI semantic search understands the intent and finds related notes.
- Tag · folder · source filtersCompound queries like #AI folder:dev source:voice are first-class.
- n-gram Korean tokenizerPartial matches on Korean text work naturally without a morphological analyzer.
- AI semantic backupWhen hits are thin, Cosmica offers Claude-powered semantic search automatically.
- Cosmica-design#architecture…separation of layers and dependency direction…
- AI-ideas#AI…bringing AI inference into the domain logic…
- weekly-2026-04#review…lessons from this week’s refactor…
Messages sent on the go
land in the same notes
Send via Slack, Telegram, or Discord and Cosmica receives and records it as a note. Attachments and images are organized under ~/CosmicaNotes/Attachments by date.
- Webhook or pollingPolling by default so it works on laptops without public IPs.
- Per-message or daily digestOne file per message or one rolling file per day — your choice.
- Auto-summarize on receiveTrigger AI summary + tag extraction on ingestion so notes arrive already tidy.
Bot Inbox
Incoming from Telegram · Slack · Discord
- TelegramToday 09:15
Idea on the subway: add automated weekly-review prompts to Cosmica
#idea#TODO - SlackToday 11:02
Meeting note — need a fallback path when AI summary accuracy is low
#meeting#AI - DiscordYesterday 22:41
Saving links from the thread (3 attachments)
#reference
Ready to
upload straight into NotebookLM
Merge a tag’s notes into a single Markdown, and auto-split into 200,000-character chunks. Cuts happen only at note boundaries so context never breaks.
- Merge by tagPick #AI, #architecture, or any combination to build the bundle.
- Note-boundary splittingFiles split only at natural boundaries so no note is cut mid-sentence.
- Markdown / PDF exportThe same pipeline handles sharing and backup.
NotebookLM Export
Bundle by tag, split at 200,000 chars
- AI_notes_01.md200,000 chars
- AI_notes_02.md112,480 chars
Your thoughts,
on your disk
No signup, no Cosmica account. The source is always a Markdown file in your home directory. Sync is opt-in, and when you turn it on, your data only moves through your own Google Drive or a GitHub repo you own.
~/CosmicaNotes/ ├── Note/ │ ├── dev/ │ │ ├── Cosmica-design.md │ │ └── voice-memo-20260414.md │ ├── ideas.md │ └── inbox/ │ └── inbox-20260414.md ├── Audio/ ├── Attachments/ ├── Canvas/ └── .trash/ ~/.cosmica/ ├── config.json ├── cosmica.db └── whisper/
Turn your notes
into a constellation
Apple Silicon builds for macOS. Install, launch, done — no account, no configuration.
