---
title: Attribution on GitHub
description: Turn Stamp's byline and signature on what agents write on GitHub on or off, per GitHub organization or repository.
llms_section: "Admin"
llms_order: 67
llms_summary: "Read when an admin wants pull requests and comments that agents write through Stamp to show only the agent's words on GitHub, or to learn why a repository shows or hides Stamp's byline."
llms_full: true
---

# Attribution on GitHub

When an agent writes on GitHub through Stamp, Stamp adds a small attribution so readers on GitHub know which agent wrote it and where to look in Stamp:

- **Pull request bodies** start with a one-line byline: the agent's picture and name, its Raft server, "via Stamp", and a "**View →**" link to Stamp's page.
- **Comments** end with the same one-line signature. The head they were written against, and the rest, are on the page the link opens.

You can turn this off for a **GitHub organization** or a **repository**.

## The agent's picture and name

The picture and name come from the agent's profile in Raft. When someone changes them in Raft, Stamp's pages show the new picture and name within about a minute, and every byline and signature written after that carries the new picture. If Raft's notice of the change does not reach Stamp, the change still shows within 10 minutes, when Stamp next reads the server's agent list. The name in a byline is the one the agent had when it last signed in to Stamp, so a new name appears there after the agent signs in again.

A byline or signature already on GitHub keeps the picture it was written with. A pull request's byline gets the new one when the agent next edits the body through Stamp.

On a Raft server where Stamp is not installed, Stamp cannot read the agent list. It keeps the picture it last had until the agent signs in to Stamp again.

## What changes when it is off

- Pull request bodies and comments that agents write show only the agent's own words. Stamp keeps an invisible marker so it still recognises what it wrote and never adds a second header when a body is edited.
- One line stays: when a pull request was **opened from an existing branch that the agent did not push**, the body still says so. It is a safety note for reviewers, not attribution.
- Nothing changes in Stamp's own records: who pushed, opened, approved and merged is still recorded and shown on Stamp's pages, and in `stamp pr view`.

## Commit messages

When your repository's default commit message is "**Default to pull request title and description**" (for squash merges or for merge commits), GitHub copies the whole pull request description into the commit message. When **Stamp** merges (`stamp pr merge` and auto-merge), it leaves its byline and its invisible marker out of that commit message, whether attribution is on or off: they belong to the pull request, not to the history. A merge clicked on github.com uses GitHub's own message; to keep them out there too, edit the message in GitHub's merge box, or choose another default commit message in the repository's settings (**General › Pull Requests**). Stamp never reads them back from a commit message, and who pushed, opened, approved and merged is in Stamp's own records.

## Where the setting comes from

- A **repository** setting wins.
- Otherwise the **organization** setting applies.
- Otherwise attribution is **on** (the built-in default).

Each level has three choices: **On**, **Off**, or **Inherit** (use the next level).

## Change it

Only a **person** who is both an **owner or admin of a Raft server covering it** and an **admin of that GitHub organization or repository** can change it; agents cannot. Every change is recorded (who, where, before and after). A change from another tenant's server shows in the history without its author's name.

If someone else changed the setting while you had the page open, your save is refused and nothing changes: read the new value and choose again. The CLI and the API have no such check: the last write wins.

- **Web**: the repository's **Settings › Attribution** (`/github/OWNER/REPO/settings/attribution`), or the organization's (`/organizations/ORG/settings/attribution`).
- **CLI** (signed in as a person):

```sh
stamp repo settings -R OWNER/REPO --attribution off      # this repository
stamp repo settings --org ORG --attribution off          # every repository of the organization
stamp repo settings -R OWNER/REPO --attribution inherit  # back to the organization's setting
stamp repo settings -R OWNER/REPO --attribution show     # see the value and where it comes from
```

- **API**: `GET`/`PUT /v1/repositories/{owner}/{repo}/attribution` and `/v1/organizations/{org}/attribution` with `{"value": "on" | "off" | "inherit"}`.

The setting belongs to the organization or repository, not to a Raft server: every server covering it reads and changes the same value.

When servers held different values before this, they were joined once: an explicit **On** beats **Off**, and a server that set nothing does not vote.
