New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

oc-manager

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oc-manager

Terminal UI for inspecting OpenCode metadata stores.

latest
Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

OpenCode Metadata Manager

Terminal UI for inspecting, filtering, and pruning OpenCode metadata stored on disk. The app is written in TypeScript, runs on Bun, and renders with @opentui/react.

Screenshots

OpenCode Metadata Manager home screen showing projects and sessions
Main workspace with Projects (left) and Sessions (right) panels.

OpenCode Metadata Manager help overlay
Contextual help overlay with key bindings and tips.

Features

  • List both OpenCode projects and sessions from a local metadata root.
  • Filter by “missing only”, bulk-select, and delete metadata safely.
  • Jump from a project directly to its sessions and keep contextual filters.
  • Global search bar (/ to focus, Enter to apply, Esc or X to clear).
  • Rich help overlay with live key hints (? or H).
  • Zero-install via bunx so even CI shells can run it without cloning.

Requirements

  • Bun 1.1.0+ (developed/tested on 1.2.x).
  • A node-compatible terminal (truecolor improves readability but is optional).

Installation

# Clone the repo and install deps
git clone git@github.com:kcrommett/oc-manager.git
cd oc-manager
bun install

# Or run on demand without cloning
bunx oc-manager --help

The repository ships with a focused .gitignore, keeping node_modules/, caches, and logs out of Git history.

Usage

# Preferred: zero-install command
bunx oc-manager --root ~/.local/share/opencode

# Local dev run (forwards extra args after --)
bun run tui -- --root ~/.local/share/opencode

# Legacy Python wrapper (still used by some automation)
./manage_opencode_projects.py --root ~/.local/share/opencode -- --help

Keyboard reference:

  • Global: Tab/1/2 switch tabs, / search, X clear search, R reload, Q quit, ? help.
  • Projects: Space toggle selection, A select all, M missing-only filter, D delete, Enter jump to Sessions.
  • Sessions: Space select, S toggle updated/created sort, D delete, C clear project filter, Enter details.

Development Workflow

  • Install dependencies with bun install.
  • Run the TUI via bun run tui (pass storage flags after --).
  • Use bun run dev for watch mode.
  • Type-check with bun run typecheck (tsc --noEmit).

Project Structure

src/
  bin/opencode-manager.ts   # Bun-native CLI shim (binary name: oc-manager)
  opencode-tui.tsx          # Main TUI implementation (panels, search, help)
manage_opencode_projects.py # Legacy Python launcher for backwards compatibility
opencode-gen.sh             # Spec snapshot helper script
PROJECT-SUMMARY.md          # Extended design notes & roadmap

Packaging & Publish

  • bun install
  • bun run typecheck
  • Update version in package.json
  • npm publish (package exposes the oc-manager bin with public access)

Troubleshooting

  • tmux failures: Some sandboxed environments block tmux sockets under /tmp. Run bun run tui directly if tmux refuses to start.
  • Rendering glitches: OpenTUI expects all textual content inside <text> nodes. When adding UI components, follow the existing helpers (e.g., KeyChip, Bullet).
  • Search won’t clear: Press Esc while the search bar is focused, or hit X while in normal navigation.

Contributing

Issues and pull requests are welcome. Please include reproduction steps for metadata edge cases and run bun run typecheck before submitting patches.

License

MIT © OpenCode contributors. See LICENSE.

Keywords

tui

FAQs

Package last updated on 20 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts