A visual configuration manager designed for Claude Code
Manage your CLAUDE.md instruction trees, MCP server configurations, and global project settings in a unified VS Code sidebar
Warning
This version is MVP (Minimum Viable Product)
You can now edit all your CLAUDE.md files in one place! More features are under development.
- 🌳 Unified View - Dual-view design managing both global configuration and project registry
- 🔍 Auto Discovery - Automatically parses project configurations from
~/.claude.json - 🔄 Real-time Refresh - One-click refresh to apply changes instantly
- 📂 Direct File Access - Double-click to open any configuration file in the editor
- 🛠️ Debug Friendly - Built-in Debug Output panel for troubleshooting
- 🎨 Native Experience - Seamlessly integrates with VS Code's native interface
Global Persona Displays
~/.claude.jsonfile content and~/.claude/directory tree structure
Project Registry Shows all registered Claude Code projects and their configuration files
📁 Project Structure Example
Context Editor
├── 🌍 Global Persona
│ ├── ~/.claude.json
│ └── ~/.claude/
│ ├── settings.json
│ └── skills/
└── 📦 Project Registry
├── project-alpha
│ └── .claude/settings.json
├── project-beta
│ ├── CLAUDE.md
│ └── .claude/settings.json
└── project-gamma
└── .claude/context.json
- Open VS Code Extensions panel (
Ctrl+Shift+X/Cmd+Shift+X) - Search for
Context Editor - Click Install
- Download the latest
.vsixfile - In VS Code Extensions panel, click "..." → "Install from VSIX..."
- Select the downloaded
.vsixfile
- Activate Extension - Extension auto-activates on VS Code startup
- Open View - Click the Context Editor icon (home icon) in the activity bar
- Browse Configuration - View two panels in the sidebar:
- Global Persona: Global configuration
- Project Registry: Project list
- Open Files - Double-click any file to open it in the editor
| Command | Shortcut | Description |
|---|---|---|
Context Editor: Refresh |
Click refresh icon in view title | Refresh configuration view |
Context Editor: Show Debug Output |
Command Palette (Ctrl+Shift+P) |
Show debug output panel |
No additional configuration required. The extension works out of the box.
It automatically reads the following Claude Code configuration files:
~/.claude.json # Claude Code main configuration file
~/.claude/ # Global configuration directory
~/.claude/settings.json # Global settings📋 Supported Project Registration Formats
The extension automatically recognizes two project registration formats in ~/.claude.json:
Array Format
{
"projects": [
{"path": "/path/to/project1"},
{"path": "/path/to/project2"}
]
}Record Format
{
"projects": {
"project1": {"path": "/path/to/project1"},
"project2": {"path": "/path/to/project2"}
}
}Note
This extension is currently in MVP stage. The following features are under development:
- MCP server configuration visualization
- Permission management UI
- Instruction inheritance chain visualization
- Built-in configuration file editor
- JSON Schema validation integration
- Configuration search and filtering
If you have feature suggestions or encounter bugs, please submit an Issue.
- TypeScript - Strict mode with full type safety
- VS Code Extension API - Native extension development
- ESLint + Prettier - Code quality assurance
- Mocha - Unit and integration testing
- Husky + lint-staged - Git Hooks automation
# Clone repository
git clone https://github.com/piratf/context-editor.git
cd context-editor
# Install dependencies
npm install
# Compile project
npm run compile
# Run tests
npm test
# Lint code
npm run lint
# Format code
npm run lint:fix
# Watch mode compilation
npm run watch- pre-commit: Automatically runs ESLint and Prettier
- pre-push: Automatically runs tests (can be skipped with
SKIP_TESTS=1 git push)
Contributions are welcome! Please follow these steps:
- Fork this repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Create a Pull Request
context-editor/
├── src/
│ ├── extension.ts # Extension entry point
│ ├── services/
│ │ └── claudeConfigReader.ts # Claude config reader
│ ├── views/
│ │ ├── globalProvider.ts # Global configuration view
│ │ └── projectProvider.ts # Project registry view
│ └── types/
│ └── claudeConfig.ts # Claude config type definitions
├── resources/
│ └── icon.png # Extension icon
├── docs/ # Product documentation
│ ├── PRD.md # Product requirements document
│ └── claude-code-storage-design.md
├── .github/workflows/
│ └── ci.yml # CI configuration
├── package.json
├── tsconfig.json
└── eslint.config.mjs
This project is licensed under MPL-2.0.
专为 Claude Code 打造的可视化配置管理器
在统一的 VS Code 侧边栏中管理你的 CLAUDE.md 指令树、MCP 服务器配置和全局项目设置
Warning
当前版本为 MVP (最小可行性产品)
可以在一个地方编辑所有 CLAUDE.md 了!更多功能正在开发中。
- 🌳 统一视图 - 双视图设计,同时管理全局配置和项目注册
- 🔍 自动发现 - 自动解析
~/.claude.json中的项目配置 - 🔄 实时刷新 - 一键刷新配置视图,即时生效
- 📂 文件直达 - 双击即可打开任意配置文件进行编辑
- 🛠️ 调试友好 - 内置 Debug Output 面板,方便问题排查
- 🎨 原生体验 - 完美集成 VS Code 原生界面风格
Global Persona(全局配置视图) 显示
~/.claude.json文件内容和~/.claude/目录树结构
Project Registry(项目注册视图) 展示所有已注册的 Claude Code 项目及其配置文件
📁 项目结构示例
Context Editor
├── 🌍 Global Persona
│ ├── ~/.claude.json
│ └── ~/.claude/
│ ├── settings.json
│ └── skills/
└── 📦 Project Registry
├── project-alpha
│ └── .claude/settings.json
├── project-beta
│ ├── CLAUDE.md
│ └── .claude/settings.json
└── project-gamma
└── .claude/context.json
- 打开 VS Code 扩展面板(
Ctrl+Shift+X/Cmd+Shift+X) - 搜索
Context Editor - 点击 安装
- 从 Releases 下载最新的
.vsix文件 - 在 VS Code 扩展面板点击 "..." → "从 VSIX 安装..."
- 选择下载的
.vsix文件
- 激活扩展 - 扩展会在 VS Code 启动时自动激活
- 打开视图 - 点击活动栏中的 Context Editor 图标(首页图标)
- 浏览配置 - 在侧边栏中查看两个视图:
- Global Persona:全局配置
- Project Registry:项目列表
- 打开文件 - 双击任意文件即可在编辑器中打开
| 命令 | 快捷方式 | 说明 |
|---|---|---|
Context Editor: Refresh |
点击视图标题栏刷新图标 | 刷新配置视图 |
Context Editor: Show Debug Output |
命令面板 (Ctrl+Shift+P) |
显示调试输出面板 |
目前本扩展无需额外配置,安装后即可使用。
扩展会自动读取以下 Claude Code 配置文件:
~/.claude.json # Claude Code 主配置文件
~/.claude/ # 全局配置目录
~/.claude/settings.json # 全局设置📋 支持的项目注册格式
扩展自动识别 ~/.claude.json 中的两种项目注册格式:
数组格式
{
"projects": [
{"path": "/path/to/project1"},
{"path": "/path/to/project2"}
]
}记录格式
{
"projects": {
"project1": {"path": "/path/to/project1"},
"project2": {"path": "/path/to/project2"}
}
}Note
本扩展目前处于 MVP 阶段,以下功能正在开发中:
- MCP 服务器配置可视化
- 权限管理 UI
- 指令继承链可视化
- 内置配置文件编辑器
- JSON Schema 校验集成
- 配置搜索和过滤功能
如果你有功能建议或遇到 Bug,欢迎提交 Issue。
- TypeScript - 严格模式,完整类型安全
- VS Code Extension API - 原生扩展开发
- ESLint + Prettier - 代码质量保障
- Mocha - 单元测试和集成测试
- Husky + lint-staged - Git Hooks 自动化
# 克隆仓库
git clone https://github.com/piratf/context-editor.git
cd context-editor
# 安装依赖
npm install
# 编译项目
npm run compile
# 运行测试
npm test
# 代码检查
npm run lint
# 代码格式化
npm run lint:fix
# 监听模式编译
npm run watch- pre-commit:自动运行 ESLint 和 Prettier
- pre-push:自动运行测试(可通过
SKIP_TESTS=1 git push跳过)
欢迎贡献!请遵循以下流程:
- Fork 本仓库
- 创建功能分支(
git checkout -b feature/amazing-feature) - 提交更改(
git commit -m 'feat: add amazing feature') - 推送到分支(
git push origin feature/amazing-feature) - 创建 Pull Request
context-editor/
├── src/
│ ├── extension.ts # 扩展入口点
│ ├── services/
│ │ └── claudeConfigReader.ts # Claude 配置读取器
│ ├── views/
│ │ ├── globalProvider.ts # 全局配置视图
│ │ └── projectProvider.ts # 项目注册视图
│ └── types/
│ └── claudeConfig.ts # Claude 配置类型定义
├── resources/
│ └── icon.png # 扩展图标
├── docs/ # 产品文档
│ ├── PRD.md # 产品需求文档
│ └── claude-code-storage-design.md
├── .github/workflows/
│ └── ci.yml # CI 配置
├── package.json
├── tsconfig.json
└── eslint.config.mjs
本项目采用 MPL-2.0 许可证 开源。
Made with ❤️ by piratf