Skip to content

About

Agent Skills for Codex Desktop and Claude Code, plus a Codex CLI harness. Jev-assisted context selection. / Codex Desktop・Claude Code向けAgent SkillsとCodex CLI用ハーネス。Jevでコンテキストを選別。

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Astra + Jev: Codex and Claude Code Agent Skills

日本語 · Version 0.7.3 · Tagged releases · Changelog

This repository provides the astra-jev-coding Codex Agent Skill for Codex Desktop and a separate harness for Codex CLI. Install the Skill to use Jev for context selection while the current Desktop conversation implements the task; the CLI workflow runs Codex separately. A separate claude-jev-coding Skill for Claude Code applies the same context selection to the current Claude Code session.

Narrow large repositories locally, let Jev judge the bounded candidates, then let your coding model write the code.

Astra + Jev architecture: the Harness prepares candidate files, Jev assesses relevance while retaining uncertain context and dependencies, and Astra implements and tests the change.

The Go architecture introduced in v0.7.0 also applies to v0.7.3. This concept illustration shows the Codex Desktop workflow; it is not a cost or speed benchmark.

A local coding harness for Codex CLI, Codex Desktop and Claude Code. Give it a task such as “fix pagination without changing the public API”; it snapshots eligible files, locally narrows oversized repositories, asks Jev which candidates the coding model needs, preserves dependencies, and records what was kept and why.

Goal: reduce Astra token consumption and combined inference cost while preserving coding correctness and avoiding extra turnaround time. File selection is a means to that goal. The Claude Code Skill extends the same goal to Claude; its savings are not yet measured.

Experimental. In a historical v0.3.0 comparison, one synthetic CLI coding task at Astra Extra High (xhigh) used 27.0% fewer Astra input tokens and 27.2% less at equivalent Standard API rates, including Jev. Both modes passed the same six checks. Elapsed time was 7.3% shorter in this pair, but 34.6% longer in a separate medium pair. Each is one trial per mode, not a general speedup or Desktop result. Measurements and limits.

v0.7.3: pin Jev 1.14 across the native workflows

The shared Go runtime moves new Jev work from jev-1.13.0 to jev-1.14.0 for Codex Desktop, Codex CLI and Claude Code, including evidence and optional progress-log selection. It uses a fixed model ID, not jev-latest or jev-preview; an alias change cannot silently switch these requests. The coding model and its settings are unchanged.

Area v0.7.3 behavior
Model update Use the fixed 1.14 model while retaining conservative selection thresholds, uncertainty/dependency retention and existing input/request limits.
Cache and saved judgments The model remains part of the full-request cache key. Old 1.13 judgments stay identified as 1.13; they are not relabeled or reused as 1.14 judgments. No bulk cache deletion is needed.
Host guidance Update both installed Skills and the separate CLI guide together. All three use the same native executable; CLI has no separate installable Skill in this repository.
Failure and reporting Preserve Jev-unverified local continuation, no automatic retries, internal recovery receipts and usage reporting only when explicitly requested.

As of 2026-10-17, TypeSafe lists the same $0.042 per million input tokens, free output, 64k per-request and 32k per-question standard limits for 1.13 and 1.14. TypeSafe reports multilingual improvements in 1.14; this is a vendor claim, not a measured improvement in Harness coding quality, speed or total cost. Local candidate matching still does not translate Japanese tasks: add reviewed paths/identifiers or --focus-file where needed. This patch does not add semantic exploration, image input, box, long-context mode, recurring benchmarks or automatic model comparisons. Official models · 1.14 announcement.

For an upgrade, preserve local changes and failed run records, update the checkout to v0.7.3, and replace bin/astra-jev with the checksum-verified matching release executable, or build once from that checkout. Existing Skill symlinks then load the updated guidance. Create a fresh plan and new output directories for new 1.14 work; checking old results still checks their original judgments and source freshness, not a new 1.14 evaluation. Keep saved artifacts outside Git.

For rollback, use the v0.7.2 executable with its matching checkout/resources, preserve failed artifacts, and create a fresh plan and new outputs. If using a separate installation directory, verify and repoint only the Skill symlinks belonging to this installation; the installer refuses to overwrite another Skill. Keep credentials and user model settings intact. Native installation · Desktop guide · Claude guide · CLI guide.

Validation for this patch: native Go tests with race detection and the Python compatibility oracle passed, as did the 200-test retained Python suite. A bounded live check with the new executable received jev-1.14.0 responses and retained the required implementation, configuration and test files in English/Japanese synthetic tasks; source-freshness checks also passed. This verifies connectivity and those fixtures, not general coding accuracy or a speed/cost improvement.

v0.7.2: continue authorized work when Jev is unavailable

Jev planning or authentication failures previously led the Skills back to planning even when local implementation was already authorized. Desktop and Claude Code now state that Jev selection is unverified and continue investigation, implementation and tests within the existing scope. A user-selected no-Jev workflow persists across in-scope follow-ups without repeated approval. When a successful Jev judgment is itself an acceptance requirement, that requirement remains incomplete.

Situation Updated workflow
Required dependencies exceed the planning budget Keep the required files and use bounded native reads. Do not shrink the task silently or repeatedly increase request caps.
Credentials are unavailable or a Jev request fails Stop the affected operation, preserve failure receipts, and continue authorized work without automatic retries or authentication resets.
A fresh plan covers the task Desktop uses the direct helper's local select/check/read; Claude uses its installed wrapper. Local results remain unjudged, and present still requires Jev.
CLI generation is already authorized without Jev Use run --mode astra with a sufficient CLI plan and a new run directory. It still calls Codex; it is not offline and does not bypass verify/apply.
Routine progress and completion replies Claude now follows Desktop's request-only usage reporting. Report changes, verification and actionable blockers without extra accounting calls or benchmarks.

This release changes Skills, guides and packaging; the selection and generation runtime behavior is unchanged. Existing freshness, host, secret/path and request-limit checks remain enforced. The archives include the updated Skills, English/Japanese guides, WebP concept illustrations, Japanese CLI README and security policy. No new coding-quality, token, cost or speed improvement is claimed as measured.

To update an installed clone, fast-forward it to the release commit and replace bin/astra-jev with the checksum-verified executable for your platform, or build once from that commit. Existing Skill symlinks then read the updated files. For an archive installation, extract into a permanent directory. If moving from an older directory, verify your Skill link points to that old installation before replacing only that link; the installer intentionally refuses to overwrite another Skill. Reinstalling does not copy credentials or change models. Native installation · Desktop continuation · Claude continuation · CLI continuation.

v0.7.1: remove routine Jev usage reporting

The Desktop Skill no longer requires every progress or final reply to include Jev request counts, tokens, cache-reuse totals, cost summaries, or output-byte statistics. Replies focus on the implemented change, validation, and actionable blockers. This also removes the separate accounting instructions from optional progress-log selection and evidence reuse.

Internal receipts, request caps, cache validation, failure recovery, and the explicitly invoked measure command remain available. Accounting is shown from saved records only when the user explicitly requests it; reporting never triggers extra API calls, benchmarks, or comparisons. This patch changes Skill guidance and release metadata, not the runtime selection or provider behavior. No new performance or cost-saving claim is made.

v0.7.0: a Go runtime without Python

The regular Harness, both Skill launchers and installer now use the compiled bin/astra-jev executable. Python is no longer a Harness runtime dependency. Go and a C compiler are needed only when building from source; platform archives contain the executable and Skill resources. Your project's own test command may still require its language runtime.

Area v0.6.0 v0.7.0
Startup and installation Python interpreter and Python scripts One native executable, built once or extracted from a platform archive
Desktop / Claude Code Python plan/select/check/read helpers Go plan/select/check/read/present/discover/compare with the same host boundaries
CLI Python candidate generation and apply Go candidate generation, verification recovery and explicit apply with rollback
Context integrity Python snapshots, source/receipt hashes and dependency closure Native path/symlink/secret guards, freshness, JSON hashes, request caps and cache validation
Source languages Python and JS/TS dependency discovery Tree-sitter Python extraction, existing JS/TS resolution, plus Go package/module dependencies
Auxiliary operations Python evidence, progress output, usage receipts Native evidence/output/measure commands; output executes the wrapped command once
Normal coding overhead Optional comparison commands No benchmark, repeated timing, model A/B, automatic compilation or extra provider requests added

Correctness comes from preserving request contents, cache keys, uncertain-context retention and failure handling, then checking them locally against the existing implementation. Parser uncertainty retains Python context. Protected tests/instructions, explicit creation grants, verified-candidate hashes and rollback remain enforced. An unrecognized cost/usage field stays unknown. measure only reads receipts when explicitly requested; it is not a background measurement service.

The expected operational benefit is removal of interpreter setup and repeated Python startup. This release does not claim a measured reduction in coding tokens, total provider cost or end-to-end coding time. The migration checks use synthetic repositories and local fake providers; they do not run live model comparisons. Historical benchmark results below retain their original version labels.

