Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex Note HelperNew to Visual Studio Code? Get it now.
Codex Note Helper

Codex Note Helper

trinitrotorol

| (0) | Free
Fill or append Markdown heading sections through a configurable Codex CLI command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex Note Helper

VS Code extension that fills empty Markdown headings in Markdown notes by calling a configurable Codex CLI executable.

Requirements

  • VS Code 1.85.0 or newer.
  • Codex CLI available as codex, or a full executable path set in codexNoteHelper.codexCommand.
  • Node.js 20 or newer for tests and packaging. Node.js 22 is pinned in .node-version for local development.

This extension is disabled in untrusted workspaces because it starts an external Codex CLI process and can edit workspace files.

Commands

  • Codex Notes: Fill/Append Headings with Codex

    • Finds target Markdown headings in the active note.
    • Saves the note, then runs codex exec.
    • Codex rereads the file and fills or appends only headings that still match the configured fill policy.
    • Shows approximate progress and the current safe Codex activity while it is running.
    • Refreshes open Markdown preview tabs after the note is updated.
    • Default shortcut: Ctrl+K Ctrl+Q.
  • Codex Notes: List Empty Headings

    • Shows empty headings and jumps to the selected one.
  • Codex Notes: Delete Failure Log

    • Deletes the configured failure log after a confirmation dialog.
  • Codex Notes: Set Mode

    • Switches the prompt mode: research, general, or jobHunting.
  • Codex Notes: Set Fill Policy

    • Switches which headings are updated.
  • Codex Notes: Run Self Test

    • Runs lightweight manifest, prompt, logging, and command checks inside VS Code.

Intended Flow

  1. Add a heading such as # Hamiltonian simulation.
  2. Press Ctrl+K Ctrl+Q.
  3. Codex fills only the empty heading.

For job-hunting notes:

  1. Run Codex Notes: Set Mode and choose jobHunting.
  2. Run Codex Notes: Set Fill Policy and choose emptyOrBulletsOnly.
  3. Use headings as company names and rough - bullets as source notes.
  4. Press Ctrl+K Ctrl+Q to append short company/job-hunting notes without deleting the existing bullets.

Settings

  • codexNoteHelper.mode
    • Prompt mode. Options: research, general, jobHunting.
  • codexNoteHelper.fillPolicy
    • emptyOnly: update only empty headings.
    • emptyOrBulletsOnly: update empty headings and headings that contain only bullet lines.
    • appendAlways: append to every heading section.
  • codexNoteHelper.researchField
    • Optional field context, such as quantum computing.
  • codexNoteHelper.outputLanguage
    • Output language for generated note text. Default: Japanese.
  • codexNoteHelper.noteStyle
    • Optional prompt style instruction. When empty, the selected mode supplies a default style.
  • codexNoteHelper.headingLevel
    • Markdown heading level to fill. Default: 1.
  • codexNoteHelper.codexCommand
    • Executable name or full executable path for Codex. Do not include arguments.
  • codexNoteHelper.allowBundledCodexFromOpenAIExtension
    • Allows fallback to a bundled codex.exe from the OpenAI ChatGPT/Codex extension. Disabled by default.
  • codexNoteHelper.enableWebSearch
    • Adds --search to the Codex command. Disabled by default.
  • codexNoteHelper.showCodexProgress
    • Shows approximate progress from codex exec --json events. Enabled by default. The percentage is a best-effort stage estimate, not a Codex API guarantee.
  • codexNoteHelper.logFileName
    • Workspace-relative failure log path. Default: codex-note-helper.log.
  • codexNoteHelper.logLevel
    • minimal avoids prompt/stdout/stderr. debug includes them for debugging.

Privacy

This extension does not call the OpenAI API directly and does not read the clipboard, environment variables, or arbitrary files by itself. It starts the configured Codex CLI process and sends a prompt containing the target file path and empty headings.

Codex may read the target Markdown file and may send data to its configured provider according to your Codex setup. Enabling codexNoteHelper.enableWebSearch also allows Codex to perform web search. See SECURITY.md before using this on confidential notes.

Do not enable this extension in workspaces you do not trust. Codex is launched with --sandbox workspace-write, but it may still inspect and edit files that the Codex sandbox allows within the workspace.

Logs

Failure logs are written only when the Codex command fails. The default minimal log level avoids recording the prompt, stdout, stderr, and heading titles. Use Codex Notes: Delete Failure Log to remove the log from the workspace.

Local Development

Node dependencies are local to this folder. There is no Python-style virtual environment for Node.js, but node_modules/ and the pinned dev tools stay inside the project.

If Node.js is already installed:

npm install
npm test

If you want a folder-local Node.js runtime on Windows:

powershell -ExecutionPolicy Bypass -File .\scripts\setup-local-node.ps1
.\scripts\npm-local.cmd install
.\scripts\npm-local.cmd test

The local runtime is installed under .tools/node, which is ignored by Git and excluded from VSIX packages.

Tests

Inside VS Code, run:

  • Codex Notes: Run Self Test

Run unit tests from this directory:

npm test

The tests use Node's built-in node:test runner and do not require extra runtime packages.

Build a VSIX:

npm run package

npm run package uses the pinned local @vscode/vsce devDependency. Before a release, use the stricter package check:

npm run package:strict

Release Checklist

  1. Confirm publisher in package.json matches the real VS Code Marketplace publisher ID, currently trinitrotorol.
  2. Confirm repository, bugs, and homepage still point to the public GitHub repository if the repository is renamed or moved.
  3. Run npm install, commit package-lock.json, then run npm test.
  4. Run npm run package:strict.
  5. Install the generated VSIX locally and test the main commands on a disposable Markdown workspace.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft