PR Babysitter
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
Enforce the Basic Machines GitHub PR review loop before merging.
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install basicmachines-co/basic-memory pr-review-loop --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pr-review-loop .claude/skills/pr-review-loop && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .claude/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loopType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install basicmachines-co/basic-memory pr-review-loop --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/pr-review-loop .agents/skills/pr-review-loop && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .agents/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install basicmachines-co/basic-memory pr-review-loop --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/pr-review-loop .cursor/skills/pr-review-loop && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .cursor/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/basicmachines-co/basic-memory.git --path .agents/skills/pr-review-loop--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install basicmachines-co/basic-memory pr-review-loop --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/pr-review-loop .gemini/skills/pr-review-loop && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .gemini/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install basicmachines-co/basic-memory pr-review-loopInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/pr-review-loop .github/skills/pr-review-loop && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .github/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install basicmachines-co/basic-memory pr-review-loop --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/basicmachines-co/basic-memory.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/pr-review-loop .opencode/skills/pr-review-loop && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pr-review-loop" agent skill from https://github.com/basicmachines-co/basic-memory/tree/main/.agents/skills/pr-review-loop into .opencode/skills/pr-review-loop/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pr-review-loop", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pr-review-loopEnforce the Basic Machines GitHub PR review loop before merging.
PR Review Loop is an agent skill from basicmachines-co/basic-memory. Enforce the Basic Machines GitHub PR review loop before merging. Use whenever Codex is preparing to merge, squash-merge, auto-merge, declare a PR ready, monitor Codex comments, address review feedback, or wait for Codex approval on a GitHub PR, especially when the user says "approved", "merge", "ship", "PR is ready", "monitor Codex comments", or "address Codex feedback".
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Pull requests. It works with GitHub. The repository describes itself as: AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN. The licence is AGPL-3.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit cb7407f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
ghjqFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
PR Review Loop loads about 3.2k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 1,133 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from basicmachines-co/basic-memory at commit cb7407f, republished under its AGPL-3.0 licence (© basicmachines-co). 1,133 words, ~3,218 tokens.
.claude/skills/pr-review-loop/SKILL.md (or your agent's skills folder).Do not merge a PR merely because CI is green, the branch is mergeable, review threads are outdated, or no current Codex thread is visible.
Merge only when one of these is true:
Codex often leaves that thumbs-up as a reaction on the PR description/body itself (the GitHub Issue/PR object), not on its "Codex Review" issue comment. Do not only inspect issue comments.
If Codex's newest fresh reaction on the PR body or a relevant comment is eyes, it is reviewing. Wait and keep checking.
If Codex leaves a comment, review body, or inline thread containing substantive feedback, the PR is not approved. Use judgement: fix the code when the comment is right; reply with evidence when it is wrong or intentionally not worth changing. A no-issue summary or boilerplate-only review body is not a blocker, but it also does not replace the required thumbs-up.
chatgpt-codex-connector[bot] on the PR body/description: Codex approves/no suggestions. This is the common approval signal.chatgpt-codex-connector[bot] on a Codex issue comment: also an approval signal, but this is not the only place to look.CHANGES_REQUESTED or a
substantive review body: blocking feedback even when it has no inline thread.reviewDecision, mergeable: MERGEABLE, mergeStateStatus: CLEAN, and green checks: necessary context, but not Codex approval.gh pr view <number> --json number,url,headRefOid,headRefName,mergeable,mergeStateStatus,statusCheckRollupAny code push after a prior Codex approval invalidates that approval. A material PR-body edit should restart the loop for the description, but it does not invalidate the code-head review unless it changes the scope being reviewed.
Check the PR body reactions first, and verify both the reacting actor and the
reaction's freshness for the current head and current PR description. The
status rollup is scoped to the current head SHA, while GraphQL lastEditedAt
captures later edits to the PR object. Use the later timestamp as the approval
lower bound:
head_state_json="$(
gh pr view <number> --json headRefOid,statusCheckRollup
)" || exit 1
head_sha="$(printf '%s' "$head_state_json" | jq -r '.headRefOid')"
head_started_at="$(
printf '%s' "$head_state_json" \
| jq -r '[.statusCheckRollup[] | .startedAt // empty] | min // empty'
)"
edit_state_json="$(
gh api graphql \
-F owner=<owner> \
-F name=<repo> \
-F number=<number> \
-f query='query($owner:String!,$name:String!,$number:Int!){
repository(owner:$owner,name:$name){
pullRequest(number:$number){headRefOid lastEditedAt}
}
}'
)" || exit 1
edit_head_sha="$(
printf '%s' "$edit_state_json" \
| jq -r '.data.repository.pullRequest.headRefOid'
)"
body_edited_at="$(
printf '%s' "$edit_state_json" \
| jq -r '.data.repository.pullRequest.lastEditedAt // empty'
)"
if [ "$edit_head_sha" != "$head_sha" ]; then
echo "Head changed while checking review state; reaction is not approval."
exit 1
fi
body_reactions_available=true
if [ -z "$head_started_at" ]; then
body_reactions_available=false
approval_not_before="$body_edited_at"
echo "No timestamped current-head checks; skipping PR-body reactions."
else
approval_not_before="$(
jq -nr \
--arg head_started_at "$head_started_at" \
--arg body_edited_at "$body_edited_at" \
'[$head_started_at, $body_edited_at]
| map(select(length > 0))
| max // empty'
)"
fi
if [ "$body_reactions_available" = true ]; then
reactions_json="$(
gh api "repos/<owner>/<repo>/issues/<number>/reactions" --paginate --slurp \
-H "Accept: application/vnd.github+json"
)"
echo "Fresh Codex reaction state:"
printf '%s' "$reactions_json" \
| jq --arg approval_not_before "$approval_not_before" '
def latest_reaction($content):
[.[][]
| select(.user.login == "chatgpt-codex-connector[bot]"
and .content == $content
and .created_at >= $approval_not_before)
| {content, created_at, user: .user.login}]
| sort_by(.created_at)
| last // null;
{approval: latest_reaction("+1"), pending: latest_reaction("eyes")}
| .state = (
if .approval != null
and (.pending == null
or .approval.created_at > .pending.created_at)
then "approved"
elif .pending != null then "pending"
else "none"
end
)'
figh pr view --json reactionGroups is useful for counts, but it does not show
which user reacted. Use the REST reactions endpoint above to prove Codex left
the thumbs-up after both current-head activity began and the PR object was last
edited. A reaction state of approved satisfies the reaction portion of the
gate. pending means the newest fresh signal is eyes, so keep waiting; a newer
thumbs-up supersedes an older eyes reaction. If the current head has no
timestamped status/check activity, skip PR-body reactions and continue to the
review and issue-comment checks below instead of exiting the workflow.
Then check Codex issue comments and confirm the latest "Reviewed commit" matches the current head prefix:
gh api "repos/<owner>/<repo>/issues/<number>/comments" --paginate \
--slurp \
| jq '[.[][] | select(.user.login | test("chatgpt-codex-connector"))
| {id, created_at, html_url, body: .body[0:240]}]'When PR-body reactions were skipped, only use an issue comment that names the
exact current head and, when body_edited_at is non-empty, was created after
that edit. Its thumbs-up must also pass the actor and approval_not_before
check below.
Top-level pull-request reviews are a separate API surface from issue comments and review threads. Fetch every page and inspect Codex reviews submitted for the exact current head:
head_sha="$(gh pr view <number> --json headRefOid --jq '.headRefOid')"
gh api "repos/<owner>/<repo>/pulls/<number>/reviews" --paginate --slurp \
| jq --arg head_sha "$head_sha" \
'[.[][]
| select((.user.login | test("chatgpt-codex-connector"))
and .commit_id == $head_sha)
| {id, user: .user.login, state, submitted_at, html_url, body}]
| sort_by(.user, .submitted_at, .id)
| group_by(.user)
| map(last)'Evaluate only the latest current-head review returned for each Codex actor; a
newer review supersedes that actor's earlier top-level state on the same head.
A latest CHANGES_REQUESTED review is blocking. Read every latest non-empty
review body and address any substantive finding even when the review has no
inline thread. A boilerplate-only COMMENTED review that merely accompanies
inline findings is not an additional blocker after those findings are resolved;
it is also not an approval signal. Review-thread resolution remains a separate
gate below and is never superseded by top-level review history alone.
For a relevant Codex issue comment, verify any approval reaction by actor. The aggregate reaction counts on the comment do not identify who reacted:
gh api "repos/<owner>/<repo>/issues/comments/<comment-id>/reactions" \
--paginate --slurp \
-H "Accept: application/vnd.github+json" \
| jq --arg approval_not_before "$approval_not_before" '
def latest_reaction($content):
[.[][]
| select(.user.login == "chatgpt-codex-connector[bot]"
and .content == $content
and .created_at >= $approval_not_before)
| {content, created_at, user: .user.login}]
| sort_by(.created_at)
| last // null;
{approval: latest_reaction("+1"), pending: latest_reaction("eyes")}
| .state = (
if .approval != null
and (.pending == null
or .approval.created_at > .pending.created_at)
then "approved"
elif .pending != null then "pending"
else "none"
end
)'Finally, query GraphQL review threads. GitHub records comment placement SHAs in the REST payload, but only the thread exposes whether feedback remains unresolved and non-outdated after a follow-up push:
gh api graphql --paginate --slurp \
-F owner=<owner> \
-F name=<repo> \
-F number=<number> \
-f query='query(
$owner:String!
$name:String!
$number:Int!
$endCursor:String
){
repository(owner:$owner,name:$name){
pullRequest(number:$number){
reviewThreads(first:100,after:$endCursor){
nodes{
id isResolved isOutdated path line
comments(first:100){
nodes{author{login} body url createdAt commit{oid}}
}
}
pageInfo{hasNextPage endCursor}
}
}
}
}' \
| jq '[.[].data.repository.pullRequest.reviewThreads.nodes[]
| select((.isResolved | not) and (.isOutdated | not))
| select(any(.comments.nodes[];
.author.login | test("chatgpt-codex-connector")))
| {id, path, line, comments: .comments.nodes}]'An empty result across every page means there are no unresolved, non-outdated Codex threads. Keep outdated threads as review history, but do not treat their comment SHAs as the current resolution state.
If the latest fresh reaction state is pending, keep monitoring. Do not
infer approval from silence.
If Codex leaves feedback, start addressing it immediately. Do not wait for all tests to complete before reading and acting on comments; that wastes review-loop time. Tests can keep running in parallel while you inspect the feedback.
For each Codex comment, use engineering judgement.
After every push, restart from step 1. A new head requires a new Codex response.
The loop is complete only when all of these are true on the same latest head:
Codex gate: approved | waiting | blocking | overridden
Head: <sha>
Tests: passing | pending | failing
Evidence: <thumbs-up reaction, blocking comment URL, reply URL, or explicit user override>gh pr merge when the gate is approved or overridden and tests are passing on that same head.PR basicmachines-co/basic-memory-cloud#1366 was merged after CI went green and existing Codex threads were outdated, but before Codex had left its thumbs-up. Codex then posted a P2 review comment on the merged head. This skill exists to prevent that exact mistake.
© basicmachines-co, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/pr-review-loop of basicmachines-co/basic-memory.
Open the folder on GitHubat commit cb7407f
PR Review Loop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| PR Review Loop this skillbasicmachines-co/basic-memory | 4.1k | — | ~3.2k | Automated safety check: Pass | AGPL-3.0 | |
| PR Babysitteropeninterpreter/openinterpreter | 69k | 3 repos | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Check PRonyx-dot-app/onyx | 32k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Pull Request Title and Body Writeropeninterpreter/openinterpreter | 69k | 2 repos | ~1.1k | Automated safety check: Pass | Apache-2.0 |
openinterpreter/openinterpreter
Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.
onyx-dot-app/onyx
Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
openinterpreter/openinterpreter
Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.
prisma/orm
Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.
basicmachines-co/basic-memory
Views, sets, unsets and validates cmux settings in ~/.config/cmux/cmux.json with a helper script that checks keys against the schema.
basicmachines-co/basic-memory
End-user control of cmux topology and routing (windows, workspaces, panes/surfaces, focus, moves, reorder, identify, trigger flash). Use when automation needs…
basicmachines-co/basic-memory
Opens markdown files in a formatted cmux panel beside the terminal that re-renders on every change, handy for plans and task lists.
basicmachines-co/basic-memory
Keeps agent actions scoped to the cmux workspace and terminal that invoked it, and lays out pane and surface commands that avoid disrupting the user's own focus.
basicmachines-co/basic-memory
Produces PR, changelog and two-week retro images for the Basic Memory repository from evidence in PR bodies, saved to fixed paths under docs/assets/infographics.
basicmachines-co/basic-memory
Adds Pydantic Logfire tracing, logging and metrics to Python, JavaScript or TypeScript and Rust projects, with the correct setup order and library extras.
Works with
Categories
Enforce the Basic Machines GitHub PR review loop before merging. PR Review Loop is an agent skill from basicmachines-co/basic-memory. Enforce the Basic Machines GitHub PR review loop before merging.
PR Review Loop fits situations like: Codex is preparing to merge; declare a PR ready; monitor Codex comments; address review feedback.
Run `npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a claude-code`. Or copy the skill folder (.agents/skills/pr-review-loop in basicmachines-co/basic-memory) into .claude/skills/pr-review-loop in your project. Claude Code loads it when a task matches its description.
Run `npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a codex`. Or copy the skill folder (.agents/skills/pr-review-loop in basicmachines-co/basic-memory) into .agents/skills/pr-review-loop in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add basicmachines-co/basic-memory --skill pr-review-loop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-review-loop, .gemini/skills/pr-review-loop, .github/skills/pr-review-loop and .opencode/skills/pr-review-loop in your project.
Going by SKILL.md and its folder, PR Review Loop needs the command-line tools its instructions call (gh and jq).
SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
PR Review Loop is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with PR Review Loop: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
basicmachines-co (a GitHub organization) maintains it in basicmachines-co/basic-memory, which has 4,115 GitHub stars. The repository holds 49 skills in this directory. The repository was last updated on October 7, 2026.
Source: basicmachines-co/basic-memory on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.