opencode-context

command
v0.206.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command opencode-context is a read-only context instrument for opencode. It copies opencode's session database (plus its -wal and -shm) to a temp dir, reads the copy and reports, per session and agent: first-call prompt tokens, per-call prompt / cached / output / reasoning tokens, the prefix-cache read ratio, what made the context grow between calls, compaction events and time to first token. The measurement contract lives in internal/occontext; docs: docs/systems/opencode-integration.md.

go run ./cmd/opencode-context --last 5 --cache-valid-since 2026-09-22T17:31:00Z --cache-block 1568

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL