hallpass lets coding agents use git and gh on GitHub without holding a credential. A broker runs as its own user and holds up to three: a GitHub token, an SSH key, and a signing key. git and gh send their requests through the broker's Unix sockets. The broker checks each request against a policy, uses the credential itself, and logs the request. Nothing hallpass puts in an agent's reach holds a secret, so code that goes around the broker reaches GitHub with none of hallpass's credentials. Your own credentials are yours to lock down; see Use your own credentials.
Each credential is optional and turns on its own features:
| Credential | Turns on |
|---|---|
Token: a device login or a classic PAT, repo scope only |
gh, and the check that follows a renamed repo's old name only to an allowed new name |
| SSH key, ECDSA P-256 | git |
| Signing key, ECDSA P-256 | signed commits and tags |
Where each one is kept, and who can reach it, depends on the platform. See Protection by platform.
Every credential acts as you on GitHub, so it works in your repos and your
orgs' repos without an app install. Orgs that restrict OAuth apps reject
the device login, and Set up a machine covers them. The allowlist in /etc/hallpass/hallpass.toml decides which repos
agents reach.
hallpass assumes code running as you is hostile: a malicious npm
postinstall script, a poisoned dependency, or an agent that was talked into
something. It aims to keep that code from taking a GitHub credential, and to
limit what it can do on GitHub through the broker. How much to limit is your
call: the policy is set to your risk tolerance. hallpass limits what agents
do on GitHub. It isn't a network sandbox, and it doesn't limit where data
goes.
flowchart LR
A[agent, or any code running as you] -->|git, gh| B
subgraph B[broker, its own user]
P[policy and allowlist] --> C[adds the credential]
C --> L[audit log]
end
B --> G[GitHub]
A -. git personal .-> V[your own key, in a vault or behind a passphrase]
V -.->|you approve| G
A -. anything else .-> N[the network: hallpass doesn't see it]
It prevents these:
- Theft of a credential by code running as you. The broker runs as its
own user (
hallpass, or_hallpasson macOS). Its files are mode 0600 and its state directory is closed to others, so your processes can't read them or attach a debugger to the broker. git and gh never see a token or key. Root can do both. What protects the credentials from root depends on the platform; see Protection by platform. - Reaching repos you didn't allow. The broker refuses any repo the
allowlist doesn't cover, for git, gh, and GraphQL node IDs, except a
REST read or a git fetch, which go without a credential and so see only
what anyone could. GraphQL
reads that walk from an allowed repo into another one, through an owner,
an author, a fork, or a cross-reference, see only names, IDs, numbers,
titles, and states, never bodies, code, or comments. Of a repo reached
that way, like a fork's parent, they also see its description, its
default branch's name, your permission there, and whether it has issues
and a wiki, which
gh pr createreads. GitHub keeps a repo's old name working after a rename or transfer, so with a token the broker asks GitHub what a repo is called now before running git there. It follows an old name only when the allowlist covers the new name too, and then runs git under the new name with the new name's rule. On a machine with only an SSH key it can't ask, so an old name that the allowlist covers still reaches the renamed repo. - Merging, approving, and pushing the default branch, unless you allow it. By default, agents can't merge or approve PRs, push the default branch, add labels, or rerun or dispatch workflows. You can allow each of these everywhere or in one repo. See Policy. The first push to an empty repo is always allowed, though it creates the default branch.
- Pushing tags, protected branches, and your branches. No policy allows
these. Agents can't push a tag or a branch that
protected_branchesnames. The default branch is the one exception:push.defaultalone decides it. Agents also can't update or delete a branch they didn't create. The broker remembers the commit an agent last pushed to each branch. Once you push a commit of your own to the branch withgit personal, or delete it and make it again at another commit, it's yours. A branch you recreate at the agent's own last commit still counts as the agent's, since it holds only the agent's work. - Workflow injection. Shai-Hulud committed a workflow to send repo
secrets out. git goes over SSH, where GitHub doesn't check workflow
changes, so the broker reads every pushed pack and refuses a branch whose
new commit changes
.github/workflows. It refuses changes to.github/dependabot.ymlthe same way, since a registry that file names gets the Dependabot secrets it references, and changes to any path you name inprotected_paths. That check is the only guard: the token's missingworkflowscope doesn't apply, because pushes don't use the token. Through gh, the broker refuses every write to the contents API, andloginandinstall-patrefuse tokens withworkflowscope. - Settings, secrets, and admin. The broker refuses repo settings, branch protection, hooks, deploy keys, secrets and their names, release changes, and deletes, and no policy can allow them. It also refuses anything outside an allowed repo's API, such as creating a repo or a gist on your account. It refuses reading rulesets and Actions variables unless the policy allows it. Any request not on its lists never goes with the token, including whatever GitHub adds later. A read among those goes without it, so GitHub shows only public data; see Reads without the token.
- Commands for bots. PR and issue text with lines like
/mergeorbors r+is refused, because bots would take them as your command. - Silent fallback to your credentials. The git config rewrites every
form of github.com remote to SSH and sets
core.sshCommandtohallpass ssh, which sends github.com to the broker, never to your own key. It also clears every credential helper for github.com, so an HTTPS request that slips through stops instead of falling through to a keyring token or a prompt.
It mitigates these:
- Agents changing other people's work as you. Agent PRs, comments, and pushes show as you, so no org has to approve anything, and nobody can tell them from yours. To keep that from reaching colleagues, agents can edit only PRs, issues, and comments you wrote.
- A stolen token. A PAT expires within a year, and
statuswarns from 14 days out. A device-login token doesn't expire. Runloginagain every few months, which revokes the old one. - Not knowing what happened. The broker logs every request it allows or
refuses, with the client's uid and process chain, for example
git push origin fix < claude.sudo /opt/hallpass/bin/hallpass logprints it a line per request, and--refused,--repo, and--sincenarrow it down.log --summarycounts the refusals by repo and reason, and keeps the command that would allow each one where the refusal names it, so you can see which policies agents keep running into. The log itself is in the journal on Linux and/var/log/hallpass.logon macOS. The client controls its command line, so treat the chain as a lead, not proof. - Commits made elsewhere in your name. Anyone can set git's author to
you. With the signing key, the git config turns on
commit.gpgsignandtag.gpgsign, so every git on the machine signs every commit and tag with the broker's key, yours included, and GitHub shows them as Verified. A commit in your name from anywhere else doesn't verify, unless another signing key on your GitHub account signed it. Verified means "made on this machine", not "you reviewed it", since anything running as you can get a commit signed.git personalcommits use your own signing setup, if you have one.
It doesn't protect against these:
- Hostile code using the broker. Anything running as you can ask the broker for whatever its policy allows, in every allowed repo. Keep the allowlist to the repos agents need.
- Data leaving the machine. hallpass keeps the credentials, not your
code. An agent can read any allowed repo and send what it read anywhere
on the network. It can also write data into an allowed repo, through a
branch, a PR, an issue, or a comment, and in a public repo that publishes
it.
--readentries and a short allowlist narrow this. Stopping it takes a network sandbox. - Your own credentials. If agents can reach your own SSH key, your password manager, or a logged-in gh, they can go around hallpass. See Use your own credentials.
- Root. Root can use every credential on the running machine, and on some platforms copy it off. See Protection by platform.
- A compromised setup session. Setup runs
sudofrom your shell. If code running as you replacedsudoon your PATH, or edited the checkout you build from, it gets root. Install from an attested release binary, from a shell you trust, and runsudo -kafterward. - Code that agents push. An agent can push a malicious change to a branch and open a PR for it. Review PRs before you merge them.
- Secrets in existing workflows. Agents can't edit workflows, but a
workflow that runs on
pushorpull_requestruns the agent's branch code with the secrets it references. That includes a deploy that runs on pushes to a branch name, and an environment whose secrets go to branches matching a pattern: agents can create any branch thatprotected_branchesin/etc/hallpass/hallpass.tomldoesn't name. The broker doesn't read GitHub's rulesets or environments, so add those names there, likestagingordeploy/*. An entry is a branch name or a prefix and/*, and the broker refuses a config with any other pattern, likedeploy-*orrefs/heads/staging. A script such a workflow runs, likescripts/deploy.sh, is the agent's to change unless you name it inprotected_paths. The broker doesn't read workflows to find what they run, so it protects only what you list, and not what those files load in turn, like a scriptdeploy.shsources or a package it installs. - Bots the filter doesn't know. The filter covers common triggers, not every bot's grammar.
- Composite actions. Like GitHub's, the workflow check covers
.github/workflows, not actions elsewhere in the repo that workflows use. Add their directories, like.github/actions, toprotected_paths, and pushes can't change them.
Everywhere, the broker runs as its own user, so code running as you can't read the credentials or attach a debugger to the broker. What happens past that depends on the platform:
| Linux with a TPM | Linux without a TPM | macOS | |
|---|---|---|---|
| Credentials | keys generated inside the TPM; token sealed to it | plain 0600 files | 0600 files, encrypted under a key tied to the Mac |
| A root tool sweeping the disk for secrets | finds only TPM-wrapped blobs | finds the keys and the token | finds no PEM key or gho_ token |
| A copied disk or backup | opens nothing | holds every credential, unless the disk is encrypted | doesn't open on another Mac, and Time Machine skips it |
| Root on the running machine | can use every credential and read the token, but can't copy the keys off | can copy every credential | a generic sweep gets only ciphertext, but malware written for hallpass can decrypt and copy every credential |
On macOS, the Secure Enclave would keep the keys from leaving, but a
launchd daemon can't use it. So the broker encrypts each credential with
AES-256-GCM, under a key from three inputs: a random secret made when you
first set up a credential, the Mac's serial number and hardware UUID, and
the data volume's UUID. A copy of /var/db/hallpass lacks the last two, and
system_profiler SPHardwareDataType prints neither the secret nor the volume
UUID. Root can read all three inputs, so root malware written for hallpass
can rebuild the key. Replacing the logic board or erasing the disk means setting the
credentials up again. doctor warns about credentials made before this,
which are still plain files.
If root is compromised on any platform, run login again and recreate both
keys.
install writes /etc/hallpass/gitconfig for the credentials that exist and
includes it from each git's system config:
- git. github.com remotes, in every form, are rewritten to
ssh://git@github.com/, andcore.sshCommandishallpass ssh. For github.com it sends the git command to the broker's socket and relays the data. The broker connects to GitHub with its key, checking GitHub's published host keys, and runs onlygit-upload-packandgit-receive-pack. A fetch of a repo outside the allowlist goes tohttps://github.cominstead, with no credential; see Reads without the token. For any other host,hallpass sshruns the real ssh. - gh.
hallpass ghruns gh withGH_CONFIG_DIR=/etc/hallpass/gh, whosehttp_unix_socketsetting sends gh's requests as plain HTTP to the broker. The broker classifies each REST route and GraphQL document against GitHub's schema, resolves node IDs to repos, and adds the token.hallpass gh authanswers by itself:statusreports the placeholder accounthallpassas logged in,tokenprints the placeholder token, andlogin,logout,refresh,switch,setup-git, andgit-credentialsucceed without doing anything. For tools that runghby name,hallpass gh-shim [DIR]writesDIR/gh(default~/.local/bin), a script that runshallpass gh. Put DIR before the real gh on PATH. - Signing.
gpg.ssh.programishallpass-sign, which takesssh-keygen -Y signarguments. For the broker's key it asks the broker, which signs only git commits and tags. Everything else goes to the realssh-keygen.
git reaches the broker over SSH only, and gh uses the token. With a token
and no SSH key, the git config still sends github.com to the broker, which
refuses git in allowed repos and says to run
sudo /opt/hallpass/bin/hallpass ssh-key create. git never falls
through to your own credentials. The broker dials github.com:22, and if
that connection fails, ssh.github.com:443, which GitHub serves for
networks that block port 22. Both present the host keys GitHub publishes at
api.github.com/meta, and the broker refuses any other key. It tries first
whichever address worked last, so a blocked port 22 costs at most 5 seconds
once, not on every git command. hallpass status --check names the address
it reached.
Each thing agents may do has a name, like pr.merge or push.default. A
name covers every way of doing it: the REST route, the GraphQL mutation, and
the git push. Denying pr.merge refuses gh pr merge and
gh api -X PUT .../merge alike. hallpass policy show lists them:
| On by default | Off by default |
|---|---|
pr.create, pr.edit, pr.request-review, issue.edit, comment, review.comment, anonymous |
issue.create, assign, push.default, review.verdict, pr.merge, labels, workflow.rerun, workflow.dispatch, status.write |
review.verdict covers approving and requesting changes. pr.merge covers
merging, the merge queue, and auto-merge. status.write covers commit
statuses on a full SHA. It doesn't cover check runs, which GitHub lets only
GitHub Apps write.
Change them for every repo, or for one allowlist entry:
sudo /opt/hallpass/bin/hallpass policy allow workflow.rerun
sudo /opt/hallpass/bin/hallpass policy allow push.default pr.merge --repo mbriggs/dots
sudo /opt/hallpass/bin/hallpass policy deny labels --repo acme/*
sudo /opt/hallpass/bin/hallpass policy reset pr.merge --repo mbriggs/dots
hallpass policy show mbriggs/dots # what's in effect there, and which layer set itThe layers apply in order: the defaults, then the global lists, then the
OWNER/* entry, then the exact entry. The most specific layer that names an
operation decides it.
If --repo OWNER/NAME has no entry of its own but OWNER/* covers it,
the command adds an OWNER/NAME entry with the same access to hold the
policy. When a reset leaves such an entry with no policy, it offers to
remove it.
allow prints a warning for the risky operations, among them:
review.verdict: an approval or change request through hallpass counts as yours.pr.mergelets agents merge, or turn on auto-merge, with nobody reviewing.workflow.dispatchlets agents pick the ref and inputs of a workflow that often deploys with real secrets.status.writelets agents report any status context as passing, including one branch protection requires.push.defaultpasses even whenprotected_branchesnames the default branch. Agents still can't delete it, but they can force-push it, because the broker can't tell a force push from a fast-forward. Turn on GitHub's branch protection if its history matters. An empty repo's first push doesn't need it. The branch that push creates becomes the default, even whenprotected_branchesnames it, so the push may carry only one branch. Every later push to that branch needspush.default.
A refusal names the operation and the command that would allow it:
GraphQL: hallpass: agents may not merge PRs or add them to the merge queue in acme/widgets. To allow it: sudo /opt/hallpass/bin/hallpass policy allow pr.merge --repo acme/widgets
The settings live in /etc/hallpass/hallpass.toml as allow and deny
lists, at the top level and on each [[repo]].
A push can't change .github/workflows or Dependabot's config in any repo.
protected_paths adds files and directories to that check, like the
scripts your workflows run with secrets, composite actions, or
CODEOWNERS:
protected_paths = ["scripts/deploy.sh"] # every repo
[[repo]]
match = "acme/widgets"
protected_paths = [".github/actions", "CODEOWNERS"]Like protected_branches, there's no command for it. Edit the file as
root, then run sudo /opt/hallpass/bin/hallpass install, which checks the
config and restarts the broker. hallpass policy show acme/widgets lists
the paths in effect there and which layer added each.
The broker refuses a config with a key it has no setting for, like a
misspelled protected_paths, rather than ignore it. A key below a
[[repo]] line belongs to that repo, so put top-level keys like
protected_branches above the first [[repo]].
The layers add up: a repo gets the built-in paths, the global ones, its
OWNER/* entry's, and its own entry's. Unlike an operation, which the
narrowest layer decides, an entry can't remove a path a broader layer
protects, and nothing removes the built-in ones.
The rule is the one workflows get. A branch's new commit must match, at every one of these paths, one commit GitHub already trusts for that ref: the ref's old commit, or the default branch's head. So rebasing onto a default branch where you changed a protected file passes, since the branch carries your version. The refusal names the path:
hallpass: agents can't change scripts/deploy.sh, which protected_paths in hallpass's config names. Push that change yourself with git personal push
A path is a file or a directory from the repo's root, and a directory
covers everything under it. Writing one where none was is a change too, so
agents can't add .github/actions/new under a protected .github/actions.
So is putting a symlink, a submodule, or a file where a protected
directory was. A hand-built tree can name an entry scripts/deploy.sh,
slash included, which git checks out as that file, so the broker refuses
a push whose trees along a protected path hold such a name. Names match
without regard to case, since a checkout on
macOS or Windows reads Scripts/deploy.sh as scripts/deploy.sh.
Patterns like *.sh aren't supported, and the config refuses them, along
with absolute paths and ...
The check sees only what's stored at each path. A root .gitattributes
can change how a protected file checks out, such as its line endings, a
protected symlink can point at a file outside the path, and a protected
submodule's URL lives in .gitmodules. Protect those too if it matters.
A rename on GitHub that the allowlist follows applies the new name's
entry, so its paths are the ones that count.
Two more kinds of name open or close reads that the built-in tables don't
cover, with the same allow, deny, and reset, and no rebuild:
sudo /opt/hallpass/bin/hallpass policy allow read:deployments --repo acme/widgets
sudo /opt/hallpass/bin/hallpass policy deny read:actions/runs/#/logs --repo acme/secret
sudo /opt/hallpass/bin/hallpass policy allow field:Repository.hasProjectsEnabledread:PATTERNis a GET route under/repos/{owner}/{repo}.#matches a number,*one name, and a final**the rest of the path. It layers like an operation, and within one layer a deny wins.field:Type.fieldis a field that GraphQL reads may see of a repo or account outside the one a request named, like a fork's parent. It applies to every repo, and only scalar and enum fields qualify, so it can't open a path into another repo's issues or code.
A refusal that one of these would fix names it:
hallpass: hallpass doesn't allow reading repos/{repo}/deployments in acme/widgets. Reads are limited to code, PRs, issues, checks, and Actions runs. To allow it: sudo /opt/hallpass/bin/hallpass policy allow read:deployments --repo acme/widgets
Agents can also search issues, PRs, and code in one allowed repo, --read
entries included. gh search issues, gh search prs, and gh search code
need --repo OWNER/NAME, which gh sends as repo:OWNER/NAME. The broker
refuses a search without exactly one repo:, or with user:, org:, or
owner: (what --owner sends):
hallpass: hallpass searches code only within one repo; add repo:OWNER/NAME (gh search code --repo OWNER/NAME)
In an issue or PR search, repo: must be lowercase and stand at the
start or after a plain space, and the query can't hold a tab, a line
break, or any other kind of space: GitHub reads repo: after one of
those as part of the term before it and searches everywhere. The broker
also checks the answer to a REST search, as it does for code.
A code search may quote a phrase, but repo: must stand outside quotes,
and repo:, user:, org:, and owner: can't appear anywhere else in
the query, even quoted. The broker also checks GitHub's answer, and if
any result is from another repo, it refuses the whole answer. A policy
that denies any read:contents/... pattern on a repo turns code search
off there, since a search would show whether the denied files hold a
word. There's no separate name for code search. GitHub answers code search only with a token, so the broker
refuses one in a repo outside the allowlist, public or not.
No name adds a write, and none opens secrets and their names, Actions
permissions and runners, environment secrets and variables, branch
protection, Dependabot, Codespaces, hooks, deploy keys, invitations,
security findings, or Repository.tempCloneToken. Rulesets
(read:rulesets) and Actions variables (read:actions/variables) are
off by default, and a policy can open them. Those names open REST routes.
Over GraphQL, agents can't read rulesets, the rules that apply to a ref,
branch protection past the one field gh pr status reads, deploy keys, or
Dependabot alerts, and no field: name opens them.
The broker checks each client's uid against uids in the config, from the
kernel's peer credentials. The git config applies to everyone on the machine,
so hallpass suits a machine with one user.
A REST GET that the allowlist or the read tables don't cover goes to GitHub
without the token. That covers public repos outside the allowlist, paths
outside /repos like /users/NAME and /search/repositories, and reads
in an allowed repo that no table lists. Code search isn't among them:
GitHub needs a token for it, so the broker refuses a code search it can't
send with the token. See API reads. GitHub answers such a request with
only what anyone could fetch, so nothing private comes back, and agents
gain nothing they couldn't already get with curl. When GitHub won't
answer, gh gets the refusal it would have had:
hallpass: Without a token, GitHub answered 404 Not Found. acme/secret isn't in hallpass's allowlist. To allow it: sudo /opt/hallpass/bin/hallpass allow acme/secret
A read a policy denies, like read:deployments on one repo, doesn't go at
all, and neither does a read past the read floor or a write. GitHub's
GraphQL API needs a token, so gh repo view and gh pr list on a repo
outside the allowlist are still refused. Requests without a token share
GitHub's limit of 60 an hour for the machine's address, and don't count
against the token's.
A git fetch, clone, or ls-remote of a repo the allowlist doesn't cover
also goes without a credential. The broker sends it to
https://github.com/OWNER/REPO.git over git's smart HTTP, with neither
the token nor the SSH key, and relays GitHub's answer to git. A public repo
clones and fetches, shallow (--depth) and partial (--filter) clones
included, and so do public submodules. A private repo, or one that doesn't
exist, gets the refusal:
hallpass: Without a token, GitHub answered 401 Unauthorized. acme/secret isn't in hallpass's allowlist. To allow it: sudo /opt/hallpass/bin/hallpass allow acme/secret
A push to a repo outside the allowlist is still refused, and an allowed
repo still uses the SSH key. The broker follows a redirect, as GitHub
sends for a renamed public repo, only to another repo on github.com.
Fetches need git's protocol v2, which current git uses by default; an older
protocol is refused with a note to run git -c protocol.version=2. GitHub
limits git without a credential by the machine's address, and when it
does, git gets GitHub is limiting git without a token from this machine's address. The broker runs at most 16 of these fetches at once, which leaves
the rest of its 64 git connections for allowed repos, and cuts one off
after two hours, or after 10 minutes with nothing moving. The audit log marks
them anonymous=true. Git LFS isn't covered: hallpass ssh refuses
git-lfs-authenticate in every repo.
The anonymous operation turns all of this off, everywhere or for one
entry:
sudo /opt/hallpass/bin/hallpass policy deny anonymousFor anything the policy refuses, use your own credentials:
git personal push # git without hallpass's configgit personal runs git with GIT_CONFIG_NOSYSTEM=1, so remotes stay as
written and your own SSH key and helpers answer. Plain gh, without
hallpass gh or its config dir, uses your own login.
git personal is how you step in for what agents can't do, so keep your
own key behind something that asks you first: a vault's SSH agent, like
1Password's, or a key encrypted with a passphrase. hallpass can't stop code
running as you from using your own credentials. An unencrypted key in
~/.ssh or a gh login with no prompt hands agents everything hallpass
refuses them, and then hallpass isn't doing much. doctor warns about each
SSH agent and gh login it finds. A vault's agent sets off the warning too,
which is expected: the vault, not hallpass, decides when to ask you.
The skills/hallpass-setup skill walks an agent through setup with you. The
core steps:
sudo ./hallpass-linux-amd64 install # or ./bin/hallpass from make build
sudo /opt/hallpass/bin/hallpass login # token by device login, for gh
sudo /opt/hallpass/bin/hallpass ssh-key create # for git: add the key on GitHub
sudo /opt/hallpass/bin/hallpass signing-key create # optional: add as a signing key
sudo /opt/hallpass/bin/hallpass allow 'you/*'
hallpass status --check # the broker's credentials, checked with GitHub
hallpass doctor # this machine's git, gh, and signing setupinstall offers to copy the hallpass-setup and hallpass-repo skills into
~/.claude/skills and ~/.agents/skills, and to update them when a new
binary brings changes. It runs hallpass skills as you to do it, and you can
run that yourself any time.
login runs GitHub's device flow as root, with GitHub CLI's client ID and
the repo scope, so the token goes straight from GitHub into storage. Orgs
that restrict OAuth apps and haven't approved GitHub CLI reject it. For those,
paste a classic PAT with install-pat instead.
Release binaries for Linux and macOS, amd64 and arm64, are on the releases page with build provenance. Verify a download before running it as root:
gh attestation verify hallpass-linux-amd64 --repo mbriggs/hallpassRun hallpass help for the full list. Root commands go through
/opt/hallpass/bin/hallpass, not a copy on your PATH.
| Command | Runs as | Does |
|---|---|---|
install |
root | Installs the binary, service, and git and gh config, or upgrades them |
login |
root | Gets a token by device login |
install-pat |
root | Stores a classic PAT you paste |
logout |
root | Removes and revokes the token |
ssh-key create|remove|show |
root | Manages the SSH key |
signing-key create|remove|show |
root | Manages the signing key |
allow OWNER/REPO [--read] |
root | Lets agents use a repo, or OWNER/* |
disallow OWNER/REPO |
root | Removes an allowlist entry |
policy allow|deny|reset OP... [--repo OWNER/REPO] |
root | Changes what agents may do, everywhere or in one entry |
policy show [OWNER/REPO] |
you | Lists the operations and protected paths, or what's in effect in one repo |
log [--refused] [--repo OWNER/REPO] [--since 2h] [--summary] [--all] [--color WHEN] |
root | Prints the audit log, a line per request, oldest first. It hides routine status checks, such as the one git makes before each signature, and --all shows them. It prints a push as one line, with the refs GitHub rejected and GitHub's reason for each in red, and a run of identical requests from one process, such as gh pr checks --watch polling, as one line with a count. The broker logs each push before it sends it, so a push the broker sent and never saw answered, because it stopped first, prints as forwarded with the refs it sent: GitHub may have applied them. --all prints every line as logged. Refusals always show. Color is on when stdout is a terminal and NO_COLOR is unset. sudo usually drops NO_COLOR, so pass --color never to turn it off, or --color always to keep it through a pipe. --since also takes 3d or a date. --summary counts refusals by repo and reason. A GraphQL request lists every repo it touches, named or reached by node ID, and --repo matches any of them. One that hallpass refuses before it knows a repo, such as a document it can't parse, has none |
uninstall [--purge] |
root | Removes what install added. --purge also revokes the token and deletes the credentials and config |
status [--check] |
you | Reports the broker's state. --check also asks GitHub |
doctor |
you | Checks this machine's git, gh, and signing setup against the broker |
ledger add OWNER/REPO BRANCH COMMIT |
root | Lets agents update a branch they didn't create, while it points at COMMIT |
ledger list OWNER/REPO |
root | Lists the branches agents may update |
skills |
you | Installs or updates the agent skills; install offers this |
gh ARGS |
you | Runs gh through the broker |
gh-shim [--remove] [DIR] |
you | Writes or removes DIR/gh, a script that runs hallpass gh. DIR defaults to ~/.local/bin |
MIT. See LICENSE.