Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Merge branch 'worktree-agent-ad52ad80841a37960' | 1 | --- |
| Work with no issue yet is a session of its own, titled with what it is for, until it becomes a change: Claude Code's plugin titles each session from its first prompt that is not a slash command (its first line or sentence, without code blocks or markdown, up to 80 characters cut on a word), in the background, and only when the session has no title, so a title Claude, a person or an earlier prompt set is never replaced; g1t session attach --title names one by hand and replaces the prompt's. Nothing is titled with prompts kept back. | 2 | description: Claim a g1t issue for this session and load its work context, or open one for the work in hand and claim it |
| 3 | argument-hint: "<issue number> [note] | <title of a new issue>" | |
| Merge branch 'worktree-agent-ad52ad80841a37960' | 4 | allowed-tools: Bash(g1t:*) |
| 5 | --- | |
| 6 | ||
| Work with no issue yet is a session of its own, titled with what it is for, until it becomes a change: Claude Code's plugin titles each session from its first prompt that is not a slash command (its first line or sentence, without code blocks or markdown, up to 80 characters cut on a word), in the background, and only when the session has no title, so a title Claude, a person or an earlier prompt set is never replaced; g1t session attach --title names one by hand and replaces the prompt's. Nothing is titled with prompts kept back. | 7 | Claim a g1t issue for this session: $ARGUMENTS |
| 8 | ||
| 9 | If the first argument is an issue number: | |
| Merge branch 'worktree-agent-ad52ad80841a37960' | 10 | |
| 11 | 1. Run `g1t work context $1` and read it: the definition of done, who else | |
| 12 | has claimed it, its pull requests and what blocks it. | |
| Work with no issue yet is a session of its own, titled with what it is for, until it becomes a change: Claude Code's plugin titles each session from its first prompt that is not a slash command (its first line or sentence, without code blocks or markdown, up to 80 characters cut on a word), in the background, and only when the session has no title, so a title Claude, a person or an earlier prompt set is never replaced; g1t session attach --title names one by hand and replaces the prompt's. Nothing is titled with prompts kept back. | 13 | 2. Run `g1t work claim $1`, adding `--note "..."` with the rest of the |
| 14 | arguments if there are any. | |
| Merge branch 'worktree-agent-ad52ad80841a37960' | 15 | 3. Tell me in a few lines what the issue asks for, whether anyone else holds |
| 16 | a claim on it (the claim command lists them), and anything that blocks | |
| 17 | it. If someone else is on it, ask me before starting work. | |
| Work with no issue yet is a session of its own, titled with what it is for, until it becomes a change: Claude Code's plugin titles each session from its first prompt that is not a slash command (its first line or sentence, without code blocks or markdown, up to 80 characters cut on a word), in the background, and only when the session has no title, so a title Claude, a person or an earlier prompt set is never replaced; g1t session attach --title names one by hand and replaces the prompt's. Nothing is titled with prompts kept back. | 18 | |
| 19 | If there is no number (or no arguments), this is the work in hand, which | |
| 20 | has no issue yet: | |
| 21 | ||
| 22 | 1. Look for an issue that already covers it: `g1t work list` and | |
| 23 | `g1t issue list`. If one does, claim that one as above. | |
| 24 | 2. Otherwise run `g1t work claim --title "TITLE"`, with the arguments as the | |
| 25 | title (or, with none, a short title for what this session is doing), and | |
| 26 | `--body "..."` saying what the change is. It opens the issue, claims it | |
| 27 | for this session and attaches the session to it. | |
| 28 | 3. Tell me the issue's number and title. |
This file's history is long; its oldest lines are credited to the oldest commit read.