Complete installation before continuing. You should be logged
in with
onyx login.1. Grant Repository Access
Open the Onyx app, sign in, and make sure the Onyx GitHub App has access to the repository you want to optimize:- Install or manage the GitHub App for the GitHub account or organization.
- Grant access to the repository.
- For monorepos, use
projectPathwhen starting the campaign so Onyx tracks the relevant subdirectory.
2. Install the Agent Skill
Run this once for your local agent environment:onyx/ setup files, validate the local workflow, launch
parallel hypothesis workers, push immutable result refs, and report results directly to the Onyx API.
By default this installs managed Claude Code and Codex skill files, so either
agent can invoke it as /onyx. The managed targets are
~/.claude/skills/onyx/SKILL.md, ~/.agents/skills/onyx/SKILL.md, and
${CODEX_HOME:-~/.codex}/skills/onyx/SKILL.md.
3. Start with /onyx
Open your repository in an Onyx-enabled agent such as Codex, Claude Code, Pi, or Cursor. Then give the agent a goal:
onyx/setup.json, validates the setup workflow into onyx/validation.json,
commits the setup base, and starts Research once validation has no failed
checks.
4. What the Agent Creates
The Onyx agent sets up the research surface for you.
You usually do not need to create these by hand. The orchestrator creates an
initial explicit scaffold, edits the setup files and tools for the task,
validates them, commits the setup surface, and then starts hypothesis workers.
5. Change Setup Deliberately
onyx/setup.json defines the research setup. During Research, hypothesis workers
treat these setup files as frozen:
onyx/onyx.md;onyx/setup.json;onyx/validation.json;onyx/tools/*.
- the objective;
- the primary metric;
- files the agent may edit;
- files or behaviors that are off limits;
- workflow tools, guardrail steps, or resource leases;
- correctness constraints;
- lessons from what has already been tried.
6. Watch Results in Onyx
As the agent runs, open the project in the app:- Campaign graph shows experiments, hypotheses, workers, and provenance links.
- Campaign overview and metric views show campaign setup summary, resources, workers, hypotheses, knowledge, summaries, stop state, and metric projections.
- File tree shows changed files plus the
onyx/context. - Diff view compares attempts against previous best results.