The .py implementation and synthetic Python benchmarks remain in the source repository as development/compatibility references. They are excluded from native platform archives, and neither native commands nor the installed .sh Skill launchers execute them. The small astra-jev-core remains a separate offline development tool. Migration, compatibility and build details.

v0.6.0: bounded source views, staged discovery and auxiliary usage accounting

This release improves how the coding conversation reads retained context, finds files outside the first shortlist, and accounts for auxiliary Jev usage. The new present and discover commands work in Codex Desktop and Claude Code; measure.py also supports CLI workflow accounting.

Inspired by jevgrep, we implemented bounded source views in shared/context_view.py and staged discovery in shared/host_context.py. These are working Python changes with regression tests; no jevgrep source was copied or dependency added. Automatic semantic exploration and syntax-aware selection remain future work. Adoption scope.

Area Before v0.6.0
First view of retained files Read individual ranges after selecting; full sources remain in context.json present returns an ordered page of original source with hashes, line numbers, missing ranges and an explicit output-byte cap
Files outside the first shortlist Scoped-out paths were recorded, but required manual investigation discover exposes paginated directories, then short original previews, leading to a fresh focused plan
Progress-log selection usage Its report.json stored calls, which the shared measurement reader did not include Recognized version-1 tool-output receipts contribute known usage alongside CLI/evidence records, with missing usage left unknown

Read less at a time without discarding retained sources

After a successful Jev select and check, ask for an initial page:

python3 "Codex Desktop/skills/astra-jev-coding/scripts/context.py" present \
  --selection /absolute/selection --max-bytes 8192 --lines-per-file 12

The limit applies to the entire JSON response, including metadata and the final newline (1,024–24,000 bytes; default 8,192). Repository instructions come first, then focus paths, then saved relevance scores. Text is copied from the checked snapshot, never generated by Jev. Full retained files remain available; unpresented_ranges tells you which lines are missing, next_offset points to another file page, and read retrieves specific ranges. Long lines that cannot fit become explicit reading leads. present requires valid live or cached Jev judgments and checks freshness and host identity; it adds no provider call.

Find files beyond the first shortlist

python3 "Codex Desktop/skills/astra-jev-coding/scripts/context.py" discover \
  --plan /absolute/plan
# Use an exact directory returned by the index:
python3 "Codex Desktop/skills/astra-jev-coding/scripts/context.py" discover \
  --plan /absolute/plan --directory src/another-component

The directory index and previews are paginated so multiple plausible branches remain available. These files are unjudged, not classified as irrelevant or approved for edits. Preserve existing --focus-file and --include-file arguments, add discovered focus paths to a new plan, review its request budget, then run normal select → check. Discovery does not automatically call Jev or retry failed requests. Excluded secrets and unsupported files stay excluded. This is operator-guided discovery; it is not automatic semantic search or a guarantee of finding every needed file. For Claude Code, use Claude Code/context.py with that host's own plans and selections. Commands and boundaries.

Account for the Jev work around coding

Pass related tool-output report.json files through repeated --candidate or --baseline flags to measure.py, alongside the corresponding coding/evidence receipts. The reader recognizes receipt families, sums known usage and recorded durations, and reports missing usage separately. Duplicate artifact paths count once; separate live calls with the same request hash still count separately; cached historical usage is not billed again in the report. Auxiliary receipts alone cannot establish the wrapped command's or Desktop conversation's complete usage. Exact-model prices remain optional estimates, not invoices. Accounting details.

What was verified—and what remains unmeasured

199 offline tests passed, including output-byte limits, verbatim Unicode/CRLF excerpts, long-line handling, pagination, discovery/replanning with focus preservation, stale/tampered artifacts, wrong-host rejection, Jev-required guards and usage/cache failure cases.

During implementation, 12 live Jev attempts completed (83,571 input / 813 output tokens), with zero cache reuses. All 37 candidates were retained. A local historical replay of that selection kept all 267,517 source bytes while the first presentation page returned 5,750 JSON bytes, including 3,459 source bytes across seven files. Replay made zero additional API calls. These are selection and presentation observations: Astra tokens, combined cost savings, rereads, coding quality and end-to-end speed improvements remain unmeasured. The older v0.3.0 benchmark below is not a v0.6.0 result. Implementation evidence.

Historical v0.6.0 instructions (use the v0.7.0 steps below for the current runtime): update your clone to that tag while preserving local changes, then use python3 install.py --check (or --target claude-code) to inspect its Skill link. Existing source entrypoints, saved receipt formats, selection policy and workflow separation remain supported. Python 3.10+ was required for v0.6.0; the bundled-Python distribution proposal is not implemented in this release. Shared task budgets, automatic retries, syntax-aware selection and new batch/cache defaults are also not included.

