Skip to content

g1t's plugin marketplace for Claude Code: the g1t plugin, which records sessions, claims and hands off issues, and adds g1t's MCP server. Published from flagon-io/g1t, where changes and issues go.

Commit

g1t 0.2.4, from flagon-io/g1t@2e90f6f15efa

Published by scripts/plugins-release.mjs from https://g1t.sh/flagon-io/g1t/commit/2e90f6f. Change the plugin there; this repository is overwritten.

g1tbotcommitted Parent3adaf0cBrowse files
4 files+13−40/4 viewed
+1−1
1010 "name": "g1t",
1111 "source": "./plugins/g1t",
1212 "description": "Work on g1t issues from Claude Code: records your sessions on g1t, loads an issue's work context, claims and hands off work, and connects g1t's MCP server.",
13− "version": "0.2.3",
13+ "version": "0.2.4",
1414 "category": "development"
1515 }
1616 ]
+1−1
11 # g1t plugins
22
3−g1t's plugin marketplace for Claude Code. Its one plugin, `g1t` (0.2.3),
3+g1t's plugin marketplace for Claude Code. Its one plugin, `g1t` (0.2.4),
44 records your Claude Code sessions on g1t, gives Claude the issue it is
55 working on, claims and hands off work, and adds g1t's MCP server, skills
66 and commands.
+1−1
11 {
22 "name": "g1t",
3− "version": "0.2.3",
3+ "version": "0.2.4",
44 "description": "Work on g1t issues from Claude Code: records your sessions on g1t, loads an issue's work context, claims and hands off work, and connects g1t's MCP server.",
55 "author": { "name": "Flagon, Inc.", "url": "https://g1t.sh" },
66 "homepage": "https://docs.g1t.sh/guides/claude-code-plugin/",
+10−1
209209 .trim();
210210 }
211211
212+/** A turn the harness starts itself, as a tag: `<command-name>`, `<task-notification>`, one with attributes. */
213+const HARNESS_TAG = /^\s*<[a-z][\w-]*(?:\s[^>]*)?>/i;
214+
212215 /**
213216 * What a prompt is for, as a session's title: its first line or sentence,
214217 * without code blocks or markdown, whitespace collapsed, clipped at
219222 */
220223 export function intentTitle(prompt) {
221224 let text = String(prompt ?? "").replace(/^\uFEFF/, "");
222− if (/^\s*\//.test(text) || /^\s*<[a-z][\w-]*>/i.test(text)) return null;
225+ // What the harness pasted in or attached is not what the prompt is for:
226+ // pasted text (Claude Code's <pasted_content id="…">…</pasted_content>)
227+ // and image placeholders ([Image #1], [Image: source: …]) go first.
228+ text = text
229+ .replace(/<pasted_content\b[^>]*>[\s\S]*?(?:<\/pasted_content[^>]*>|$)/gi, "\n")
230+ .replace(/\[Image(?: #\d+)?(?::[^\]\n]*)?\]/g, " ");
231+ if (/^\s*\//.test(text) || HARNESS_TAG.test(text)) return null;
223232 text = text
224233 .replace(/```[\s\S]*?(```|$)/g, "\n")
225234 .replace(/~~~[\s\S]*?(~~~|$)/g, "\n")

Comments

Sign in to comment.