OpenContext
Memory server
First committed by 0xranx
Published in 0xranx/OpenContext. Publisher page
1,280 GitHub stars
What it is
CLI + MCP server for managing shared LLM context stores
AutoGineer overview, from the brain’s own files
OpenContext is a lightweight personal knowledge store designed to solve the problem of fragmented context across AI coding sessions. It functions as a persistent memory layer that integrates with existing coding agents like Cursor, Claude Code, and Codex. By providing a unified CLI and MCP server, it allows agents to read, write, search, and iterate on a user's global context library. The system includes a native desktop application and a local web UI for visual management, ensuring that background information, project decisions, and documentation remain accessible and actionable across different repositories and timeframes.
How it works
Memory model: Hybrid
AutoGineer overview, from the brain’s own files
OpenContext operates as a hybrid memory system. It uses a CLI tool to manage a local library of folders and documents, which are stored using SQLite and vector databases. It exposes these as an MCP server, allowing AI agents to interact with the knowledge base through standardized tools and slash commands. Users initialize the system to generate agent-specific skills and configuration files, enabling agents to automatically load, search, and persist context during development workflows.
| Folder | Role | Files |
|---|---|---|
| .github | agent-config | 6 |
| bin | scripts | 1 |
| docs | docs | 8 |
| scripts | scripts | 3 |
| src | source-code | 103 |
| tests | tests | 6 |
| crates | folder | 25 |
| src-ios | folder | 54 |
| src-tauri | folder | 26 |
The agent reads
- scripts/pre-commit evidence: AGENTS.md
Requirements
Runtimes: Node.js >=18
Databases: LanceDB, Milvus, SQLite
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Google Antigravity, Kiro, OpenCode, Amp, Roo Code, Cline, JetBrains Junie, Devin (ex-Windsurf)
Set it up
This brain runs code automatically: 1 script. Review package.json before opening the folder in Claude Code. No step below turns a hook on for you.
package.json:[ -d .git ] && ./scripts/setup-hooks.sh || true
- Not scanned by AutoGineerAutoGineer could not scan everything it runs. https://www.npmjs.com/package/@aicontextlab/cli
First committed by 0xranx. Published in 0xranx/OpenContext. Licence: MIT License.
Usage
AutoGineer overview, from the brain’s own files
- Manage a global library of project context and documentation.
- Enable AI coding agents to read and write to a persistent knowledge base.
- Search across historical project decisions and background information.
- Provide agents with automated context loading via MCP tools.
- Maintain a visual interface for managing knowledge outside of the IDE.
- Use slash commands to trigger context-aware actions within supported coding agents.
- “/opencontext-context”
- The agent loads the relevant background information and project decisions before starting a new task.
- “oc search "authentication flow"”
- The CLI returns a list of documents related to the authentication flow, allowing the user to quickly find specific technical details.
- “/opencontext-iterate”
- The agent persists the current findings or learned information into the OpenContext knowledge base for future use.
- “oc doc create project-a/setup.md -d "Initial project setup steps"”
- A new document is created in the specified folder, making it immediately available for the agent to reference in future sessions.
Documentation by 0xranx
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="docs/images/logo-dark.png"> <source media="(prefers-color-scheme: light)" srcset="docs/images/logo-light.png"> <img alt="OpenContext Logo" src="docs/images/logo-light.png" width="350"> </picture>
<p> <strong>Give your AI assistant a persistent memory.</strong><br> Stop repeating yourself. Start building smarter. </p>
<p> <strong>Bring your own coding agent.</strong> OpenContext reuses your existing CLI (Codex/Claude/OpenCode) and adds a GUI + built-in Skills/tools — no extra agent subscription. </p>
<table> <tr> <td> <img src="docs/images/overview.png" alt="OpenContext Overview" height="260"> </td> <td> <img src="docs/images/folder-refer-git.gif" alt="OpenContext Demo" height="260"> </td> </tr> </table>
<p> <a href="https://www.npmjs.com/package/@aicontextlab/cli"><img src="https://img.shields.io/npm/v/@aicontextlab/cli.svg?style=flat-square&color=cb3837" alt="npm version"></a> <a href="https://github.com/0xranx/OpenContext/blob/main/LICENSE"><img src="https://img.shields.io/github/license/0xranx/OpenContext?style=flat-square" alt="license"></a> </p>
<p> <a href="https://0xranx.github.io/OpenContext/en/"><strong>🌐 Website</strong></a> · <a href="https://0xranx.github.io/OpenContext/en/usage/"><strong>📖 Usage Guide</strong></a> · <a href="https://github.com/0xranx/OpenContext/releases"><strong>⬇️ Download Desktop</strong></a> </p>
<p><a href="README.zh-CN.md">中文文档</a></p> </div>
The Problem
When you use an AI assistant to build things, context gets lost (across days, repos, chats). You end up re-explaining background, repeating decisions, and sometimes the assistant continues with the wrong assumptions. Most tools stop at storage and don't plug into the coding agent you already use.
The Solution
OpenContext is a lightweight personal context / knowledge store for AI assistants (Agents) and coding tools like Cursor / Claude Code / Codex. It reuses your existing coding agent CLI (Codex/Claude/OpenCode) while adding a GUI plus built-in Skills/tools, so your agent can "load history first, then act; ship, then persist".
Skills-first support: oc init generates user-level skills (Cursor/Claude Code/Codex) plus slash commands (Cursor/Claude Code), so agents can load, search, create, and iterate your context with one command.
| Before OpenContext | After OpenContext |
|---|---|
| 📂 Hard to share context across repos/sessions | ✅ Global context library works across all projects |
| 🤷 Your ideas can't be quickly perceived by Agent | ✅ Agent loads your background & decisions automatically |
| 🔒 Existing knowledge can't be operated by Coding Agent | ✅ Agent can directly read/write your knowledge base |
What's Included
ocCLI — manage a globalcontexts/library (folders/docs, manifests, search)MCP Server — so Cursor/Claude Code/Codex/Agents can call OpenContext as tools
Skills + Slash Commands — user-level skills for Cursor/Claude Code/Codex and slash commands for Cursor/Claude Code (generated by
oc init)Agent-ready Knowledge Layer — reuse your existing coding agent CLI (Codex/Claude/OpenCode) with built-in skills/tools and GUI
Desktop App — manage/search/edit contexts with a native UI
Web UI — browse/edit contexts locally (no install required)
Why OpenContext for Builders
OpenContext's knowledge management Agent can be the coding agent you already use (Codex/Claude/OpenCode). You don't pay for a separate agent — you bring your own CLI and get a ready-to-use experience: a GUI for context management plus built-in Skills and tools that let the agent read, search, create, and iterate on your knowledge.
Quick Start
Install CLI
npm install -g @aicontextlab/cliChoose Your Path
| Path | Best For | Get Started |
|---|---|---|
| 🖥️ Desktop App | Visual users who want a native UI | Download from Releases |
| ⌨️ CLI + Tools | Developers using Cursor/Claude Code/Codex/AI agents | npm install -g @aicontextlab/cli && oc init |
| 🔧 CLI Only | Power users, automation | npm install -g @aicontextlab/cli |
OpenContext works with the coding agent CLI you already have — it adds a GUI plus built-in Skills/tools instead of replacing your agent.
30-Second Setup (CLI + Cursor/Claude Code/Codex)
# 1. Install
npm install -g @aicontextlab/cli
# 2. Initialize (prompts for tool setup; defaults to all)
cd your-project
oc init
# 3. Use slash commands (Cursor + Claude Code)
# /opencontext-context — load background before working
# /opencontext-search — find relevant docs
# /opencontext-create — create a new doc
# /opencontext-iterate — persist what you learned
# Tip: non-interactive installs can use --tools cursor,claude,codex or --no-claude/--no-cursor/--no-codex
#
# Installed by oc init:
# - Cursor: ~/.cursor/commands
# - Claude Code: ~/.claude/commands (or $CLAUDE_CONFIG_DIR/commands)
# Skills (wrapped from slash commands):
# - Cursor: ~/.cursor/skills/opencontext-*/SKILL.md
# - Claude Code: ~/.claude/skills/opencontext-*/SKILL.md (or $CLAUDE_CONFIG_DIR/skills)
# - Codex: ~/.codex/skills/opencontext-*/SKILL.md (or $CODEX_HOME/skills)
#
# 4. MCP config is user-level (Cursor/Claude Code/Codex)
# - Cursor: ~/.cursor/mcp.json
# - Claude Code: ~/.claude/mcp.json (or $CLAUDE_CONFIG_DIR/mcp.json)
# - Codex: ~/.codex/mcp.json (or $CODEX_HOME/mcp.json)📖 For detailed usage guide, search configuration, and FAQ, visit the Website.
FAQ (Frequently Asked Questions)
What is OpenContext?
OpenContext is a lightweight personal context / knowledge store for AI assistants and coding tools like Cursor / Claude Code / Codex. It gives your AI agent a persistent memory so you can stop repeating yourself and start building smarter.
How does OpenContext work with my existing coding agent?
OpenContext reuses your existing coding agent CLI (Codex/Claude/OpenCode) while adding a GUI plus built-in Skills/tools. You don't pay for a separate agent subscription — you bring your own CLI and get a ready-to-use experience.
What are the core components?
| Component | Function |
|---|---|
oc CLI | Manage global contexts/ library (folders/docs, manifests, search) |
| MCP Server | Cursor/Claude Code/Codex/Agents call OpenContext as tools |
| Skills + Slash Commands | User-level skills for Cursor/Claude Code/Codex + slash commands for Cursor/Claude Code |
| Desktop App | Manage/search/edit contexts with a native UI |
| Web UI | Browse/edit contexts locally (no install required) |
What coding agents are supported?
| Agent | Config Location |
|---|---|
| Cursor | ~/.cursor/mcp.json |
| Claude Code | ~/.claude/mcp.json |
| Codex | ~/.codex/mcp.json |
| OpenCode | ~/.config/opencode/ |
What are the key benefits?
| Before OpenContext | After OpenContext |
|---|---|
| 📂 Hard to share context across repos/sessions | ✅ Global context library works across all projects |
| 🤷 Your ideas can't be quickly perceived by Agent | ✅ Agent loads your background & decisions automatically |
| 🔒 Existing knowledge can't be operated by Coding Agent | ✅ Agent can directly read/write your knowledge base |
Is OpenContext free and open source?
Yes! OpenContext is free and open source. Check the repository for license details.
How do I get started?
npm install -g @aicontextlab/cli
oc initThis generates user-level skills and slash commands for your coding agent.
Where can I get help?
CLI Commands (Quick Reference)
Run oc <cmd> --help for details.
| Command | What it does |
|---|---|
oc init | Initialize OpenContext + user-level tool integrations |
oc folder ls | List folders |
oc folder create <path> -d "desc" | Create a folder |
oc doc create <folder> <name>.md -d "desc" | Create a document |
oc doc ls <folder> | List documents |
oc context manifest <folder> | Generate file list for AI to read |
oc search "query" | Search documents |
oc mcp | Start MCP server for MCP clients |
oc ui | Start local Web UI |
📖 Full command reference available on the Website.
Development
# Clone & install
git clone https://github.com/0xranx/OpenContext.git
cd OpenContext && npm install
# Desktop app
npm run tauri:dev # development
npm run tauri:build # production build
# Web UI
npm run ui:dev # development
npm run ui:build # production buildLicense
MIT © OpenContext
README.zh-CN.md
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="docs/images/logo-dark.png"> <source media="(prefers-color-scheme: light)" srcset="docs/images/logo-light.png"> <img alt="OpenContext Logo" src="docs/images/logo-light.png" width="350"> </picture>
<p> <strong>给你的 AI 助手一个持久记忆。</strong><br> 不再重复解释,专注高效构建。 </p>
<p> <strong>复用你已有的 coding agent。</strong> OpenContext 直接接入你现有的 CLI(Codex/Claude/OpenCode),并提供 GUI + 内置 Skills/工具,无需额外为另一套 Agent 付费。 </p>
<table> <tr> <td> <img src="docs/images/overview.png" alt="OpenContext 概览" height="260"> </td> <td> <img src="docs/images/folder-refer-git.gif" alt="OpenContext Demo" height="260"> </td> </tr> </table>
<p> <a href="https://www.npmjs.com/package/@aicontextlab/cli"><img src="https://img.shields.io/npm/v/@aicontextlab/cli.svg?style=flat-square&color=cb3837" alt="npm version"></a> <a href="https://github.com/0xranx/OpenContext/blob/main/LICENSE"><img src="https://img.shields.io/github/license/0xranx/OpenContext?style=flat-square" alt="license"></a> </p>
<p> <a href="https://0xranx.github.io/OpenContext/zh/"><strong>🌐 官网</strong></a> · <a href="https://0xranx.github.io/OpenContext/zh/usage/"><strong>📖 使用指南</strong></a> · <a href="https://github.com/0xranx/OpenContext/releases"><strong>⬇️ 下载桌面版</strong></a> </p>
<p><a href="README.md">English</a></p> </div>
痛点
当你用 AI 助手做事时,上下文会丢、历史决策会忘、跨天/跨仓库会断片。你很容易重复解释背景、重复踩坑,甚至让 AI 在错误前提下继续执行。很多工具只停留在“管理”,并没有接入你已经在用的 coding agent。
解决方案
OpenContext 是一个面向 AI 助手(Agent)与 Cursor / Claude Code / Codex 等编码工具用户的「个人上下文/知识库」。它直接复用你已有的 coding agent CLI(Codex/Claude/OpenCode),并提供 GUI 与内置 Skills/工具,让 AI 助手能「先读历史再动手、做完再沉淀」。
Skills 优先支持: oc init 会生成用户级 skills(Cursor/Claude Code/Codex)和斜杠命令(Cursor/Claude Code),让 Agent 用一条命令完成加载、搜索、创建与迭代。
| 使用前 | 使用后 |
|---|---|
| 📂 跨 repo/会话 共享上下文很难 | ✅ 全局知识库,跨项目复用 |
| 🤷 自己的想法无法快速被 Agent 感知到 | ✅ Agent 自动加载你的背景和决策 |
| 🔒 现有知识内容无法直接通过 Coding Agent 操作 | ✅ Agent 可以直接读写你的知识库 |
包含什么
ocCLI — 管理全局contexts/文档库(目录/文档、清单、检索)MCP Server — 让 Cursor/Claude Code/Codex/Agent 通过工具调用 OpenContext
Skills + 斜杠命令 — 为 Cursor/Claude Code/Codex 生成用户级 skills,为 Cursor/Claude Code 生成斜杠命令(由
oc init生成)面向 Agent 的知识层 — 复用你已有的 coding agent CLI(Codex/Claude/OpenCode),并内置 Skills/工具 + GUI
桌面版应用 — 用原生 UI 管理/搜索/编辑 contexts
Web UI — 本地浏览/编辑文档(无需安装桌面版)
为什么 OpenContext 更适合开发者
OpenContext 的知识管理 Agent 可以直接用你已经在用的 coding agent CLI(Codex/Claude/OpenCode),不需要为另一套 Agent 再付费。你带来自己熟悉的代理工具,OpenContext 直接提供现成 GUI 和内置 Skills/工具,让 Agent 能读、搜、写、迭代你的知识库。
快速开始
安装 CLI
npm install -g @aicontextlab/cli选择你的路径
| 路径 | 适合人群 | 开始使用 |
|---|---|---|
| 🖥️ 桌面版应用 | 喜欢图形界面的用户 | 从 Releases 下载 |
| ⌨️ CLI + 工具接入 | 使用 Cursor/Claude Code/Codex/AI Agent 的开发者 | npm install -g @aicontextlab/cli && oc init |
| 🔧 仅 CLI | 高级用户、自动化场景 | npm install -g @aicontextlab/cli |
OpenContext 不替换你的 Agent,而是复用你已有的 coding agent CLI,并补上 GUI 与内置 Skills/工具。
30 秒上手(CLI + Cursor/Claude Code/Codex)
# 1. 安装
npm install -g @aicontextlab/cli
# 2. 初始化(会提示选择工具,默认全选)
cd your-project
oc init
# 3. 在 Cursor / Claude Code 中使用斜杠命令
# /opencontext-context — 开始工作前加载背景
# /opencontext-search — 查找相关文档
# /opencontext-create — 创建新文档
# /opencontext-iterate — 沉淀学到的内容
# 提示:非交互可用 --tools cursor,claude,codex 或 --no-claude/--no-cursor/--no-codex
#
# oc init 会安装:
# - Cursor: ~/.cursor/commands
# - Claude Code: ~/.claude/commands(或 $CLAUDE_CONFIG_DIR/commands)
# Skills(斜杠命令的同名封装):
# - Cursor: ~/.cursor/skills/opencontext-*/SKILL.md
# - Claude Code: ~/.claude/skills/opencontext-*/SKILL.md(或 $CLAUDE_CONFIG_DIR/skills)
# - Codex: ~/.codex/skills/opencontext-*/SKILL.md(或 $CODEX_HOME/skills)
#
# 用户级 MCP 配置:
# - Cursor: ~/.cursor/mcp.json
# - Claude Code: ~/.claude/mcp.json(或 $CLAUDE_CONFIG_DIR/mcp.json)
# - Codex: ~/.codex/mcp.json(或 $CODEX_HOME/mcp.json)📖 详细使用指南、搜索配置和常见问题,请访问官网。
CLI 命令(快速参考)
运行 oc <cmd> --help 查看详情。
| 命令 | 说明 |
|---|---|
oc init | 初始化 OpenContext + 用户级工具集成 |
oc folder ls | 列出目录 |
oc folder create <path> -d "desc" | 创建目录 |
oc doc create <folder> <name>.md -d "desc" | 创建文档 |
oc doc ls <folder> | 列出文档 |
oc context manifest <folder> | 生成文档清单供 AI 读取 |
oc search "query" | 搜索文档 |
oc mcp | 启动 MCP Server(给 MCP 客户端用) |
oc ui | 启动本地 Web UI |
📖 完整命令参考请访问官网。
开发
# 克隆并安装
git clone https://github.com/0xranx/OpenContext.git
cd OpenContext && npm install
# 桌面版应用
npm run tauri:dev # 开发模式
npm run tauri:build # 生产构建
# Web UI
npm run ui:dev # 开发模式
npm run ui:build # 生产构建许可证
MIT © OpenContext
244 files · 238 not served here
- .github/release.yml (not served here)
- .github/workflows/ci.yml (not served here)
- .github/workflows/cli-publish.yml (not served here)
- .github/workflows/cli-smoke.yml (not served here)
- .github/workflows/desktop-build.yml (not served here)
- .github/workflows/native-build.yml (not served here)
- .gitignore (not served here)
- AGENTS.md
- ATTRIBUTION.md
- AUTOGINEER-RUNS.md
- LICENSE
- README.md
- README.zh-CN.md
- bin/oc.js (not served here)
- crates/opencontext-core/Cargo.toml (not served here)
- crates/opencontext-core/src/events.rs (not served here)
- crates/opencontext-core/src/lib.rs (not served here)
- crates/opencontext-core/src/search/chunker.rs (not served here)
- crates/opencontext-core/src/search/config.rs (not served here)
- crates/opencontext-core/src/search/embedding.rs (not served here)
- crates/opencontext-core/src/search/error.rs (not served here)
- crates/opencontext-core/src/search/index_sync.rs (not served here)
- crates/opencontext-core/src/search/indexer.rs (not served here)
- crates/opencontext-core/src/search/mod.rs (not served here)
- crates/opencontext-core/src/search/searcher.rs (not served here)
- crates/opencontext-core/src/search/tests.rs (not served here)
- crates/opencontext-core/src/search/types.rs (not served here)
- crates/opencontext-core/src/search/vector_store.rs (not served here)
- crates/opencontext-core/src/tests.rs (not served here)
- crates/opencontext-node/Cargo.toml (not served here)
- crates/opencontext-node/README.md (not served here)
- crates/opencontext-node/build.rs (not served here)
- crates/opencontext-node/index.d.ts (not served here)
- crates/opencontext-node/index.js (not served here)
- crates/opencontext-node/package-lock.json (not served here)
- crates/opencontext-node/package.json (not served here)
- crates/opencontext-node/src/lib.rs (not served here)
- crates/opencontext-node/test-store.js (not served here)
- crates/opencontext-node/test.js (not served here)
- docs/images/avatar.png (not served here)
- docs/images/folder-refer-git.gif (not served here)
- docs/images/logo-dark.png (not served here)
- docs/images/logo-dark.svg (not served here)
- docs/images/logo-light.png (not served here)
- docs/images/logo-light.svg (not served here)
- docs/images/logo.png (not served here)
- docs/images/overview.png (not served here)
- logo-dark.svg (not served here)
- mcp.example.json (not served here)
- package-lock.json (not served here)
- package.json (not served here)
- scripts/api-server.js (not served here)
- scripts/pre-commit (not served here)
- scripts/setup-hooks.sh (not served here)
- src-ios/App.js (not served here)
- src-ios/README.md (not served here)
- src-ios/app.json (not served here)
- src-ios/assets/icon.png (not served here)
- src-ios/babel.config.js (not served here)
- src-ios/components/Card.js (not served here)
- src-ios/components/EmptyState.js (not served here)
- src-ios/components/FadeInView.js (not served here)
- src-ios/components/FloatingButton.js (not served here)
- src-ios/components/Screen.js (not served here)
- src-ios/config.js (not served here)
- src-ios/db/docs.js (not served here)
- src-ios/db/index.js (not served here)
- src-ios/db/migrations.js (not served here)
- src-ios/db/schema.js (not served here)
- src-ios/i18n/index.js (not served here)
- src-ios/i18n/locales/en.json (not served here)
- src-ios/i18n/locales/zh.json (not served here)
- src-ios/index.js (not served here)
- src-ios/ios/.gitignore (not served here)
- src-ios/ios/.xcode.env (not served here)
- src-ios/ios/OpenContext.xcodeproj/project.pbxproj (not served here)
- src-ios/ios/OpenContext.xcodeproj/xcshareddata/xcschemes/OpenContext.xcscheme (not served here)
- src-ios/ios/OpenContext.xcworkspace/contents.xcworkspacedata (not served here)
- src-ios/ios/OpenContext/AppDelegate.h (not served here)
- src-ios/ios/OpenContext/AppDelegate.mm (not served here)
- src-ios/ios/OpenContext/Images.xcassets/AppIcon.appiconset/Contents.json (not served here)
- src-ios/ios/OpenContext/Images.xcassets/AppIcon.appiconset/icon.png (not served here)
- src-ios/ios/OpenContext/Images.xcassets/Contents.json (not served here)
- src-ios/ios/OpenContext/Images.xcassets/SplashScreenBackground.imageset/Contents.json (not served here)
- src-ios/ios/OpenContext/Images.xcassets/SplashScreenBackground.imageset/image.png (not served here)
- src-ios/ios/OpenContext/Info.plist (not served here)
- src-ios/ios/OpenContext/OpenContext-Bridging-Header.h (not served here)
- src-ios/ios/OpenContext/OpenContext.entitlements (not served here)
- src-ios/ios/OpenContext/SplashScreen.storyboard (not served here)
- src-ios/ios/OpenContext/Supporting/Expo.plist (not served here)
- src-ios/ios/OpenContext/main.m (not served here)
- src-ios/ios/OpenContext/noop-file.swift (not served here)
- src-ios/ios/Podfile (not served here)
- src-ios/ios/Podfile.properties.json (not served here)
- src-ios/package-lock.json (not served here)
- src-ios/package.json (not served here)
- src-ios/screens/DocEditorScreen.js (not served here)
- src-ios/screens/DocsScreen.js (not served here)
- src-ios/screens/IdeasScreen.js (not served here)
- src-ios/screens/SettingsScreen.js (not served here)
- src-ios/services/ai.js (not served here)
- src-ios/services/ideas.js (not served here)
- src-ios/services/images.js (not served here)
- src-ios/theme.js (not served here)
- src-ios/utils/date.js (not served here)
- src-ios/utils/ideaTime.js (not served here)
- src-ios/utils/paths.js (not served here)
- src-ios/utils/uuid.js (not served here)
- src-tauri/Cargo.toml (not served here)
- src-tauri/build.rs (not served here)
- src-tauri/capabilities/default.json (not served here)
- src-tauri/icons/128x128.png (not served here)
- src-tauri/icons/[email protected] (not served here)
- src-tauri/icons/32x32.png (not served here)
- src-tauri/icons/64x64.png (not served here)
- src-tauri/icons/about-icon.png (not served here)
- src-tauri/icons/icon.icns (not served here)
- src-tauri/icons/icon.ico (not served here)
- src-tauri/icons/icon_source.svg (not served here)
- src-tauri/icons/tray-icon-32.png (not served here)
- src-tauri/icons/tray-icon-template-36.png (not served here)
- src-tauri/icons/tray-icon-template-64.png (not served here)
- src-tauri/src/agent_rpc.rs (not served here)
- src-tauri/src/chat.rs (not served here)
- src-tauri/src/commands/agent.rs (not served here)
- src-tauri/src/commands/ai.rs (not served here)
- src-tauri/src/commands/context.rs (not served here)
- src-tauri/src/commands/mod.rs (not served here)
- src-tauri/src/commands/search.rs (not served here)
- src-tauri/src/commands/terminal.rs (not served here)
- src-tauri/src/main.rs (not served here)
- src-tauri/src/terminal_session.rs (not served here)
- src-tauri/src/utils.rs (not served here)
- src-tauri/tauri.conf.json (not served here)
- src/core/agents.js (not served here)
- src/core/config.js (not served here)
- src/core/native.js (not served here)
- src/core/search/formatter.js (not served here)
- src/core/search/index.js (not served here)
- src/core/search/indexSync.js (not served here)
- src/core/search/native-adapter.js (not served here)
- src/core/store-native.js (not served here)
- src/core/store/index.js (not served here)
- src/mcp/server.js (not served here)
- src/ui/.gitignore (not served here)
- src/ui/index.html (not served here)
- src/ui/jsconfig.json (not served here)
- src/ui/mobile.html (not served here)
- src/ui/postcss.config.cjs (not served here)
- src/ui/public/favicon.svg (not served here)
- src/ui/server.js (not served here)
- src/ui/src/App.jsx (not served here)
- src/ui/src/api.js (not served here)
- src/ui/src/assets/logos/claude.svg (not served here)
- src/ui/src/assets/logos/codex.svg (not served here)
- src/ui/src/assets/logos/opencode.svg (not served here)
- src/ui/src/components/Breadcrumbs.jsx (not served here)
- src/ui/src/components/Dialogs.jsx (not served here)
- src/ui/src/components/IdeaSidebar.jsx (not served here)
- src/ui/src/components/IdeaTimeline.jsx (not served here)
- src/ui/src/components/IdeaTimeline.module.css (not served here)
- src/ui/src/components/LanguageSwitcher.jsx (not served here)
- src/ui/src/components/Logo.jsx (not served here)
- src/ui/src/components/ModelSelector.jsx (not served here)
- src/ui/src/components/PlateMarkdown.jsx (not served here)
- src/ui/src/components/SearchModal.jsx (not served here)
- src/ui/src/components/Settings.jsx (not served here)
- src/ui/src/components/SidebarTree.jsx (not served here)
- src/ui/src/components/Skeletons.jsx (not served here)
- src/ui/src/components/TerminalSidebar.jsx (not served here)
- src/ui/src/components/TiptapMarkdown.jsx (not served here)
- src/ui/src/components/Toc.jsx (not served here)
- src/ui/src/components/agent/AgentEmptyState.jsx (not served here)
- src/ui/src/components/agent/AgentInputBar.jsx (not served here)
- src/ui/src/components/agent/AgentMessageList.jsx (not served here)
- src/ui/src/components/agent/AgentSessionSetup.jsx (not served here)
- src/ui/src/components/agent/AgentSessionTabs.jsx (not served here)
- src/ui/src/components/agent/AgentSidebar.jsx (not served here)
- src/ui/src/components/agent/IntentSelector.jsx (not served here)
- src/ui/src/components/agent/README.md (not served here)
- src/ui/src/components/agent/constants.js (not served here)
- src/ui/src/components/agent/hooks/useAgentSessions.js (not served here)
- src/ui/src/components/agent/hooks/useAgentStreaming.js (not served here)
- src/ui/src/context/AIContext.jsx (not served here)
- src/ui/src/context/ThemeContext.jsx (not served here)
- src/ui/src/demo/IdeaTimelineDemo.jsx (not served here)
- src/ui/src/editor/clipboardHandlers.js (not served here)
- src/ui/src/editor/components/CodeBlockElement.jsx (not served here)
- src/ui/src/editor/components/Icons.jsx (not served here)
- src/ui/src/editor/components/SlashMenu.jsx (not served here)
- src/ui/src/editor/components/Toolbars.jsx (not served here)
- src/ui/src/editor/constants.jsx (not served here)
- src/ui/src/editor/keyboardHandlers.js (not served here)
- src/ui/src/editor/nodeTypes.js (not served here)
- src/ui/src/editor/normalize/listCompatNormalize.js (not served here)
- src/ui/src/editor/plugins/markdownRules.js (not served here)
- src/ui/src/editor/tiptap/CodeBlockComponent.jsx (not served here)
- src/ui/src/editor/tiptap/FloatingToolbar.jsx (not served here)
- src/ui/src/editor/tiptap/HighlightJsExtension.js (not served here)
- src/ui/src/editor/tiptap/IdeaRefBlock.js (not served here)
- src/ui/src/editor/tiptap/PageRefPicker.jsx (not served here)
- src/ui/src/editor/tiptap/SlashMenu.jsx (not served here)
- src/ui/src/editor/tiptap/TableToolbar.jsx (not served here)
- src/ui/src/editor/utils/classNames.js (not served here)
- src/ui/src/editor/utils/errorHandling.js (not served here)
- src/ui/src/hooks/useDataIntegrity.js (not served here)
- src/ui/src/hooks/useDocLoader.js (not served here)
- src/ui/src/hooks/useFolderCache.js (not served here)
- src/ui/src/hooks/useIdeaLoader.js (not served here)
- src/ui/src/hooks/useScrollSpy.js (not served here)
- src/ui/src/hooks/useTauriDrag.jsx (not served here)
- src/ui/src/i18n/index.js (not served here)
- src/ui/src/i18n/locales/en.json (not served here)
- src/ui/src/i18n/locales/zh.json (not served here)
- src/ui/src/index.css (not served here)
- src/ui/src/main.jsx (not served here)
- src/ui/src/mobile/EditorApp.jsx (not served here)
- src/ui/src/mobile/index.jsx (not served here)
- src/ui/src/package.json (not served here)
- src/ui/src/routes/index.jsx (not served here)
- src/ui/src/services/idea/IdeaService.js (not served here)
- src/ui/src/services/idea/IdeaStorageAdapter.js (not served here)
- src/ui/src/services/idea/LocalStorageAdapter.js (not served here)
- src/ui/src/services/idea/index.js (not served here)
- src/ui/src/services/idea/types.js (not served here)
- src/ui/src/services/move.js (not served here)
- src/ui/src/types.js (not served here)
- src/ui/src/utils/clipboard.js (not served here)
- src/ui/src/utils/errors.js (not served here)
- src/ui/src/utils/ideaRef.js (not served here)
- src/ui/src/utils/ideaUtils.js (not served here)
- src/ui/src/utils/path.js (not served here)
- src/ui/tailwind.config.cjs (not served here)
- src/ui/tests/editor-list-compat.test.cjs (not served here)
- src/ui/tests/move.test.cjs (not served here)
- src/ui/tests/scrollspy.test.cjs (not served here)
- src/ui/vite.config.js (not served here)
- tailwind.config.js (not served here)
- tests/core/config.test.js (not served here)
- tests/helpers.js (not served here)
- tests/integration/cli.test.js (not served here)
- tests/native/native-adapter.test.js (not served here)
- tests/native/store-native.test.js (not served here)
- tests/search/formatter.test.js (not served here)
Advantages
- Provides a global context library that works across all projects and sessions. evidence: README.md
- Allows agents to directly read and write to the user's knowledge base. evidence: README.md
- Integrates with existing coding agent CLIs without requiring new agent subscriptions. evidence: README.md
Limitations
- Index builds may incur external embedding costs. evidence: AGENTS.md
- Desktop builds for Windows require specific build environments or CI pipelines. evidence: AGENTS.md
Security
Risk level: Low risk
This brain runs
Agent instructions that run or fetch something (16)
AGENTS.md:`npm install` installs dependencies.AGENTS.md:`npm run ui:dev` starts the Vite UI dev server;AGENTS.md:`npm run ui:build` builds UI assets.AGENTS.md:`npm run tauri:dev` runs the desktop app;AGENTS.md:`npm run tauri:build` builds production binaries.AGENTS.md:`npm run mcp` starts the MCP server;AGENTS.md:`npm run api:dev` runs the local API server.AGENTS.md:`npm run test` runs core/search/native Node tests;AGENTS.md:`npm run test:all` adds integration + Rust tests.AGENTS.md:Git hooks run `cargo fmt --check` via `scripts/pre-commit` (installed by `npm run prepare`).AGENTS.md:Node tests use `node --test` and live in `tests/**` or `src/ui/tests/`.AGENTS.md:Rust tests live under `crates/opencontext-core` and run with `cargo test`.AGENTS.md:PRs should include a concise description, testing notes (commands run), and UI screenshots/GIFs when UI changes occur.AGENTS.md:Windows builds must run on Windows or via CI (`npm run tauri:build:win`).AGENTS.md:If you are not sure which docs to read, run `oc search "<query>" --format json` to narrow down candidates.AGENTS.md:Then run `oc context manifest <folder> --limit 10` (or `oc context manifest .
Package scripts (1)
package.json(prepare):[ -d .git ] && ./scripts/setup-hooks.sh || true
- Low risk: scripts-present (scripts/setup-hooks.sh)
Attribution and licence
- First committed by
0xranx
- Declared authors
- AIContextLab (declared in package.json)
- Publisher
- GTLIN (Community)
- Source
- 0xranx/OpenContext · commit 0649e71
- Licence
- MIT License (files served here)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- 0xranx, wormuz, meichuanyi
AutoGineer is not affiliated with or endorsed by 0xranx.
Install from source
238 of its files are not served here, so there is no ZIP. 0xranx/OpenContext at 0649e71