Skip to content

context-travel — OpenAI Codex CLI

Use when a kit task needs a bounded, read-only lifecycle briefing, source explanation, or comparison of supplied validated views.

In practice

What it does

Taking over one kit task in Codex usually starts with re-reading the plan, the task list and the notes to learn where that task stands. This skill returns that picture as one bounded record instead: recorded status, acceptance text, what each selected source showed, and what could not be established. An operator-written config decides which files may be opened; the skill reads those and nothing else, and it leaves the kit, the worker routing and the verification rules untouched.

When to reach for it

  • You hold one task and want its criteria and recorded state without preloading the kit, a graph, or a transcript.
  • A view arrived from another surface and you want it explained, or two views compared.
  • Not without an operator-supplied absolute --config and an explicit repository, kit, checkout, task, assignment, role and question.
  • Not from a managed copy whose root is still a literal placeholder — the skill rejects it instead of guessing.
  • Not as task authority: a briefing neither assigns the work nor verifies that it is current.

Worked example

python3 "$POLYTROPOS_ROOT/bin/context_travel_cli.py" \
  --config /ABSOLUTE/CONFIG.json --format json brief < assignment.json > query.json

assignment.json holds one assignment object naming repository_id, checkout_id, revision, kit_path, task_id, assignment_id, assignment_role and question. One line comes back: an envelope with v, operation and data. Keep data — it is the view explain and changes take later. overview and capabilities complete the set.

Failure modes & fallbacks

What you see What to do
context travel query failed, exit status 2 Report the failure; it is never an empty success
The root is incomplete Run python3 bin/harness_select.py doctor --harness codex
A source state such as missing, forbidden or over-limit Keep the caveat with the result
No authorized config, or no local execution in this mode Say context is unavailable and continue the native kit workflow

An imported view must validate against the configured subject; one that cannot be validated is advisory data only.

Cost & safety

Read-only: it opens only the files the config selects, dispatches no worker and spends nothing. The plugin advertises skills, not an MCP server, so the stdio adapter needs separate, explicit configuration and authorization. Desktop support is not inferred from the CLI; each mode stays unknown until that client is checked.

  • execute — the driver that still owns dispatch, verification and acceptance.
  • route — may read a brief for scope; central policy still picks the worker.
  • doctor — the read-only diagnosis when the installed root looks wrong.
  • Context travel contract — record formats and bounds.

The skill card — what the model reads

This is the SKILL.md body the model reads, transformed for this page: the source's own leading title, if it had one, is removed; every remaining heading is demoted one level to nest under this section; and relative links are rewritten to site or GitHub URLs. ${CLAUDE_PLUGIN_ROOT} and {{POLYTROPOS_ROOT}} are install-time path variables, left intact exactly as the model sees them. The unmodified original is codex/skills/context-travel/SKILL.md.

Resolve POLYTROPOS_ROOT from this skill's location. In a managed copy use POLYTROPOS_ROOT="{{POLYTROPOS_ROOT}}"; reject a literal placeholder. Confirm bin/context_travel_cli.py, docs/CONTEXT-TRAVEL-SURFACES.md, and primitives/context-travel-surfaces.json exist. If the root is incomplete, use python3 bin/harness_select.py doctor --harness codex. Read the shared guide on demand for exact CT4 query arguments, the Codex desktop and CLI decisions, and fallback behavior. Do not preload graph or transcript content.

Use only an operator-supplied absolute --config and explicit repository, kit, checkout, task, assignment, role, and question. Run the existing local CLI only when that mode actually exposes execution. MCP stdio requires separate explicit configuration and authorization; this skills-only plugin does not register it. For an imported view, require validation against the configured subject. Treat unvalidated handoff data as advisory.

Retain missing, partial, stale, forbidden, refused, and critical caveats. A briefing does not grant task authority or verify freshness. Continue the native kit, routing, pricing, permission, and mandatory verification rules if this optional context is unavailable.