v0.5.1: require Jev judgments in the Desktop Skill

Fix a workflow where invoking astra-jev-coding could still finish context selection with --mode local and no Jev judgment. The Skill entrypoint now requires validated Jev judgments for select, check, and read. Local or small-context auto skips fail before credentials or transmission; previously saved local handoffs are also rejected. Matching cached judgments remain valid and are recorded separately from new API calls. Direct native helpers retain explicit baseline modes; Claude Code defaults and optional progress-log selection are unchanged.

Validation: 183 offline tests passed. An installed-Skill check on a synthetic three-file repository completed plan/select/check/read with one Jev call (960 input / 55 output tokens); reusing the same judgments required zero additional API calls. This release fixes execution correctness and makes no new token or cost-saving claim. Upgrade details · Changelog.

v0.5.0: optional progress-log selection

The Desktop Skill now includes an explicit command wrapper: archive original stdout outside Git, ask Jev about fully visible progress chunks, and return verbatim retained lines with a recovery path. Diagnostics, required literals and uncertain/unjudged chunks stay; failures restore the original output. Normal Codex CLI sessions can invoke the same wrapper. It does not automatically intercept tools, compact history, or change the coding model.

One synthetic log check reduced returned stdout from 19,885 to 7,601 bytes (61.8%), including omission markers and the archive footer, while retaining 5/5 required facts and a byte-exact original. Jev made 2 calls: 7,172 input / 195 output tokens. This is not an Astra token, cost or completed-coding-task speedup measurement. Usage and boundaries · Measured aggregate.

Codex CLI model settings

The CLI harness now forwards the configured model and model_reasoning_effort, rather than forcing Astra/Medium. Desktop and Claude Code harnesses continue using their active sessions. Only model settings are forwarded; generation isolation remains. Missing settings use Codex defaults. Custom providers and profile selection are not supported. Requested settings are recorded separately from unknown serving-model identity; no new token or cost saving is claimed. Details and limits.

v0.4.0: Claude Code Skill

Claude Code/ adds a claude-jev-coding Skill and a thin helper over the same host-neutral selection core as Desktop (shared/host_context.py). Claude Code writes the code; Jev only judges file relevance. The helper never starts Codex or Astra. Its artifacts record surface claude-code and are rejected by the Desktop and CLI helpers, and the reverse also holds. This is an adaptation, not a measured Claude Code token or cost reduction. The historical Codex measurements below are unchanged and do not establish Claude Code savings.

v0.3.1: explicit workflow directories

The implementation directories are now Codex Desktop/ and Codex cli/. Quote paths with spaces in shell commands. After updating an existing clone, rerun python3 install.py to migrate this clone's old Desktop Skill symlink. Other installed Skills are preserved. Root compatibility scripts and Python imports remain available. This packaging update makes no new token or cost claim.

What improved in v0.3.0?

Area v0.2.0 v0.3.0
Eligible files larger than 22 KB Retained without a Jev judgment Every range is judged within a request budget; uncertainty or missing coverage retains the whole file
Desktop handoff Skill reads the full selected context Skill selects before loading implementation bodies, then reads needed line ranges
Small Desktop tasks select always uses Jev when there are judgeable files Native helper supports --mode auto: below 12,000 source bytes, retain candidates with zero Jev calls; command default remains jev. The Jev launcher requires judgments; local continuation uses the separate path described below
Usage and cost Provider token totals; no price estimate Separate ordinary input, cache reads/writes and unknowns; optional exact-model price estimates

These changes apply to the Codex Desktop Skill; complete-range selection and accounting also support CLI. Existing plans keep their replay behavior. Exact-request Jev response reuse already existed in v0.1.0 and is not a new v0.3.0 saving. Upgrade details · Changelog.

Evidence-aware coding (experimental)

Select original evaluation excerpts with source hashes and line numbers, retain pinned failure/budget records, reuse identical Jev requests, and compare saved run usage. Both CLI and Desktop accept the resulting evidence packet. Commands and limits.

Pick your workflow

Codex CLI Codex Desktop app Claude Code
Who writes code? A separate Codex CLI process using its configured model and reasoning effort The model in your current conversation; select Astra for the Astra workflow The current Claude Code session, with its own model and effort
What does Jev do? Selects context before generation Selects files for the current conversation to read Selects files for the current session to read
Workflow plan → run → verify → apply plan → select → check → implement/validate as appropriate in the conversation Same as Desktop
Target writes Explicit apply after verification Your normal Desktop editing tools Claude Code's normal tools and permission prompts
Entrypoint bin/astra-jev cli bin/astra-jev desktop or the Skill bin/astra-jev claude-code or /claude-jev-coding

Desktop and Claude Code do not spawn another coding agent to generate code. No workflow registers Jev as a model in a host's model menu.

Start here

Requires Git, the native executable for your OS/CPU, and your chosen host (Codex or Claude Code). No Python or Go installation is needed with a platform archive. Source builds require Go 1.26+ and a C compiler for the linked Tree-sitter parser. Published archives target macOS arm64 and Linux amd64; other OS/CPU combinations need their own build and verification. CLI generation uses your own configured Codex account and requires a working codex sandbox; its flags remain version-sensitive. Live Jev selection requires your own TypeSafe key.

git clone https://github.com/Oranquelui/astra-jev-harness.git
cd astra-jev-harness
scripts/build-native.sh
bin/astra-jev --help

Use your own credentials:

# Replace the placeholder locally, or supply it through your secret manager.
export TYPESAFE_API_KEY="YOUR_OWN_TYPESAFE_API_KEY"

# CLI generation only: log in to your own account if needed.
codex login
bin/astra-jev cli doctor

No maintainer API key, Codex login, session cookie, or authentication file is included. Never commit a real key. doctor reports availability, not the value; it does not call an API. Existing environment values take precedence. On macOS, an already-configured login Keychain item with service astra-jev-harness and account TYPESAFE_API_KEY can be used instead. The installer does not create that item or share anyone else's account.

Codex Desktop

bin/astra-jev install --check
bin/astra-jev install

This links only the Desktop Skill into $CODEX_HOME/skills (default ~/.codex/skills). It refuses to overwrite a different existing Skill, changes no Codex model settings, and does not read or copy your login. Keep this clone in place. To uninstall, remove only the astra-jev-coding symlink created by the installer. If it is not visible yet, start a new Codex task.

Open the target repository in Codex Desktop and ask:

$astra-jev-coding Fix this task with Astra + Jev in the current checkout.

The Skill uses your task and repository instructions, reviews the files to send, selects context, checks freshness, and continues implementation in that conversation. If the Desktop process cannot see your shell environment, use the helper from a terminal with the key configured or the optional Keychain lookup; export in a separate terminal does not change an already-running app's environment.

The Desktop Skill uses Jev by default. Its Jev launcher still enforces --require-jev on select, check, and read, and accepts valid cached judgments. Jev is not a prerequisite for all authorized development: a user-chosen local workflow or a blocked Jev step can continue locally after a clear “Jev selection unverified” notice. Keep the user's choice for the current task and in-scope follow-ups without asking again. If Jev success is an explicit acceptance condition, keep that item incomplete while continuing independent local work. Routine replies focus on changes and verification; usage is shown only when requested.

Development selection and the product runtime's paid-model calls have separate scopes; an external-call ban still applies. With a fresh, sufficient plan, use direct bin/astra-jev desktop select --mode local, followed by direct check and read. If required dependencies exceed the planning budget or needed files are scoped out, use bounded native file reads in the exact checkout; local selection cannot fix a missing or incomplete plan. Keep caps, secrets, freshness, failure receipts and the no-automatic-retry rule. Do not remove required focus paths or rewrite failed selections as successful. Local continuation guide · Desktop details.

Claude Code

bin/astra-jev install --target claude-code --check
bin/astra-jev install --target claude-code
~/.claude/skills/claude-jev-coding/scripts/context.sh doctor

This links only claude-jev-coding into ~/.claude/skills. For project scope, add --skills-dir "/absolute/project/.claude/skills". The installer applies the same no-overwrite and no-credential rules as the Desktop install and is idempotent. doctor reports "surface": "claude-code" and key availability without printing the key. Use your own TypeSafe key, from the environment or the same optional Keychain item. In the target repository, ask Claude Code for a Jev-selected change, or invoke the Skill explicitly with /claude-jev-coding <task>. The Skill does not pre-approve tools, change the model or effort, or fork context. Claude Code details.

Claude Code also continues authorized work when Jev is unavailable or the user chooses no Jev. Its installed wrapper directly supports select --mode local → check → read with a sufficient plan; use bounded native reads when required files cannot fit. Keep the task's choice without repeated approval, preserve failed receipts, and report usage only on request. Local continuation.

Locally verified on 2026-09-24 with Claude Code 2.1.281: Skill discovery and invocation, then plan/select/check/bounded read, native editing and three passing fixture tests. This acceptance check used --mode local (zero Jev calls); it is not a live-Jev or token-savings benchmark. The full offline harness suite passed 141 tests at that stage.

CLI: your own repository

Plan and run directories must be new and outside the target repository. Write the exact task in /absolute/task.txt, review PLAN.md, and supply your project's own test command.

bin/astra-jev cli plan --repo /absolute/target/repo \
  --task-file /absolute/task.txt --out /absolute/plan
# Provider calls occur only in this explicitly requested run.
bin/astra-jev cli run --plan /absolute/plan --out /absolute/run --mode jev \
  --verify-json '["go", "test", "./..."]'
# Review the saved diff and verification before applying.
bin/astra-jev cli apply --run /absolute/run

run writes an isolated candidate. apply accepts verified, unchanged artifacts and leaves edits uncommitted. verify --run ... reruns the recorded test command without another model call. New files and existing test edits need explicit plan flags: --allow-create and --allow-test-edit. CLI details.

For an already-authorized CLI generation without Jev, use run --mode astra with a fresh, sufficient CLI plan and a new run directory. This still calls Codex and is not offline. A missing/incomplete plan, a Codex failure or a ban on all external calls cannot be solved by that flag. Continue permitted work in the existing coding session without spawning a replacement agent; preserve failures and verify/apply safeguards. Continuation conditions.

What it does

On the Jev path, select before loading bodies into the conversation, then use read --selection /absolute/selection --path src/main.py --start-line 1 --end-line 80. For local continuation, use direct select --mode local with a sufficient plan, or bounded native reads when planning is blocked. These results remain Jev-unverified. present requires valid Jev judgments even through the direct helper. Explicit mode comparisons can use --mode auto, which may call Jev above 12,000 source bytes and is not an offline guarantee. Behavior and limits.

  • Bounded selection. Complete eligible sources are split into bounded ranges and grouped with their questions into requests. Uncertain judgments preserve context. Resolvable Python/relative JavaScript dependencies, configuration, and repository instructions are retained.
  • Visible decisions. Source-range probabilities, per-file retention reasons, incomplete judgments, and before/after source bytes are recorded. Relevance is not a security verdict.
  • Local policy comparison. Replay saved judgments with no API call. Independently identified required-file labels can include paths in the plan or scoped_out, exposing local-scope misses separately from Jev-selection misses; without labels, recall is unknown.
  • Freshness checks. Desktop checks the plan and selected content against repository HEAD, branch, status, file contents, and modes. A historical comparison does not authorize using stale context.
  • Scoped edits. CLI verifies a candidate in Codex's read-only sandbox, checks its integrity, then applies permitted edits with collision checks and recovery records.
  • Explicit failures. No automatic service retries. CLI checks the serialized worst-case Astra prompt against its 500,000-byte limit before any Jev call. Desktop records attempted and completed requests and refuses to reuse an output directory. Failed requests may still be billable.
# Direct helper: an explicitly requested auto-mode comparison, not the Skill entrypoint.
bin/astra-jev desktop plan --repo /absolute/repo \
  --task-file /absolute/task.txt --out /absolute/plan
bin/astra-jev desktop select --plan /absolute/plan \
  --out /absolute/selection --max-calls 4 --mode auto
bin/astra-jev desktop check --selection /absolute/selection
bin/astra-jev desktop compare --selection /absolute/selection \
  --required-file src/main.py

The default batch policy retains an entire batch when any judgment is uncertain. The experimental select --policy per-file retains uncertain/unjudged files while omitting confidently irrelevant siblings. Dependencies and the global no-match fallback still apply. Compare before changing policy; fewer bytes alone do not establish correctness.

Larger repositories

When eligible files exceed 2,000,000 bytes, 1,500 files, or the planned request budget, plan first builds a deterministic, task-aware lexical shortlist locally, before any Jev request. Desktop's scoped plan is capped at 2,000,000 bytes. CLI uses a tighter 350,000-byte scoped cap to leave room under its separate 500,000-byte Astra prompt limit. Plans within all three bounds retain the full candidate set. Full file contents are retained within the shortlist; files are not silently truncated.

Use repeated --focus-file paths for eligible files you know the task needs. --scope-max-calls caps the planned Jev requests for the candidate scope (default 4, range 1–24); the later select --max-calls execution cap remains separate. Untracked files still require --include-file. A focus path cannot bypass eligibility or the 100 KB per-file limit.

bin/astra-jev desktop plan --repo /absolute/repo \
  --task-file /absolute/task.txt --out /absolute/plan \
  --focus-file src/pagination.py --focus-file tests/test_pagination.py \
  --scope-max-calls 4

The same two planning flags are available in "Codex cli/main.py" plan. Review PLAN.md before sending code: it reports the original eligible count/bytes, the scoped-out paths/bytes, and planned Jev calls. plan.json stores the totals under scope and omitted eligible file metadata under scoped_out. These files were not judged by Jev; they differ from protected/ineligible excluded files and Jev-rejected files. Instructions, key configuration, and resolvable dependencies remain in scope. The lexical stage does not translate: a Japanese-only task without an ASCII path or identifier may need --focus-file. If no task/file match is found and no required path is supplied, clarify the task or known focus path. If mandatory files cannot fit, planning stops; use the host-specific continuation guidance above rather than dropping required files or repeatedly raising caps. Required-file recall and Astra token effects remain unknown until independently measured. Design and official TypeSafe references.

How much does it save?

In one small CLI experiment, Astra input tokens fell 27.0% and the combined API-rate cost estimate fell 27.2%, including Jev. We do not yet have a measured whole-task saving for Codex Desktop or Claude Code. The CLI result is from v0.3.0, not a new v0.5.1 benchmark or a promised saving for your project.

What is verified in the current release?

v0.5.1 fixes the Desktop Skill's execution path: invoking it requires valid Jev judgments, including exact-request cache reuse. A synthetic installed-Skill check completed with 1 live Jev call (960 input / 55 output tokens); repeating the same selection reused the judgments with 0 additional API calls. This verifies Jev integration and reuse, not Astra token or cost savings. The Skill cannot measure the complete Desktop conversation or remove context already loaded into it.

Workflow Measured saving available?
Codex CLI harness Historical, limited synthetic comparisons below. The current CLI uses configured model/effort settings; other settings need their own measurements.
Codex Desktop Skill Complete Astra conversation tokens, total cost and Codex subscription/quota savings not measured.
Claude Code Skill Complete session tokens and total cost not measured; Astra results do not establish Claude/Fable savings.

Completed CLI task: Astra only versus Astra + Jev

Both arms used the same v0.3.0-based code and plan, gpt-6-astra at Extra High (xhigh), and six held-out behavior checks. Each generated the same fix in one call. This was one synthetic task, one trial per mode, with the required file explicitly pinned and most candidate text unrelated gardening prose. It does not measure required-file discovery, representative coding work, or an upgrade from an earlier release.

Through verified candidate, Extra High Astra only Astra + Jev Observed change
Astra input tokens 19,198 14,011 27.0% fewer
Astra output tokens, including reasoning 193 126 67 fewer in this pair
Astra generation calls 1 1 No rework reduction
Jev input / output tokens 0 / 0 6,784 / 76 2 additional selection calls
Combined Standard API-rate estimate $0.201630 $0.146695 27.2% lower
Elapsed time through verification 12.78 s 11.85 s 7.3% shorter in this pair
Behavior checks passed 6 / 6 6 / 6 Same observed result

The medium pair on the same task used 19,204 → 14,013 Astra input tokens (27.0% fewer) and $0.195190 → $0.143565 at equivalent API rates (26.4% lower), but took 9.07 → 12.22 s (34.6% longer). Both passed the same six checks. An earlier three-task comparison measured only 1.2% fewer Astra input tokens (42,714 → 42,199), with 16.3% longer elapsed time and 22/22 checks passing in each arm. There is no established typical saving or reliable speedup.

The cost estimates use rates recorded on 2026-09-24, include Jev, and count reasoning within output rather than adding it twice. All four v0.3.0 generations reported zero cache reads and writes; warm-cache savings were not tested. These are API-rate equivalents, not measured reductions in a Codex bill or subscription quota. Fixed run order, single trials and runtime warnings further limit the comparison. Method and historical results · Extra High data · Medium data · Three-task data.

Smaller context is useful, but bytes are not tokens or money

Separate functionality check Observed result What remains unmeasured
v0.2.0 → v0.3.0, same two-file selection fixture Retained source 27,353 → 75 bytes (99.73% fewer); Jev requests 1 → 2 and estimated Jev cost $0.000016464 → $0.000284928 Astra tokens and total-task cost. Additional Jev cost was $0.000268464.
v0.5.0, one synthetic progress log Returned stdout 19,885 → 7,601 bytes (61.8% fewer), including omission markers/footer; 5/5 required facts retained; Jev used 2 calls, 7,172 input / 195 output tokens Astra tokens, total-task cost and coding turnaround time.

The first check made a previously unjudged large file eligible for omission; the second checks an optional output wrapper. Neither percentage is a model-token saving. Conservative selection can retain every candidate, producing 0% context reduction while still incurring Jev usage. Local scoping, Jev selection and cached reuse are distinct effects. Selection data · Output-wrapper data.

How to judge savings on your work

Net cost saving is total cost without Jev − (coding-model cost with Jev + Jev cost) across all attempts. Keep ordinary input, cache reads/writes and output separate; never add providers' token counts and treat the sum as a price. Smaller inputs may change cache behavior, and failed calls, rereads or rework can erase a saving.

The next benchmark needs repeated representative tasks comparing ordinary Codex, local scoping only, and local scoping + Jev, with the same model/effort, source revision and acceptance checks, and separate cold/warm-cache conditions. Count selection time, rereads and retries through task completion. Until those measurements exist, the goal is lower tokens and total cost without sacrificing correctness or turnaround time, not a guaranteed percentage. Measurement support and limits.

How it works

flowchart LR
  T[Task + local Git snapshot] --> S[Local scope if repo exceeds bounds]
  S --> J[Jev: file relevance judgments]
  J --> P[Local policy + dependency retention]
  P --> C[CLI: Astra generation]
  C --> V[Isolated verification]
  V --> A[Explicit apply]
  P --> D[Desktop: context handoff]
  D --> F[Freshness check]
  F --> E[Current conversation edits and tests]
Loading

shared/ owns TypeSafe transport, snapshots, selection, and credential lookup. Codex cli/ owns generation, candidate verification, and apply. shared/host_context.py owns the host-neutral context handoff. Codex Desktop/ and Claude Code/ hold thin host adapters and their Skills. Root scripts remain compatibility entrypoints. Jev answers Noul yes/no relevance questions; it does not generate code. Code enforces limits and paths.

What leaves your machine

plan, check, read, and compare are local. When Jev is used, select sends the task, relative paths, and eligible source contents to TypeSafe; locally scoped_out file contents are not sent to Jev. CLI generation sends selected context and at most 512 scoped-out file names (plus the omitted-file count) to Codex using your own login, so Astra can request a fresh plan if context is missing. The harness removes TYPESAFE_API_KEY, OPENAI_API_KEY, and CODEX_API_KEY from the Astra child environment. It does not export or package your Codex login.

Plans, candidates, and run files contain source text. Store them outside the target repository and keep them out of Git. The source filter rejects known credential patterns and excluded file types; it is not a complete secret detector. Review PLAN.md before sending private code. Security and credential handling.

Current limits

  • Tracked eligible UTF-8 files plus explicitly included untracked files: a scoped plan holds up to 2 MB total, 1,500 files, and 100 KB per file. Above 2 MB, 1,500 eligible files, or the planned request budget, local task-aware scoping applies; CLI's scoped byte cap is 350,000. Use reviewed plan --include-file paths for untracked files; no staging is required.
  • New plans judge complete ranges of files over 22 KB; uncertain/unjudged ranges retain the whole file. Old plans replay their original policy. Budgets and accounting.
  • Dependency discovery is partial. Conventional Python src roots, local TS aliases and .mts are supported; dynamic imports and arbitrary build configurations remain partial.
  • CLI verification does not install dependencies; read-only verification may not support builds that write artifacts. Passing supplied tests is not proof of complete correctness.
  • Desktop has no automatic model routing, conversation compaction, or total-session token meter. The current model remains the model you selected.
  • The Claude Code Skill has no hooks, MCP server, conversation compaction, or model/effort override, and it does not measure Claude Code usage. Its token and cost effect has not been measured.
  • Experimental thresholds (0.2/0.8) are not calibrated guarantees for your repository.

Related projects

Project Main job Relationship
hermes-jev-skills Jev-based agent decisions including routing, retrieval, and skill selection Informed our explicit judgment coverage and evaluation-first policy comparison
jev-lint Semantic lint questions over matched code Informed the README's concrete examples, setup, measured results, and limitations; not bundled
This project File-context selection for Codex CLI, Codex Desktop and Claude Code Generation/verification/apply in CLI; native conversation implementation in Desktop and Claude Code

This is not a head-to-head performance comparison. No installer, plugin, or source code from those repositories is bundled. Design notes.

License

MIT. Independent project; not affiliated with OpenAI or TypeSafe. Provider access and billing remain each user's responsibility.

About

Agent Skills for Codex Desktop and Claude Code, plus a Codex CLI harness. Jev-assisted context selection. / Codex Desktop・Claude Code向けAgent SkillsとCodex CLI用ハーネス。Jevでコンテキストを選別。

Topics

Resources

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages