Forge client (flat on arks)
Forge collaboration (pull requests, issues, reviews, labels, milestones, releases with assets, and forge auth) lives as top-level commands on the same arks CLI — a gh-like client beside git porcelain. There is no separate arks-hub release binary. Nested arks hub … is transitional only (forwards to flat leaves or serve).
You do not need forge client features for everyday Git work (git→arks). To host the arks forge, use arks serve (Self-host) — not arks hub serve as the primary story.
What it is
- Part of the single published CLI:
arks - Internal library crate may still be named
arks-hub; users typearks pr …,arks issue …,arks auth …, … - Command names track common
ghmuscle memory (arks pr merge↔gh pr mergefor mapped commands) - Talks to the host with a native HTTPS API client — it does not run
ghorgitunderneath - CLI client surface (talks to
arks serveor compatible forge APIs); the local forge server and embedded SSR Web UI live underarks serve(Self-host)
Alias sketch
# Git porcelain (required product story):
alias git=arks
# Forge peer personality (optional):
alias gh=arks
# or flat on bare arks:
arks pr list
arks issue create
arks auth status
Example: gh pr merge 12 muscle memory maps to arks pr merge 12 (host API). That is not the same as arks merge (Git merge).
Personality details: CLI personality.
Versus core Git commands
Git on arks |
Forge client on arks |
|
|---|---|---|
| Job | Git CLI, remotes, leases | PRs, issues, releases, forge auth |
| Familiar peer | git |
gh (mapped rows → flat arks …) |
| Required for Git DoD? | Yes | No |
| Separate release binary? | — | No (same arks) |
| Host process | — | arks serve (client is not the host) |
Overlap nouns (design): under personality arks, status / config / repo use git-first parse + unified Git+Forge output/exit — not hard-renames as the primary story. Optional inbox / forge-config MAY exist as demoted aliases only. arks auth ≠ arks credential*.
Command groups (design)
Surveyed against gh help; phases live in Specfold. v1-shaped flat groups include:
auth · pr · issue · release · repo · label · search · api · org · alias · completion · config · status · browse · ruleset / rs
Flags follow gh. Every leaf parses gh’s flags (long and short spellings, --flag=value, bundled short flags) and refuses unknown flags; --json / --jq / --template use gh’s field names. Output is gh’s piped (non-TTY) form. --web prints the URL instead of opening a browser. Commands that would run Git locally — pr checkout, repo clone, repo fork --clone, repo create --clone, a local repo sync — print the arks commands to run instead; arks never spawns git or gh.
Features the arks serve forge provides for them:
| Feature | Commands |
|---|---|
Repository content (each forge repository has a Git directory under --forge-git-root, default <forge-data>/git) |
repo create --add-readme/--gitignore/--license, repo read-dir / read-file, pr diff, real pr merge (merge / squash / rebase), pr update-branch, pr revert, repo fork, repo sync, release download --archive |
| Commit statuses | pr checks (post a status with arks api -X POST repos/OWNER/REPO/statuses/SHA -f state=success -f context=ci; exit 8 while pending, 1 on failure) |
| Rulesets | ruleset list / view / check; create one with arks api -X POST repos/OWNER/REPO/rulesets --input ruleset.json. Active rulesets block pr merge until required reviews and status checks pass, and refuse pushes to arks serve that break them (deletion, force push, creation, update, merge commits, direct pushes under a pull-request rule, missing status checks); refused refs show as ! [remote rejected] |
| Template catalogs | repo gitignore list|view, repo license list|view (arks’s own short templates; licenses point to the SPDX text) |
| Search | search issues|prs|repos|code|commits with gh’s qualifiers |
| Issue extras | issue develop (linked branches), issue artifact create|list|view|edit|download|delete |
| Accounts | auth login (several accounts per host), auth switch, auth status --json hosts |
arks-owned forge features (argv symmetric with gh; arks defines storage and semantics in the arks serve forge):
| Group | Leaves |
|---|---|
gist |
create · list · view · edit · delete · rename · clone |
discussion |
create · list · view · edit · comment |
project |
list · view · create · edit · delete · close · copy · link · unlink · mark-template · field-create · field-delete · field-list · item-add · item-archive · item-create · item-delete · item-edit · item-list |
ssh-key / gpg-key |
list · add · delete |
repo autolink |
create · list · view · delete |
repo deploy-key |
add · list · delete |
Notes: a forge gist is a file map without git history, so arks gist clone writes the files into a directory and prints an arks init recipe (it never runs git). gist edit and discussion comment take a file or flag value instead of opening an editor. SSH and OpenPGP keys are checked for a well-formed public key (fingerprints follow OpenSSH and RFC 9580); private key material is refused, and OpenPGP key expiry is not evaluated. Projects have no teams or iteration fields. arks repo autolink / arks repo deploy-key reach the forge directly; on the Git side arks repo only owns info / structure. These leaves are tested on the host against a local forge (Partial, host-advisory) — no Docker receipt yet.
arks is an independent forge, not a port of GitHub. gh supplies command names only. Actions CLI leaves (workflow, run, cache, variable, secret, with pure-Rust NaCl crypto_box_seal secret encryption) and Rulesets (ruleset / rs), repo gitignore / repo license, and pr checks are implemented. GitHub-platform-only services remain out of scope and refuse with exit 2: attestation, codespace, copilot, extension, and release verify / release verify-asset. Decision record: ADR 20261119230000.
Normative matrix: arks hub gh command matrix · CSV (logical pillar; argv is flat).
Honesty
All 171 v1 rows in the forge-client command matrix are clean-room verified (Missing=0, Partial=0, Deferred=0) across the Docker re-receipt (hub matrix receipt), later-row closure (milestone and transitional arks hub serve listen/bind verified; top-level review refused in favour of pr review, later rows receipt), and 6/12-agent local forge multi-agent testing (multi-agent receipt). HTTPS remote forge client end-to-end is verified (HTTPS client receipt). arks hub smoke, --local-tls (distinct from product in-process TLS — see Self-host / TLS receipt), and --out-refuse remain diagnostic harnesses. Out-of-scope groups (extension / copilot and the GitHub-platform-only groups above) exit cleanly with code 2. Core Git compatibility does not depend on the forge client, and there is no separate arks-hub binary. See Completeness.
Next
Self-host CLI personality Agent Limits Git vs arks Getting started