contextboss
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Master the context window, don't fight it.
contextboss
Agents are replaceable. Context is persistent.
Save persistent chat context and coding checkpoints through MCP.
Use ContextBoss directly in ChatGPT, Claude, Gemini, Codex, or Claude Code—no browser extension required.
Claude Code ·
Codex ·
ChatGPT ·
Gemini ·
MCP
ContextBoss ecosystem
| Surface | Best for | Connection |
|---|---|---|
| Web MCP plugin | Persistent chat memories, packs, and primes in ChatGPT, Claude, or Gemini | https://contextboss.vercel.app/web/mcp |
| Chrome extension | Clickable Library controls and full browser-chat extraction | Load extension/dist; use the same library key as Web MCP |
| Terminal MCP | Coding-agent checkpoints and handoffs in Claude Code or Codex | https://contextboss.vercel.app/terminal/mcp |
The Web MCP plugin works alone. Installing the extension adds visual controls
and browser-only full-chat packing; the terminal MCP is a separate workflow
for repository-aware coding sessions.
Web MCP plugin
Connect your chat client to the HTTP MCP endpoint:
https://contextboss.vercel.app/web/mcp
ContextBoss works as a chat-command workflow: mention it in a message, and the
model calls the MCP tools. A Chrome extension is optional; when installed with
the same library key, it shows these memories in a visual Library where users
can pin, edit, archive, restore, or delete them. For example:
@ContextBoss create my library and show me its library key.
@ContextBoss pin this: use SQLite for the local cache. Use library key cb_...
@ContextBoss show my saved context.
@ContextBoss pin <memory ID> with priority 5.
@ContextBoss delete <memory ID>.
@ContextBoss pack this conversation, then prime the latest pack in my next chat.
When asked to show or search context, ContextBoss returns a list with stable
memory IDs, scope, priority, and status. Use those IDs—or unambiguous text—to
pin, edit, archive, restore, deactivate, or permanently delete a memory. The
library key is an anonymous, unguessable identifier rather than an account:
keep it private and provide the same key on later chats and in the extension.
Chrome extension
Build and load extension/dist as an unpacked extension in Chrome. Open
ContextBoss → Library, choose Create library (or paste an existing
library key), and use that same key with the MCP plugin. The side panel then
shows the same hosted memories and provides clickable pin, edit, archive,
restore, and delete controls. Pack Whole Chat keeps its existing local
pack, while also mirroring the full browser-extracted transcript and handoff
summary to the hosted library. Prime keeps its local history and mirrors
the briefing as a saved pack, so Web MCP can load it later.
cd extension && npm install && npm run build
For local stdio development, register contextboss-library-mcp in any MCP client:
{
"mcpServers": {
"contextboss-library": { "command": "contextboss-library-mcp", "args": [] }
}
}
The Web MCP server exposes search_memories, pin_memory, update_memory, delete_memory, list_memories, get_project_context, get_recent_sessions, assemble_context, pack_context, prime_context, list_packs, and delete_pack. A pack stores a self-contained handoff summary and can retain a full transcript from the extension; prime returns the selected pack plus relevant active memories.
Local development uses ~/.contextboss/context.db by default; set CONTEXTBOSS_DB to use another absolute path. Deleting a library memory removes its searchable record and version history. The original chat stays on its platform.
Terminal MCP
Start the Streamable HTTP MCP endpoint from the ContextBoss repository.
python -m pip install -e .\terminal
contextboss-mcp --transport http
From your coding project in a second terminal, connect Claude Code.
claude mcp add --transport http contextboss http://127.0.0.1:8766/mcp
In the old conversation, say ?Use ContextBoss to pack this conversation.?
In a fresh session, say ?Use ContextBoss to prime the latest snapshot.?
Claude calls the MCP tools to save or load your checkpoint. The same endpoint
supports Codex, and the shell CLI can render a briefing for a manual handoff.
Pin instructions and decisions at project, session, or global scope. Ask
ContextBoss to resume the workstream after compaction, or to search, update,
inspect, and unpin saved context.
Terminal setup and private hosting
Hosted terminal endpoint
https://contextboss.vercel.app/terminal/mcp runs the terminal server as a
Vercel Python Function. Connect Claude Code:
claude mcp add --transport http contextboss https://contextboss.vercel.app/terminal/mcp
The web endpoint has no account or OAuth flow. Instead, an unguessable library
key separates each library; anyone who obtains that key can access its data, so
do not share it or save secrets. The terminal endpoint remains public and is
not per-user isolated. These hosted routes are appropriate for demos and
testing until durable storage is added.
Vercel's filesystem is ephemeral outside /tmp, so the hosted SQLite database
(CONTEXTBOSS_DB=/tmp/contextboss.db) can be wiped on a cold start or when
Vercel scales to a new instance. For context that must survive reliably across
requests, add authenticated durable storage before treating this as production.
Python context assembler
| Tier | Role | Treatment |
|---|---|---|
system |
Who the model is | Pinned. Raises ContextOverflowError if it alone can't fit |
task |
What to do now | Pinned. Truncated as a last resort |
memory |
Facts and history | Ranked by relevance x importance x recency |
retrieval |
Docs and chunks | Ranked by relevance |
tools |
Function schemas | Full schema, then compact form, never half a schema |
- Budget. Output tokens are reserved first. The rest is split across memory, retrieval and
tools by weight, with a cap per tier. Unused share flows to tiers that need it. - Prioritize. Higher priority goes first inside a tier. Output order is always
system > task > memory > retrieval > tools. - Degrade. What doesn't fit gets compacted or summarized, then dropped. Plug in any
(text, max_tokens) -> strassummarizer=to use an LLM. - Spill. Leftover tokens go back to dropped items. Nothing is wasted.
- Verify. Count with
tiktokenwhen installed or use the built-in estimate. Check
that the assembled result fits the budget.
Every decision lands in ctx.decisions: included, compacted, summarized or dropped, with tokens
and the reason. No black box.
from contextboss import BudgetPolicy, Tier
policy = BudgetPolicy(
weights={Tier.MEMORY: 0.2, Tier.RETRIEVAL: 0.7, Tier.TOOLS: 0.1},
caps={Tier.MEMORY: 0.4, Tier.RETRIEVAL: 0.9, Tier.TOOLS: 0.3},
)
asm = ContextAssembler(budget=16000, policy=policy)
Persistent context
ContextManager adds durable storage: namespaces, tags, provenance, pinned flags and full
version history in SQLite (WAL + FTS5). Deletion is real: entry, index rows and history.
from contextboss import ContextManager
mgr = ContextManager("context.db") # or ":memory:"
mgr.add("Staging deploys freeze on Fridays", tags=["deploy"], provenance="slack:#eng")
mgr.add("User is on the Pro plan since Oct 2", pinned=True, importance=2.0)
ctx = mgr.assemble("deploy freeze", system="You are a careful support engineer.",
task="Why did the Friday deploy fail?", budget=8000)
mgr.compact(entry_id, target_tokens=100) # shrink, keep history
mgr.delete(entry_id) # gone for good
More in docs/ARCHITECTURE.md and docs/benchmarks.md.
extension/ browser extension for chat handoffs and the Context Library
mcp/ Context Library MCP server (chat-command memory workflows)
terminal/ snapshot and pin engine, terminal MCP endpoint, and CLI
api/mcp.py Vercel entrypoint: landing page, /web/mcp, and /terminal/mcp
index.html public landing page (deployed to contextboss.vercel.app)
assets/ landing page images and logos
bench/ terminal-core benchmarks
docs/ images, assets, benchmarks, capsules design notes
Dev
python -m pip install -e "./terminal[dev]" -e "./mcp[test]"
python -m pytest terminal/tests mcp/tests bench
cd extension && npm test && npm run build # extension
MIT
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi