provider-integration
Skill1 starsChanged 3 months agoMITView on GitHub
Adds a new agent CLI provider to JEFF from discovery through a real end-to-end smoke test. Use when asked to integrate Codex or another agent/provider, add an AgentProvider, support a new agent CLI, or audit whether a provider integration is complete. Do not use for adding a model to an already-supported provider.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- hex/claude-counciltheir own version, first seen Nov 17, 2026
- egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Enginetheir own version, first seen Feb 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- hex/claude-council★ 969same name
- egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Engine★ 68same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- crew/AGENTS.mdAGENTS.md
- hooks/AGENTS.mdAGENTS.md
- memory/AGENTS.mdAGENTS.md
- persona/AGENTS.mdAGENTS.md
- skill/AGENTS.mdAGENTS.md
- tui/AGENTS.mdAGENTS.md
- workspace/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- crew/CLAUDE.mdCLAUDE.md
- embed/CLAUDE.mdCLAUDE.md
- hooks/CLAUDE.mdCLAUDE.md
- memory/CLAUDE.mdCLAUDE.md
- persona/CLAUDE.mdCLAUDE.md
- skill/CLAUDE.mdCLAUDE.md
- tui/CLAUDE.mdCLAUDE.md
- workspace/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. About 0 are common, 11 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Read the provider's current official docs and inspect the installed binary.
- Distinctive: line 36
Run commands equivalent to these without changing user configuration:
- Very specific: line 66
Read references/jeff-provider-surface.md.
- Very specific: line 81
Do not force unsupported features into fake implementations.
- Distinctive: line 87
Write a short design note before code.
- Very specific: line 95
Keep correctness before launch independent of hooks.
- Very specific: line 103
Add the AgentTool constant in jeff.go.
- Very specific: line 104
Add agent_<name>.go and register an AgentProvider in init().
- Distinctive: line 109
Create only provider-owned directories and defaults.
- Very specific: line 113
Add the provider to schemas/jeff-config.json and schema-sync tests.
- Distinctive: line 114
Verify the primary context filename and every alias in home and task workspaces.
- Distinctive: line 116
Do not assume config and skills share a single root directory.
- Distinctive: line 117
Add doctor detection and a clear install/auth hint.
- Distinctive: line 118
Update setup prompts, completion text, README tables, and config docs.
- Very specific: line 122
Add a hooks.Delivery only when the CLI has a supported hook system.
- Very specific: line 123
Use a provider-owned artifact directory (.codex/hooks, .claude/settings.json).
- Distinctive: line 124
Do not make two deliveries discover or delete each other's generated scripts.
- Distinctive: line 126
Add the provider script key to each compatible built-in hook generator.
- Distinctive: line 128
Verify session ID capture before claiming resume works.
- Distinctive: line 133
Run all static checks:
- Very specific: line 163
Test both default unattended mode and --safe.
- Very specific: line 182
Read references/codex-case-study.md when integrating Codex.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
JEFF Provider Integration
Integrate a provider by proving its real CLI behavior first, then mapping its capabilities onto JEFF. Do not copy another provider and assume matching flags, session behavior, hook payloads, or file locations.
Decision Tree
New agent CLI
|
+-- interactive TUI? -------- no --> stop: JEFF workers need an interactive mode
|
+-- exact session resume? --- no --> support fresh launch; mark resume unsupported
|
+-- lifecycle hooks? -------- no --> keep setup correct without hooks
| yes --> add a Delivery and contract tests
|
+-- native skills? ---------- no --> rely on the context file and commands
|
+-- headless mode? ---------- no --> exclude memory curation
yes --> implement BuildCurateArgs1. Lock The CLI Contract
Read the provider's current official docs and inspect the installed binary. Record the binary version and exact commands. Treat online examples and another JEFF provider as hints, not proof.
Run commands equivalent to these without changing user configuration:
command -v <binary>
<binary> --version
<binary> --help
<binary> <resume-subcommand> --help
<binary> <headless-subcommand> --helpBuild a capability matrix before editing code:
| Capability | Evidence to capture | JEFF consumer |
| Interactive launch | command, flags, whether a prompt keeps the TUI alive | pickup, work, orchestrator, crew |
| Safe and unattended modes | approval and sandbox flags separately | --safe, default worker launch, curation |
| Model selection | valid IDs, aliases, provider overlap | model inference and persona defaults |
| Resume | exact ID syntax, latest fallback, cwd scope | jeff crew resume |
| Headless run | prompt input, output, exit codes, repo requirement | memory curation |
| Context file | filename, lookup order, trust rules | task and home instructions |
| Skills and commands | exact directories and formats | skill and command injection |
| Hooks | config location, events, stdin/output schema, trust | context refresh, heartbeat, session capture |
| Auth | login flow, environment variables, credential location | doctor and setup docs |
| Terminal behavior | startup time, bracketed paste, Ctrl-C, process exit | tmux delivery and worker state |
For claims that affect process lifetime, resume, or tmux input, run a tiny manual probe. Help text alone does not prove that a prompt stays interactive.
2. Trace JEFF End To End
Read references/jeff-provider-surface.md. Then run the bundled audit from the
JEFF repository root:
uv run .agents/skills/provider-integration/scripts/audit_provider_surfaces.py .Classify each finding as:
- Required: provider identity, launch command, model routing, config schema, home setup, context path, pickup/work launch, crew launch, doctor, and tests.
- Capability-dependent: resume, hooks, native skills, custom commands, memory suppression, headless curation, and provider model aliases.
- Documentation-only: README, setup guide, config reference, and shell help.
Do not force unsupported features into fake implementations. Return an empty
capability where AgentProvider allows it. If the interface cannot express a
real provider behavior, change the shared contract and its fake provider first.
3. Write The Integration Design
Write a short design note before code. Include:
- The verified command table for fresh, safe, unattended, resume, and headless runs.
- The capability matrix with unsupported items called out.
- The files to change, grouped by core provider, hooks, lifecycle, setup, and docs.
- Trust and security choices, especially sandbox policies and project-local config.
- An end-to-end test path and the installed CLI version used for it.
Keep correctness before launch independent of hooks. Project hook trust can block
the first SessionStart, so task context, memory, and skills must already exist
before the agent starts.
4. Implement In Layers
Core Provider
- Add the
AgentToolconstant injeff.go. - Add
agent_<name>.goand register anAgentProviderininit(). - Build argument slices without shell quoting. Shell quoting belongs where JEFF turns the command into a tmux command string.
- Reject models owned by another provider. Avoid broad model matching that makes
InferBackenddepend on provider registration order. - Create only provider-owned directories and defaults. Never overwrite user files.
Workspace And Setup
- Add the provider to
schemas/jeff-config.jsonand schema-sync tests. - Verify the primary context filename and every alias in home and task workspaces.
- Map the real native skill directory (
.agents/skills,.claude/skills, etc.). Do not assume config and skills share a single root directory. - Add doctor detection and a clear install/auth hint.
- Update setup prompts, completion text, README tables, and config docs.
Hooks And Lifecycle
- Add a
hooks.Deliveryonly when the CLI has a supported hook system. - Use a provider-owned artifact directory (
.codex/hooks,.claude/settings.json). Do not make two deliveries discover or delete each other's generated scripts. - Map every event name, matcher, timeout unit, input field, and output field.
- Add the provider script key to each compatible built-in hook generator.
- Export provider identity when a shared hook body needs provider-specific behavior.
- Verify session ID capture before claiming resume works.
- Tune prompt paste and Ctrl-C timing with a real tmux session.
5. Verify By Contract
Run all static checks:
gofmt -w <changed-go-files>
go test ./...
go vet ./...
go build -o /tmp/jeff-dev ./cmd/jeff/
uv run .agents/skills/provider-integration/scripts/audit_provider_surfaces.py . --provider <name>Add tests for:
- provider registration and config-schema parity
- fresh, safe, model, prompt, resume, and headless argument vectors
- foreign-model rejection and inference ambiguity
- idempotent home defaults that preserve user files
- context aliases, skill injection, and unsupported capabilities
- hook install, update, disable, orphan cleanup, event mapping, and ownership
- pickup, orchestrator, worker start, message send, stop, and resume command building
Then use the throwaway JEFF binary for a real smoke test. Never replace the live
jeff binary.
gig task -> /tmp/jeff-dev pickup -> task/worktree/context/skills/hooks
-> provider TUI -> tool call -> hook heartbeat/checkpoint
-> crew message -> stop -> captured session ID -> crew resume
-> checkpoint -> ship --dry-run -> doneTest both default unattended mode and --safe. Confirm that the provider remains
interactive after the initial prompt and that a resumed worker continues the same
session rather than starting a new one.
Failure Recovery
| Symptom | Likely cause | Action |
| Provider compiles but cannot be selected | missing enum/schema/config surface | run the audit and schema-sync test |
| Worker exits after its first prompt | prompt flag starts headless mode | set SupportsInlinePrompt false and tune tmux paste |
| Persona default selects the wrong CLI | model ownership overlaps another provider | narrow OwnsModel; add pairwise tests |
| Resume starts a new chat | wrong ID, arg order, or hook capture field | inspect the real session payload and resume help |
| Hooks work only after manual approval | project or hook trust gate | keep pre-launch setup complete; document or safely bypass trust |
| Disabling one provider removes another provider's hook | shared artifact discovery | isolate generated files and prove ownership before deletion |
| Headless curation hangs | it can still ask for auth, approval, or repo trust | add preflight checks and truly noninteractive flags |
| Skills are missing | native path differs from ConfigDir/SkillsSubdir | change the provider contract instead of adding ad hoc aliases |
Codex Example
Read references/codex-case-study.md when integrating Codex. Re-check every flag
against the installed Codex version because the CLI changes independently of JEFF.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

