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.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>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
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