Repository navigation
feat: redesign orbit context around purpose — startup / cruise blocks - #17
Merged
Merged
Conversation
zheng-weihao
force-pushed
the
feat/context-system-refactor
branch
from
July 21, 2026 12:21
cd6b70c to
121deb6
Compare
- purpose-scoped entries: --startup (session start, routes prime/reignite) / bare (cruise block, in-session recovery) / <key> (single value) - cruise block: cheap durables + conditional per-repo status (no memos, no fetch) - done gate per-repo; bufferSize (memo.minLines) replaces hardcoded jot threshold - add-time stderr carries explore scope; [seed] jot sentinel + gap model retired - hooks are thin wrappers over orbit context; stop.sh removed - opencode plugin: transform injects --startup; cache rebuilds use cruise block; session.compacted two-way injection; resume TODO blocked on anomalyco/opencode#5409 - spec-hooks.md is the hook behavior contract - P8: stdout carries machine-facing data by default, model-facing context for orbit context family - skill: actionable orbit stderr = procedure requirement; explore is conditional on session-accumulated context; config key names no longer leak into agent docs Signed-off-by: zheng-weihao <zheng-weihao@outlook.com>
zheng-weihao
force-pushed
the
feat/context-system-refactor
branch
from
July 21, 2026 12:43
121deb6 to
e4df461
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Redesigns
orbit contextas a purpose-scoped command family and moves every piece of hook logic into the CLI, so agents see a single consistent context channel across Claude, Codex, Qoder, and OpenCode.--startup(session-start block, routes internally to prime/reignite), bareorbit context(cruise block — in-session recovery),<key>(single value).session-start.sh/session-resume.shonly run oneorbit contextcommand and wrap its markdown in<orbit-context>tags. All cold/resume detection logic moved intoorbit.sh(bats-testable).stop.shremoved; its nudges are covered by add-time stderr + cruise block + done gate.[seed]jot sentinel and the gap model retired — replaced by inline computation on every read (add-time stderr, per-repo status, done gate), no durable placeholders.orbit:stderr as procedure requirements, not suggestions.--startup; cache rebuilds use the cruise block (never re-inject full memos);session.compactedinjects two-way (immediate prompt + cache update). Resume routing is blocked on anomalyco/opencode#5409 (SessionStart hook with startup/resume/compact sources); the skill is the documented fallback.docs/spec-hooks.mdis the new single home for the hook behavior contract (injection tiers,<orbit-context>tags, event routing matrix, auto-approve semantics).orbit contextfamily — session injection forwards them into model context.orbit:stderr is a procedure requirement; explore is conditional on session-accumulated context; config key names (explore.paths,jot.bufferSize,memo.maxLines) no longer leak into agent-facing docs.Test plan
make test— 203/203 greenbash -n orbit.sh hooks/*.sh hooks/codex/*.shsyntax OKnode --experimental-strip-types --check .opencode-plugin/plugin.tssyntax OK<orbit-context>tag wrapping, non-workspace silent no-opsession.compactedre-injects cruise blockNotes
orbit context status→state(single key);orbit statuscommand unchanged.context gapskey retired; per-repo status is the replacement.--prime/--reigniteremain as explicit routing targets for humans/debugging; the skill exposes only--startupand bare.