Skip to content

Latest commit

 

History

History
59 lines (46 loc) · 4.11 KB

usage.md

File metadata and controls

59 lines (46 loc) · 4.11 KB

CLI usage

Documentation index

The examples assume jevwise is installed on PATH. For a source build, use bin/jevwise instead.

Shell completion

Enable completion in your current Zsh session (after installing/upgrading Jevwise):

autoload -Uz compinit
compinit
source <(jevwise completion zsh)
  • For Bash, use source <(jevwise completion bash) instead. Fish and PowerShell scripts are available through jevwise completion fish and jevwise completion powershell.
  • jevwise mcp install claude --scope <Tab> suggests user, local, project; Codex suggests only user. Prefixes and --scope=prefix also work, without filename suggestions.
  • Completion reads no decision configuration or credentials and never invokes a client installer. Use a binary containing the new completion callback; source/worktree changes do not update an installed binary automatically.

Decisions

export JEV_API_KEY='<your-key>'
jevwise decide --prompt 'Which task should I tackle first?' \
  --option 'Fix the bug' --option 'Write documentation'

printf '%s' 'Which task should I tackle first?' | jevwise decide --stdin \
  --option 'Fix the bug' --option 'Write documentation'
  • Select exactly one of --prompt or --stdin. Stdin is read only when requested.
  • Repeat --option at least twice. Labels must be distinct and nonblank after trimming.
  • Commas remain part of a label; prompts preserve their original text and newlines.
  • Stdin is limited to 1 MiB. Generic blocking input readers cannot be interrupted during a read; cancellation is checked before and after it.
  • Stdout contains one JSON object with model, choice, confidence, probabilities, and optional usage. Values come from Jev, not local calculations.
  • Errors go to stderr and cause a nonzero exit. Arbitrary service/input error text is not printed.
  • --timeout covers the service operation, including retries and waits, after input is read.
  • --provider codex and --provider claude return a clear not-implemented error without credentials or subprocesses.

Skill setup

jevwise skill          # Default: .agent/skills/typesafe-ai/SKILL.md
jevwise skill agent   # Explicit default target
jevwise skill codex   # .agents/skills/typesafe-ai/SKILL.md
jevwise skill claude  # .claude/skills/typesafe-ai/SKILL.md
jevwise skill codex --force # Replace an existing regular Codex skill file
jevwise skill --online # Print the upstream GitHub URL only
  • Downloads the latest upstream skill unchanged, relative to the current project directory.
  • Local installation is the default; --local selects it explicitly. --online and --local cannot be combined. Online mode rejects target subcommands and installation flags and performs no download or write. Legacy --agent/--claude still work but are hidden from help; do not combine them with target subcommands.
  • Codex uses the official project skill location, .agents/skills. The generic agent target retains the legacy singular .agent/skills; these are separate directories.
  • Hidden --jev selects the only supported skill. No decision credentials/configuration are read or sent. --timeout sets a 10s default deadline for fetching and checks before file publication; filesystem calls are not forcibly interrupted.
  • Downloads require HTTP 200 and valid UTF-8 Markdown/front matter, are limited to 1 MiB, and never follow redirects. Invalid downloads leave existing skills untouched.
  • Existing files require --force. Static symlinks and nonregular destinations are refused; staging files are cleaned and complete bytes published without truncating the old inode.
  • Native Unix supports force replacement. Windows force replacement and JS/WASI/Plan 9 installation are unsupported; filesystems without hardlinks fail safely.
  • Filesystem operations assume ordinary native filesystems without hostile mounts/directory renames. Failure/cancellation after publication may mean the skill is already installed; no unsafe rollback is attempted.