Use Jabara from an AI agent¶
A coding agent runs jabara the way a script does: without a terminal, reading the output and the exit status. This page shows how to give an agent the Jabara skill in Claude Code, Codex, GitHub Copilot, Gemini CLI, Cursor, and other agents that read the open Agent Skills format, what the command guarantees to a program that runs it, and what an agent session looks like.
Install the skill¶
The repository ships one agent skill in skills/jabara/: SKILL.md and the reference.md that it links. It tells the agent when to use Jabara and when not to, the safe order of commands, how to read the results, and the rules that keep a checkpoint from being lost. Both files are plain Markdown, and the agents below are pointed at this one folder; nothing is copied into other places in the repository.
Two files make the repository installable as a plugin: .claude-plugin/ for Claude Code, Codex, and GitHub Copilot, and .cursor-plugin/ for Cursor. Copilot's own documentation names .github/plugin/marketplace.json for a marketplace; Copilot CLI 1.0.117 installed from the .claude-plugin/ one in the check below. Both point at skills/. An agent without a plugin system reads the skill from a folder, and .agents/skills/ is the folder that most of them share. To use it, copy skills/jabara/ there, for every project in ~/.agents/skills/jabara/ or for one project in .agents/skills/jabara/.
Agent |
How the skill gets there |
Checked |
|---|---|---|
Claude Code |
plugin marketplace |
not run for this change; this is the path that the manifests were first written for |
Codex |
plugin marketplace, or |
codex-cli 0.172.0, 2026-12-01: |
GitHub Copilot CLI |
plugin marketplace, or |
Copilot CLI 1.0.117, 2026-12-01: |
Gemini CLI |
|
Gemini CLI 0.38.2, 2026-12-01: |
Cursor |
plugin marketplace, or |
not run; the manifest follows the field list in the plugin reference, read 2026-12-01 at the address that cursor.com redirects to (docs.grok.com) |
opencode, Windsurf, Cline, Goose |
|
not run; the folders come from each tool's published documentation, read 2026-12-01 |
"Checked" says what was run, on which version, and when. Codex, Copilot CLI, and Gemini CLI answered for the skill in this repository. The agents marked "not run" were not started, so their rows rest on documentation. The VS Code and cloud-agent surfaces of GitHub Copilot were not tried either.
Claude Code¶
/plugin marketplace add iamtatsuki05/jabara
/plugin install jabara@jabara
Claude Code loads the skill when a task matches its description, such as compressing or verifying a checkpoint directory. Without the plugin, copy skills/jabara/ to ~/.claude/skills/jabara/ or to .claude/skills/jabara/ in one project.
Codex¶
codex plugin marketplace add iamtatsuki05/jabara
codex plugin add jabara@jabara
codex plugin list
codex plugin list shows jabara@jabara as installed and enabled. Restart Codex if a session was already open. Without the plugin, copy skills/jabara/ to ~/.agents/skills/jabara/ or to .agents/skills/jabara/ in the repository; Codex reads that folder from the working directory up to the repository root.
GitHub Copilot¶
In the Copilot CLI:
copilot plugin marketplace add iamtatsuki05/jabara
copilot plugin install jabara@jabara
copilot plugin list
Copilot also reads skills from .github/skills/, .claude/skills/, and .agents/skills/ in a repository, and from ~/.copilot/skills/ and ~/.agents/skills/ for every project. Which of these a surface supports depends on the surface, so check the one you use.
Gemini CLI¶
gemini skills install https://github.com/iamtatsuki05/jabara.git --path skills/jabara --consent
gemini skills list
install puts the skill in ~/.gemini/skills/; add --scope workspace to put it in the project's .gemini/skills/ instead. Gemini CLI also reads .agents/skills/ in the workspace and ~/.agents/skills/.
Cursor¶
In Cursor, open Customize, choose the option to add a plugin from a GitHub repository, and enter iamtatsuki05/jabara; the repository has the .cursor-plugin/marketplace.json that this needs. Without the plugin, copy skills/jabara/ to .cursor/skills/jabara/ or .agents/skills/jabara/ in a project, or to ~/.cursor/skills/jabara/ for every project.
opencode, Windsurf, Cline, Goose¶
These read a skill from a folder; none of them has a manifest that the repository needs to carry.
opencode:
.agents/skills/,.claude/skills/, or.opencode/skills/in a project, and~/.agents/skills/or~/.config/opencode/skills/for every project.Windsurf:
.agents/skills/or.devin/skills/in a project, and~/.agents/skills/or~/.config/devin/skills/for every project..windsurf/skills/is the older folder.Cline:
.cline/skills/or.claude/skills/in a project, and~/.cline/skills/for every project. Cline does not list.agents/skills/.Goose:
.agents/skills/in a project and~/.agents/skills/for every project.
Amp and other agents were not checked. If yours reads SKILL.md files, put the folder where its documentation says; if it does not, point it at skills/jabara/SKILL.md.
The command contract¶
These hold for every command, and tests/jabara/test_agent_contract.py checks them:
No command prompts or reads standard input. Every input is an argument. Every command writes to standard output and standard error and returns, except that
jabara manopens themanpager when standard output is a terminal; when it is not,jabara man compressprints the roff source of the page to standard output and exits 0. An agent should usejabara help COMMANDinstead.Results go to standard output, and errors and warnings to standard error. The output is the same with or without a terminal, except that on Python 3.14 and later the usage errors are coloured on a terminal;
NO_COLOR=1turns that off.The exit status is 0 on success, 1 when the command failed or refused, and 2 for a usage error. With status 1, standard error ends with one line,
jabara: <message>, which names the file, and standard output is empty, except thatverifyon a directory has already printedokfor the archives before the one that failed, and a--recursiverun has printed the lines of the checkpoints it finished. With status 2, no command ran, and standard error holds the usage line and an error line; barejabaraprints the short overview instead, with no error line.A command that fails or refuses leaves every file as it was.
compressanddecompresson a directory are all or nothing. With--recursiveeach checkpoint is all or nothing, and the run stops at the first failure: the checkpoints before it stay done.ls --jsonprints a list of objects with the keyspathandtensors, andbench --jsonprints one line, a report with the schema in JSON schemas. The other commands print text lines that start with a path, as Command line describes.--help,codecs, and a usage error do not import torch, so they answer in a fraction of a second.
Status 1 has many causes: a file that does not exist, a checksum mismatch, a missing base, an output that already exists. Read the message to tell them apart.
compress, decompress, verify, and ls take --recursive for a parent of checkpoint directories, such as a Trainer's output_dir. Before a recursive compress, run jabara compress --dry-run --recursive PATH: it lists the checkpoints in order and the files, and changes nothing. See Compress the checkpoints of many runs and Store a checkpoint as a difference against a base.
Only two commands delete files, and only after every output is written and verified:
compressdeletes the checkpoint files it compressed.decompressdeletes the archives it restored.
--keep keeps them. No other command deletes or overwrites a file.
Documentation for agents¶
llms.txt lists every page of the site and of this documentation with one line each.
llms-full.txt is the English documentation in one Markdown file, generated from the sources, so an agent can read all of it in one request.
jabara help COMMAND(orjabara COMMAND -H) prints the full help of a command: what it reads, writes, and prints, every option, and examples. Start there.jabara -handjabara COMMAND -hprint a short form.
An agent session¶
Start in an empty directory. Save make_checkpoint.py there and run it. It needs the torch extra and safetensors, and writes checkpoint-1000/.
$ python make_checkpoint.py
Asked to save disk space on this checkpoint, an agent that follows the skill first checks the installation, then compresses with --keep, so the originals stay until the archives are verified:
$ jabara codecs
bytegroup-zstd/1
quant8-linear/1
quant8-log/1
raw/1
sub-delta/1
xor-delta/1
zipnn/1
zstd/1
$ jabara compress --keep checkpoint-1000
checkpoint-1000/model.safetensors.jbr: ... -> ... bytes (...% of original)
checkpoint-1000/optimizer.pt.jbr: ... -> ... bytes (...% of original)
$ jabara verify checkpoint-1000
ok checkpoint-1000/model.safetensors.jbr
ok checkpoint-1000/optimizer.pt.jbr
Both archives printed ok, so the agent deletes checkpoint-1000/model.safetensors and checkpoint-1000/optimizer.pt by name. trainer_state.json was never touched. Had it run jabara compress checkpoint-1000 without --keep, the command would have verified the archives and deleted the originals itself.
Run again on the same directory, jabara compress --keep checkpoint-1000 changes nothing. It exits with status 1 and prints a line such as jabara: checkpoint-1000: holds both model.safetensors and model.safetensors.jbr; remove one while the originals are still there, and jabara: checkpoint-1000: no *.safetensors files or optimizer.pt to compress once they are gone. The skill tells the agent how to read both.