Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2233106/?format=api
{ "id": 2233106, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2233106/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505170105.228162-8-alex.bennee@linaro.org/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/1.2/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260505170105.228162-8-alex.bennee@linaro.org>", "list_archive_url": null, "date": "2026-05-05T17:01:02", "name": "[RFC,07/10] .agents/skills: add skill to distil mail threads", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "7fb8ddb9bd11f309acd4a049cbaad9e4a9d9746c", "submitter": { "id": 39532, "url": "http://patchwork.ozlabs.org/api/1.2/people/39532/?format=api", "name": "Alex Bennée", "email": "alex.bennee@linaro.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/20260505170105.228162-8-alex.bennee@linaro.org/mbox/", "series": [ { "id": 502869, "url": "http://patchwork.ozlabs.org/api/1.2/series/502869/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=502869", "date": "2026-05-05T17:01:00", "name": "AGENTS.md and associated skills", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502869/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233106/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233106/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=NxQ7/bbx;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g94Zs616Bz1yJ0\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 03:03:01 +1000 (AEST)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wKJ9E-0007zM-P3; Tue, 05 May 2026 13:01:28 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wKJ98-0007xh-FV\n for qemu-devel@nongnu.org; Tue, 05 May 2026 13:01:24 -0400", "from mail-wm1-x329.google.com ([2a00:1450:4864:20::329])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1wKJ92-0003UB-Pt\n for qemu-devel@nongnu.org; Tue, 05 May 2026 13:01:20 -0400", "by mail-wm1-x329.google.com with SMTP id\n 5b1f17b1804b1-48d146705b4so14312685e9.3\n for <qemu-devel@nongnu.org>; Tue, 05 May 2026 10:01:16 -0700 (PDT)", "from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48e51f34779sm421315e9.5.2026.05.05.10.01.08\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 05 May 2026 10:01:10 -0700 (PDT)", "from draig.lan (localhost [IPv6:::1])\n by draig.lan (Postfix) with ESMTP id A143D604F0;\n Tue, 05 May 2026 18:01:06 +0100 (BST)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1778000475; x=1778605275; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Yuj1wCqPfzb6QgRsDxN2Y1D9IqsqgMMhFjFqQNSMWYw=;\n b=NxQ7/bbxZ9G/cBApkR6GYZoy5n1Mz4VPBO1Wa/gkg/o3S0ciKO66XdRQKU6kpRNpSV\n 7ZQ/mWM9/rbStDRRdNaziLEeGgziplRr+NWkLMmcsDI7JeCp8TupbZvJ7OLhKd51nRpY\n 7gQnFbbiumEQICfXIKXBSBjQrGipSsJaKE/YWhhMy9/KJL0SXan2hQuY1ZALRc9Hp+bn\n JEd71Pv1iba0I1dpA5jhlPNFhm1n6AyJEzHiffYPBuGCDP158u+3GWeYFycWkCySoLjw\n LpCYJvsjBsuLv8Ve4Zvd6um7jWSBEv+INDHSsYgadxFkFbgqZ3xBsVChe4Bk+ixqiNpp\n Ht5Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1778000475; x=1778605275;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=Yuj1wCqPfzb6QgRsDxN2Y1D9IqsqgMMhFjFqQNSMWYw=;\n b=mr6VB4Ct5t0bGMEopEJT26eYhJ0IWg+y4YzFpyLClMJVq1JGswcCdC24f2sN5VsAKl\n +acFwrsNDvKWDlJrOPAiHUFWglCP0nvIFRbkE9iVqrc0flDWA43/MEDvDN3JcWISKGvU\n P5RF2Nqyu5jNeHLWZhFa874a6dohCuQBJhpHihYp4FujHgzeLhA5V9zMxz0wxhaOOoGj\n YS2aAM/bXYoFGJhYLC9waJvALS2ov2+HY63cS4o20CPFGu1QGtKHmL8HQUQs7oxqqu5N\n 8zcH/JXrGkcUxY/Zj8KLA1ePASldp3MP4FOSK1w21noCrxFsQiAjxJtrUVOpuA+1KCpy\n UcBQ==", "X-Gm-Message-State": "AOJu0YzF7fBWwCq0Hz7lntPo/f5kDVftv9X2q7LGfPfZ7eHt6jQn52zD\n /vcHZ+nJ3tR4VMMRWP9zFql+MLsh1fBYVrq4guW3Jtb0wLh1wtc7Vl8+bIT6W4VCx2Hg69Q32tk\n bfRCGkvk=", "X-Gm-Gg": "AeBDiescGuLQewiuGbXFrALT5RE7NicgvDjyFWkDqj2X2/RmDlHyqZXWNYHKJZ8a36T\n MZiGL1NH8yxsm79Ei/FViML3TyuJQZqgppmKBArcuvaQT7HGOklP7L8LGgcQ+12sIpF3dSTaTYp\n Aa8/8DyN4p5ipzUZopXbfnp9EH8yvwKuPWZkVxB9gPydyoADHFnlEZm9E7L3plIcVTV+bDZ+7VI\n YiSoL6WKkEbgZeHzatx/MGC1/2Y78aKj0xLlPrCPe8wIy7YPkStG1VlFjWr9thmQcC4ULnbJAj/\n ofQ6wNorykUvYrg+/yF/DrYnG0gyFrAUPB7DoQ0gCKw9TB7rzmOERBrxSotBdzsgshY7OvH+p6e\n dOZ+gpXscX9EHyfyzF/3P1sJ/mHl3zamAXk5jG0KBfb1m+kTs0B6rKDErAnAfimP6218Bun6f+h\n 3mn5ZSdmSxc70KpxzhD9mRFCST8JPKbG/TMYK4AxLaa2YU", "X-Received": "by 2002:a05:600c:8906:b0:488:ffad:6728 with SMTP id\n 5b1f17b1804b1-48e51f46d7bmr450455e9.19.1778000474701;\n Tue, 05 May 2026 10:01:14 -0700 (PDT)", "From": "=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>", "To": "qemu-devel@nongnu.org", "Cc": "=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>", "Subject": "[RFC PATCH 07/10] .agents/skills: add skill to distil mail threads", "Date": "Tue, 5 May 2026 18:01:02 +0100", "Message-ID": "<20260505170105.228162-8-alex.bennee@linaro.org>", "X-Mailer": "git-send-email 2.47.3", "In-Reply-To": "<20260505170105.228162-1-alex.bennee@linaro.org>", "References": "<20260505170105.228162-1-alex.bennee@linaro.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Received-SPF": "pass client-ip=2a00:1450:4864:20::329;\n envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x329.google.com", "X-Spam_score_int": "-20", "X-Spam_score": "-2.1", "X-Spam_bar": "--", "X-Spam_report": "(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=ham autolearn_force=no", "X-Spam_action": "no action", "X-BeenThere": "qemu-devel@nongnu.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "qemu development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>", "List-Archive": "<https://lists.nongnu.org/archive/html/qemu-devel>", "List-Post": "<mailto:qemu-devel@nongnu.org>", "List-Help": "<mailto:qemu-devel-request@nongnu.org?subject=help>", "List-Subscribe": "<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Just YOLO'ing the entire mail thread into an LLM context is quite\nexpensive especially if reviewing a thread against your current tree\nstate. This skill allows the agent to extract just the comments and\ntags saving tokens.\n\nSigned-off-by: Alex Bennée <alex.bennee@linaro.org>\n---\n .agents/skills/distil-mail-thread/SKILL.md | 33 ++++++++++\n .../distil-mail-thread/scripts/parse_mail.py | 64 +++++++++++++++++++\n 2 files changed, 97 insertions(+)\n create mode 100644 .agents/skills/distil-mail-thread/SKILL.md\n create mode 100644 .agents/skills/distil-mail-thread/scripts/parse_mail.py", "diff": "diff --git a/.agents/skills/distil-mail-thread/SKILL.md b/.agents/skills/distil-mail-thread/SKILL.md\nnew file mode 100644\nindex 00000000000..3c083ec5aa1\n--- /dev/null\n+++ b/.agents/skills/distil-mail-thread/SKILL.md\n@@ -0,0 +1,33 @@\n+---\n+name: distil-mail-thread\n+description: Extract and summarize reviewer comments from a QEMU or kernel mailing list thread dump (like a b4 mbox or text export). Use this when the user asks to \"distil\", \"parse\", or \"extract feedback\" from a mail thread file.\n+license: GPL-2.0-or-later\n+---\n+\n+# Distil Mail Thread\n+\n+This skill helps you extract reviewer comments and feedback from a long mailing list thread file, filtering out quoted text, patch diffs, and headers. It relies on a Python script included in this skill's `scripts/` directory.\n+\n+## How to use this skill\n+\n+1. **Locate the target file**: Identify the mail thread file the user wants to parse (e.g., `wxft-rfc-mail-thread.txt`).\n+2. **Execute the script**: Run the included Python script against the file. The script is located in the `scripts/` directory of this skill.\n+\n+ ```bash\n+ python /path/to/distil-mail-thread/scripts/parse_mail.py <path_to_mail_thread_file.txt>\n+ ```\n+ *(Note: Adjust the path to the script based on where this skill is installed. You can use your filesystem tools to locate `distil-mail-thread/scripts/parse_mail.py`.)*\n+\n+3. **Read the output**: The script will generate a file named `parsed_comments.txt` in the current working directory. Use your file reading tools to examine its contents.\n+4. **Analyze and Summarize**: Read through the extracted comments and provide a structured summary to the user, correlating feedback to specific patches if necessary.\n+\n+## Expected Output\n+The `parsed_comments.txt` will look like this:\n+```\n+--- REPLY FROM Reviewer Name <email@example.com> ---\n+Subject: Re: [PATCH 01/10] ...\n+Comment text here...\n+============================================================\n+```\n+\n+Use this structured text to efficiently analyze the feedback.\ndiff --git a/.agents/skills/distil-mail-thread/scripts/parse_mail.py b/.agents/skills/distil-mail-thread/scripts/parse_mail.py\nnew file mode 100644\nindex 00000000000..2924d07dc56\n--- /dev/null\n+++ b/.agents/skills/distil-mail-thread/scripts/parse_mail.py\n@@ -0,0 +1,64 @@\n+# SPDX-License-Identifier: GPL-2.0-or-later\n+import sys\n+import os\n+\n+if len(sys.argv) < 2:\n+ print(\"Usage: python parse_mail.py <mail_thread_file.txt>\")\n+ sys.exit(1)\n+\n+input_file = sys.argv[1]\n+output_file = \"parsed_comments.txt\"\n+\n+try:\n+ with open(input_file, \"r\", encoding=\"utf-8\") as f:\n+ text = f.read()\n+except FileNotFoundError:\n+ print(f\"Error: File not found - {input_file}\")\n+ sys.exit(1)\n+\n+# Split by the separator used in lore.kernel.org / b4 dumps\n+messages = text.split(\"----------------------------------------\")\n+\n+with open(output_file, \"w\", encoding=\"utf-8\") as f:\n+ for msg in messages:\n+ if not msg.strip(): continue\n+\n+ lines = msg.strip().split('\\n')\n+ author = \"\"\n+ subject = \"\"\n+ body_start = 0\n+ for i, line in enumerate(lines):\n+ if line.startswith(\"From: \"): author = line[6:]\n+ if line.startswith(\"Subject: \"): subject = line[9:]\n+ if not line.strip() and body_start == 0:\n+ body_start = i + 1\n+ break\n+\n+ # Filter out the original patch author (assuming they are Alex\n+ # Bennée in this specific context, but for a general tool, we\n+ # should probably just look for non-patch emails or specific\n+ # reviewers).\n+ # We will keep it general: exclude the main author if we can guess it,\n+ # or just extract everything that doesn't look like code or a patch\n+ # description.\n+ # Actually, let's keep all comments that are replies (indicated by >\n+ # quoting or Re: in subject).\n+\n+ is_reply = \"Re: \" in subject or subject.startswith(\"Re:\")\n+\n+ if is_reply and author != \"\" and not author.startswith(\"qemu-devel\"):\n+ f.write(f\"--- REPLY FROM {author} ---\\nSubject: {subject}\\n\")\n+\n+ # extract comments\n+ comments_extracted = False\n+ for line in lines[body_start:]:\n+ is_metadata = (line.startswith(\">\") or\n+ line.startswith(\"---\") or\n+ line.startswith(\"diff \"))\n+ if not is_metadata:\n+ if line.strip():\n+ comments_extracted = True\n+ f.write(line + \"\\n\")\n+ f.write(\"=\"*60 + \"\\n\\n\")\n+\n+print(f\"Done. Extracted comments saved to {output_file}\")\n", "prefixes": [ "RFC", "07/10" ] }