About
Self-hosted GitHub App for issue triage, specification, and agentic pull request review
Developer ToolsMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalGROM
GitHub Review & Operations Manager — An independent, self-hosted GitHub App for issue triage, specification, and code review.
Live Examples • Local Test-Drive • Benchmarks • Quick Start • Why GROM • Architecture • Configuration • Documentation • Security
GROM is a self-hosted GitHub App that runs issue triage, specification drafting, and agentic pull request review inside isolated provider containers on your own infrastructure.
GitHub is the entire user interface — no external SaaS dashboard and no proprietary web portal. GROM runs on your own infrastructure and has no external SaaS control plane of its own. For inference, the analysis context is sent to the AI provider or gateway you configure (Claude and/or Codex); GROM itself runs no model inference.
Two outbound paths are separate, and only one of them is yours to restrict (see SECURITY.md):
- Egress from your host. The provider control-plane container runs on a Docker
bridgenetwork, and GROM does not confine its outbound connections to the provider's address. Host firewall rules and an outbound proxy allowlist (HTTPS_PROXY) govern the connections that leave your host, and you configure them. With the default Claudeagent_sdkruntime, Claude'sWebFetchbelongs here: the Claude CLI retrieves the page from inside the provider container. - Provider-side web search. Codex's
web_search: "live"and Claude'sWebSearchare executed by the AI provider on the provider's side, and so are both server tools of the Claudemessages_apiruntime,web_search_20250305andweb_fetch_20250910. Those requests originate from the provider's infrastructure, not from your host, so your firewall and proxy rules do not constrain which sites the provider reaches.
Independence and trademarks. GROM is an independent open-source project by OneCraft AI and GROM Contributors. It is not affiliated with, sponsored by, or endorsed by Anthropic PBC, OpenAI, or GitHub, Inc. Claude, Codex, ChatGPT, and GitHub are names or trademarks of their respective owners and appear here only to describe compatibility. Provider credential modes and the maintainers' good-faith understanding of provider terms are summarized in
docs/compliance.md; it is not legal advice, and the providers' own terms govern.
See GROM in Action
Every link below opens a real, public GROM run on its own repository, onecraft-ai/grom: two-pass pull request reviews (claude-opus-5-5, high effort) and issue triage, published by the GitHub App exactly as shown.
- PR #5: web-verified finding and a three-round delta (
grom review-local). Round #1 used hosted web search to confirm an upstream report (openai/codex-security#2243) and flagged that discarding the copied Codexauth.jsonafter a mid-run token refresh would sign the operator out of their host Codex login. Round #2 confirmed that fix and found that a failed write-back of the rotated token was swallowed silently. Round #3 ended with✅ Everything looks good, and GROM resolved all three of its inline threads. - PR #6: timeout race reproduced on the exact head (
init --github-app,discover-repos). GROM ran the exact-head code in its offline compute container and reproduced a race in which the--timeout-msdeadline cancelled the manifest code exchange after GitHub had already created the App. Round #2 verified the fix and resolved the thread. - PR #7: documentation checked against the code (
ROADMAP.md, provider guide). Over four rounds GROM compared the documented symbols and journal fields with the source (the usage fields behindisZeroMeasuredUsage, theweb_unsupportedjournal payload, the scope ofdurableRetryAllowed) and resolved all five of its threads as the corrections landed. - PR #4: multi-arch GHCR release workflow and a Round #2 auto-resolve. Round #1 noted that
README.mdanddocs/self-hosting.mdhardcoded thegrom-claudeversion tag with no version-sync test. Round #2 resolved the thread after the follow-up push. - Issue #8: issue → triage → specification (
@anthropic-ai/sdkadapter)./grom triageexplored the exact-base repository and the upstream Anthropic documentation and returnedneeds_humanwith its open design questions. Once the maintainer answered them, the next run moved toready_for_specificationand published a complete implementation specification that cites six Anthropic API documentation pages and the SDK repository as evidence. Issue #13 shows aneeds_humantriage that audits every hardcodedgithub.comorigin for GitHub Enterprise Server support.
For single-pass local runs over the same history, including the ones that missed or failed, see Reproducible Local Benchmarks.
Why GROM
Most automated review bots either run single-shot diff prompts with high false-positive rates or require sending your repository and credentials to a hosted third-party SaaS.
GROM is designed around strict engineering and security invariants codified in CONSTITUTION.md:
- Your repository owns the policy. Review rules, acceptance criteria, and conventions come from your repository's
AGENTS.md,CLAUDE.md,.grom/sources.md, and.grom/grom.yaml— not hardcoded prompt opinions in GROM. - Evidence-first, agentic exploration. Reviewers read the exact PR commit in a detached snapshot worktree with full codebase navigation — never raw diff guesswork, arbitrary candidate caps, or controller-paraphrased summaries.
- Neutral multi-provider engine contract. Configure Claude (
claude-opus-5-5), Codex (gpt-6.2-sol), or both with fixed or weighted routing (triage,specification,review). Codex is enabled by default; for Claude-only setups setengine.routing.provider: claudeandengine.providers.codex.enabled: falseinconfig/grom.yaml. Claude runs either on the defaultagent_sdkruntime or on themessages_apiruntime built on the Apache-2.0@anthropic-ai/sdk(engine.providers.claude.runtime). - Exact-head & delta-aware re-reviews. Findings stay anchored to the exact commit SHA. When a PR updates,
/grom reviewtracks resolved vs. remaining findings and prevents duplicate inline spam. - Container-isolated execution.
repo_shellcompute runs in--network nonecontainers with a read-only exact-head checkout,--cap-drop=ALL,no-new-privileges,pids-limit, bounded ephemeral tmpfs, and zero secrets. Provider control planes run on Dockerbridgenetworks (supporting operator-configuredHTTPS_PROXYallowlists) with secrets scrubbed from snapshots and outputs. - Crash-safe GitHub publication. SQLite-backed durable outbox (
migrations/0001_initial.sql) guarantees exactly-once delivery and honest terminal states without shadow schedulers.
Visual Tour
Pull Request Review Overview & Delta Tracking
Structured PR summary comment anchored to the exact commit SHA, with concise findings, severity assessment, and automatic delta tracking across follow-up pushes.
Inline Line-Anchored Findings
Actionable, codebase-verified inline review threads anchored to exact changed hunks with clear reproduction context and suggested remediation.
Issue Triage & Specification Lifecycle
Label-driven or /grom-triggered issue triage and specification synthesis that checks repository context before drafting structured implementation specs.
How GROM Compares
| Capability | GROM (Self-Hosted) | SaaS AI Review Bots | Raw CI Prompt Scripts |
|---|---|---|---|
| Self-hosted on your infra (no external SaaS control plane) | Yes | No | Yes |
GitHub as the sole UI (/grom, checks, inline reviews) |
Yes | Partial (web portal) | No |
Repo-owned review policy (AGENTS.md, CLAUDE.md) |
Yes | Limited | Manual |
| Full codebase agentic exploration on exact commit | Yes | Varies | Diff-only |
| Provider neutral (Claude & Codex optional/configurable) | Yes | Vendor-locked | Custom |
Hardened compute isolation (--network none) + proxy support |
Yes | Black-box | Host CI runner |
| Durable SQLite outbox + exact-head SHA anchoring | Yes | Managed | None |
| Zero telemetry / Apache-2.0 open source | Yes | Commercial | DIY |
Architecture
flowchart LR
GH["GitHub Webhooks\n(Issues, PRs, /grom comments)"] -->|HMAC-SHA256 verified| Core["GROM Coordinator\n(Node.js 24 + SQLite)"]
Core -->|Exact-head detached snapshot| Snap["Ephemeral Workspace\n(Secrets scrubbed)"]
Core -->|Stage & lease run| Engine["Neutral Engine Adapter"]
Engine -->|Optional| Claude["Claude Container\n(Bridge net / optional HTTPS_PROXY)"]
Engine -->|Optional| Codex["Codex Container\n(Bridge net / optional HTTPS_PROXY)"]
Claude -->|Typed structured output| Core
Codex -->|Typed structured output| Core
Core -->|Outbox publication| GHOut["GitHub Checks,\nPR Reviews & Issue Comments"]
For full trust boundaries, threat assumptions, and container hardening guarantees, see docs/architecture.md and SECURITY.md.
5-Minute Local Test-Drive
grom review-local <base> <head> runs one real exact-head agentic review of merge-base(base, head)..head in a local Git checkout and prints the result in your terminal. It needs no GitHub App, webhook, or database: GROM itself makes no GitHub API request, supplies no GitHub credential, and posts no comment. The provider's hosted web search and fetch stay available to the model as in any GROM review, without GitHub authentication. Only committed revisions are reviewed; uncommitted changes are ignored. A local run has no pull request description, linked issue, or discussion, so the review declares intent as missing, and a conclusion that depends on that intent comes back as INSUFFICIENT_EVIDENCE rather than a guess.
Prerequisites
- Docker. GROM starts the provider and offline compute containers through the Docker daemon.
- A provider credential:
OPENAI_API_KEY(Codex) orANTHROPIC_API_KEY(Claude). For a personal localreview-localrun only, Codex can instead use your own signed-in Codexauth.json(see below); that option is not a recommendation for a shared GitHub App deployment. Seedocs/compliance.mdbefore choosing a credential mode. - The images, present locally before the run. Provider and compute containers start digest-pinned with
--pull never: GROM resolves each image you name to its local image ID (sha256:...) and pulls an absent image only when you pass--pull.
Prebuilt GHCR images require a published GitHub Release.
0.17.0is the first release published to GHCR (see the note under Quick Start). Until that release is published, or on any unreleased source checkout, skip thedocker pullstep below, build the:devimages from source first, and usegrom:devand--image grom-codex:dev.
For an unreleased source checkout, or a version whose GitHub Release is not published yet, build the coordinator and the Codex provider image from that checkout:
docker build -t grom:dev .
docker build -t grom-codex:dev -f docker/codex.Dockerfile .
Once a release (such as 0.18.0) is published on GitHub, you can pull the release images instead and use ghcr.io/onecraft-ai/grom:0.18.0 and --image ghcr.io/onecraft-ai/grom-codex:0.18.0 wherever the commands below say grom:dev and grom-codex:dev:
docker pull ghcr.io/onecraft-ai/grom:0.18.0
docker pull ghcr.io/onecraft-ai/grom-codex:0.18.0 # or pass --pull to review-local
Claude has two provider images. For the default agent_sdk runtime, grom-claude is never published: build grom-claude:0.18.0 locally from a GROM checkout with the reference compose.claude.yaml (see step 2) and pass --image grom-claude:0.18.0:
GROM_CLAUDE_CONTEXT="$PWD" \
docker compose -f deploy/reference/compose.claude.yaml --profile claude build claude-image
For the messages_api runtime, set engine.providers.claude.runtime: messages_api in the file you pass with --config. review-local then defaults to the published ghcr.io/onecraft-ai/grom-claude-messages:<version> (in releases after 0.17.0; add --pull to fetch it), or build it from a checkout with docker build -t grom-claude-messages:dev -f docker/claude-messages.Dockerfile . and pass --image grom-claude-messages:dev.
Run from the Container (no Node.js on the host)
cd /path/to/your/repository
state="$(mktemp -d)" # isolated scratch state, visible to Docker at the same path
docker_gid="$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
--entrypoint stat grom:dev -c '%g' /var/run/docker.sock)"
docker run --rm \
--user "$(id -u):$(id -g)" \
--group-add "$docker_gid" \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$PWD:/repo:ro" \
-v "$state:$state" \
-e GROM_HOST_STATE_PATH="$state" \
-e OPENAI_API_KEY \
grom:dev \
review-local main HEAD --repo-root /repo \
--image grom-codex:dev
rm -rf "$state"
-v "$PWD:/repo:ro": your checkout is only read. GROM copies the two revisions into its own snapshot and never writes to the repository.$PWDmust be a primary Git checkout: in a linkedgit worktree,.gitis a file pointing to a Git directory outside/repo, which the container cannot see.-v "$state:$state"withGROM_HOST_STATE_PATH: the coordinator starts sibling provider and compute containers through the Docker socket, and they bind-mount the snapshot by host path, so the scratch directory must have the same path on the host and in the container. Use an isolated directory, never the state directory of a running GROM instance. Everything the run creates there is removed when it ends.--user: the snapshot and the read of your checkout happen as you. Git refuses to read a repository owned by another user.--group-add "$docker_gid": lets that user reach the Docker socket. The group is read from inside a container because that is where the coordinator opens the socket; on macOS (OrbStack, Docker Desktop) the host path is a link to a per-user socket, sostaton the host reports a different owner.-v /var/run/docker.sock:/var/run/docker.sock: gives the container control of the host Docker daemon. This is the same trust the Compose deployment already requires.
Claude with an API key: replace -e OPENAI_API_KEY with -e ANTHROPIC_API_KEY and use --image grom-claude:0.18.0 (the image is built locally and never pulled). For the messages_api runtime, mount a configuration that sets engine.providers.claude.runtime: messages_api, pass it with --config, and use the Messages image instead.
Codex with your own ChatGPT subscription, for a personal local run on your own machine only: replace -e OPENAI_API_KEY with the two lines below and add --engine codex --credential subscription after review-local main HEAD. Only auth.json is copied into the isolated state. Because ChatGPT refresh tokens are single-use, review-local writes a rotated token back to the mounted auth.json on exit before deleting the temporary copy (keep the mount read-write without :ro, or use a dedicated auth.json / OPENAI_API_KEY). A subscription may not offer the default review model: when the run fails with The '<model>' model is not supported when using Codex with a ChatGPT account, pass a model your plan lists, for example --model gpt-6-sol. This is a personal local test-drive with your own Codex profile; for a shared GitHub App deployment use credential: api_key (see docs/compliance.md).
-v "$HOME/.codex/auth.json:/codex/auth.json" \
-e CODEX_HOME=/codex \
Run from a Source Checkout
With Node.js 24 on the host, from a GROM checkout:
npm ci && npm run build
node dist/cli.js review-local <base> <head> --repo-root <path> --image grom-codex:dev
GROM invokes only a trusted Docker CLI at /usr/local/bin/docker: on Linux it must be a root-owned, non-writable regular file, and on macOS only the signed OrbStack entry is accepted. With any other setup (for example Docker Desktop on macOS), use the container run above.
Options, Exit Codes, and Output
Flags accept --flag value and --flag=value, in any position relative to <base> and <head>. <base> and <head> are any Git revisions (branch, tag, HEAD~1, SHA) of the repository.
| Flag | Default | Meaning |
|---|---|---|
--repo-root <path> |
current directory | Local Git repository to review |
--engine codex|claude |
from the environment | Provider. Without the flag (API-key mode only): Codex when only OPENAI_API_KEY is set, Claude when only ANTHROPIC_API_KEY is set, an error when neither or both are set |
--credential api_key|subscription|gateway |
api_key (or with --engine and --config, the config's gateway/api_key; subscription always requires --credential subscription) |
api_key: OPENAI_API_KEY / ANTHROPIC_API_KEY. Codex subscription: auth.json in $CODEX_HOME or ~/.codex. Claude subscription: the existing directory GROM_CLAUDE_HOME. Claude gateway: ANTHROPIC_BASE_URL of an operator-controlled Anthropic-compatible gateway plus a gateway-issued ANTHROPIC_AUTH_TOKEN (optional GROM_CLAUDE_GATEWAY_CA); with the agent_sdk runtime review-local also accepts CLAUDE_CODE_OAUTH_TOKEN in place of it, but that variable is not a substitute for a gateway-issued credential (see docs/providers.md and docs/compliance.md), and with the messages_api runtime an x-api-key or authorization header in ANTHROPIC_CUSTOM_HEADERS can take the token's place. The messages_api runtime has no subscription. Codex has no gateway. subscription and gateway require --engine |
--model <id> |
engine.providers.<provider>.models.review |
Model (built-in: gpt-6.2-sol / claude-opus-5-5) |
--effort medium|high|xhigh |
engine.providers.<provider>.effort.review |
Reasoning effort (built-in: high) |
--config <path> |
built-in defaults | Instance configuration, the same YAML as GROM_CONFIG_PATH; also the source of the Claude runtime |
--format markdown|json |
markdown |
Output format on stdout |
--image <ref> |
ghcr.io/onecraft-ai/grom-codex:<version> / grom-claude:<version> (Claude agent_sdk) / ghcr.io/onecraft-ai/grom-claude-messages:<version> (Claude messages_api) |
Provider image: tag, <repo>@sha256:<digest>, or sha256:<image id>. A Claude image must fit the configured runtime by its org.onecraft-ai.grom.claude-runtime label |
--compute-image <ref> |
the provider image | Offline image for repository tools |
--pull |
off | Pull an image that is absent locally instead of failing |
--repository <owner/name> |
local/repository |
Label in the review identity; never triggers a GitHub request |
Exit codes: 0 a review was produced, whatever its verdict; 1 technical failure (review-local failed: <reason> on stderr, nothing on stdout); 2 usage error (usage on stderr). Progress and diagnostics always go to stderr.
- Markdown (default): the same Review body GROM posts on a pull request, then an
Inline findingssection with each inline comment under itspath:line, then aLocal runfooter with the verdict, reason codes, revision and merge base, provider, model, effort, and credential mode, image IDs, the tool-call breakdown, duration, tokens, cost shown as unmeasured, and the declared missing pull request context. - JSON (
--format json): exactly one JSON document on stdout with the keysverdict,reasonCodes,repository,baseSha,headSha,mergeBaseSha,engine,usage,toolCalls,durationMs,passes,context,findings,suppressedFindings,inlineComments, andmarkdown(the full Markdown text); see docs/local-stand.md for field semantics and an example. Cost is not measured:usage.costMicrounitsisnullandusage.costMeasuredisfalse.findingsholds the findings that entered the verdict;suppressedFindingsholds each quarantined one as{ reason, finding }, wherereasonis a policy-citation code orrejected_candidatefor a finding whose typed location or evidence failed validation.
What to Expect
- Each run executes exactly one review pass. When the configuration sets
review.passeshigher, the output says so instead of presenting one pass as a multi-pass result. - The repository's exact-base
.grom/grom.yamland instruction files (AGENTS.md,CLAUDE.md,.grom/sources.md) apply exactly as in production. - Time and token budgets come from the configuration (by default 30 minutes and 1,000,000 tokens).
- The review consumes real provider usage on your key or subscription.
- The verdict and findings are model output validated by the coordinator, not a CI gate.
Reproducible Local Benchmarks (grom review-local)
These are eight sequential single-pass grom review-local runs over historical commit ranges of this repository, with every measured result listed, including the run that missed a real bug and the two that produced no review. Each run used the Codex provider with a ChatGPT subscription (chatgpt_subscription), model gpt-6-sol, high effort, GROM runner commit 5490559 (first row) or 0a2af8c (rows 2–8), and local grom-codex:dev image sha256:ec0247378417aabfd9684349ebde66835161f805cb04c6546ff4376f88f17c55. A local run has no pull request description, so each review declared intent as missing.
From a GROM source checkout (npm ci && npm run build, plus docker build -t grom-codex:dev -f docker/codex.Dockerfile .):
node dist/cli.js review-local <base> <head> --engine codex --credential subscription --model gpt-6-sol --image grom-codex:dev --format json
Once 0.18.0 release images are published, you can run the same arguments from ghcr.io/onecraft-ai/grom:0.18.0 as shown in Run from the Container with --image ghcr.io/onecraft-ai/grom-codex:0.18.0.
Revision range (onecraft-ai/grom) |
Change under review | Outcome | Tool calls | Duration | Weighted tokens (uncached input / cache-read input / output / reasoning) | Cost |
|---|---|---|---|---|---|---|
25f2590..4633528 (PR #1) |
Gateway token redaction fix (src/serve.ts) |
CHANGES_REQUIRED: flagged a gateway-token scrubbing defect at src/serve.ts:572 |
69 | 174.7 s | 6,277 (4,257 / 104,192 / 1,377 / 643) | unmeasured (subscription) |
4633528..129568f (PR #2) |
English review output configuration | CLEAN, as expected for this change |
28 | 95.3 s | 2,483 (461 / 55,936 / 1,534 / 488) | unmeasured (subscription) |
129568f..90d26ed (PR #3) |
Direct OPENAI_API_KEY / ANTHROPIC_API_KEY authentication |
CLEAN, the same outcome as the live review of PR #3 |
78 | 250.6 s | 1,827 (298 / 135,936 / 1,222 / 307) | unmeasured (subscription) |
90d26ed..b7d3f1a (PR #4, round 1 head) |
GHCR release workflow and container-first init |
No review: CLI exited 1 with process_failed (container exited 137) after the runtime perimeter refused an undeclared Codex mcpToolCall builtin item |
n/a | n/a | n/a | n/a |
30a1f0f..c4bd496 (PR #5, round 1 head) |
grom review-local, initial head |
CLEAN, with one policy finding quarantined as policy_citation_not_verbatim. Missed the single-use auth.json refresh bug that the live two-pass review with web search caught on PR #5 |
46 | 198.1 s | 4,291 (413 / 103,040 / 2,326 / 1,552) | unmeasured (subscription) |
5490559..733eaa5 (PR #6, round 1 head) |
init --github-app and discover-repos |
No review: CLI exited 1 before inference because a synthetic PEM private-key header in a test fixture tripped the secretFreeReviewOutput guard on the diff |
n/a | n/a | n/a | n/a |
45caa4b..5dda539 (PR #7, round 1 head) |
ROADMAP.md and docs/contributing-providers.md |
CHANGES_SUGGESTED: caught the wrong EngineExecutionError usage fields in docs/contributing-providers.md |
64 | 119.7 s | 1,891 (385 / 96,768 / 1,096 / 410) | unmeasured (subscription) |
45caa4b..0a2af8c (PR #7, merged) |
Merged ROADMAP.md and provider guide |
CHANGES_SUGGESTED: flagged ROADMAP.md for presenting the grom-codex GHCR image as already published before the 0.17.0 release |
54 | 103.8 s | 1,678 (403 / 97,408 / 937 / 338) | unmeasured (subscription) |
How to read the table:
- The revision ranges and runner commits are exact; model behavior and newer
:dev/release builds can differ. Running the same revision range on a newer GROM checkout or provider image exercises the same contract with that build's behavior, and even on the same build model tool calls, tokens, duration, and findings are non-deterministic single observations rather than averages. - Weighted tokens are uncached input plus output plus reasoning tokens. Cache-read input is shown separately and is not part of the weighted total.
- Cost is
unmeasured (subscription). GROM reports no monetary cost measurement for these runs, andreview-localreports cost as unmeasured rather than zero:usage.costMicrounitsisnullandusage.costMeasuredisfalse(Review Invariant 27). - A single-pass local run is not the live GitHub review. These runs used
gpt-6-solfor one pass with no pull request description, linked issue, or discussion. The livegrom/reviewruns linked in See GROM in Action usedclaude-opus-5-5for two independent passes with the full pull request context. The PR #5 row shows the difference: the single-pass local run came backCLEAN, while the live review confirmed theauth.jsonrefresh bug with a web search and reported it. - Failed runs are listed, not hidden. The PR #4 and PR #6 rows ended without a review and without usage figures: the first as a technical
process_failedwhen the runtime refused a provider builtin tool item it does not allow, the second before any inference when the secret guard rejected the prepared input.
Quick Start
To try a review on your own repository before installing the GitHub App, see 5-Minute Local Test-Drive.
Release images start with
0.17.0.0.17.0is the first release published to GHCR: the coordinatorghcr.io/onecraft-ai/grom:0.17.0and the Codex providerghcr.io/onecraft-ai/grom-codex:0.17.0. Releases after0.17.0also publish the Claude Messages providerghcr.io/onecraft-ai/grom-claude-messages. Each GitHub Release from0.17.0on lists the pinnedsha256digests of its images in its notes;0.16.0predates that workflow and has no GHCR images. For an unreleased checkout, or a version whose GitHub Release is not published yet, follow Building from Source (or Pre-Release Checkout) in place of steps 1 and 2.
1. Scaffold an Instance Directory
The host needs only Docker Engine and Docker Compose v2. Copy the pinned coordinator reference ghcr.io/onecraft-ai/grom@sha256:<digest> from the notes of a GitHub Release (the same image is also tagged ghcr.io/onecraft-ai/grom:<version>, for example :0.18.0 for release v0.18.0) and run init from it to generate a self-contained instance layout (config/grom.yaml, config/repositories.json, .env.example, compose.yaml, compose.claude.yaml, data/, and secrets/):
mkdir -p grom-instance
docker run --rm --user "$(id -u):$(id -g)" \
-v "$PWD/grom-instance:/out" \
ghcr.io/onecraft-ai/grom@sha256:<digest> \
init --directory /out --host-state-path "$PWD/grom-instance/data"
To register the GitHub App in the same step instead of creating it by hand, run this in place of the init above (after the same mkdir). The browser runs on the host, so publish the callback port on loopback and let the server bind all interfaces inside the container:
docker run --rm --user "$(id -u):$(id -g)" \
-p 127.0.0.1:8788:8788 \
-v "$PWD/grom-instance:/out" \
ghcr.io/onecraft-ai/grom@sha256:<digest> \
init --directory /out --host-state-path "$PWD/grom-instance/data" \
--github-app --bind-host 0.0.0.0 --port 8788 --public-port 8788 \
--webhook-url https://grom.example.com/webhooks/github
Open the http://127.0.0.1:8788/start/<token> URL it prints (valid for this run only), confirm the App on GitHub, then install the App on your repositories from its Install App page (<htmlUrl>/installations/new). GROM writes the App key and webhook secret to secrets/ and creates .env with GROM_GITHUB_APP_ID filled in. Running plain init again later is harmless: it never overwrites existing files. Options, the manual alternative, and the required permissions are in docs/self-hosting.md.
Inside the container init sees the instance only as the bind mount /out, so --host-state-path tells it where data/ lives on the Docker host. It is written to GROM_HOST_STATE_PATH in .env.example, together with the database, log, and provider-home paths derived from it. The path must be absolute and free of whitespace and of $ : , ' " \ #, which Compose would reinterpret in .env or in the bind mount; init refuses such a path before creating anything.
(Alternatively, copy deploy/reference/, where the Compose service is named coordinator.)
2. Pull the Pinned Images
The GitHub Release notes of each version list the pinned multi-arch references ghcr.io/onecraft-ai/grom@sha256:<digest> and ghcr.io/onecraft-ai/grom-codex@sha256:<digest>, and in releases after 0.17.0 also ghcr.io/onecraft-ai/grom-claude-messages@sha256:<digest>. Pull the ones you use explicitly: the coordinator starts provider and compute containers with --pull never, so nothing pulls a provider image for you.
cd grom-instance
docker pull ghcr.io/onecraft-ai/grom@sha256:<digest>
docker pull ghcr.io/onecraft-ai/grom-codex@sha256:<digest>
docker pull ghcr.io/onecraft-ai/grom-claude-messages@sha256:<digest> # Claude messages_api only
The optional Claude provider runs in one of two images, and GROM_CLAUDE_IMAGE must match engine.providers.claude.runtime. With runtime: messages_api, use the pulled grom-claude-messages reference. The default agent_sdk runtime needs grom-claude, the one image you build yourself: it installs the proprietary @anthropic-ai/claude-agent-sdk, so GROM does not distribute it (see NOTICE). Point GROM_CLAUDE_CONTEXT at the release commit (the Release notes give the exact SHA) or at an absolute path to a local checkout, build with the generated compose.claude.yaml, and keep the printed sha256:... image ID for GROM_CLAUDE_IMAGE:
GROM_CLAUDE_CONTEXT=https://github.com/onecraft-ai/grom.git#<40-char-sha> \
docker compose -f compose.claude.yaml --profile claude build claude-image
docker image inspect --format '{{.Id}}' grom-claude:0.18.0
3. Configure & Start the Stack
[ -e .env ] || cp .env.example .env # keeps the .env created by --github-app
# Set OPENAI_API_KEY (Codex) and/or ANTHROPIC_API_KEY (Claude),
# GROM_UID=$(id -u), GROM_GID=$(id -g), DOCKER_GID, GROM_GITHUB_APP_ID (set by --github-app),
# GROM_CODEX_IMAGE=ghcr.io/onecraft-ai/grom-codex@sha256:<digest> (digest required),
# GROM_IMAGE=ghcr.io/onecraft-ai/grom@sha256:<digest> (required: compose.yaml has no default image),
# uncomment GROM_CLAUDE_IMAGE=sha256:<image-id> if you built the Claude image (agent_sdk)
# or set it to ghcr.io/onecraft-ai/grom-claude-messages@sha256:<digest> (messages_api),
# and, for a manually created App, place its private key & webhook secret in ./secrets/.
docker run --rm --user "$(id -u):$(id -g)" \
-v "$PWD:/out" \
ghcr.io/onecraft-ai/grom@sha256:<digest> \
discover-repos --directory /out --output /out/config/repositories.json --force
docker compose up -d
discover-repos replaces the placeholder config/repositories.json with the repositories the App's installation can access, looked up with only the App ID and private key. Pass --repo owner/name to serve a subset (required above 100 repositories) and --installation-id <id> when the App has several installations; see docs/self-hosting.md for all options and the manual format.
The generated config/grom.yaml connects both providers with credential: api_key (Claude stays disabled until you set enabled: true, and runs on the default agent_sdk runtime unless you set runtime: messages_api). Keep .env at mode 0600 and never commit it. Keep credential: api_key for a GitHub App deployment; for Claude, an operator-controlled Anthropic-compatible gateway is the alternative. The other credential modes and their constraints are described in docs/providers.md and docs/compliance.md.
See docs/self-hosting.md for GitHub App permissions, webhook events, manual App creation, reverse-proxy setup (Caddyfile.fragment), and image provenance verification.
Building from Source (or Pre-Release Checkout)
Use this path for forks, air-gapped hosts, any unreleased commit, or a version whose GitHub Release is not published yet. It needs only Docker and Git (the Dockerfiles are multi-stage, so no Node.js on the host) and replaces steps 1 and 2:
git clone https://github.com/onecraft-ai/grom.git
docker build -t grom:local grom
docker build -f grom/docker/codex.Dockerfile -t grom-codex:local grom
mkdir -p grom-instance
docker run --rm --user "$(id -u):$(id -g)" \
-v "$PWD/grom-instance:/out" \
grom:local \
init --directory /out --host-state-path "$PWD/grom-instance/data"
docker image inspect --format '{{.Id}}' grom-codex:local
Add -p 127.0.0.1:8788:8788 and the --github-app options from step 1 to that init to register the App the same way. Then continue with step 3 from cd grom-instance, using grom:local for discover-repos and the local images in .env: GROM_IMAGE=grom:local and GROM_CODEX_IMAGE=sha256:<image-id>, the ID printed by the last command (provider images are accepted only by digest or image ID, never by tag). For the optional Claude image, set GROM_CLAUDE_CONTEXT to the absolute path of the grom checkout instead of the Git URL.
4. Verify with Operator Diagnostics
Run configuration and runtime checks against that same Compose project (grom in grom init, or coordinator in deploy/reference/compose.yaml):
docker compose run --rm --no-deps grom validate
docker compose run --rm --no-deps grom explain-config
docker compose run --rm --no-deps grom doctor
5. Evaluate Review Quality Locally
This is the maintainer stand for measuring review-quality changes against recorded or placeholder pull request context; to try a review on your own repository, use grom review-local instead. From a GROM checkout with Node.js 24 (see CONTRIBUTING.md), verify deterministic source and context assembly first, or run full agentic reviews with digest-pinned stand images (GROM_STAND_CODEX_IMAGE / GROM_STAND_CLAUDE_IMAGE and GROM_STAND_COMPUTE_IMAGE; GROM_STAND_CLAUDE_RUNTIME=messages_api selects the Claude Messages runtime instead of the default agent_sdk):
npm run stand -- <base-sha> <head-sha> --repo-root=/path/to/repo --stage=source
npm run stand -- <base-sha> <head-sha> --repo-root=/path/to/repo --stage=context
See docs/local-stand.md.
Configuration
Instance operators configure providers, credentials, routing, and defaults in config/grom.yaml (see deploy/reference/grom.example.yaml and docs/providers.md).
Repositories customize review behavior and output preferences within instance bounds via .grom/grom.yaml on the base branch (validated strictly against schemas/grom-config.v1.schema.json):
version: 1
output:
language: en # en | ru | auto
visualStyle: expressive # expressive | restrained
review:
passes: 2
publicationMode: shadow # shadow | enforce
sections:
status: true
context: true
delta: true
Refer to docs/configuration.md and docs/providers.md for all schema fields, instance-level engine: routing examples, and provider requirements.
Slash Commands
Control GROM directly from GitHub issue and PR comments (alongside automatic GitHub webhook event handling):
| Command | Context | Action |
|---|---|---|
/grom review |
Pull Request | Trigger an agentic code review on the current head SHA |
/grom triage |
Issue | Run issue triage analysis and draft an implementation specification if ready_for_specification |
Documentation
| Document | Purpose |
|---|---|
CONSTITUTION.md |
Highest-authority engineering, safety, and honesty principles |
docs/self-hosting.md |
End-to-end Docker deployment, GitHub App setup, and operations |
docs/configuration.md |
.grom/grom.yaml, repository registry, and environment variables |
docs/providers.md |
Claude and Codex container engines, models, and auth modes |
docs/compliance.md |
Provider credential modes, provider terms, and project independence |
docs/contributing-providers.md |
How to add a provider adapter: integration surface, invariants, and verification |
docs/architecture.md |
Runtime pipeline, trust boundaries, SQLite outbox, and isolation |
docs/product/review-invariants.md |
Behavioral PR review contract |
docs/product/issue-flow.md |
Issue triage and specification workflow |
docs/product/request-lifecycle.md |
End-to-end webhook, queue, execution, and publication lifecycle |
docs/local-stand.md |
Maintainer evaluation stand and how it differs from grom review-local |
ROADMAP.md |
Directional priorities and constitutional non-goals |
CHANGELOG.md |
Release notes for 0.18.0 |
Contributing & Governance
We welcome issues, bug reports, and pull requests! Please read CONTRIBUTING.md and our CODE_OF_CONDUCT.md before opening a PR. ROADMAP.md shows where the project is heading, and docs/contributing-providers.md explains how to add a provider adapter.
Contributors need Node.js 24. All commits require a Developer Certificate of Origin sign-off (git commit -s), and local changes must pass:
npm run agent:check && npm test && npm run lint && npm run format:check
Security
If you discover a security vulnerability in GROM, please report it privately as described in SECURITY.md ([email protected]) rather than opening a public issue.
License
Licensed under the Apache License, Version 2.0. See NOTICE for attribution details.
Explore related projects
Loading…