# Test a pull request from Claude Code or Codex

> Connect Claude Code or Codex to Cue April, check your project is ready and test an approved GitHub pull request. Match the findings to the exact commit.

Source: https://cueapril.com/guides/agentic-testing-quickstart
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## What do I need before testing a pull request?

A repository owner or administrator with the right permissions must connect the GitHub repository to Cue April. In Settings → Integrations, enable Test every commit and approve a standing test plan for the branch the pull request targets. The project also needs funding, available testing capacity and an agent key with permission to start an assessment.

Start with an open pull request in a repository your team owns. From the coding agent you already use, you can ask Cue April to run the approved tests, then bring a failed assertion and its evidence back into the review.

## Connect the coding agent you use for this repository

Use the Claude Code command if that is where you edit and push the branch. Use the Codex command if you review the pull request in Codex. Run just your chosen command in a terminal with Node.js 20 or later and npm installed.

Claude Code

```bash
npx -y cueapril@latest init --agents claude
```

Codex

```bash
npx -y cueapril@latest init --agents codex
```

Setup reuses an existing agent key or opens an approval link for your organisation administrator. Keep the key in your secret manager and use the browser for approval. Reload your agent’s connections or restart it. If you use Python 3.10 or later with uv and Node.js 20 or later, the [installation guide](https://app.cueapril.com/agents/install.md) also gives the PyPI command.

## Check the connection and the project’s readiness

The first command checks authentication and the coding agent’s configuration. The second checks whether the project can accept work. Both are read-only. If the key covers several projects, add the project ID with the --project option to the setup command.

Run these before requesting tests

```bash
npx -y cueapril@latest doctor --json
npx -y cueapril@latest setup --json
```

A connected agent can still have a blocked project. For example, a plan approved for main may leave a pull request targeting a release branch uncovered. Follow the named blocker to its owner. An organisation administrator handles plan approval or funding. Once it is resolved, run the readiness check again.

## Request the approved tests on one pull request

Give the agent the full GitHub pull request URL and the behaviour the reviewer cares about. Replace the placeholder with your own URL. When Test every commit has already started an assessment for the same head commit, Cue April returns that assessment.

Example request in Claude Code or Codex

```text
Use Cue April to test <PR URL> under our approved plan.
The reviewer wants to know whether the export respects the selected date range.
Return the tested commit, assessment ID and any checks still incomplete.
```

If the start returns blocked, it gives the reason and no assessment has started. A failed assessment means a check ran and produced a failure. If the agent stops waiting while the work is still running, ask for the status using the same assessment ID.

## Read the results against the commit you are reviewing

Open the pull request’s latest commit in GitHub and copy its full SHA, the identifier for that revision. Match it to the tested head in the Cue April check from the cue-april GitHub App or the comment authored by cue-april[bot]. A push changes the head. Look up the assessment for that new commit before using its result to review the change.

Example request to read an existing assessment

```text
Find the existing Cue April assessment for commit <full SHA> on <PR URL>.
Show me the expected and observed values for each failure, its evidence link
and which planned checks were incomplete. Keep this request read-only.
```

Read the coverage alongside the failures. A reviewer can ask which checks ran, open the evidence with project access and decide whether a suggested fix addresses the requirement. [Assessment results and outcome definitions](https://app.cueapril.com/agents/api.md).

## Primary documentation

- [Cue April installation and readiness checks](https://app.cueapril.com/agents/install.md)
- [Cue April setup for Claude Code](https://app.cueapril.com/agents/claude-code/README.md)
- [Cue April setup for Codex](https://app.cueapril.com/agents/codex/README.md)
- [Cue April agent guide and GitHub check identity](https://app.cueapril.com/agents/README.md)
- [cueapril package on the npm registry](https://registry.npmjs.org/cueapril/latest)
- [cueapril on PyPI, including publisher provenance](https://pypi.org/project/cueapril/)

## Need help getting your first repository ready?

Bring the readiness result and the branch you want to test. We can walk through the remaining setup with the person who owns the repository.

[Book a call](https://cueapril.com/#book)

By Cue April. Updated 2026-12-01.

## Questions

### Can I read an assessment with a read-only agent key?

Yes. With project read permission, look up the existing assessment by pull request or full commit SHA. Use its assessment ID to retrieve findings, coverage and evidence. Starting a new assessment requires separate permission to run tests.

### What if I still see the result for yesterday’s commit?

Copy the current head SHA from GitHub and ask the agent to look up that exact commit. If a new assessment is in progress, follow its assessment ID. The earlier finding remains evidence about the revision that produced it.

## Related

- [Agentic testing](https://cueapril.com/guides/agentic-software-testing): Learn how agentic testing works on a pull request. Compare two AI-written tests on a real pandas bug, explore recorded results and replay the case yourself.
- [Pull request testing](https://cueapril.com/use-cases/pull-request-testing): See what a pull request test report should show before you merge. Follow a failing checkout check through the fix and inspect a real PR report.
- [2027 agentic testing report](https://cueapril.com/guides/agentic-testing-2027): Where agentic QA fits after a Claude Code or Codex pull request, our 2027 outlook for browser and computer-use testing, and what six AI-written tests caught.
