agents-inc 0.162.0 → 0.164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/{chunk-HRVPZMKK.js → chunk-2CQNPLVF.js} +35 -14
- package/dist/chunk-2CQNPLVF.js.map +1 -0
- package/dist/{chunk-VFZF7LVY.js → chunk-3WVH2CTK.js} +3 -3
- package/dist/{chunk-5J6DO4VW.js → chunk-4VL3CEOS.js} +3 -3
- package/dist/{chunk-QM3ZNOWJ.js → chunk-6MV4JOCL.js} +2 -2
- package/dist/{chunk-WIJM6BX6.js → chunk-7ANJQLPJ.js} +2 -2
- package/dist/{chunk-3JDVBHWO.js → chunk-7REKOTKG.js} +2 -2
- package/dist/{chunk-MI7LKLD7.js → chunk-ABAZMMG4.js} +2 -2
- package/dist/{chunk-XSM3IBMG.js → chunk-AOTCIUGX.js} +2 -2
- package/dist/{chunk-L65XGQKR.js → chunk-ARYNOWKF.js} +8 -8
- package/dist/{chunk-3QBOVV6A.js → chunk-AVK2HEKB.js} +5 -5
- package/dist/{chunk-3QBOVV6A.js.map → chunk-AVK2HEKB.js.map} +1 -1
- package/dist/{chunk-AQSMNUKJ.js → chunk-B3Y3QMWI.js} +4 -4
- package/dist/{chunk-ES7WGE32.js → chunk-B6FSLXYN.js} +3 -3
- package/dist/{chunk-S6GX7IJ2.js → chunk-DSL66I4N.js} +6 -6
- package/dist/{chunk-IMTWWA3N.js → chunk-ECURHW3T.js} +12 -12
- package/dist/{chunk-VEONZFTL.js → chunk-FLW25ORT.js} +3 -3
- package/dist/{chunk-53XPSAJ4.js → chunk-G2JJ5BO5.js} +17 -16
- package/dist/chunk-G2JJ5BO5.js.map +1 -0
- package/dist/{chunk-H2MDPOLG.js → chunk-JIERYE6B.js} +5 -5
- package/dist/{chunk-GFO55TMY.js → chunk-JU4ZGJ7A.js} +100 -24
- package/dist/chunk-JU4ZGJ7A.js.map +1 -0
- package/dist/{chunk-K26SBQLO.js → chunk-K5ITEA3I.js} +4 -4
- package/dist/{chunk-4KVJJJG2.js → chunk-LT5GXEB2.js} +6 -6
- package/dist/{chunk-2IMHZEIK.js → chunk-NKGYKOB7.js} +3 -3
- package/dist/{chunk-X6KXPRKI.js → chunk-NQXO4LR3.js} +4 -4
- package/dist/{chunk-ZFPQM63K.js → chunk-NTF4UXGK.js} +5 -5
- package/dist/{chunk-77YZFVQD.js → chunk-PHCPUQVR.js} +2 -2
- package/dist/{chunk-T2RPUNYP.js → chunk-Q4IRRVXK.js} +3 -3
- package/dist/{chunk-EN5MEPAS.js → chunk-QGUP3QJF.js} +5 -5
- package/dist/{chunk-MSUTHS2V.js → chunk-QZX7SYKU.js} +2 -2
- package/dist/{chunk-BR3TNSO3.js → chunk-RGYDFBCT.js} +4 -4
- package/dist/{chunk-4NAWM4OQ.js → chunk-S63LXWMC.js} +2 -2
- package/dist/{chunk-IV42Z63R.js → chunk-UITEKY2R.js} +19 -9
- package/dist/chunk-UITEKY2R.js.map +1 -0
- package/dist/{chunk-RMMEYCEA.js → chunk-URXIQE7I.js} +2 -2
- package/dist/{chunk-57YWAMNT.js → chunk-V5GLL2JB.js} +7 -7
- package/dist/{chunk-C53RJ7AA.js → chunk-X37UYIE3.js} +43 -41
- package/dist/chunk-X37UYIE3.js.map +1 -0
- package/dist/{chunk-J2YG7P7L.js → chunk-X4SSJZLY.js} +49 -6
- package/dist/chunk-X4SSJZLY.js.map +1 -0
- package/dist/{chunk-VEBEGZUV.js → chunk-XATLUKXK.js} +5 -5
- package/dist/{chunk-33ZKIYJM.js → chunk-XHPWTL4I.js} +3 -3
- package/dist/{chunk-UNASGGW2.js → chunk-XPDVAJDH.js} +69 -8
- package/dist/chunk-XPDVAJDH.js.map +1 -0
- package/dist/{chunk-FL2CJ5T5.js → chunk-YRS3QZP2.js} +3 -3
- package/dist/{chunk-FXL63LDL.js → chunk-ZVXGW2IC.js} +2 -2
- package/dist/commands/build/marketplace.js +7 -7
- package/dist/commands/build/plugins.js +7 -7
- package/dist/commands/compile.js +82 -30
- package/dist/commands/compile.js.map +1 -1
- package/dist/commands/doctor.js +10 -10
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/edit.js +40 -38
- package/dist/commands/edit.js.map +1 -1
- package/dist/commands/eject.js +10 -10
- package/dist/commands/init.js +36 -36
- package/dist/commands/list.js +8 -8
- package/dist/commands/new/marketplace.js +7 -7
- package/dist/commands/search.js +10 -10
- package/dist/commands/share.js +8 -8
- package/dist/commands/uninstall.js +11 -11
- package/dist/commands/update.js +6 -6
- package/dist/components/common/removal-plan-confirm.js +2 -2
- package/dist/components/common/select-list.js +2 -2
- package/dist/components/wizard/category-grid.js +4 -4
- package/dist/components/wizard/checkbox-grid.js +4 -4
- package/dist/components/wizard/domain-selection.js +9 -9
- package/dist/components/wizard/run-wizard-session.js +26 -26
- package/dist/components/wizard/scroll-affordance.js +2 -2
- package/dist/components/wizard/skill-agent-summary.js +5 -5
- package/dist/components/wizard/source-grid.js +5 -5
- package/dist/components/wizard/stack-selection.js +7 -7
- package/dist/components/wizard/step-agents.js +8 -8
- package/dist/components/wizard/step-build.js +7 -7
- package/dist/components/wizard/step-confirm.js +9 -9
- package/dist/components/wizard/step-sources.js +8 -8
- package/dist/components/wizard/step-stack.js +8 -8
- package/dist/components/wizard/summary-panel.js +8 -8
- package/dist/components/wizard/toast.js +2 -2
- package/dist/components/wizard/wizard-layout.js +12 -12
- package/dist/components/wizard/wizard-tabs.js +2 -2
- package/dist/components/wizard/wizard.js +25 -25
- package/dist/hooks/init.js +36 -36
- package/dist/load-agent-defs-7IM3GBEQ.js +13 -0
- package/dist/recompile-project-agents-VR4NLGOU.js +17 -0
- package/dist/{source-loader-KAWB76OH.js → source-loader-GRBVNRAW.js} +4 -4
- package/dist/src/agents/_templates/agent.liquid +30 -122
- package/dist/src/agents/_templates/methodologies/operating-principles.liquid +27 -0
- package/dist/src/agents/developer/ai-developer/critical-reminders.md +9 -48
- package/dist/src/agents/developer/ai-developer/critical-requirements.md +29 -47
- package/dist/src/agents/developer/ai-developer/identity.md +31 -40
- package/dist/src/agents/developer/ai-developer/output.md +92 -245
- package/dist/src/agents/developer/ai-developer/playbook.md +116 -270
- package/dist/src/agents/developer/api-developer/critical-reminders.md +9 -40
- package/dist/src/agents/developer/api-developer/critical-requirements.md +19 -34
- package/dist/src/agents/developer/api-developer/identity.md +18 -33
- package/dist/src/agents/developer/api-developer/output.md +118 -255
- package/dist/src/agents/developer/api-developer/playbook.md +103 -284
- package/dist/src/agents/developer/cli-developer/critical-reminders.md +9 -45
- package/dist/src/agents/developer/cli-developer/critical-requirements.md +21 -39
- package/dist/src/agents/developer/cli-developer/identity.md +22 -36
- package/dist/src/agents/developer/cli-developer/output.md +72 -185
- package/dist/src/agents/developer/cli-developer/playbook.md +107 -307
- package/dist/src/agents/developer/web-developer/critical-reminders.md +9 -34
- package/dist/src/agents/developer/web-developer/critical-requirements.md +11 -30
- package/dist/src/agents/developer/web-developer/identity.md +15 -15
- package/dist/src/agents/developer/web-developer/output.md +67 -220
- package/dist/src/agents/developer/web-developer/playbook.md +93 -283
- package/dist/src/agents/meta/agent-summoner/critical-reminders.md +6 -39
- package/dist/src/agents/meta/agent-summoner/critical-requirements.md +6 -44
- package/dist/src/agents/meta/agent-summoner/identity.md +20 -23
- package/dist/src/agents/meta/agent-summoner/metadata.yaml +1 -1
- package/dist/src/agents/meta/agent-summoner/output.md +85 -261
- package/dist/src/agents/meta/agent-summoner/playbook.md +220 -1398
- package/dist/src/agents/meta/codex-keeper/critical-reminders.md +11 -32
- package/dist/src/agents/meta/codex-keeper/critical-requirements.md +32 -22
- package/dist/src/agents/meta/codex-keeper/identity.md +31 -32
- package/dist/src/agents/meta/codex-keeper/output.md +49 -335
- package/dist/src/agents/meta/codex-keeper/playbook.md +164 -1110
- package/dist/src/agents/meta/convention-keeper/critical-reminders.md +11 -26
- package/dist/src/agents/meta/convention-keeper/critical-requirements.md +36 -25
- package/dist/src/agents/meta/convention-keeper/identity.md +35 -21
- package/dist/src/agents/meta/convention-keeper/metadata.yaml +1 -1
- package/dist/src/agents/meta/convention-keeper/output.md +33 -123
- package/dist/src/agents/meta/convention-keeper/playbook.md +64 -144
- package/dist/src/agents/meta/skill-summoner/critical-reminders.md +8 -71
- package/dist/src/agents/meta/skill-summoner/critical-requirements.md +9 -73
- package/dist/src/agents/meta/skill-summoner/identity.md +18 -22
- package/dist/src/agents/meta/skill-summoner/metadata.yaml +1 -1
- package/dist/src/agents/meta/skill-summoner/output.md +164 -270
- package/dist/src/agents/meta/skill-summoner/playbook.md +150 -1398
- package/dist/src/agents/planning/pm/critical-requirements.md +23 -25
- package/dist/src/agents/planning/pm/identity.md +24 -23
- package/dist/src/agents/planning/pm/output.md +5 -9
- package/dist/src/agents/planning/pm/playbook.md +50 -140
- package/dist/src/agents/researcher/ai-researcher/critical-reminders.md +8 -53
- package/dist/src/agents/researcher/ai-researcher/critical-requirements.md +31 -26
- package/dist/src/agents/researcher/ai-researcher/identity.md +36 -77
- package/dist/src/agents/researcher/ai-researcher/output.md +44 -151
- package/dist/src/agents/researcher/ai-researcher/playbook.md +130 -394
- package/dist/src/agents/researcher/api-researcher/critical-reminders.md +6 -38
- package/dist/src/agents/researcher/api-researcher/critical-requirements.md +15 -17
- package/dist/src/agents/researcher/api-researcher/identity.md +29 -63
- package/dist/src/agents/researcher/api-researcher/output.md +61 -153
- package/dist/src/agents/researcher/api-researcher/playbook.md +63 -140
- package/dist/src/agents/researcher/cli-researcher/critical-reminders.md +8 -45
- package/dist/src/agents/researcher/cli-researcher/critical-requirements.md +29 -24
- package/dist/src/agents/researcher/cli-researcher/identity.md +36 -78
- package/dist/src/agents/researcher/cli-researcher/output.md +22 -128
- package/dist/src/agents/researcher/cli-researcher/playbook.md +108 -263
- package/dist/src/agents/researcher/web-researcher/critical-reminders.md +5 -34
- package/dist/src/agents/researcher/web-researcher/critical-requirements.md +11 -16
- package/dist/src/agents/researcher/web-researcher/identity.md +28 -60
- package/dist/src/agents/researcher/web-researcher/output.md +41 -134
- package/dist/src/agents/researcher/web-researcher/playbook.md +48 -162
- package/dist/src/agents/reviewer/reviewer/critical-reminders.md +9 -22
- package/dist/src/agents/reviewer/reviewer/critical-requirements.md +24 -19
- package/dist/src/agents/reviewer/reviewer/identity.md +23 -20
- package/dist/src/agents/reviewer/reviewer/metadata.yaml +7 -2
- package/dist/src/agents/reviewer/reviewer/output.md +8 -26
- package/dist/src/agents/reviewer/reviewer/playbook.md +50 -91
- package/dist/src/agents/tester/ai-tester/critical-reminders.md +7 -40
- package/dist/src/agents/tester/ai-tester/critical-requirements.md +39 -31
- package/dist/src/agents/tester/ai-tester/identity.md +25 -40
- package/dist/src/agents/tester/ai-tester/output.md +8 -144
- package/dist/src/agents/tester/ai-tester/playbook.md +28 -40
- package/dist/src/agents/tester/api-tester/critical-reminders.md +8 -35
- package/dist/src/agents/tester/api-tester/critical-requirements.md +36 -25
- package/dist/src/agents/tester/api-tester/identity.md +18 -29
- package/dist/src/agents/tester/api-tester/metadata.yaml +1 -1
- package/dist/src/agents/tester/api-tester/output.md +3 -86
- package/dist/src/agents/tester/api-tester/playbook.md +10 -2
- package/dist/src/agents/tester/cli-tester/critical-reminders.md +7 -30
- package/dist/src/agents/tester/cli-tester/critical-requirements.md +29 -21
- package/dist/src/agents/tester/cli-tester/identity.md +25 -33
- package/dist/src/agents/tester/cli-tester/output.md +13 -105
- package/dist/src/agents/tester/cli-tester/playbook.md +8 -5
- package/dist/src/agents/tester/web-tester/critical-reminders.md +7 -25
- package/dist/src/agents/tester/web-tester/critical-requirements.md +25 -16
- package/dist/src/agents/tester/web-tester/identity.md +24 -30
- package/dist/src/agents/tester/web-tester/output.md +11 -116
- package/dist/src/agents/tester/web-tester/playbook.md +58 -221
- package/dist/stores/wizard-store.js +4 -4
- package/package.json +1 -1
- package/src/agents/_templates/agent.liquid +30 -122
- package/src/agents/_templates/methodologies/operating-principles.liquid +27 -0
- package/src/agents/developer/ai-developer/critical-reminders.md +9 -48
- package/src/agents/developer/ai-developer/critical-requirements.md +29 -47
- package/src/agents/developer/ai-developer/identity.md +31 -40
- package/src/agents/developer/ai-developer/output.md +92 -245
- package/src/agents/developer/ai-developer/playbook.md +116 -270
- package/src/agents/developer/api-developer/critical-reminders.md +9 -40
- package/src/agents/developer/api-developer/critical-requirements.md +19 -34
- package/src/agents/developer/api-developer/identity.md +18 -33
- package/src/agents/developer/api-developer/output.md +118 -255
- package/src/agents/developer/api-developer/playbook.md +103 -284
- package/src/agents/developer/cli-developer/critical-reminders.md +9 -45
- package/src/agents/developer/cli-developer/critical-requirements.md +21 -39
- package/src/agents/developer/cli-developer/identity.md +22 -36
- package/src/agents/developer/cli-developer/output.md +72 -185
- package/src/agents/developer/cli-developer/playbook.md +107 -307
- package/src/agents/developer/web-developer/critical-reminders.md +9 -34
- package/src/agents/developer/web-developer/critical-requirements.md +11 -30
- package/src/agents/developer/web-developer/identity.md +15 -15
- package/src/agents/developer/web-developer/output.md +67 -220
- package/src/agents/developer/web-developer/playbook.md +93 -283
- package/src/agents/meta/agent-summoner/critical-reminders.md +6 -39
- package/src/agents/meta/agent-summoner/critical-requirements.md +6 -44
- package/src/agents/meta/agent-summoner/identity.md +20 -23
- package/src/agents/meta/agent-summoner/metadata.yaml +1 -1
- package/src/agents/meta/agent-summoner/output.md +85 -261
- package/src/agents/meta/agent-summoner/playbook.md +220 -1398
- package/src/agents/meta/codex-keeper/critical-reminders.md +11 -32
- package/src/agents/meta/codex-keeper/critical-requirements.md +32 -22
- package/src/agents/meta/codex-keeper/identity.md +31 -32
- package/src/agents/meta/codex-keeper/output.md +49 -335
- package/src/agents/meta/codex-keeper/playbook.md +164 -1110
- package/src/agents/meta/convention-keeper/critical-reminders.md +11 -26
- package/src/agents/meta/convention-keeper/critical-requirements.md +36 -25
- package/src/agents/meta/convention-keeper/identity.md +35 -21
- package/src/agents/meta/convention-keeper/metadata.yaml +1 -1
- package/src/agents/meta/convention-keeper/output.md +33 -123
- package/src/agents/meta/convention-keeper/playbook.md +64 -144
- package/src/agents/meta/skill-summoner/critical-reminders.md +8 -71
- package/src/agents/meta/skill-summoner/critical-requirements.md +9 -73
- package/src/agents/meta/skill-summoner/identity.md +18 -22
- package/src/agents/meta/skill-summoner/metadata.yaml +1 -1
- package/src/agents/meta/skill-summoner/output.md +164 -270
- package/src/agents/meta/skill-summoner/playbook.md +150 -1398
- package/src/agents/planning/pm/critical-requirements.md +23 -25
- package/src/agents/planning/pm/identity.md +24 -23
- package/src/agents/planning/pm/output.md +5 -9
- package/src/agents/planning/pm/playbook.md +50 -140
- package/src/agents/researcher/ai-researcher/critical-reminders.md +8 -53
- package/src/agents/researcher/ai-researcher/critical-requirements.md +31 -26
- package/src/agents/researcher/ai-researcher/identity.md +36 -77
- package/src/agents/researcher/ai-researcher/output.md +44 -151
- package/src/agents/researcher/ai-researcher/playbook.md +130 -394
- package/src/agents/researcher/api-researcher/critical-reminders.md +6 -38
- package/src/agents/researcher/api-researcher/critical-requirements.md +15 -17
- package/src/agents/researcher/api-researcher/identity.md +29 -63
- package/src/agents/researcher/api-researcher/output.md +61 -153
- package/src/agents/researcher/api-researcher/playbook.md +63 -140
- package/src/agents/researcher/cli-researcher/critical-reminders.md +8 -45
- package/src/agents/researcher/cli-researcher/critical-requirements.md +29 -24
- package/src/agents/researcher/cli-researcher/identity.md +36 -78
- package/src/agents/researcher/cli-researcher/output.md +22 -128
- package/src/agents/researcher/cli-researcher/playbook.md +108 -263
- package/src/agents/researcher/web-researcher/critical-reminders.md +5 -34
- package/src/agents/researcher/web-researcher/critical-requirements.md +11 -16
- package/src/agents/researcher/web-researcher/identity.md +28 -60
- package/src/agents/researcher/web-researcher/output.md +41 -134
- package/src/agents/researcher/web-researcher/playbook.md +48 -162
- package/src/agents/reviewer/reviewer/critical-reminders.md +9 -22
- package/src/agents/reviewer/reviewer/critical-requirements.md +24 -19
- package/src/agents/reviewer/reviewer/identity.md +23 -20
- package/src/agents/reviewer/reviewer/metadata.yaml +7 -2
- package/src/agents/reviewer/reviewer/output.md +8 -26
- package/src/agents/reviewer/reviewer/playbook.md +50 -91
- package/src/agents/tester/ai-tester/critical-reminders.md +7 -40
- package/src/agents/tester/ai-tester/critical-requirements.md +39 -31
- package/src/agents/tester/ai-tester/identity.md +25 -40
- package/src/agents/tester/ai-tester/output.md +8 -144
- package/src/agents/tester/ai-tester/playbook.md +28 -40
- package/src/agents/tester/api-tester/critical-reminders.md +8 -35
- package/src/agents/tester/api-tester/critical-requirements.md +36 -25
- package/src/agents/tester/api-tester/identity.md +18 -29
- package/src/agents/tester/api-tester/metadata.yaml +1 -1
- package/src/agents/tester/api-tester/output.md +3 -86
- package/src/agents/tester/api-tester/playbook.md +10 -2
- package/src/agents/tester/cli-tester/critical-reminders.md +7 -30
- package/src/agents/tester/cli-tester/critical-requirements.md +29 -21
- package/src/agents/tester/cli-tester/identity.md +25 -33
- package/src/agents/tester/cli-tester/output.md +13 -105
- package/src/agents/tester/cli-tester/playbook.md +8 -5
- package/src/agents/tester/web-tester/critical-reminders.md +7 -25
- package/src/agents/tester/web-tester/critical-requirements.md +25 -16
- package/src/agents/tester/web-tester/identity.md +24 -30
- package/src/agents/tester/web-tester/output.md +11 -116
- package/src/agents/tester/web-tester/playbook.md +58 -221
- package/src/schemas/agent-frontmatter.schema.json +14 -0
- package/src/schemas/agent.schema.json +14 -0
- package/dist/chunk-53XPSAJ4.js.map +0 -1
- package/dist/chunk-C53RJ7AA.js.map +0 -1
- package/dist/chunk-GFO55TMY.js.map +0 -1
- package/dist/chunk-HRVPZMKK.js.map +0 -1
- package/dist/chunk-IV42Z63R.js.map +0 -1
- package/dist/chunk-J2YG7P7L.js.map +0 -1
- package/dist/chunk-UNASGGW2.js.map +0 -1
- package/dist/load-agent-defs-57YKPVQW.js +0 -13
- package/dist/recompile-project-agents-IQD3HRRS.js +0 -17
- package/dist/src/agents/_templates/methodologies/anti-over-engineering.liquid +0 -135
- package/dist/src/agents/_templates/methodologies/context-management.liquid +0 -15
- package/dist/src/agents/_templates/methodologies/improvement-protocol.liquid +0 -150
- package/dist/src/agents/_templates/methodologies/investigation-requirements.liquid +0 -61
- package/dist/src/agents/_templates/methodologies/success-criteria.liquid +0 -121
- package/dist/src/agents/_templates/methodologies/write-verification.liquid +0 -43
- package/dist/src/agents/planning/pm/critical-reminders.md +0 -39
- package/src/agents/_templates/methodologies/anti-over-engineering.liquid +0 -135
- package/src/agents/_templates/methodologies/context-management.liquid +0 -15
- package/src/agents/_templates/methodologies/improvement-protocol.liquid +0 -150
- package/src/agents/_templates/methodologies/investigation-requirements.liquid +0 -61
- package/src/agents/_templates/methodologies/success-criteria.liquid +0 -121
- package/src/agents/_templates/methodologies/write-verification.liquid +0 -43
- package/src/agents/planning/pm/critical-reminders.md +0 -39
- /package/dist/{chunk-VFZF7LVY.js.map → chunk-3WVH2CTK.js.map} +0 -0
- /package/dist/{chunk-5J6DO4VW.js.map → chunk-4VL3CEOS.js.map} +0 -0
- /package/dist/{chunk-QM3ZNOWJ.js.map → chunk-6MV4JOCL.js.map} +0 -0
- /package/dist/{chunk-WIJM6BX6.js.map → chunk-7ANJQLPJ.js.map} +0 -0
- /package/dist/{chunk-3JDVBHWO.js.map → chunk-7REKOTKG.js.map} +0 -0
- /package/dist/{chunk-MI7LKLD7.js.map → chunk-ABAZMMG4.js.map} +0 -0
- /package/dist/{chunk-XSM3IBMG.js.map → chunk-AOTCIUGX.js.map} +0 -0
- /package/dist/{chunk-L65XGQKR.js.map → chunk-ARYNOWKF.js.map} +0 -0
- /package/dist/{chunk-AQSMNUKJ.js.map → chunk-B3Y3QMWI.js.map} +0 -0
- /package/dist/{chunk-ES7WGE32.js.map → chunk-B6FSLXYN.js.map} +0 -0
- /package/dist/{chunk-S6GX7IJ2.js.map → chunk-DSL66I4N.js.map} +0 -0
- /package/dist/{chunk-IMTWWA3N.js.map → chunk-ECURHW3T.js.map} +0 -0
- /package/dist/{chunk-VEONZFTL.js.map → chunk-FLW25ORT.js.map} +0 -0
- /package/dist/{chunk-H2MDPOLG.js.map → chunk-JIERYE6B.js.map} +0 -0
- /package/dist/{chunk-K26SBQLO.js.map → chunk-K5ITEA3I.js.map} +0 -0
- /package/dist/{chunk-4KVJJJG2.js.map → chunk-LT5GXEB2.js.map} +0 -0
- /package/dist/{chunk-2IMHZEIK.js.map → chunk-NKGYKOB7.js.map} +0 -0
- /package/dist/{chunk-X6KXPRKI.js.map → chunk-NQXO4LR3.js.map} +0 -0
- /package/dist/{chunk-ZFPQM63K.js.map → chunk-NTF4UXGK.js.map} +0 -0
- /package/dist/{chunk-77YZFVQD.js.map → chunk-PHCPUQVR.js.map} +0 -0
- /package/dist/{chunk-T2RPUNYP.js.map → chunk-Q4IRRVXK.js.map} +0 -0
- /package/dist/{chunk-EN5MEPAS.js.map → chunk-QGUP3QJF.js.map} +0 -0
- /package/dist/{chunk-MSUTHS2V.js.map → chunk-QZX7SYKU.js.map} +0 -0
- /package/dist/{chunk-BR3TNSO3.js.map → chunk-RGYDFBCT.js.map} +0 -0
- /package/dist/{chunk-4NAWM4OQ.js.map → chunk-S63LXWMC.js.map} +0 -0
- /package/dist/{chunk-RMMEYCEA.js.map → chunk-URXIQE7I.js.map} +0 -0
- /package/dist/{chunk-57YWAMNT.js.map → chunk-V5GLL2JB.js.map} +0 -0
- /package/dist/{chunk-VEBEGZUV.js.map → chunk-XATLUKXK.js.map} +0 -0
- /package/dist/{chunk-33ZKIYJM.js.map → chunk-XHPWTL4I.js.map} +0 -0
- /package/dist/{chunk-FL2CJ5T5.js.map → chunk-YRS3QZP2.js.map} +0 -0
- /package/dist/{chunk-FXL63LDL.js.map → chunk-ZVXGW2IC.js.map} +0 -0
- /package/dist/{load-agent-defs-57YKPVQW.js.map → load-agent-defs-7IM3GBEQ.js.map} +0 -0
- /package/dist/{recompile-project-agents-IQD3HRRS.js.map → recompile-project-agents-VR4NLGOU.js.map} +0 -0
- /package/dist/{source-loader-KAWB76OH.js.map → source-loader-GRBVNRAW.js.map} +0 -0
|
@@ -1,545 +1,281 @@
|
|
|
1
|
-
|
|
1
|
+
<workflow>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Investigation
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Settle what the finding has to answer before searching.** Which decision does the developer face,
|
|
6
|
+
what would settle it, and which existing AI feature solved it already — a search opened without
|
|
7
|
+
those is a tour of the codebase rather than an answer to it.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
5. **Mapping the control flow** - You know how agent loops iterate, branch, and terminate
|
|
12
|
-
6. **Exposing the cost and reliability posture** - You know where tokens are counted, retried, cached, and streamed
|
|
9
|
+
**Then locate with Glob, narrow with Grep, and read what changes your conclusions.** Prompts and
|
|
10
|
+
agent loops deserve full reads; supporting files usually need a targeted Grep. Reading every file in
|
|
11
|
+
an `/ai` directory to answer a question about one parameter spends the context the pipeline it
|
|
12
|
+
belongs to still needs.
|
|
13
13
|
|
|
14
|
-
**
|
|
14
|
+
**Follow every value to the line that sets it.** A model identifier to its literal, a parameter to
|
|
15
|
+
the wrapper that defaults it, a prompt variable to the code that populates it, a pipeline stage to
|
|
16
|
+
its call site. In this domain the call site rarely holds the answer, and the directory name never
|
|
17
|
+
does.
|
|
15
18
|
|
|
16
|
-
|
|
17
|
-
identifier is data, a tool schema is data - none of it is type-checked at the boundary that matters. Two call
|
|
18
|
-
sites that look identical can behave differently because one sets `temperature: 0` and the other inherits a
|
|
19
|
-
default three files away. Report what the source says, at the line it says it.
|
|
20
|
-
|
|
21
|
-
**Your output is AI-consumable:**
|
|
22
|
-
|
|
23
|
-
- Structured markdown with clear sections
|
|
24
|
-
- Explicit file paths with line numbers
|
|
25
|
-
- Verbatim prompt text and model identifiers copied from source
|
|
26
|
-
- Pattern examples from actual code
|
|
27
|
-
- Decision guidance based on codebase conventions
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## Investigation Process
|
|
32
|
-
|
|
33
|
-
<mandatory_investigation>
|
|
34
|
-
**For EVERY research request:**
|
|
35
|
-
|
|
36
|
-
1. **Understand the research goal**
|
|
37
|
-
- What does the developer or planner need to know?
|
|
38
|
-
- What decisions will this research inform?
|
|
39
|
-
- What similar AI implementations might already exist?
|
|
40
|
-
|
|
41
|
-
2. **Discover relevant files**
|
|
42
|
-
- Use Glob to find AI directories and file patterns
|
|
43
|
-
- Use Grep for provider SDK imports, prompt markers, and pipeline keywords
|
|
44
|
-
- Identify the packages, services, and jobs involved
|
|
45
|
-
|
|
46
|
-
3. **Read key files completely**
|
|
47
|
-
- Don't skim - read the files that matter end to end
|
|
48
|
-
- Follow prompt variables back to where they are populated
|
|
49
|
-
- Follow model identifiers back to config, env, or a hardcoded literal
|
|
50
|
-
- Note line numbers for every key pattern
|
|
51
|
-
|
|
52
|
-
4. **Verify all claims**
|
|
53
|
-
- Every file path must exist (use Read to confirm)
|
|
54
|
-
- Every prompt excerpt must be copied from source, never paraphrased into "roughly this"
|
|
55
|
-
- Every model identifier, parameter, and default must be read from the code
|
|
56
|
-
- Every pipeline stage must be traced to a call site, not assumed from directory names
|
|
57
|
-
|
|
58
|
-
5. **Structure findings for consumption**
|
|
59
|
-
- Use the output format consistently
|
|
60
|
-
- Include file:line references
|
|
61
|
-
- State confidence and note contradictions rather than smoothing them over
|
|
62
|
-
</mandatory_investigation>
|
|
19
|
+
</workflow>
|
|
63
20
|
|
|
64
21
|
---
|
|
65
22
|
|
|
66
|
-
##
|
|
23
|
+
## Research Modes
|
|
67
24
|
|
|
68
25
|
### Mode 1: Prompt Discovery
|
|
69
26
|
|
|
70
27
|
**When asked:** "What prompts exist?" or "Where is the system prompt for X?"
|
|
71
28
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
4. Trace every variable to the code that populates it
|
|
78
|
-
5. Note versioning: is the prompt inlined, file-loaded, config-driven, or fetched at runtime?
|
|
29
|
+
1. Glob for prompt directories and template files; Grep for role markers and template delimiters
|
|
30
|
+
2. Read each template completely — a prompt is the specification, so a partial read misleads
|
|
31
|
+
3. Trace every variable to the code that populates it
|
|
32
|
+
4. Note the storage form: inlined, file-loaded, config-driven, database, or fetched at runtime
|
|
33
|
+
5. Note any versioning or A/B mechanism selecting between variants
|
|
79
34
|
|
|
80
|
-
**Output focus:**
|
|
35
|
+
**Output focus:** prompt inventory with location, consumers, variables, and verbatim excerpts
|
|
81
36
|
|
|
82
37
|
---
|
|
83
38
|
|
|
84
|
-
### Mode 2: Prompt Assembly
|
|
85
|
-
|
|
86
|
-
**When asked:** "How is the prompt built?" or "What context goes into the model call?"
|
|
39
|
+
### Mode 2: Prompt Assembly
|
|
87
40
|
|
|
88
|
-
**
|
|
41
|
+
**When asked:** "How is the prompt built?" or "What context goes into the call?"
|
|
89
42
|
|
|
90
43
|
1. Find the function that constructs the message array for each call site
|
|
91
|
-
2. Record the order of
|
|
92
|
-
3. Note where user-controlled text enters
|
|
93
|
-
4. Find where conversation history is appended, trimmed, or
|
|
94
|
-
5. Document
|
|
44
|
+
2. Record the order of roles, and which parts are static versus dynamic
|
|
45
|
+
3. Note where user-controlled text enters, and whether it is delimited or escaped
|
|
46
|
+
4. Find where conversation history is appended, trimmed, or summarised
|
|
47
|
+
5. Document prompt-caching boundaries — the stable prefix a cache breakpoint depends on
|
|
95
48
|
|
|
96
|
-
**Output focus:**
|
|
49
|
+
**Output focus:** the assembly flow from inputs to final message array, with the ordering that
|
|
50
|
+
matters
|
|
97
51
|
|
|
98
52
|
---
|
|
99
53
|
|
|
100
|
-
### Mode 3: Model
|
|
54
|
+
### Mode 3: Model and Provider SDK Research
|
|
101
55
|
|
|
102
56
|
**When asked:** "Which models do we call?" or "How is the client configured?"
|
|
103
57
|
|
|
104
|
-
**Process:**
|
|
105
|
-
|
|
106
58
|
1. Grep for provider SDK imports and client construction
|
|
107
|
-
2.
|
|
108
|
-
3. Resolve each model identifier to its source
|
|
109
|
-
4. Record sampling parameters
|
|
59
|
+
2. Catalogue every call site: method, model identifier, parameters
|
|
60
|
+
3. Resolve each model identifier to its source — literal, constant, config, or env var
|
|
61
|
+
4. Record sampling parameters and their defaults, including defaults applied by a wrapper
|
|
110
62
|
5. Note base URLs, proxies, gateways, and per-environment overrides
|
|
111
63
|
|
|
112
|
-
**Output focus:**
|
|
64
|
+
**Output focus:** call-site table with model, parameters, configuration source, and the defaults
|
|
65
|
+
that apply when a call sets nothing
|
|
113
66
|
|
|
114
67
|
---
|
|
115
68
|
|
|
116
|
-
### Mode 4:
|
|
69
|
+
### Mode 4: Retrieval and Embedding Pipeline
|
|
117
70
|
|
|
118
71
|
**When asked:** "How does retrieval work?" or "How are documents indexed?"
|
|
119
72
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
1. Find the ingestion entry point (job, script, route, or worker)
|
|
123
|
-
2. Document the chunking strategy: size, overlap, splitter, and metadata attached to each chunk
|
|
73
|
+
1. Find the ingestion entry point — job, script, route, or worker
|
|
74
|
+
2. Document chunking: size, overlap, splitter, and the metadata attached to each chunk
|
|
124
75
|
3. Find embedding generation: model, dimensions, batch size, and where vectors are persisted
|
|
125
|
-
4. Trace the query path: embed
|
|
126
|
-
5. Note how retrieved context is truncated and where it lands in the prompt
|
|
76
|
+
4. Trace the query path: embed, search, filter, re-rank, assemble
|
|
77
|
+
5. Note how retrieved context is truncated, and where it lands in the prompt
|
|
127
78
|
|
|
128
|
-
**Output focus:**
|
|
79
|
+
**Output focus:** stage-by-stage pipeline with a location and the parameters at each hop
|
|
129
80
|
|
|
130
81
|
---
|
|
131
82
|
|
|
132
|
-
### Mode 5: Vector Store Integration
|
|
83
|
+
### Mode 5: Vector Store Integration
|
|
133
84
|
|
|
134
85
|
**When asked:** "What vector store is used?" or "How are indexes configured?"
|
|
135
86
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
1. Identify the store and client setup (dedicated vector DB, extension on the primary DB, or in-memory)
|
|
139
|
-
2. Document index/collection names, dimensions, and distance metric
|
|
87
|
+
1. Identify the store and its client setup
|
|
88
|
+
2. Document index or collection names, dimensions, and the distance metric
|
|
140
89
|
3. Find filter and metadata query patterns alongside similarity search
|
|
141
|
-
4. Note upsert, delete, and re-index paths
|
|
90
|
+
4. Note the upsert, delete, and re-index paths
|
|
142
91
|
5. Record `topK`, score thresholds, and any hybrid search weighting
|
|
143
92
|
|
|
144
|
-
**Output focus:**
|
|
93
|
+
**Output focus:** store inventory, index configuration, and query patterns with concrete parameters
|
|
145
94
|
|
|
146
95
|
---
|
|
147
96
|
|
|
148
|
-
### Mode 6: Tool
|
|
97
|
+
### Mode 6: Tool Use and Function Calling
|
|
149
98
|
|
|
150
99
|
**When asked:** "What tools can the model call?" or "How are tool schemas defined?"
|
|
151
100
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
5. Document parallel tool calls and result ordering if present
|
|
101
|
+
1. Find the tool definitions and any registry that assembles them
|
|
102
|
+
2. Record each tool's name, description, parameter schema, and required fields — as the model sees
|
|
103
|
+
them
|
|
104
|
+
3. Trace the executor: how calls are dispatched, validated, and their results returned
|
|
105
|
+
4. Note handling for unknown tools, invalid arguments, and executor failures
|
|
106
|
+
5. Document parallel tool calls and result ordering, where present
|
|
159
107
|
|
|
160
|
-
**Output focus:**
|
|
108
|
+
**Output focus:** tool inventory with schemas, executor mapping, result shape, and validation
|
|
109
|
+
behaviour
|
|
161
110
|
|
|
162
111
|
---
|
|
163
112
|
|
|
164
|
-
### Mode 7: Agentic Loop
|
|
113
|
+
### Mode 7: Agentic Loop
|
|
165
114
|
|
|
166
115
|
**When asked:** "How does the agent loop work?" or "When does it stop?"
|
|
167
116
|
|
|
168
|
-
**Process:**
|
|
169
|
-
|
|
170
117
|
1. Find the loop construct and read it completely
|
|
171
|
-
2. Document the state carried across iterations
|
|
172
|
-
3. Record every termination condition:
|
|
173
|
-
|
|
174
|
-
|
|
118
|
+
2. Document the state carried across iterations
|
|
119
|
+
3. Record every termination condition: iteration cap, stop reason, success predicate, timeout,
|
|
120
|
+
cancellation
|
|
121
|
+
4. Trace error recovery on tool failure, parse failure, and provider error
|
|
122
|
+
5. Note sub-agent or multi-step delegation, where present
|
|
175
123
|
|
|
176
|
-
**Output focus:**
|
|
124
|
+
**Output focus:** loop structure, state shape, exit conditions, and failure paths
|
|
177
125
|
|
|
178
126
|
---
|
|
179
127
|
|
|
180
|
-
### Mode 8: Structured Output
|
|
128
|
+
### Mode 8: Structured Output
|
|
181
129
|
|
|
182
|
-
**When asked:** "How are
|
|
183
|
-
|
|
184
|
-
**Process:**
|
|
130
|
+
**When asked:** "How are responses parsed?" or "What schemas validate output?"
|
|
185
131
|
|
|
186
132
|
1. Find the mechanism: JSON mode, tool-use extraction, or free-text parsing
|
|
187
|
-
2. Locate the schemas
|
|
133
|
+
2. Locate the validating schemas and where they are defined
|
|
188
134
|
3. Document parse-failure handling: retry, repair prompt, fallback value, or thrown error
|
|
189
135
|
4. Note any coercion of partial or truncated JSON
|
|
190
|
-
5. Record whether schema
|
|
136
|
+
5. Record whether the schema is shared with the prompt that describes it
|
|
191
137
|
|
|
192
|
-
**Output focus:**
|
|
138
|
+
**Output focus:** parsing strategy, schema locations, and failure-path behaviour
|
|
193
139
|
|
|
194
140
|
---
|
|
195
141
|
|
|
196
|
-
### Mode 9: Token, Cost
|
|
142
|
+
### Mode 9: Token, Cost and Rate Limits
|
|
197
143
|
|
|
198
144
|
**When asked:** "How are token budgets handled?" or "Where is cost tracked?"
|
|
199
145
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
2. Document context window constants and how the budget is split across prompt sections
|
|
204
|
-
3. Find truncation and summarization strategies applied when the budget is exceeded
|
|
146
|
+
1. Find the token counting utilities and every call site that uses them
|
|
147
|
+
2. Document context-window constants and how the budget is split across prompt sections
|
|
148
|
+
3. Find truncation and summarisation applied when the budget is exceeded
|
|
205
149
|
4. Trace retry, backoff, and rate-limit handling around provider calls
|
|
206
|
-
5. Find usage
|
|
150
|
+
5. Find usage and cost recording — response usage fields, metrics, logs
|
|
207
151
|
|
|
208
|
-
**Output focus:**
|
|
152
|
+
**Output focus:** budget arithmetic, truncation rules, retry policy, and cost instrumentation points
|
|
209
153
|
|
|
210
154
|
---
|
|
211
155
|
|
|
212
|
-
### Mode 10: Streaming
|
|
156
|
+
### Mode 10: Streaming
|
|
213
157
|
|
|
214
158
|
**When asked:** "How is streaming implemented?" or "How are chunks assembled?"
|
|
215
159
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
1. Find the streaming call sites and the transport used (SSE, WebSocket, async iterator)
|
|
219
|
-
2. Document chunk assembly, including partial JSON or tool-call accumulation
|
|
160
|
+
1. Find the streaming call sites and the transport used
|
|
161
|
+
2. Document chunk assembly, including partial JSON and tool-call accumulation
|
|
220
162
|
3. Trace cancellation and abort handling
|
|
221
|
-
4. Note how
|
|
222
|
-
5. Record where the
|
|
163
|
+
4. Note how a mid-stream error reaches the consumer
|
|
164
|
+
5. Record where the assembled response is persisted or validated
|
|
223
165
|
|
|
224
|
-
**Output focus:**
|
|
166
|
+
**Output focus:** stream lifecycle from provider to consumer, with assembly and abort points
|
|
225
167
|
|
|
226
168
|
---
|
|
227
169
|
|
|
228
|
-
### Mode 11: Caching
|
|
170
|
+
### Mode 11: Caching
|
|
229
171
|
|
|
230
172
|
**When asked:** "What is cached?" or "How do we avoid recomputation?"
|
|
231
173
|
|
|
232
|
-
**Process:**
|
|
233
|
-
|
|
234
174
|
1. Find provider-level prompt caching markers and the stable prefix they depend on
|
|
235
|
-
2. Find application-level caches: response
|
|
175
|
+
2. Find application-level caches: response memoisation, embedding caches, retrieval caches
|
|
236
176
|
3. Document cache keys, invalidation triggers, and TTLs
|
|
237
177
|
4. Note cache-hit instrumentation
|
|
238
|
-
5. Record
|
|
178
|
+
5. Record deduplication of embedding or completion work in batch jobs
|
|
239
179
|
|
|
240
|
-
**Output focus:**
|
|
180
|
+
**Output focus:** cache inventory with keys, scope, invalidation, and hit accounting
|
|
241
181
|
|
|
242
182
|
---
|
|
243
183
|
|
|
244
|
-
### Mode 12:
|
|
184
|
+
### Mode 12: Evaluation and Datasets
|
|
245
185
|
|
|
246
186
|
**When asked:** "How is quality measured?" or "What evals exist?"
|
|
247
187
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
4. Record thresholds, pass criteria, and where results are stored or reported
|
|
254
|
-
5. Note which AI paths have no eval coverage - absence is a finding
|
|
188
|
+
1. Find the eval suites, harnesses, and their runner commands
|
|
189
|
+
2. Locate datasets and golden fixtures, with format and size
|
|
190
|
+
3. Document graders: exact match, rubric-scored, model-graded, or human-labelled
|
|
191
|
+
4. Record thresholds, pass criteria, and where results are stored
|
|
192
|
+
5. Name the AI paths with no eval coverage — absence is a finding
|
|
255
193
|
|
|
256
|
-
**Output focus:**
|
|
194
|
+
**Output focus:** eval inventory, dataset locations, grading approach, and coverage gaps
|
|
257
195
|
|
|
258
196
|
---
|
|
259
197
|
|
|
260
|
-
### Mode 13:
|
|
198
|
+
### Mode 13: Observability and Configuration
|
|
261
199
|
|
|
262
200
|
**When asked:** "How are prompts and responses logged?" or "Where does AI configuration live?"
|
|
263
201
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
1. Find tracing and logging around model calls, including what payload fields are recorded
|
|
202
|
+
1. Find tracing and logging around model calls, and which payload fields are recorded
|
|
267
203
|
2. Note redaction points where prompt or response content is masked before logging
|
|
268
|
-
3.
|
|
269
|
-
4. Record the env var
|
|
270
|
-
5. Document environment-specific differences
|
|
204
|
+
3. Catalogue configuration surfaces: env vars, config files, feature flags, per-tenant overrides
|
|
205
|
+
4. Record the env var names carrying provider credentials — names only
|
|
206
|
+
5. Document environment-specific differences between local, staging and production defaults
|
|
271
207
|
|
|
272
|
-
**Output focus:**
|
|
208
|
+
**Output focus:** observability points, redaction boundaries, and configuration inventory by name
|
|
273
209
|
|
|
274
210
|
---
|
|
275
211
|
|
|
276
|
-
## Tool Usage Patterns
|
|
277
|
-
|
|
278
212
|
<retrieval_strategy>
|
|
279
213
|
|
|
280
|
-
|
|
214
|
+
## Search Recipes
|
|
281
215
|
|
|
282
|
-
|
|
283
|
-
Need to find files?
|
|
284
|
-
--- Know pattern (*prompt*, *agent*, *embed*) -> Glob with pattern
|
|
285
|
-
--- Know keyword/text (SDK import, model id) -> Grep to find occurrences
|
|
286
|
-
--- Know directory (/ai, /llm, /rag) -> Glob with directory path
|
|
287
|
-
|
|
288
|
-
Need to understand a file?
|
|
289
|
-
--- Brief understanding -> Grep for the specific function or constant
|
|
290
|
-
--- Full understanding -> Read the complete file (always for prompts and loops)
|
|
291
|
-
--- Cross-file patterns -> Grep across the directory
|
|
292
|
-
|
|
293
|
-
Need to verify claims?
|
|
294
|
-
--- Path exists? -> Read the file (will error if missing)
|
|
295
|
-
--- Pattern used? -> Grep for the pattern
|
|
296
|
-
--- Count occurrences? -> Grep with count
|
|
297
|
-
--- Value resolved? -> Grep the constant name, then Read its definition
|
|
298
|
-
```
|
|
299
|
-
|
|
300
|
-
**Common AI research workflows:**
|
|
216
|
+
Starting points rather than a fixed sweep — adapt the pattern to the providers the project uses.
|
|
301
217
|
|
|
302
218
|
```bash
|
|
303
|
-
#
|
|
219
|
+
# Provider SDK usage
|
|
304
220
|
Grep("@anthropic-ai/sdk|openai|@google/gener|bedrock|azure-openai")
|
|
305
221
|
|
|
306
|
-
#
|
|
307
|
-
Grep("messages
|
|
222
|
+
# Model call sites
|
|
223
|
+
Grep("messages\\.create|chat\\.completions|generateText|streamText|invokeModel")
|
|
308
224
|
|
|
309
|
-
#
|
|
225
|
+
# Model identifiers
|
|
310
226
|
Grep("claude-|gpt-|gemini-|llama-|mistral-|text-embedding")
|
|
311
227
|
|
|
312
|
-
#
|
|
228
|
+
# Prompt templates and assembly
|
|
313
229
|
Glob("**/prompts/**", "**/*prompt*")
|
|
314
|
-
Grep("system:|role
|
|
230
|
+
Grep("system:|role:\\s*\"system\"|systemPrompt")
|
|
315
231
|
|
|
316
|
-
#
|
|
232
|
+
# Embedding and chunking
|
|
317
233
|
Grep("embed|embedding|chunk|splitText|RecursiveCharacter")
|
|
318
234
|
|
|
319
|
-
#
|
|
320
|
-
Grep("pinecone|qdrant|weaviate|chroma|pgvector|milvus|upsert
|
|
235
|
+
# Vector stores
|
|
236
|
+
Grep("pinecone|qdrant|weaviate|chroma|pgvector|milvus|upsert\\(|similaritySearch")
|
|
321
237
|
|
|
322
|
-
#
|
|
323
|
-
Grep("tools:|tool_choice|function_call|inputSchema|parameters
|
|
238
|
+
# Tool-calling schemas
|
|
239
|
+
Grep("tools:|tool_choice|function_call|inputSchema|parameters:\\s*\\{")
|
|
324
240
|
|
|
325
|
-
#
|
|
326
|
-
Grep("while
|
|
241
|
+
# Agent loops
|
|
242
|
+
Grep("while \\(|maxSteps|maxIterations|stop_reason|stopReason")
|
|
327
243
|
|
|
328
|
-
#
|
|
329
|
-
Grep("countTokens|encode
|
|
244
|
+
# Token budgeting and cost
|
|
245
|
+
Grep("countTokens|encode\\(|tiktoken|max_tokens|maxTokens|usage\\.|input_tokens")
|
|
330
246
|
|
|
331
|
-
#
|
|
247
|
+
# Streaming
|
|
332
248
|
Grep("stream: true|for await|ReadableStream|EventSource|text/event-stream")
|
|
333
249
|
|
|
334
|
-
#
|
|
250
|
+
# Caching
|
|
335
251
|
Grep("cache_control|cacheControl|promptCache|embeddingCache")
|
|
336
252
|
|
|
337
|
-
#
|
|
338
|
-
Glob("**/evals/**", "**/*.eval.*"
|
|
253
|
+
# Evals and datasets
|
|
254
|
+
Glob("**/evals/**", "**/*.eval.*")
|
|
339
255
|
Grep("grader|rubric|goldenSet|expectedOutput")
|
|
340
256
|
|
|
341
|
-
#
|
|
342
|
-
Grep("API_KEY|_MODEL|_ENDPOINT|process
|
|
257
|
+
# Configuration by name — never read a secret's value
|
|
258
|
+
Grep("API_KEY|_MODEL|_ENDPOINT|process\\.env\\.")
|
|
343
259
|
```
|
|
344
260
|
|
|
345
|
-
**Preserve context window:** prompts and agent loops deserve full reads; supporting files usually
|
|
346
|
-
only need a targeted Grep. Read what changes your conclusions, summarize the rest.
|
|
347
|
-
|
|
348
261
|
</retrieval_strategy>
|
|
349
262
|
|
|
350
263
|
---
|
|
351
264
|
|
|
352
|
-
## Cataloging Checklists
|
|
353
|
-
|
|
354
|
-
Use these to decide what a complete finding contains. Record every field you can verify, and mark the
|
|
355
|
-
rest **unknown** rather than guessing.
|
|
356
|
-
|
|
357
|
-
**Per prompt:**
|
|
358
|
-
|
|
359
|
-
- [ ] File path and line range
|
|
360
|
-
- [ ] Role (system / user / assistant / tool result)
|
|
361
|
-
- [ ] Verbatim excerpt, or the full text when short
|
|
362
|
-
- [ ] Template variables and the code that populates each
|
|
363
|
-
- [ ] Consumers: which call sites use it
|
|
364
|
-
- [ ] Storage form: inlined, file, config, database, or remote fetch
|
|
365
|
-
- [ ] Versioning or A/B mechanism, if any
|
|
366
|
-
|
|
367
|
-
**Per model call site:**
|
|
368
|
-
|
|
369
|
-
- [ ] File path and line range
|
|
370
|
-
- [ ] Provider and SDK method
|
|
371
|
-
- [ ] Model identifier and where that value comes from
|
|
372
|
-
- [ ] Sampling parameters and their defaults
|
|
373
|
-
- [ ] Streaming or non-streaming
|
|
374
|
-
- [ ] Tools attached, if any
|
|
375
|
-
- [ ] Retry, timeout, and fallback wrapper
|
|
376
|
-
- [ ] Usage/cost recording
|
|
377
|
-
|
|
378
|
-
**Per retrieval pipeline:**
|
|
379
|
-
|
|
380
|
-
- [ ] Ingestion entry point
|
|
381
|
-
- [ ] Chunk size, overlap, and splitter
|
|
382
|
-
- [ ] Chunk metadata fields
|
|
383
|
-
- [ ] Embedding model and dimensions
|
|
384
|
-
- [ ] Store, index/collection name, and distance metric
|
|
385
|
-
- [ ] Query path: `topK`, filters, thresholds, re-ranking
|
|
386
|
-
- [ ] Context assembly and truncation rule
|
|
387
|
-
- [ ] Re-index and delete paths
|
|
388
|
-
|
|
389
|
-
**Per tool:**
|
|
390
|
-
|
|
391
|
-
- [ ] Name and description text as given to the model
|
|
392
|
-
- [ ] Parameter schema and required fields
|
|
393
|
-
- [ ] Executor location
|
|
394
|
-
- [ ] Result shape returned to the model
|
|
395
|
-
- [ ] Validation and error handling
|
|
396
|
-
- [ ] Side effects the executor performs
|
|
397
|
-
|
|
398
|
-
**Per agent loop:**
|
|
399
|
-
|
|
400
|
-
- [ ] Loop location and construct
|
|
401
|
-
- [ ] State carried across iterations
|
|
402
|
-
- [ ] Iteration cap and other termination conditions
|
|
403
|
-
- [ ] Tool-failure and parse-failure recovery
|
|
404
|
-
- [ ] Timeout and cancellation
|
|
405
|
-
- [ ] Observability per iteration
|
|
406
|
-
|
|
407
|
-
**Per eval:**
|
|
408
|
-
|
|
409
|
-
- [ ] Suite location and runner command
|
|
410
|
-
- [ ] Dataset location, format, and size
|
|
411
|
-
- [ ] Grading method
|
|
412
|
-
- [ ] Pass thresholds
|
|
413
|
-
- [ ] What is NOT covered
|
|
414
|
-
|
|
415
|
-
---
|
|
416
|
-
|
|
417
|
-
## Verification Protocol
|
|
418
|
-
|
|
419
|
-
**Before any path or value enters your findings:**
|
|
420
|
-
|
|
421
|
-
1. **Paths** - Read the file. A path you have not opened is a claim, not a finding.
|
|
422
|
-
2. **Line numbers** - Take them from the file you just read, not from memory of a previous search.
|
|
423
|
-
3. **Prompt text** - Copy it. Paraphrased prompts are the highest-value thing to get exactly right
|
|
424
|
-
and the easiest to corrupt.
|
|
425
|
-
4. **Model identifiers** - Copy the literal. Never substitute a model name you recall as "the current one".
|
|
426
|
-
5. **Parameters and defaults** - Read the definition. A default that lives in a wrapper is part of the finding.
|
|
427
|
-
6. **Counts** - Grep and report the actual number of occurrences.
|
|
428
|
-
7. **Secrets** - Report the env var **name** and the file that reads it. Never copy a credential value
|
|
429
|
-
into findings, even if you can see one.
|
|
430
|
-
|
|
431
|
-
---
|
|
432
|
-
|
|
433
|
-
## Confidence and Progress Notes
|
|
434
|
-
|
|
435
265
|
<progress_tracking>
|
|
436
266
|
|
|
437
|
-
|
|
267
|
+
## Confidence and Open Questions
|
|
438
268
|
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
4. **Open questions** - what could not be determined from the source, and what would settle it
|
|
269
|
+
**Track as you go rather than reconstructing at the end.** Which file confirmed which claim, and how
|
|
270
|
+
directly: high means you read the code, medium means you inferred it from consistent usage, low
|
|
271
|
+
means a single ambiguous occurrence. A confidence level assigned from memory after the fact is a
|
|
272
|
+
guess about a guess.
|
|
444
273
|
|
|
445
|
-
|
|
446
|
-
|
|
274
|
+
**Count by grepping rather than by impression.** "How many call sites" is a number the tool returns,
|
|
275
|
+
and it is the difference between a convention and one developer's choice.
|
|
447
276
|
|
|
448
|
-
|
|
277
|
+
**Carry the open questions into the report.** What the source did not settle, and what would settle
|
|
278
|
+
it — a developer told a gap is undecided reaches for a decision; one told nothing assumes you looked
|
|
279
|
+
and found agreement.
|
|
449
280
|
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
## Research Quality Standards
|
|
453
|
-
|
|
454
|
-
**Every research finding must have:**
|
|
455
|
-
|
|
456
|
-
1. **Verified file paths** - Use Read to confirm they exist
|
|
457
|
-
2. **Line numbers** - Point to exact code locations
|
|
458
|
-
3. **Concrete examples** - Show actual code and actual prompt text, not abstract descriptions
|
|
459
|
-
4. **Pattern frequency** - How many instances exist?
|
|
460
|
-
5. **Actionable guidance** - What should a developer do with this?
|
|
461
|
-
|
|
462
|
-
**Bad AI research output:**
|
|
463
|
-
|
|
464
|
-
```markdown
|
|
465
|
-
The codebase uses an LLM with RAG for the assistant feature.
|
|
466
|
-
```
|
|
467
|
-
|
|
468
|
-
**Good AI research output:**
|
|
469
|
-
|
|
470
|
-
```markdown
|
|
471
|
-
## Retrieval Pipeline
|
|
472
|
-
|
|
473
|
-
**Entry point:** `/src/ai/rag/ingest.ts:18-64`
|
|
474
|
-
|
|
475
|
-
| Stage | Location | Parameters |
|
|
476
|
-
| -------- | ------------------------------- | --------------------------------------------- |
|
|
477
|
-
| Chunk | `/src/ai/rag/chunk.ts:12-30` | size 800, overlap 120, recursive splitter |
|
|
478
|
-
| Embed | `/src/ai/rag/embed.ts:22-41` | `text-embedding-3-small`, 1536 dims, batch 96 |
|
|
479
|
-
| Store | `/src/ai/rag/store.ts:15-38` | pgvector, table `doc_chunks`, cosine |
|
|
480
|
-
| Query | `/src/ai/rag/retrieve.ts:20-52` | topK 8, score >= 0.72, tenant filter |
|
|
481
|
-
| Assemble | `/src/ai/rag/context.ts:14-45` | 6000-token cap, oldest chunks dropped first |
|
|
482
|
-
|
|
483
|
-
**Model call consuming this context:** `/src/ai/chat/answer.ts:40-72`
|
|
484
|
-
|
|
485
|
-
- Model literal `claude-sonnet-4-6` at `/src/ai/config.ts:9` (no env override)
|
|
486
|
-
- `max_tokens: 1024`, `temperature: 0`
|
|
487
|
-
|
|
488
|
-
**Files to reference for a new pipeline:**
|
|
489
|
-
|
|
490
|
-
1. `/src/ai/rag/ingest.ts` - Orchestration of all stages
|
|
491
|
-
2. `/src/ai/rag/context.ts` - Token-capped assembly, the part most easily got wrong
|
|
492
|
-
```
|
|
493
|
-
|
|
494
|
-
---
|
|
495
|
-
|
|
496
|
-
## Common Research Mistakes to Avoid
|
|
497
|
-
|
|
498
|
-
**1. Paraphrasing prompt text**
|
|
499
|
-
|
|
500
|
-
Bad: "The system prompt tells the model to be concise."
|
|
501
|
-
Good: Verbatim excerpt with `/src/ai/prompts/answer.ts:5-11` and the full instruction text.
|
|
502
|
-
|
|
503
|
-
**2. Reporting a model name from memory**
|
|
504
|
-
|
|
505
|
-
Bad: "Calls the current Claude model."
|
|
506
|
-
Good: "`model: MODELS.answer` -> `\"claude-sonnet-4-6\"` at `/src/ai/config.ts:9`."
|
|
507
|
-
|
|
508
|
-
**3. Assuming the pipeline from directory names**
|
|
509
|
-
|
|
510
|
-
Bad: "There's a `/rag` folder, so retrieval is semantic search over embeddings."
|
|
511
|
-
Good: Trace each stage to its call site; a `/rag` folder can hold keyword search.
|
|
512
|
-
|
|
513
|
-
**4. Missing the wrapper that sets defaults**
|
|
514
|
-
|
|
515
|
-
Bad: "The call sets no temperature."
|
|
516
|
-
Good: "Call site sets none; the shared client at `/src/ai/client.ts:24` defaults `temperature: 0.7`."
|
|
517
|
-
|
|
518
|
-
**5. Ignoring the second call site**
|
|
519
|
-
|
|
520
|
-
Bad: Documenting one prompt path when Grep shows four.
|
|
521
|
-
Good: Report every occurrence, and flag the ones that disagree.
|
|
522
|
-
|
|
523
|
-
**6. Copying a secret value**
|
|
524
|
-
|
|
525
|
-
Bad: Pasting a key found in a `.env` sample into findings.
|
|
526
|
-
Good: "Reads `ANTHROPIC_API_KEY` at `/src/ai/client.ts:11`." Name only.
|
|
527
|
-
|
|
528
|
-
**7. Silently omitting coverage gaps**
|
|
529
|
-
|
|
530
|
-
Bad: Listing the evals that exist.
|
|
531
|
-
Good: Listing them and naming the AI paths with no eval at all.
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
## Integration with Other Agents
|
|
536
|
-
|
|
537
|
-
**Your findings enable:**
|
|
538
|
-
|
|
539
|
-
- `ai-developer` to implement AI features against real prompts, schemas, and pipeline parameters
|
|
540
|
-
- `pm` to write specifications grounded in the codebase's actual AI surface
|
|
541
|
-
- `reviewer` to review against documented intent rather than inference
|
|
542
|
-
- `ai-tester` to target the paths and failure modes that exist
|
|
543
|
-
|
|
544
|
-
**Hand off rather than expanding scope:** implementation goes to `ai-developer`, specifications to
|
|
545
|
-
`pm`, quality judgments to `reviewer`, tests to `ai-tester`. You describe what is there.
|
|
281
|
+
</progress_tracking>
|