From 05d3456f5cf5fc205aa8f5203b341b419c7f2e20 Mon Sep 17 00:00:00 2001 From: agent_vscode Date: Mon, 6 Jul 2026 18:09:40 +0300 Subject: [PATCH] feat(agent-roles): researcher builds the report doc live from the start Rework the "WHERE TO WRITE THE RESULT" section of the researcher role so the report document is created at the very beginning of the run (right after the plan, before any searches) and filled dynamically after each finding, instead of being dumped in one pass at the end. - Rewrite the section identically in bundles/research/ru.yaml and en.yaml - Bump researcher version 1 -> 2 in index.yaml - Refresh scripts/content-hashes.json via check.mjs --update-hashes Co-Authored-By: Claude Opus 4.8 (1M context) --- agent-roles-catalog/bundles/research/en.yaml | 13 +++++++++++-- agent-roles-catalog/bundles/research/ru.yaml | 13 +++++++++++-- agent-roles-catalog/index.yaml | 2 +- agent-roles-catalog/scripts/content-hashes.json | 4 ++-- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/agent-roles-catalog/bundles/research/en.yaml b/agent-roles-catalog/bundles/research/en.yaml index d3a2f3bd..111484e9 100644 --- a/agent-roles-catalog/bundles/research/en.yaml +++ b/agent-roles-catalog/bundles/research/en.yaml @@ -33,8 +33,17 @@ roles: - If the user explicitly asks to work in the current/already-open document, work in it. - If this is not specified, create a NEW document for the report. - - Keep a working draft in the document or in notes: fact → source → - reliability assessment. Update the structure as you go. + - Create this document at the VERY START — right after the plan (STEP 0) and + BEFORE running any searches. Seed it immediately with the query, the plan, + and a skeleton of the sections you expect to fill. + - Fill the document DYNAMICALLY as you work: after every meaningful finding, + write it in straight away (fact → source → reliability assessment) and + grow or reshape the structure as your understanding evolves. + - Do NOT hoard everything in your head or in notes and dump the whole report + in one pass at the end. The document is a LIVING artifact: it must exist + from the first minute and be updated continuously throughout the run, so + that by the finalization stage it is already almost complete and only + needs cleanup, ordering, and self-verification. ═══════════════════════════════════════════════ WORK LOOP (repeat until saturation) diff --git a/agent-roles-catalog/bundles/research/ru.yaml b/agent-roles-catalog/bundles/research/ru.yaml index b0e987de..81299fc0 100644 --- a/agent-roles-catalog/bundles/research/ru.yaml +++ b/agent-roles-catalog/bundles/research/ru.yaml @@ -33,8 +33,17 @@ roles: - If the user explicitly asks to work in the current/already-open document, work in it. - If this is not specified, create a NEW document for the report. - - Keep a working draft in the document or in notes: fact → source → - reliability assessment. Update the structure as you go. + - Create this document at the VERY START — right after the plan (STEP 0) and + BEFORE running any searches. Seed it immediately with the query, the plan, + and a skeleton of the sections you expect to fill. + - Fill the document DYNAMICALLY as you work: after every meaningful finding, + write it in straight away (fact → source → reliability assessment) and + grow or reshape the structure as your understanding evolves. + - Do NOT hoard everything in your head or in notes and dump the whole report + in one pass at the end. The document is a LIVING artifact: it must exist + from the first minute and be updated continuously throughout the run, so + that by the finalization stage it is already almost complete and only + needs cleanup, ordering, and self-verification. ═══════════════════════════════════════════════ WORK LOOP (repeat until saturation) diff --git a/agent-roles-catalog/index.yaml b/agent-roles-catalog/index.yaml index 4ee918c1..fb49d68a 100644 --- a/agent-roles-catalog/index.yaml +++ b/agent-roles-catalog/index.yaml @@ -33,4 +33,4 @@ bundles: - en roles: - slug: researcher - version: 1 + version: 2 diff --git a/agent-roles-catalog/scripts/content-hashes.json b/agent-roles-catalog/scripts/content-hashes.json index 65d29b49..448d97df 100644 --- a/agent-roles-catalog/scripts/content-hashes.json +++ b/agent-roles-catalog/scripts/content-hashes.json @@ -16,8 +16,8 @@ "hash": "cef39fed321779631ddd1077fcba53399adf0e48b301df281c71eb042610900d" }, "researcher": { - "version": 1, - "hash": "853658fda43ddbe0a4d08f2c6e50b5116d29a2e9ccd7f46e173e65920d8f6ace" + "version": 2, + "hash": "03fe437431808b6145a5f0aa79af460db156435f7c14d0af42362ad13794868a" }, "structural-editor": { "version": 4,