Codex Workbench
pendingby Codex Workbench contributors
A local-first Codex workspace for note context, learning flows, and selection-based asking.
Codex Workbench
A local-first Obsidian workbench for Codex sessions, note context, guided learning, and selection-based asking.
- English: Overview | Disclosures | Development
- 中文: 概览 | 披露说明 | 开发与发布
English
Overview
Codex Workbench turns the right sidebar into a focused workspace for:
- asking about selected text
- switching context by note, folder, tag, or repo
- saving reusable context packs
- showing citations for attached note, file, and selection context
- running persistent Local Codex sessions through
codex app-server - generating learning artifacts such as study notes, term cards, confusion lists, and Q/A cards
This plugin is currently desktop-only.
Features
- Local Codex mode with a real resumable thread
- Selection-first asking with inline
Ask Codex - Context modes: note, folder, tag, repo
- Context packs for reusable working sets
- Clickable citations that open source notes or files
- Learning mode with study artifact generation
- File write approvals for local Codex sessions
Installation
Community plugins
After the plugin is approved by Obsidian, install it from Settings -> Community plugins -> Browse.
GitHub releases
- Download
manifest.json,main.js, andstyles.cssfrom the latest GitHub release. - Create a folder named
codex-workbenchunder your vault plugin directory:
<vault>/.obsidian/plugins/codex-workbench
- Place the three files in that folder.
- Restart Obsidian and enable
Codex Workbench.
Requirements
- Obsidian desktop
>= 1.5.0 - For
Local Codexmode:- a working
codexCLI installation - an authenticated local Codex session if required by your setup
- a working
- For
OpenAI-compatibleorGeneric JSONmodes:- a reachable HTTP endpoint
Disclosures
Please read this section before using the plugin:
- Desktop only: the plugin uses desktop-only capabilities and is not intended for mobile.
- Local process:
Local Codexmode starts a localcodex app-serverprocess on your machine. - Network access:
Local Codexmode uses a local loopback WebSocket connection to the local Codex process.OpenAI-compatibleandGeneric JSONmodes send your request payload to the configured remote endpoint.
- Data access:
- the plugin can read the active note, selected text, nearby note context, context-pack notes, and configured repo snippets used for prompting and citations.
- File writes:
workspace-writemode may request permission for file changes through local Codex approvals.- learning artifacts create or update Markdown files next to the current note.
- External files:
- repo context can read files from user-configured local directories outside the vault.
- Telemetry:
- the plugin does not include analytics, ads, or client-side telemetry.
- Closed services:
- if you point the plugin at a remote API, that service may be proprietary and have its own privacy terms.
Development
npm install
npm run build
Build output is written to:
build/main.js
To prepare release assets locally:
npm run release:bundle
Release-ready files are written to:
build/release/
Release process
- Update
manifest.jsonversion. - Run
npm run version. - Run
npm run release:check. - Create a Git tag matching the release version, for example
0.1.1. - Push the tag to GitHub.
- Upload or let GitHub Actions publish
manifest.json,main.js, andstyles.cssfrombuild/release/. - Submit the initial plugin entry to
obsidianmd/obsidian-releases.
Additional release notes are in docs/release-checklist.md.
Repository docs
中文
概览
Codex Workbench 是一个偏本地优先的 Obsidian 工作台插件,目标是把 Codex 会话 + 笔记上下文 + 学习引导 合到右侧边栏里。
它现在主要支持:
- 基于划线的
Ask Codex - 按
笔记 / 文件夹 / tag / repo切换上下文 - 复用型
Context Packs - 引用来源展示与点击打开
- 基于
codex app-server的本地持久会话 Learning mode下的学习产物回写
主要功能
- 本地 Codex thread 恢复与续接
- 围绕选中文本提问
- 多种上下文范围切换
- 可保存的上下文包
- 学习模式和学习收录
- 本地审批与
workspace-write
安装方式
Obsidian 社区插件
等插件通过官方审核后,可以直接在:
设置 -> 第三方插件 -> 浏览
里安装。
GitHub Release 手动安装
- 从最新 GitHub Release 下载
manifest.json、main.js、styles.css - 在 vault 中创建:
<你的 Vault>/.obsidian/plugins/codex-workbench
- 把这三个文件放进去
- 重启 Obsidian 并启用插件
使用前说明
- 仅支持桌面端,不支持移动端
Local Codex模式会在本机启动codex app-serverOpenAI-compatible/Generic JSON模式会把请求内容发送到你配置的远端接口- 插件可能会读取:
- 当前笔记
- 选中文本
- 周边段落上下文
- context pack 中指定的笔记
- 配置的 repo 目录中的片段文件
workspace-write模式下,本地 Codex 可能请求写文件审批- 学习产物会在当前笔记同目录下创建或更新 Markdown 文件
- 插件本身不带遥测、埋点或广告
本地开发
npm install
npm run build
构建产物会输出到:
build/main.js
如果要本地打发布包:
npm run release:bundle
发布资产会输出到:
build/release/
开发与发布
推荐流程:
- 修改代码并运行
npm run build - 更新
manifest.json版本号 - 执行
npm run version - 执行
npm run release:check - 打 Git tag,例如
0.1.1 - 通过 GitHub Release 发布
manifest.json、main.js、styles.css - 首次版本再提交到
obsidianmd/obsidian-releases
更完整的检查清单见 docs/release-checklist.md。
相关文档
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.