Skip to content
| Marketplace
Sign in
Visual Studio Code>Notebooks>Mirror Flat LogNew to Visual Studio Code? Get it now.
Mirror Flat Log

Mirror Flat Log

mirrorflat

|
2 installs
| (0) | Free
A minimal VS Code extension for daily journaling with integrated AI chat (Gemini, OpenAI, Claude, Ollama).
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Mirror Flat Log

A minimal VS Code extension for daily journaling with integrated AI chat — keeping your thought flow inside the editor.

Features

Commands

Command Shortcut Description
MirrorFlat: Log — Opens today's log (YYYY-MM-DD.md), creating it if needed, and appends ## HH:mm
MirrorFlat: Theme — Opens a themed log (*_[theme].md), or creates one with today's date if not found
MirrorFlat: Grep — Full-text search across all .md files in the log folder with live preview
MirrorFlat: Chat Ctrl+U Opens the configured AI chat URL in the system browser
Ask AI in Log Ctrl+I Inline AI chat inside your log file

Inline AI Chat (Ctrl+I)

Press Ctrl+I in your log file:

  1. First press — Inserts a dialog block. Selected text or the cursor-line text is pre-filled as the question.
  2. Second press — Sends the question to the AI. Status changes from (observing...) → (waiting...) → answer.
> ### dialog `14:32`
> User: What is the difference between FIRE and Coast FIRE?  
> AI: FIRE requires saving enough to cover all living expenses...

Multi-line questions are supported — select multiple lines before pressing Ctrl+I.

MirrorFlat: Grep

Search all .md files in the log folder by keyword (case-insensitive).
Navigating the file list previews each file at the first match. Press Enter to open permanently.

Setup

  1. Install from the VS Code Marketplace.
  2. Run MirrorFlat: Select Log Folder to choose where log files are stored.
  3. Configure an AI provider (see below).
  4. Press MirrorFlat: Log to open today's log and start writing.

AI Providers

Open VS Code Settings (Ctrl+,) and search Mirror Flat Log.

Set mirrorflatlog.aiProvider to one of:

Provider Value API Key
Google Gemini gemini (default) Required — aistudio.google.com
OpenAI ChatGPT openai Required — platform.openai.com
Anthropic Claude claude Required — console.anthropic.com
Ollama (local) ollama Not required

Run MirrorFlat: Set API Key to store a key securely, or set the environment variables GEMINI_API_KEY, OPENAI_API_KEY, or ANTHROPIC_API_KEY.

Ollama (local LLM)

No API key needed. Configure:

  • mirrorflatlog.ollamaModel — model name (default: llama3.2)
  • mirrorflatlog.ollamaBaseUrl — server URL (default: http://localhost:11434)

MirrorFlat: Chat (Ctrl+U)

Set mirrorflatlog.chatUrl to any AI chat URL (e.g. https://gemini.google.com, https://copilot.microsoft.com). Pressing Ctrl+U opens it in the system browser.

Log File Format

Daily logs are plain Markdown files. Timestamps are headings, dialogs are blockquotes — readable without the extension.

# 2026-05-03 09:00

## 09:00
Today's thoughts...

> ### dialog `09:15`
> User: Summarize what I wrote above.  
> AI: You reflected on...

Why?

I write a daily log in VS Code and chat with AI to reflect — like looking into a mirror.
This extension merges both into a single markdown lifelog with minimal UI noise.

Development

npm install
npm run build    # compile TypeScript
npm test         # run tests (52 tests)
# Press F5 in VS Code to launch Extension Development Host
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft