dchu917

dchu917 / ctx

Public

Local context manager for Claude Code and Codex with workstreams, transcript binding, and branching.

24
2
100% credibility
Found Apr 21, 2026 at 24 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

ctx is a local-first tool for managing persistent workstreams in conversations with AI coding assistants Claude Code and Codex, enabling users to start, resume, branch, search, and curate contexts without mixing conversation histories.

How It Works

1
🔍 Discover ctx

You hear about ctx, a handy helper that keeps your AI coding chats organized by saving conversations as neat workstreams.

2
📥 Set it up quickly

Download the project and run a simple setup command to get everything ready on your computer.

3
Start your first workstream

In your AI chat, type a command like /ctx start my-project to create a saved stream of your conversation and pull in the current context.

4
Continue or branch
🔄
Resume

Jump back into your saved chat and add new ideas seamlessly.

🌿
Branch

Make a copy of your stream to try new paths while keeping the original safe.

5
🔍 Search and tidy up

Search through your saved chats or use the curation tool to pin important parts and hide others.

6
🌐 Browse in your web browser

Open a local web page with ctx web to see all your workstreams, previews, and manage them easily.

🎉 Stay productive

Your AI coding sessions are now organized, resumable, and branchable, so you never lose track of great ideas.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 24 to 24 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is ctx?

Ctx is a Python CLI and local web UI for managing persistent context streams in Claude Code and Codex chats. It binds exact conversation transcripts to named workstreams, lets you resume sessions cleanly without drift, and supports git-like branching to fork contexts without mixing streams. Everything runs locally via SQLite—no APIs or cloud—with commands like `ctx start my-stream --pull`, `ctx resume`, `ctx branch`, `ctx search`, and `ctx curate` for pinning/excluding entries.

Why is it gaining traction?

Unlike generic chat loggers, ctx offers precise transcript binding, repo-aware scoping, and a curation UI to tweak what loads next, plus seamless Claude slash commands (`/ctx list`) and Codex skills. Developers hook it for local context compose in React or Kotlin flows, searching terms like ctx beta 800, ctx chemo, or local context memory mcp without vendor lock-in. The optional browser view for inspection and copy-paste packs seals the workflow.

Who should use this?

Claude/Codex users running multi-session code reviews, feature audits, or agentic dev loops where context spans days. Ideal for backend devs iterating prompts across repos, or AI workflow hackers needing branching for experiments like ctx vault github or lean ctx github setups.

Verdict

Grab it if you're deep in Claude/Codex—solid docs and install scripts make setup painless, despite 24 stars and 1.0% credibility signaling early maturity. MIT-licensed with uninstall.sh; test in a side project before committing.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.