Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "github"
version = "0.13.1"
version = "0.14.0"
edition = "2021"
description = "GitHub on Pointman's nodes: gh on each machine, and agents' runs acting on GitHub as Pointman App."
license = "MIT"
Expand Down
24 changes: 17 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,23 @@ Pointman itself.
|---|---|---|
| `cli` | empty | GitHub's CLI, when it isn't on the node's PATH or in /opt/homebrew/bin or /usr/local/bin; empty, the extension installs its own |
| `coauthors` | `{}` | Pointman handles mapped to `Name <email>` commit authors |
| `default_author` | empty | A handle from `coauthors` to credit on automatic runs too |

To keep an owner's commit credit through agent handoffs, CI reports and timer wakes, set
`default_author = "james"` alongside their entry in `coauthors`. Commits then name that person as author,
the App as committer, and `Pointman <noreply@pointman.ai>` as co-author. A person directly starting a run
takes precedence; an unmapped person stays App-only. An unreadable run-person file also stays App-only.
Leaving `default_author` empty keeps automatic runs App-only.
| `default_author` | empty | Who is credited in runs no person started: a handle from `coauthors`, `app` for no one, or empty for this machine's own GitHub account |
| `client_coauthors` | `{claude = "Claude <noreply@anthropic.com>"}` | Agent clients (by name) credited as co-authors after Pointman |

In runs no person started (agent handoffs, CI reports, timer wakes), an agent's commit names an author from
`default_author`: a handle from `coauthors`, `app` for App-only, or, left empty, this machine's own GitHub
account (the account its `gh` is signed in to, as `Name <id+login@users.noreply.github.com>`, checked every
5 minutes and never with the App's token). The App is the committer and `Pointman <noreply@pointman.ai>` the
co-author. An account that can't be checked (signed out, an error) is dropped at once, and one not checked
for 15 minutes isn't used, so those commits stay App-only.

A person directly starting a run is credited only with an entry in `coauthors`; a person who isn't in it
stays App-only, never someone else, the machine's own account included. An unreadable run-person file, an
unreadable or malformed `coauthors`, or an entry that isn't one `Name <email>` also stays App-only.

The run's client is a further co-author on those commits: the node names it in the run's `MB_RUN_CLIENT`
(`claude`, `codex`…), and `client_coauthors` gives its `Name <email>`. A client that isn't listed gets no
line. Agents never write these lines themselves.

A pull request has one creator: the account whose token opens it. PRs opened with the App still show
the App as creator; the author and co-author above appear on their commits. Existing commits are unchanged.
Expand Down
10 changes: 6 additions & 4 deletions SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ description: Writing on GitHub (pull requests, issues, comments, reviews, commit

# Writing on GitHub as Pointman App

The extension may also have a `default_author` configured for automatic runs: their commits credit
that person with Pointman as co-author, including after agent handoffs and timer wakes. A directly
named person takes precedence. PRs themselves still have the App as their single creator.
Your commits are credited to a person, with Pointman and your client (Claude, for example) as co-authors:
the person whose post started the run, when the extension's `coauthors` names them; in runs no person
started (agent handoffs, timer wakes), the machine's person (its own GitHub account, or a configured
`default_author`). Anyone else's commits stay the App's. PRs themselves still have the App as
their single creator.

In your runs, `gh` and git act on GitHub as **Pointman App**: PRs, issues, comments, reviews, pushes and commits all show as the App's bot (`<its name>[bot]`). The exception is a commit in a run a person started, or one with a configured default_author: it is authored as that person, with the App as committer and `Co-authored-by: Pointman`, added by the `git` the extension gives you. Don't write that line or set the author yourself. The extension gives each command a short-lived token for the repo's owner, so you never sign in, set a token, or change git's name and email.
In your runs, `gh` and git act on GitHub as **Pointman App**: PRs, issues, comments, reviews, pushes and commits all show as the App's bot (`<its name>[bot]`). The exception is a commit someone is credited on (above): it is authored as that person, with the App as committer and `Co-authored-by` lines for Pointman and your client, added by the `git` the extension gives you. Don't write those lines or set the author yourself. The extension gives each command a short-lived token for the repo's owner, so you never sign in, set a token, or change git's name and email.

Where the App can't act (it isn't installed on the repo's account, or GitHub refuses it), `gh` and git use this machine's own `gh` login instead, and say so in a line starting `github:`. What you do then shows on GitHub as that login's person, not the bot.

Expand Down
14 changes: 11 additions & 3 deletions extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[extension]
id = "github"
name = "GitHub"
version = "0.13.1"
version = "0.14.0"
publisher = "aurelio"
summary = "GitHub's CLI on this machine, and agents' runs acting on GitHub as Pointman App, else as the machine's gh login."
node = ">=0.4.4"
Expand Down Expand Up @@ -51,12 +51,20 @@ description = "GitHub's CLI, when it isn't on the node's PATH or in /opt/homebre
[settings.properties.coauthors]
type = "object"
default = {}
description = "People credited on the commits agents make in a chat with them, by Pointman handle: {\"james\": \"James Briggs <35938317+jamescalam@users.noreply.github.com>\"}. The person is the commit's author, Pointman App its committer, and Pointman (noreply@pointman.ai) its Co-authored-by. Runs no person started stay App-only unless default_author is configured."
description = "People credited on the commits agents make in a chat with them, by Pointman handle: {\"james\": \"James Briggs <35938317+jamescalam@users.noreply.github.com>\"}. The person is the commit's author, Pointman App its committer, and Pointman (noreply@pointman.ai) its Co-authored-by. A person who starts a run and isn't in it stays App-only, never someone else; runs no person started follow default_author."

[settings.properties.coauthors.additionalProperties]
type = "string"

[settings.properties.default_author]
type = "string"
default = ""
description = "Pointman handle from coauthors to credit on commits in automatic runs too (for example james). Empty keeps automatic commits App-only. A person who directly starts a run takes precedence; an unmapped person stays App-only. PRs are still opened by the App."
description = "Who is credited on commits in runs no person started (an agent's mention, a timer, a workflow): a Pointman handle from coauthors (for example james), app for no one (App-only), or empty for this machine's own GitHub account (its gh login). A person who directly starts a run takes precedence. PRs are still opened by the App."

[settings.properties.client_coauthors]
type = "object"
default = { claude = "Claude <noreply@anthropic.com>" }
description = "The agent's client credited as a co-author after Pointman, by the client's name (claude, codex, gemini…), on the commits a person is credited on. A client not in it gets no line."

[settings.properties.client_coauthors.additionalProperties]
type = "string"
Loading
Loading