oh-my-pr

agent
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Uyari
  • process.env — Environment variable access in .github/workflows/doc-review.yml
  • process.env — Environment variable access in bin/codefactory.cjs
Permissions Gecti
  • Permissions — No dangerous permissions requested
Purpose
Code Factory is a local-first autonomous tool that monitors GitHub repositories for pull request activity. It automatically triages review feedback and dispatches locally installed AI agents (like Claude or Codex) to isolated worktrees to fix code and resolve issues.

Security Assessment
Risk Rating: Medium

The tool interacts heavily with your local file system and GitHub account. It reads environment variables—likely GitHub tokens and API keys—inside its main binary and GitHub workflows, which is standard for this type of automation, though you should ensure these secrets are managed securely. Because it dispatches external AI coding agents and executes their generated fixes, it inherently runs shell commands and makes external network requests to GitHub and the AI models. No hardcoded secrets or overtly dangerous permission scopes were found during the scan. However, granting an autonomous agent the ability to push code to your repository branches always carries inherent risk.

Quality Assessment
The project is actively maintained, having received updates as recently as today. It uses strict TypeScript, is well-documented, and is covered by a standard MIT license. However, community trust and visibility are currently very low. With only 5 stars, the tool has not yet been broadly tested or vetted by the open-source community.

Verdict
Use with caution: the tool appears competently built and strictly local, but its autonomous code-pushing capabilities and lack of widespread community vetting mean you should supervise it closely in sensitive repositories.
SUMMARY

Autonomous GitHub PR babysitter — watches your repos, triages review feedback, and dispatches AI agents to fix code.

README.md

Code Factory

Local-first GitHub PR babysitter for Codex and Claude.

Code Factory logo

npm version
CI
License: MIT
Node.js 22+
TypeScript

Code Factory watches GitHub repositories, syncs PR feedback, triages what matters, and dispatches locally installed coding agents inside isolated app-owned worktrees. It keeps durable state in ~/.oh-my-pr and exposes the same system through a dashboard, REST API, and MCP server.

No hosted service. No agent edits inside your working copy. Your PR automation stays on your machine.

Code Factory dashboard

Features

  • Watch multiple repositories or add a single PR by URL.
  • Auto-register open PRs, archive closed or merged PRs, and keep syncing review activity.
  • Store PR state, questions, logs, and social changelogs in SQLite with mirrored log files.
  • Triage feedback into accept, reject, or flag, with manual overrides and retry for failed or warned items.
  • Run codex or claude in isolated worktrees under ~/.oh-my-pr, then push verified fixes back to the PR branch.
  • Evaluate review comments and failing CI statuses, post GitHub follow-ups, and resolve review threads.
  • Detect merge conflicts and optionally let the agent resolve them automatically.
  • Ask natural-language questions about any tracked PR from the dashboard or via MCP.
  • Configure trusted reviewers, ignored bots, polling, batching, and run limits from settings.
  • Enable drain mode to pause new work and wait for active runs to finish before deploys or upgrades.
  • Check onboarding status, install Claude or Codex review workflows, and generate social changelogs every 5 PRs merged to main.
  • Use the React dashboard, local REST API, MCP server, or optional Tauri desktop shell.

How It Works

Code Factory workflow
  1. Add a repository to the watch list or register a PR directly by URL.
  2. The watcher polls GitHub, auto-registers open PRs, syncs reviews and comments, archives PRs that closed upstream, and queues babysitter runs.
  3. Accepted work is executed in an app-owned repo cache and isolated git worktree under ~/.oh-my-pr.
  4. The agent applies fixes, verifies the result, pushes to the PR branch, updates GitHub threads, and writes logs for the full run.

Quick Start

npm install -g oh-my-pr
oh-my-pr

That's it. The dashboard opens in your browser at http://localhost:5001.

Prerequisites

  • Node.js 22+ (tested with Node v24.12.0)
  • git
  • GitHub auth via gh auth login, GITHUB_TOKEN, app config, or a saved dashboard token
  • Either the codex CLI or claude CLI installed and authenticated locally

CLI Usage

oh-my-pr              Start the dashboard server (opens browser)
oh-my-pr --help       Show help message
oh-my-pr --version    Print the version

Set PORT to change the default port (5001).

Run From Source

git clone https://github.com/yungookim/oh-my-pr.git
cd oh-my-pr
npm install
npm run dev

The dashboard is served on port 5001 by default. All /api/* routes are restricted to loopback callers.

MCP and API

Code Factory exposes the same local system through REST and MCP.

npm run mcp

Use it with MCP hosts such as Claude Desktop or OpenClaw, or call the REST API directly from local tooling. Full endpoint and tool docs live in LOCAL_API.md.

Docs

Development

Command Purpose
npm run dev Start the development server
npm run build Build the production bundle
npm run start Run the production build
npm run mcp Start the MCP server
npm run check Run TypeScript checks
npm run lint Run ESLint
npm run test Run the server test suite
npm run tauri:dev Start the Tauri desktop app in development
npm run tauri:build Build the Tauri desktop app

Local State

By default Code Factory stores its runtime data in ~/.oh-my-pr:

  • state.sqlite for durable app state
  • log/ for mirrored activity logs
  • repos/ for app-owned repository caches
  • worktrees/ for isolated PR worktrees

Set OH_MY_PR_HOME to override the root path. The legacy CODEFACTORY_HOME name is still supported for compatibility.

Contributing

See CONTRIBUTING.md.

License

MIT Copyright 2026 KimY

Yorumlar (0)

Sonuc bulunamadi