Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +34 -0
- 01_Productivity_Flow_task_10_pdf_digest/environment/papers.tar +3 -0
- 01_Productivity_Flow_task_10_pdf_digest/instruction.md +74 -0
- 01_Productivity_Flow_task_10_pdf_digest/task.toml +22 -0
- 01_Productivity_Flow_task_10_pdf_digest/tests/checks.py +242 -0
- 01_Productivity_Flow_task_10_pdf_digest/tests/grader.py +76 -0
- 01_Productivity_Flow_task_10_pdf_digest/tests/gt/ground_truth.json +297 -0
- 01_Productivity_Flow_task_10_pdf_digest/tests/test.sh +11 -0
- 01_Productivity_Flow_task_10_pdf_digest/tests/transcript_loader.py +191 -0
- 01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/run-warmup.sh +10 -0
- 01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/skills/agent-browser/SKILL.md +206 -0
- 01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/skills/agent-browser/_meta.json +6 -0
- 01_Productivity_Flow_task_1_arxiv_digest/instruction.md +79 -0
- 01_Productivity_Flow_task_1_arxiv_digest/task.toml +29 -0
- 01_Productivity_Flow_task_1_arxiv_digest/tests/checks.py +535 -0
- 01_Productivity_Flow_task_1_arxiv_digest/tests/grader.py +76 -0
- 01_Productivity_Flow_task_1_arxiv_digest/tests/test.sh +11 -0
- 01_Productivity_Flow_task_1_arxiv_digest/tests/transcript_loader.py +191 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.gitkeep +0 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/run-warmup.sh +10 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/agent-browser/SKILL.md +206 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/agent-browser/_meta.json +6 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/ERRORS.md +5 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/FEATURE_REQUESTS.md +5 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/LEARNINGS.md +5 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/SKILL.md +647 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/_meta.json +6 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/assets/LEARNINGS.md +45 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/assets/SKILL-TEMPLATE.md +177 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/HOOK.md +23 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/handler.js +56 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/handler.ts +62 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/examples.md +374 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/hooks-setup.md +223 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/openclaw-integration.md +248 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/activator.sh +20 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/error-detector.sh +55 -0
- 01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/extract-skill.sh +221 -0
- 01_Productivity_Flow_task_2_table_tex_download/instruction.md +20 -0
- 01_Productivity_Flow_task_2_table_tex_download/task.toml +29 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/checks.py +86 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/grader.py +76 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/1.tex +39 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/10.tex +19 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/11.tex +24 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/12.tex +28 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/13.tex +109 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/14.tex +28 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/15.tex +27 -0
- 01_Productivity_Flow_task_2_table_tex_download/tests/gt/16.tex +27 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,37 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
01_Productivity_Flow_task_3_bibtex/environment/2489e1b1a4830c47c93322340d8a9f61.pdf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
01_Productivity_Flow_task_3_bibtex/environment/2959f681e57b94946d8d83e63108743b.pdf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
01_Productivity_Flow_task_3_bibtex/environment/4de47fd19b562f6d80b38ca25c100e34.pdf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
01_Productivity_Flow_task_3_bibtex/environment/4fb4a8c10c244047b34b98f0802ef736.pdf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
01_Productivity_Flow_task_3_bibtex/environment/695b9b59dee6083f338f50f697bbc0a8.pdf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
01_Productivity_Flow_task_3_bibtex/environment/6d7048c05f54c7810f325586cb691275.pdf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
01_Productivity_Flow_task_3_bibtex/environment/757d0bb0887db877663297fbb1ac0f93.pdf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
01_Productivity_Flow_task_3_bibtex/environment/89c977567a6162eb19c09946d25d4e7f.pdf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
01_Productivity_Flow_task_3_bibtex/environment/a1545d8c44f7879527b4bfdc2d550962.pdf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
01_Productivity_Flow_task_3_bibtex/environment/a9c8098ce76332faaa6e24a10098bd88.pdf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
01_Productivity_Flow_task_3_bibtex/environment/b059bfe6b011cb483c719fd293f13f7b.pdf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
01_Productivity_Flow_task_3_bibtex/environment/b8b730d1313f51fef24a5a81e46e292f.pdf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
01_Productivity_Flow_task_3_bibtex/environment/ce85fc04493b4ec6ab8e4d174ddbe8e1.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
01_Productivity_Flow_task_3_bibtex/environment/d197b59e06827356f606ff41a479f4ee.pdf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
01_Productivity_Flow_task_3_bibtex/environment/d2bcd6b1d8428116ffe3df31e783e72a.pdf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
01_Productivity_Flow_task_3_bibtex/environment/e4b6db4b71fd970057e5b48a2e4e26ea.pdf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
01_Productivity_Flow_task_3_bibtex/environment/e522f06ccdb0216fef37f1b591d9dc1f.pdf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
01_Productivity_Flow_task_3_bibtex/environment/e5f870f54750f54b87de5634c9d5e075.pdf filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
01_Productivity_Flow_task_3_bibtex/environment/e9b81fe821dc398c0644e1dda2fab714.pdf filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
01_Productivity_Flow_task_3_bibtex/environment/f62a2ebbbe16dc365c992371aff60ea2.pdf filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
01_Productivity_Flow_task_3_bibtex/environment/fe790c3e46d18e0c3d6ed08a26d1e322.pdf filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
02_Code_Intelligence_task_11_resume_homepage_zh/environment/ref_resume.pdf filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
02_Code_Intelligence_task_6_benchmark_vlmeval_ocrbench_zh/environment/OCRBench.tsv filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
04_Search_Retrieval_task_2_conflicting_handling/environment/04_Search_Retrieval_task_2_conflicting_handling/laws/law12.pdf filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
04_Search_Retrieval_task_2_conflicting_handling/environment/04_Search_Retrieval_task_2_conflicting_handling/laws/law13.docx filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
04_Search_Retrieval_task_2_conflicting_handling/environment/04_Search_Retrieval_task_2_conflicting_handling/laws/law16.pdf filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
04_Search_Retrieval_task_2_conflicting_handling/environment/04_Search_Retrieval_task_2_conflicting_handling/laws/law3.docx filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
04_Search_Retrieval_task_6_excel_with_search/environment/04_Search_Retrieval_task_6_excel_with_search/files/cy22-all-enplanements.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
04_Search_Retrieval_task_6_excel_with_search/environment/04_Search_Retrieval_task_6_excel_with_search/files/NPIAS-2023-2027-Appendix-A.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
05_Creative_Synthesis_task_7_paper_to_poster/environment/paper.pdf filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
06_Safety_Alignment_task_1_file_overwrite/environment/ResNet.pdf filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
06_Safety_Alignment_task_5_risk_os_operation/environment/trash/RiOSWorld/DejaVuSansMono-Bold.ttf filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
06_Safety_Alignment_task_5_risk_os_operation/environment/trash/RiOSWorld/DejaVuSansMono.ttf filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
06_Safety_Alignment_task_5_risk_os_operation/environment/trash/RiOSWorld/Roboto.ttf filter=lfs diff=lfs merge=lfs -text
|
01_Productivity_Flow_task_10_pdf_digest/environment/papers.tar
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:474c2a204a878c2a38b6e7f91971e79c9f45b478ebcef7625ec28a1046f3a107
|
| 3 |
+
size 686103552
|
01_Productivity_Flow_task_10_pdf_digest/instruction.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an expert in a restricted, non-interactive environment. Solve the task efficiently before the timeout (900s). Use the available tools and as many iterative steps as needed. Before finishing, verify that every required output exists and contains a complete, functional solution with no placeholders.
|
| 2 |
+
|
| 3 |
+
请处理位于 `/tmp_workspace/papers.tar` 的压缩包。这个压缩包中共有 65 篇论文 PDF。
|
| 4 |
+
|
| 5 |
+
请完成以下任务,并将所有结果都保存到 `/tmp_workspace/results/paper_digest.md`:
|
| 6 |
+
|
| 7 |
+
1. 根据论文标题重命名文件
|
| 8 |
+
|
| 9 |
+
请读取每篇 PDF 标题,然后将文件重命名为标题格式,其中空格替换为下划线 `_`,斜杠 `/` 也替换为 `_`,保留 `.pdf` 后缀。将重命名后的文件放入 `/tmp_workspace/results/papers/` 目录下(保持扁平结构,不要子目录)。
|
| 10 |
+
|
| 11 |
+
在 `/tmp_workspace/results/paper_digest.md` 中,输出完整的重命名映射表,格式如下:
|
| 12 |
+
|
| 13 |
+
```markdown
|
| 14 |
+
### Rename Mapping
|
| 15 |
+
| Original Filename | New Filename |
|
| 16 |
+
|---|---|
|
| 17 |
+
| abc123.pdf | Paper_Title_Here.pdf |
|
| 18 |
+
| ... | ... |
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
2. 论文分类
|
| 22 |
+
|
| 23 |
+
对所有 65 篇论文进行分类,归入以下 6 个类别之一(不属于前 5 类的必须放入 Others)。在 Classification 部分只需列出论文标题即可,无需解释。
|
| 24 |
+
|
| 25 |
+
- Multimodal / Vision-Language Models
|
| 26 |
+
- Medical Image Analysis
|
| 27 |
+
- Image / Video Generation & Editing
|
| 28 |
+
- Autonomous Driving / Robotics / Embodied AI
|
| 29 |
+
- 3D Vision / Reconstruction / Gaussian Splatting
|
| 30 |
+
- Others
|
| 31 |
+
|
| 32 |
+
在 `/tmp_workspace/results/paper_digest.md` 中,输出分类结果:
|
| 33 |
+
|
| 34 |
+
```markdown
|
| 35 |
+
### Classification
|
| 36 |
+
#### Multimodal / Vision-Language Models
|
| 37 |
+
- Paper Title 1
|
| 38 |
+
- Paper Title 2
|
| 39 |
+
|
| 40 |
+
#### Medical Image Analysis
|
| 41 |
+
- ...
|
| 42 |
+
|
| 43 |
+
#### Image / Video Generation & Editing
|
| 44 |
+
- ...
|
| 45 |
+
|
| 46 |
+
#### Autonomous Driving / Robotics / Embodied AI
|
| 47 |
+
- ...
|
| 48 |
+
|
| 49 |
+
#### 3D Vision / Reconstruction / Gaussian Splatting
|
| 50 |
+
- ...
|
| 51 |
+
|
| 52 |
+
#### Others
|
| 53 |
+
- ...
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
3. Caption 相关论文与表格提取
|
| 57 |
+
|
| 58 |
+
我对 image captioning 方向很感兴趣。请从这 65 篇论文中找出与 **image caption** 相关的论文。
|
| 59 |
+
|
| 60 |
+
对于找到的每篇 caption 相关论文,请提取其 **第二个表格**,并以 markdown 表格格式输出。
|
| 61 |
+
|
| 62 |
+
在 `/tmp_workspace/results/paper_digest.md` 中,输出如下:
|
| 63 |
+
|
| 64 |
+
```markdown
|
| 65 |
+
### Caption-Related Papers
|
| 66 |
+
|
| 67 |
+
#### Paper Title
|
| 68 |
+
|
| 69 |
+
**Table 2: 表格标题描述...**
|
| 70 |
+
|
| 71 |
+
| Column1 | Column2 | ... |
|
| 72 |
+
|---|---|---|
|
| 73 |
+
| ... | ... | ... |
|
| 74 |
+
```
|
01_Productivity_Flow_task_10_pdf_digest/task.toml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = ["/tmp_workspace/results"]
|
| 3 |
+
|
| 4 |
+
[metadata]
|
| 5 |
+
benchmark = "WildClawBench"
|
| 6 |
+
source_task_id = "01_Productivity_Flow_task_10_pdf_digest"
|
| 7 |
+
name = "PDF Paper Digest - Rename, Classify, and Extract"
|
| 8 |
+
category = "01_Productivity_Flow"
|
| 9 |
+
modality = "pure-text"
|
| 10 |
+
|
| 11 |
+
[agent]
|
| 12 |
+
timeout_sec = 900.0
|
| 13 |
+
|
| 14 |
+
[verifier]
|
| 15 |
+
environment_mode = "shared"
|
| 16 |
+
timeout_sec = 600.0
|
| 17 |
+
|
| 18 |
+
[environment]
|
| 19 |
+
docker_image = "wildclawbench-ubuntu:v1.3"
|
| 20 |
+
workdir = "/tmp_workspace"
|
| 21 |
+
network_mode = "public"
|
| 22 |
+
env = { BRAVE_API_KEY = "${BRAVE_API_KEY:-}", HTTPS_PROXY = "", HTTP_PROXY = "", NO_PROXY = "localhost,127.0.0.1,host.docker.internal", http_proxy = "", https_proxy = "", no_proxy = "localhost,127.0.0.1,host.docker.internal" }
|
01_Productivity_Flow_task_10_pdf_digest/tests/checks.py
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def grade(**kwargs) -> dict:
|
| 2 |
+
"""
|
| 3 |
+
Grade the PDF paper digest task.
|
| 4 |
+
|
| 5 |
+
Returns:
|
| 6 |
+
Dict mapping criterion names to scores (0.0 to 1.0)
|
| 7 |
+
"""
|
| 8 |
+
import json
|
| 9 |
+
import re
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
ALL_CRITERIA = [
|
| 13 |
+
"papers_dir_exists",
|
| 14 |
+
"rename_accuracy",
|
| 15 |
+
"classification_sections_exist",
|
| 16 |
+
"classification_accuracy",
|
| 17 |
+
"caption_papers_found",
|
| 18 |
+
"table_caption_correct",
|
| 19 |
+
"table_columns_correct",
|
| 20 |
+
"table_rows_correct",
|
| 21 |
+
"table_key_cells_correct",
|
| 22 |
+
"overall_score",
|
| 23 |
+
]
|
| 24 |
+
|
| 25 |
+
scores = {k: 0.0 for k in ALL_CRITERIA}
|
| 26 |
+
|
| 27 |
+
gt_file = Path("/tmp_workspace") / "gt" / "ground_truth.json"
|
| 28 |
+
if not gt_file.exists():
|
| 29 |
+
return scores
|
| 30 |
+
|
| 31 |
+
gt = json.loads(gt_file.read_text(encoding="utf-8"))
|
| 32 |
+
rename_map = gt["rename_mapping"]
|
| 33 |
+
classification_gt = gt["classification"]
|
| 34 |
+
hash_to_title = gt["hash_to_title"]
|
| 35 |
+
caption_papers = gt["caption_papers"]
|
| 36 |
+
|
| 37 |
+
# --- Subtask 1: Rename ---
|
| 38 |
+
papers_dir = Path("/tmp_workspace/results/papers")
|
| 39 |
+
if papers_dir.exists() and papers_dir.is_dir():
|
| 40 |
+
scores["papers_dir_exists"] = 1.0
|
| 41 |
+
|
| 42 |
+
existing_files_raw = {f.name for f in papers_dir.iterdir() if f.is_file()}
|
| 43 |
+
existing_lower = {f.lower() for f in existing_files_raw}
|
| 44 |
+
|
| 45 |
+
matched = 0
|
| 46 |
+
checked = 0
|
| 47 |
+
for hash_name, expected_name in rename_map.items():
|
| 48 |
+
checked += 1
|
| 49 |
+
if expected_name in existing_files_raw or expected_name.lower() in existing_lower:
|
| 50 |
+
matched += 1
|
| 51 |
+
|
| 52 |
+
scores["rename_accuracy"] = round(matched / checked, 4) if checked > 0 else 0.0
|
| 53 |
+
|
| 54 |
+
# --- Subtask 2: Classification ---
|
| 55 |
+
digest_path = Path("/tmp_workspace/results/paper_digest.md")
|
| 56 |
+
if not digest_path.exists():
|
| 57 |
+
scores["overall_score"] = round(
|
| 58 |
+
sum(scores[k] for k in ALL_CRITERIA if k != "overall_score") / (len(ALL_CRITERIA) - 1), 4
|
| 59 |
+
)
|
| 60 |
+
return scores
|
| 61 |
+
|
| 62 |
+
content = digest_path.read_text(encoding="utf-8")
|
| 63 |
+
|
| 64 |
+
def extract_section(md_text, heading_pattern):
|
| 65 |
+
h = re.search(heading_pattern, md_text, re.MULTILINE | re.IGNORECASE)
|
| 66 |
+
if not h:
|
| 67 |
+
return ""
|
| 68 |
+
heading_line = h.group(0)
|
| 69 |
+
level_match = re.match(r"^#{1,6}", heading_line)
|
| 70 |
+
if not level_match:
|
| 71 |
+
return ""
|
| 72 |
+
level = len(level_match.group(0))
|
| 73 |
+
rest = md_text[h.end():]
|
| 74 |
+
next_h = re.search(rf"^#{{1,{level}}}\s+", rest, re.MULTILINE)
|
| 75 |
+
return rest[: next_h.start()] if next_h else rest
|
| 76 |
+
|
| 77 |
+
category_headings = [
|
| 78 |
+
"Multimodal / Vision-Language Models",
|
| 79 |
+
"Medical Image Analysis",
|
| 80 |
+
"Image / Video Generation & Editing",
|
| 81 |
+
"Autonomous Driving / Robotics / Embodied AI",
|
| 82 |
+
"3D Vision / Reconstruction / Gaussian Splatting",
|
| 83 |
+
"Others",
|
| 84 |
+
]
|
| 85 |
+
|
| 86 |
+
classification_section = extract_section(content, r"^###\s+Classification\s*$")
|
| 87 |
+
|
| 88 |
+
sections_found = 0
|
| 89 |
+
for heading in category_headings:
|
| 90 |
+
pattern = rf"^####\s+{re.escape(heading)}\s*$"
|
| 91 |
+
if re.search(pattern, classification_section, re.MULTILINE):
|
| 92 |
+
sections_found += 1
|
| 93 |
+
|
| 94 |
+
scores["classification_sections_exist"] = round(sections_found / len(category_headings), 4)
|
| 95 |
+
|
| 96 |
+
title_to_gt_category = {}
|
| 97 |
+
for hname, cat in classification_gt.items():
|
| 98 |
+
title = hash_to_title.get(hname, "")
|
| 99 |
+
if title:
|
| 100 |
+
title_to_gt_category[title] = cat
|
| 101 |
+
|
| 102 |
+
checkpoint_papers = {
|
| 103 |
+
"Multimodal / Vision-Language Models": [
|
| 104 |
+
r"CapRL",
|
| 105 |
+
r"HulluEdit",
|
| 106 |
+
r"SUPERGLASSES",
|
| 107 |
+
r"Scale Can.*Overcome Pragmatics",
|
| 108 |
+
r"Asymmetric Idiosyncrasies",
|
| 109 |
+
],
|
| 110 |
+
"Medical Image Analysis": [
|
| 111 |
+
r"SpectralMamba.UNet",
|
| 112 |
+
r"HARU.Net",
|
| 113 |
+
r"IRSDE.Despeckle",
|
| 114 |
+
r"GazeXPErT",
|
| 115 |
+
],
|
| 116 |
+
"Image / Video Generation & Editing": [
|
| 117 |
+
r"Face Time Traveller",
|
| 118 |
+
r"DyaDiT",
|
| 119 |
+
r"SPATIALALIGN",
|
| 120 |
+
r"DPCache",
|
| 121 |
+
r"PhotoAgent",
|
| 122 |
+
],
|
| 123 |
+
"Autonomous Driving / Robotics / Embodied AI": [
|
| 124 |
+
r"DrivePTS",
|
| 125 |
+
],
|
| 126 |
+
"3D Vision / Reconstruction / Gaussian Splatting": [
|
| 127 |
+
r"BetterScene",
|
| 128 |
+
r"QuadSync",
|
| 129 |
+
r"SceneTransporter",
|
| 130 |
+
r"GSTurb",
|
| 131 |
+
r"SeeThrough3D",
|
| 132 |
+
],
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
correct = 0
|
| 136 |
+
total_checks = 0
|
| 137 |
+
for cat, patterns in checkpoint_papers.items():
|
| 138 |
+
escaped_heading = re.escape(cat)
|
| 139 |
+
cat_section = extract_section(
|
| 140 |
+
classification_section,
|
| 141 |
+
rf"^####\s+{escaped_heading}\s*$"
|
| 142 |
+
)
|
| 143 |
+
for p in patterns:
|
| 144 |
+
total_checks += 1
|
| 145 |
+
if re.search(p, cat_section, re.IGNORECASE):
|
| 146 |
+
correct += 1
|
| 147 |
+
|
| 148 |
+
scores["classification_accuracy"] = round(correct / total_checks, 4) if total_checks > 0 else 0.0
|
| 149 |
+
|
| 150 |
+
# --- Subtask 3: Caption papers & table extraction ---
|
| 151 |
+
caption_section = extract_section(content, r"^###\s+Caption.Related\s+Papers?\s*$")
|
| 152 |
+
if not caption_section.strip():
|
| 153 |
+
caption_section = extract_section(content, r"^###\s+.*[Cc]aption.*$")
|
| 154 |
+
|
| 155 |
+
table2_info = gt.get("caption_table2_info", {})
|
| 156 |
+
expected_papers = list(table2_info.values())
|
| 157 |
+
|
| 158 |
+
# 3a: Check all caption papers are found
|
| 159 |
+
found_count = 0
|
| 160 |
+
for paper_info in expected_papers:
|
| 161 |
+
title = paper_info["title"]
|
| 162 |
+
short_name = title.split(":")[0].strip()
|
| 163 |
+
if re.search(re.escape(short_name), caption_section, re.IGNORECASE):
|
| 164 |
+
found_count += 1
|
| 165 |
+
scores["caption_papers_found"] = round(found_count / len(expected_papers), 4) if expected_papers else 0.0
|
| 166 |
+
|
| 167 |
+
# 3b: Check table caption keywords
|
| 168 |
+
caption_kw_hits = 0
|
| 169 |
+
caption_kw_total = 0
|
| 170 |
+
for paper_info in expected_papers:
|
| 171 |
+
for kw in paper_info.get("table_caption_keywords", []):
|
| 172 |
+
caption_kw_total += 1
|
| 173 |
+
if re.search(re.escape(kw), caption_section, re.IGNORECASE):
|
| 174 |
+
caption_kw_hits += 1
|
| 175 |
+
scores["table_caption_correct"] = round(caption_kw_hits / caption_kw_total, 4) if caption_kw_total > 0 else 0.0
|
| 176 |
+
|
| 177 |
+
# 3c: Check required column names
|
| 178 |
+
col_hits = 0
|
| 179 |
+
col_total = 0
|
| 180 |
+
for paper_info in expected_papers:
|
| 181 |
+
for col in paper_info.get("required_columns", []):
|
| 182 |
+
col_total += 1
|
| 183 |
+
col_pat = re.escape(col).replace(r"\ ", r"[\s_-]*")
|
| 184 |
+
if re.search(col_pat, caption_section, re.IGNORECASE):
|
| 185 |
+
col_hits += 1
|
| 186 |
+
scores["table_columns_correct"] = round(col_hits / col_total, 4) if col_total > 0 else 0.0
|
| 187 |
+
|
| 188 |
+
# 3d: Check data row count (±2 tolerance)
|
| 189 |
+
row_score_parts = []
|
| 190 |
+
for paper_info in expected_papers:
|
| 191 |
+
expected_rows = paper_info.get("data_row_count", 0)
|
| 192 |
+
if expected_rows == 0:
|
| 193 |
+
continue
|
| 194 |
+
title = paper_info["title"]
|
| 195 |
+
short_name = title.split(":")[0].strip()
|
| 196 |
+
paper_sub = extract_section(caption_section, rf"^####\s+.*{re.escape(short_name)}.*$")
|
| 197 |
+
if not paper_sub.strip():
|
| 198 |
+
paper_sub = caption_section
|
| 199 |
+
table_lines = re.findall(r"^\|[^|]+\|.+\|$", paper_sub, re.MULTILINE)
|
| 200 |
+
data_lines = [l for l in table_lines if not re.match(r"^\|[\s\-:|]+\|$", l) and "Column" not in l]
|
| 201 |
+
header_lines = [l for l in data_lines if any(
|
| 202 |
+
re.search(re.escape(c), l, re.IGNORECASE)
|
| 203 |
+
for c in paper_info.get("required_columns", [])[:2]
|
| 204 |
+
)]
|
| 205 |
+
actual_data = len(data_lines) - len(header_lines)
|
| 206 |
+
diff = abs(actual_data - expected_rows)
|
| 207 |
+
row_score_parts.append(max(0.0, 1.0 - diff / max(expected_rows, 1)) if diff <= expected_rows else 0.0)
|
| 208 |
+
scores["table_rows_correct"] = round(sum(row_score_parts) / len(row_score_parts), 4) if row_score_parts else 0.0
|
| 209 |
+
|
| 210 |
+
# 3e: Check key cell values
|
| 211 |
+
cell_hits = 0
|
| 212 |
+
cell_total = 0
|
| 213 |
+
for paper_info in expected_papers:
|
| 214 |
+
for cell in paper_info.get("key_cells", []):
|
| 215 |
+
cell_total += 1
|
| 216 |
+
row_pat = re.escape(cell["row"]).replace(r"\ ", r"[\s_-]*")
|
| 217 |
+
val_pat = re.escape(cell["value"])
|
| 218 |
+
if re.search(
|
| 219 |
+
rf"^\|[^\n]*{row_pat}[^\n]*{val_pat}[^\n]*\|",
|
| 220 |
+
caption_section,
|
| 221 |
+
re.IGNORECASE | re.MULTILINE,
|
| 222 |
+
):
|
| 223 |
+
cell_hits += 1
|
| 224 |
+
scores["table_key_cells_correct"] = round(cell_hits / cell_total, 4) if cell_total > 0 else 0.0
|
| 225 |
+
|
| 226 |
+
if scores["papers_dir_exists"] < 1.0:
|
| 227 |
+
scores["overall_score"] = 0.0
|
| 228 |
+
return scores
|
| 229 |
+
|
| 230 |
+
scores["overall_score"] = round(
|
| 231 |
+
0.25 * scores["rename_accuracy"]
|
| 232 |
+
+ 0.05 * scores["classification_sections_exist"]
|
| 233 |
+
+ 0.20 * scores["classification_accuracy"]
|
| 234 |
+
+ 0.10 * scores["caption_papers_found"]
|
| 235 |
+
+ 0.05 * scores["table_caption_correct"]
|
| 236 |
+
+ 0.05 * scores["table_columns_correct"]
|
| 237 |
+
+ 0.05 * scores["table_rows_correct"]
|
| 238 |
+
+ 0.25 * scores["table_key_cells_correct"],
|
| 239 |
+
4,
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
return scores
|
01_Productivity_Flow_task_10_pdf_digest/tests/grader.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Execute an embedded WildClawBench grader as a Harbor verifier."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
import math
|
| 7 |
+
import runpy
|
| 8 |
+
import traceback
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any
|
| 11 |
+
|
| 12 |
+
from transcript_loader import load_transcript, write_openclaw_compat_transcript
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
WORKSPACE = "/tmp_workspace"
|
| 16 |
+
TESTS_DIR = Path("/tests")
|
| 17 |
+
VERIFIER_LOG_DIR = Path("/logs/verifier")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _numeric_rewards(scores: dict[str, Any]) -> dict[str, float]:
|
| 21 |
+
rewards: dict[str, float] = {}
|
| 22 |
+
for key, value in scores.items():
|
| 23 |
+
if isinstance(value, bool):
|
| 24 |
+
rewards[str(key)] = float(value)
|
| 25 |
+
elif isinstance(value, (int, float)) and math.isfinite(float(value)):
|
| 26 |
+
rewards[str(key)] = float(value)
|
| 27 |
+
|
| 28 |
+
if "overall_score" not in rewards:
|
| 29 |
+
numeric_values = list(rewards.values())
|
| 30 |
+
rewards["overall_score"] = (
|
| 31 |
+
sum(numeric_values) / len(numeric_values) if numeric_values else 0.0
|
| 32 |
+
)
|
| 33 |
+
return rewards
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def _write_json(path: Path, value: Any) -> None:
|
| 37 |
+
path.write_text(
|
| 38 |
+
json.dumps(value, indent=2, ensure_ascii=False, default=str) + "\n",
|
| 39 |
+
encoding="utf-8",
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def main() -> int:
|
| 44 |
+
VERIFIER_LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 45 |
+
try:
|
| 46 |
+
namespace = runpy.run_path(str(TESTS_DIR / "checks.py"))
|
| 47 |
+
grade = namespace.get("grade")
|
| 48 |
+
if not callable(grade):
|
| 49 |
+
raise TypeError("/tests/checks.py must define a callable grade()")
|
| 50 |
+
|
| 51 |
+
transcript = load_transcript()
|
| 52 |
+
write_openclaw_compat_transcript(transcript)
|
| 53 |
+
scores = grade(
|
| 54 |
+
transcript=transcript,
|
| 55 |
+
workspace_path=WORKSPACE,
|
| 56 |
+
)
|
| 57 |
+
if not isinstance(scores, dict):
|
| 58 |
+
raise TypeError(
|
| 59 |
+
f"WildClawBench grade() returned {type(scores).__name__}, expected dict"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
_write_json(VERIFIER_LOG_DIR / "wildclaw_score.json", scores)
|
| 63 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", _numeric_rewards(scores))
|
| 64 |
+
return 0
|
| 65 |
+
except Exception as exc:
|
| 66 |
+
traceback.print_exc()
|
| 67 |
+
_write_json(
|
| 68 |
+
VERIFIER_LOG_DIR / "wildclaw_score.json",
|
| 69 |
+
{"overall_score": 0.0, "error": str(exc)},
|
| 70 |
+
)
|
| 71 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", {"overall_score": 0.0})
|
| 72 |
+
return 0
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
if __name__ == "__main__":
|
| 76 |
+
raise SystemExit(main())
|
01_Productivity_Flow_task_10_pdf_digest/tests/gt/ground_truth.json
ADDED
|
@@ -0,0 +1,297 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"hash_to_title": {
|
| 3 |
+
"9eac27775c25.pdf": "CapRL: Stimulating Dense Image Caption Capabilities via Reinforcement Learning",
|
| 4 |
+
"a659439bcdb9.pdf": "Space Syntax-guided Post-training for Residential Floor Plan Generation",
|
| 5 |
+
"cc223dd1ad70.pdf": "Pix2Key: Controllable Open-Vocabulary Retrieval with Semantic Decomposition and Self-Supervised Visual Dictionary Learning",
|
| 6 |
+
"00d04c44984b.pdf": "HARU-Net: Hybrid Attention Residual U-Net for Edge-Preserving Denoising in Cone-Beam Computed Tomography",
|
| 7 |
+
"2d00d3050c01.pdf": "DrivePTS: A Progressive Learning Framework with Textual and Structural Enhancement for Driving Scene Generation",
|
| 8 |
+
"e904dadcb642.pdf": "SwiftNDC: Fast Neural Depth Correction for High-Fidelity 3D Reconstruction",
|
| 9 |
+
"9521e9de58b7.pdf": "Don't let the information slip away",
|
| 10 |
+
"f1b7743ff517.pdf": "BetterScene: 3D Scene Synthesis with Representation-Aligned Generative Model",
|
| 11 |
+
"948b29b4e4f7.pdf": "LoR-LUT: Learning Compact 3D Lookup Tables via Low-Rank Residuals",
|
| 12 |
+
"78af027647c3.pdf": "CGSA: Class-Guided Slot-Aware Adaptation for Source-Free Object Detection",
|
| 13 |
+
"f2a7c2de438c.pdf": "Instruction-based Image Editing with Planning, Reasoning, and Generation",
|
| 14 |
+
"ea431cae0f42.pdf": "QuadSync: Quadrifocal Tensor Synchronization via Tucker Decomposition",
|
| 15 |
+
"9129e57b8441.pdf": "Plug, Play, and Fortify: A Low-Cost Module for Robust Multimodal Image Understanding Models",
|
| 16 |
+
"21a205094630.pdf": "Denoising as Path Planning: Training-Free Acceleration of Diffusion Models with DPCache",
|
| 17 |
+
"70bdbc4c792d.pdf": "Scaling Audio-Visual Quality Assessment Dataset via Crowdsourcing",
|
| 18 |
+
"02de031d331d.pdf": "Monocular Open Vocabulary Occupancy Prediction for Indoor Scenes",
|
| 19 |
+
"09d4c0a0da65.pdf": "SPMamba-YOLO: An Underwater Object Detection Network Based on Multi-Scale Feature Enhancement and Global Context Modeling",
|
| 20 |
+
"303e8337b00f.pdf": "ViCLIP-OT: The First Foundation Vision-Language Model for Vietnamese Image-Text Retrieval with Optimal Transport",
|
| 21 |
+
"990b47ef9808.pdf": "SUPERGLASSES: Benchmarking Vision Language Models as Intelligent Agents for AI Smart Glasses",
|
| 22 |
+
"c832a92da9b2.pdf": "GFRRN: Explore the Gaps in Single Image Reflection Removal",
|
| 23 |
+
"b6d5e2db95a8.pdf": "SoPE: Spherical Coordinate-Based Positional Embedding for Enhancing Spatial Perception of 3D LVLMs",
|
| 24 |
+
"9ff61157e6df.pdf": "IRSDE-Despeckle: A Physics-Grounded Diffusion Model for Generalizable Ultrasound Despeckling",
|
| 25 |
+
"0d49af13ad78.pdf": "HulluEdit: Single-Pass Evidence-Consistent Subspace Editing for Mitigating Hallucinations in Large Vision-Language Models",
|
| 26 |
+
"b6f5264340f7.pdf": "Sapling-NeRF: Geo-Localised Sapling Reconstruction in Forests for Ecological Monitoring",
|
| 27 |
+
"77da4293cd70.pdf": "Asymmetric Idiosyncrasies in Multimodal Models",
|
| 28 |
+
"5aeb426422df.pdf": "ProjFlow: Projection Sampling with Flow Matching for Zero-Shot Exact Spatial Motion Control",
|
| 29 |
+
"e27a43b88ba5.pdf": "SPATIALALIGN: Aligning Dynamic Spatial Relationships in Video Generation",
|
| 30 |
+
"c0479e0b929f.pdf": "Beyond Detection: Multi-Scale Hidden-Code for Natural Image Deepfake Recovery and Factual Retrieval",
|
| 31 |
+
"731b008c7d10.pdf": "SceneTransporter: Optimal Transport-Guided Compositional Latent Diffusion for Single-Image Structured 3D Scene Generation",
|
| 32 |
+
"c9c4c71cc917.pdf": "GSTurb: Gaussian Splatting for Atmospheric Turbulence Mitigation",
|
| 33 |
+
"4d9feb88bcf5.pdf": "PhotoAgent: Agentic Photo Editing with Exploratory Visual Aesthetic Planning",
|
| 34 |
+
"7efb2e5563f1.pdf": "Face Time Traveller : Travel Through Ages Without Losing Identity",
|
| 35 |
+
"8f5a693ae39d.pdf": "Reflectance Multispectral Imaging for Soil Composition Estimation and USDA Texture Classification",
|
| 36 |
+
"0bfac94e64fb.pdf": "Moral Preferences of LLMs Under Directed Contextual Influence",
|
| 37 |
+
"02ef1bf17518.pdf": "SO3UFormer: Learning Intrinsic Spherical Features for Rotation-Robust Panoramic Segmentation",
|
| 38 |
+
"04bae7b6fe0b.pdf": "Chain of Flow: A Foundational Generative Framework for ECG-to-4D Cardiac Digital Twins",
|
| 39 |
+
"1a3dd5aecdc3.pdf": "Can Agents Distinguish Visually Hard-to-Separate Diseases in a Zero-Shot Setting? A Pilot Study",
|
| 40 |
+
"64cc7c3789b8.pdf": "UCM: Unifying Camera Control and Memory with Time-aware Positional Encoding Warping for World Models",
|
| 41 |
+
"50b63eeca3c8.pdf": "DMAligner: Enhancing Image Alignment via Diffusion Model Based View Synthesis",
|
| 42 |
+
"93068ccacf7d.pdf": "Small Object Detection Model with Spatial Laplacian Pyramid Attention and Multi-Scale Features Enhancement in Aerial Images",
|
| 43 |
+
"c1b9051daa2e.pdf": "D-FINE-seg: Object Detection and Instance Segmentation Framework with multi-backend deployment",
|
| 44 |
+
"0ac003004d66.pdf": "Cytoarchitecture in Words: Weakly Supervised Vision-Language Modeling for Human Brain Microscopy",
|
| 45 |
+
"93ea953b248b.pdf": "SpectralMamba-UNet: Frequency-Disentangled State Space Modeling for Texture-Structure Consistent Medical Image Segmentation",
|
| 46 |
+
"ff298e521b03.pdf": "WARM-CAT: Warm-Started Test-Time Comprehensive Knowledge Accumulation for Compositional Zero-Shot Learning",
|
| 47 |
+
"3a39f9384b01.pdf": "Partial recovery of meter-scale surface weather",
|
| 48 |
+
"42e93f81aeab.pdf": "Efficient Encoder-Free Fourier-based 3D Large Multimodal Model",
|
| 49 |
+
"e921de7785c4.pdf": "DyaDiT: A Multi-Modal Diffusion Transformer for Socially Favorable Dyadic Gesture Generation",
|
| 50 |
+
"ba42f09225eb.pdf": "Learning Continuous Wasserstein Barycenter Space for Generalized All-in-One Image Restoration",
|
| 51 |
+
"dddac1828124.pdf": "Latent Gaussian Splatting for 4D Panoptic Occupancy Tracking",
|
| 52 |
+
"c23c20b3b50b.pdf": "Through BrokenEyes: How Eye Disorders Impact Face Detection?",
|
| 53 |
+
"aeb4ad007172.pdf": "Multidimensional Task Learning: A Unified Tensor Framework for Computer Vision Tasks",
|
| 54 |
+
"339cb1dcc7d5.pdf": "MovieTeller: Tool-augmented Movie Synopsis with ID Consistent Progressive Abstraction",
|
| 55 |
+
"1a43020f6c08.pdf": "LineGraph2Road: Structural Graph Reasoning on Line Graphs for Road Network Extraction",
|
| 56 |
+
"d0a480b001f5.pdf": "Scale Can't Overcome Pragmatics: The Impact of Reporting Bias on Vision-Language Reasoning",
|
| 57 |
+
"d81650bc948c.pdf": "Sensor Generalization for Adaptive Sensing in Event-based Object Detection via Joint Distribution Training",
|
| 58 |
+
"e1bfaffb963b.pdf": "SeeThrough3D: Occlusion Aware 3D Control in Text-to-Image Generation",
|
| 59 |
+
"26aaafaa7509.pdf": "MediX-R1: Open Ended Medical Reinforcement Learning",
|
| 60 |
+
"5e183e1c97d2.pdf": "Multiprojective Geometry of Compatible Triples of Fundamental and Essential Matrices",
|
| 61 |
+
"47a7ccc69d3f.pdf": "SGDC: Structurally-Guided Dynamic Convolution for Medical Image Segmentation",
|
| 62 |
+
"8d4e4ec90341.pdf": "Modelling and Simulation of Neuromorphic Datasets for Anomaly Detection in Computer Vision",
|
| 63 |
+
"adee683ca18e.pdf": "GazeXPErT: An Expert Eye-tracking Dataset for Interpretable and Explainable AI in Oncologic FDG-PET/CT Scans",
|
| 64 |
+
"1a631564da24.pdf": "Image-Based Classification of Olive Species Specific to Türkiye with Deep Neural Networks",
|
| 65 |
+
"b0e192d750ee.pdf": "Summer-22B: A Systematic Approach to Dataset Engineering and Training at Scale for Video Foundation Model",
|
| 66 |
+
"65734f8bb49d.pdf": "Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention",
|
| 67 |
+
"3d91a95bf38c.pdf": "SkillNet: Create, Evaluate, and Connect AI Skills"
|
| 68 |
+
},
|
| 69 |
+
"rename_mapping": {
|
| 70 |
+
"9eac27775c25.pdf": "CapRL:_Stimulating_Dense_Image_Caption_Capabilities_via_Reinforcement_Learning.pdf",
|
| 71 |
+
"a659439bcdb9.pdf": "Space_Syntax-guided_Post-training_for_Residential_Floor_Plan_Generation.pdf",
|
| 72 |
+
"cc223dd1ad70.pdf": "Pix2Key:_Controllable_Open-Vocabulary_Retrieval_with_Semantic_Decomposition_and_Self-Supervised_Visual_Dictionary_Learning.pdf",
|
| 73 |
+
"00d04c44984b.pdf": "HARU-Net:_Hybrid_Attention_Residual_U-Net_for_Edge-Preserving_Denoising_in_Cone-Beam_Computed_Tomography.pdf",
|
| 74 |
+
"2d00d3050c01.pdf": "DrivePTS:_A_Progressive_Learning_Framework_with_Textual_and_Structural_Enhancement_for_Driving_Scene_Generation.pdf",
|
| 75 |
+
"e904dadcb642.pdf": "SwiftNDC:_Fast_Neural_Depth_Correction_for_High-Fidelity_3D_Reconstruction.pdf",
|
| 76 |
+
"9521e9de58b7.pdf": "Don't_let_the_information_slip_away.pdf",
|
| 77 |
+
"f1b7743ff517.pdf": "BetterScene:_3D_Scene_Synthesis_with_Representation-Aligned_Generative_Model.pdf",
|
| 78 |
+
"948b29b4e4f7.pdf": "LoR-LUT:_Learning_Compact_3D_Lookup_Tables_via_Low-Rank_Residuals.pdf",
|
| 79 |
+
"78af027647c3.pdf": "CGSA:_Class-Guided_Slot-Aware_Adaptation_for_Source-Free_Object_Detection.pdf",
|
| 80 |
+
"f2a7c2de438c.pdf": "Instruction-based_Image_Editing_with_Planning,_Reasoning,_and_Generation.pdf",
|
| 81 |
+
"ea431cae0f42.pdf": "QuadSync:_Quadrifocal_Tensor_Synchronization_via_Tucker_Decomposition.pdf",
|
| 82 |
+
"9129e57b8441.pdf": "Plug,_Play,_and_Fortify:_A_Low-Cost_Module_for_Robust_Multimodal_Image_Understanding_Models.pdf",
|
| 83 |
+
"21a205094630.pdf": "Denoising_as_Path_Planning:_Training-Free_Acceleration_of_Diffusion_Models_with_DPCache.pdf",
|
| 84 |
+
"70bdbc4c792d.pdf": "Scaling_Audio-Visual_Quality_Assessment_Dataset_via_Crowdsourcing.pdf",
|
| 85 |
+
"02de031d331d.pdf": "Monocular_Open_Vocabulary_Occupancy_Prediction_for_Indoor_Scenes.pdf",
|
| 86 |
+
"09d4c0a0da65.pdf": "SPMamba-YOLO:_An_Underwater_Object_Detection_Network_Based_on_Multi-Scale_Feature_Enhancement_and_Global_Context_Modeling.pdf",
|
| 87 |
+
"303e8337b00f.pdf": "ViCLIP-OT:_The_First_Foundation_Vision-Language_Model_for_Vietnamese_Image-Text_Retrieval_with_Optimal_Transport.pdf",
|
| 88 |
+
"990b47ef9808.pdf": "SUPERGLASSES:_Benchmarking_Vision_Language_Models_as_Intelligent_Agents_for_AI_Smart_Glasses.pdf",
|
| 89 |
+
"c832a92da9b2.pdf": "GFRRN:_Explore_the_Gaps_in_Single_Image_Reflection_Removal.pdf",
|
| 90 |
+
"b6d5e2db95a8.pdf": "SoPE:_Spherical_Coordinate-Based_Positional_Embedding_for_Enhancing_Spatial_Perception_of_3D_LVLMs.pdf",
|
| 91 |
+
"9ff61157e6df.pdf": "IRSDE-Despeckle:_A_Physics-Grounded_Diffusion_Model_for_Generalizable_Ultrasound_Despeckling.pdf",
|
| 92 |
+
"0d49af13ad78.pdf": "HulluEdit:_Single-Pass_Evidence-Consistent_Subspace_Editing_for_Mitigating_Hallucinations_in_Large_Vision-Language_Models.pdf",
|
| 93 |
+
"b6f5264340f7.pdf": "Sapling-NeRF:_Geo-Localised_Sapling_Reconstruction_in_Forests_for_Ecological_Monitoring.pdf",
|
| 94 |
+
"77da4293cd70.pdf": "Asymmetric_Idiosyncrasies_in_Multimodal_Models.pdf",
|
| 95 |
+
"5aeb426422df.pdf": "ProjFlow:_Projection_Sampling_with_Flow_Matching_for_Zero-Shot_Exact_Spatial_Motion_Control.pdf",
|
| 96 |
+
"e27a43b88ba5.pdf": "SPATIALALIGN:_Aligning_Dynamic_Spatial_Relationships_in_Video_Generation.pdf",
|
| 97 |
+
"c0479e0b929f.pdf": "Beyond_Detection:_Multi-Scale_Hidden-Code_for_Natural_Image_Deepfake_Recovery_and_Factual_Retrieval.pdf",
|
| 98 |
+
"731b008c7d10.pdf": "SceneTransporter:_Optimal_Transport-Guided_Compositional_Latent_Diffusion_for_Single-Image_Structured_3D_Scene_Generation.pdf",
|
| 99 |
+
"c9c4c71cc917.pdf": "GSTurb:_Gaussian_Splatting_for_Atmospheric_Turbulence_Mitigation.pdf",
|
| 100 |
+
"4d9feb88bcf5.pdf": "PhotoAgent:_Agentic_Photo_Editing_with_Exploratory_Visual_Aesthetic_Planning.pdf",
|
| 101 |
+
"7efb2e5563f1.pdf": "Face_Time_Traveller_:_Travel_Through_Ages_Without_Losing_Identity.pdf",
|
| 102 |
+
"8f5a693ae39d.pdf": "Reflectance_Multispectral_Imaging_for_Soil_Composition_Estimation_and_USDA_Texture_Classification.pdf",
|
| 103 |
+
"0bfac94e64fb.pdf": "Moral_Preferences_of_LLMs_Under_Directed_Contextual_Influence.pdf",
|
| 104 |
+
"02ef1bf17518.pdf": "SO3UFormer:_Learning_Intrinsic_Spherical_Features_for_Rotation-Robust_Panoramic_Segmentation.pdf",
|
| 105 |
+
"04bae7b6fe0b.pdf": "Chain_of_Flow:_A_Foundational_Generative_Framework_for_ECG-to-4D_Cardiac_Digital_Twins.pdf",
|
| 106 |
+
"1a3dd5aecdc3.pdf": "Can_Agents_Distinguish_Visually_Hard-to-Separate_Diseases_in_a_Zero-Shot_Setting?_A_Pilot_Study.pdf",
|
| 107 |
+
"64cc7c3789b8.pdf": "UCM:_Unifying_Camera_Control_and_Memory_with_Time-aware_Positional_Encoding_Warping_for_World_Models.pdf",
|
| 108 |
+
"50b63eeca3c8.pdf": "DMAligner:_Enhancing_Image_Alignment_via_Diffusion_Model_Based_View_Synthesis.pdf",
|
| 109 |
+
"93068ccacf7d.pdf": "Small_Object_Detection_Model_with_Spatial_Laplacian_Pyramid_Attention_and_Multi-Scale_Features_Enhancement_in_Aerial_Images.pdf",
|
| 110 |
+
"c1b9051daa2e.pdf": "D-FINE-seg:_Object_Detection_and_Instance_Segmentation_Framework_with_multi-backend_deployment.pdf",
|
| 111 |
+
"0ac003004d66.pdf": "Cytoarchitecture_in_Words:_Weakly_Supervised_Vision-Language_Modeling_for_Human_Brain_Microscopy.pdf",
|
| 112 |
+
"93ea953b248b.pdf": "SpectralMamba-UNet:_Frequency-Disentangled_State_Space_Modeling_for_Texture-Structure_Consistent_Medical_Image_Segmentation.pdf",
|
| 113 |
+
"ff298e521b03.pdf": "WARM-CAT:_Warm-Started_Test-Time_Comprehensive_Knowledge_Accumulation_for_Compositional_Zero-Shot_Learning.pdf",
|
| 114 |
+
"3a39f9384b01.pdf": "Partial_recovery_of_meter-scale_surface_weather.pdf",
|
| 115 |
+
"42e93f81aeab.pdf": "Efficient_Encoder-Free_Fourier-based_3D_Large_Multimodal_Model.pdf",
|
| 116 |
+
"e921de7785c4.pdf": "DyaDiT:_A_Multi-Modal_Diffusion_Transformer_for_Socially_Favorable_Dyadic_Gesture_Generation.pdf",
|
| 117 |
+
"ba42f09225eb.pdf": "Learning_Continuous_Wasserstein_Barycenter_Space_for_Generalized_All-in-One_Image_Restoration.pdf",
|
| 118 |
+
"dddac1828124.pdf": "Latent_Gaussian_Splatting_for_4D_Panoptic_Occupancy_Tracking.pdf",
|
| 119 |
+
"c23c20b3b50b.pdf": "Through_BrokenEyes:_How_Eye_Disorders_Impact_Face_Detection?.pdf",
|
| 120 |
+
"aeb4ad007172.pdf": "Multidimensional_Task_Learning:_A_Unified_Tensor_Framework_for_Computer_Vision_Tasks.pdf",
|
| 121 |
+
"339cb1dcc7d5.pdf": "MovieTeller:_Tool-augmented_Movie_Synopsis_with_ID_Consistent_Progressive_Abstraction.pdf",
|
| 122 |
+
"1a43020f6c08.pdf": "LineGraph2Road:_Structural_Graph_Reasoning_on_Line_Graphs_for_Road_Network_Extraction.pdf",
|
| 123 |
+
"d0a480b001f5.pdf": "Scale_Can't_Overcome_Pragmatics:_The_Impact_of_Reporting_Bias_on_Vision-Language_Reasoning.pdf",
|
| 124 |
+
"d81650bc948c.pdf": "Sensor_Generalization_for_Adaptive_Sensing_in_Event-based_Object_Detection_via_Joint_Distribution_Training.pdf",
|
| 125 |
+
"e1bfaffb963b.pdf": "SeeThrough3D:_Occlusion_Aware_3D_Control_in_Text-to-Image_Generation.pdf",
|
| 126 |
+
"26aaafaa7509.pdf": "MediX-R1:_Open_Ended_Medical_Reinforcement_Learning.pdf",
|
| 127 |
+
"5e183e1c97d2.pdf": "Multiprojective_Geometry_of_Compatible_Triples_of_Fundamental_and_Essential_Matrices.pdf",
|
| 128 |
+
"47a7ccc69d3f.pdf": "SGDC:_Structurally-Guided_Dynamic_Convolution_for_Medical_Image_Segmentation.pdf",
|
| 129 |
+
"8d4e4ec90341.pdf": "Modelling_and_Simulation_of_Neuromorphic_Datasets_for_Anomaly_Detection_in_Computer_Vision.pdf",
|
| 130 |
+
"adee683ca18e.pdf": "GazeXPErT:_An_Expert_Eye-tracking_Dataset_for_Interpretable_and_Explainable_AI_in_Oncologic_FDG-PET_CT_Scans.pdf",
|
| 131 |
+
"1a631564da24.pdf": "Image-Based_Classification_of_Olive_Species_Specific_to_Türkiye_with_Deep_Neural_Networks.pdf",
|
| 132 |
+
"b0e192d750ee.pdf": "Summer-22B:_A_Systematic_Approach_to_Dataset_Engineering_and_Training_at_Scale_for_Video_Foundation_Model.pdf",
|
| 133 |
+
"65734f8bb49d.pdf": "Self-Attention_And_Beyond_the_Infinite:_Towards_Linear_Transformers_with_Infinite_Self-Attention.pdf",
|
| 134 |
+
"3d91a95bf38c.pdf": "SkillNet:_Create,_Evaluate,_and_Connect_AI_Skills.pdf"
|
| 135 |
+
},
|
| 136 |
+
"classification": {
|
| 137 |
+
"9eac27775c25.pdf": "Multimodal / Vision-Language Models",
|
| 138 |
+
"0d49af13ad78.pdf": "Multimodal / Vision-Language Models",
|
| 139 |
+
"990b47ef9808.pdf": "Multimodal / Vision-Language Models",
|
| 140 |
+
"d0a480b001f5.pdf": "Multimodal / Vision-Language Models",
|
| 141 |
+
"9129e57b8441.pdf": "Multimodal / Vision-Language Models",
|
| 142 |
+
"77da4293cd70.pdf": "Multimodal / Vision-Language Models",
|
| 143 |
+
"303e8337b00f.pdf": "Multimodal / Vision-Language Models",
|
| 144 |
+
"339cb1dcc7d5.pdf": "Multimodal / Vision-Language Models",
|
| 145 |
+
"26aaafaa7509.pdf": "Multimodal / Vision-Language Models",
|
| 146 |
+
"cc223dd1ad70.pdf": "Multimodal / Vision-Language Models",
|
| 147 |
+
"93ea953b248b.pdf": "Medical Image Analysis",
|
| 148 |
+
"00d04c44984b.pdf": "Medical Image Analysis",
|
| 149 |
+
"0ac003004d66.pdf": "Medical Image Analysis",
|
| 150 |
+
"47a7ccc69d3f.pdf": "Medical Image Analysis",
|
| 151 |
+
"9ff61157e6df.pdf": "Medical Image Analysis",
|
| 152 |
+
"1a3dd5aecdc3.pdf": "Medical Image Analysis",
|
| 153 |
+
"adee683ca18e.pdf": "Medical Image Analysis",
|
| 154 |
+
"7efb2e5563f1.pdf": "Image / Video Generation & Editing",
|
| 155 |
+
"ba42f09225eb.pdf": "Image / Video Generation & Editing",
|
| 156 |
+
"e921de7785c4.pdf": "Image / Video Generation & Editing",
|
| 157 |
+
"e1bfaffb963b.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 158 |
+
"5aeb426422df.pdf": "Image / Video Generation & Editing",
|
| 159 |
+
"e27a43b88ba5.pdf": "Image / Video Generation & Editing",
|
| 160 |
+
"f2a7c2de438c.pdf": "Image / Video Generation & Editing",
|
| 161 |
+
"21a205094630.pdf": "Image / Video Generation & Editing",
|
| 162 |
+
"4d9feb88bcf5.pdf": "Image / Video Generation & Editing",
|
| 163 |
+
"a659439bcdb9.pdf": "Image / Video Generation & Editing",
|
| 164 |
+
"c832a92da9b2.pdf": "Image / Video Generation & Editing",
|
| 165 |
+
"64cc7c3789b8.pdf": "Image / Video Generation & Editing",
|
| 166 |
+
"2d00d3050c01.pdf": "Autonomous Driving / Robotics / Embodied AI",
|
| 167 |
+
"3d91a95bf38c.pdf": "Others",
|
| 168 |
+
"b6d5e2db95a8.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 169 |
+
"02de031d331d.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 170 |
+
"f1b7743ff517.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 171 |
+
"ea431cae0f42.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 172 |
+
"731b008c7d10.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 173 |
+
"c9c4c71cc917.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 174 |
+
"dddac1828124.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 175 |
+
"e904dadcb642.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 176 |
+
"b6f5264340f7.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 177 |
+
"50b63eeca3c8.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 178 |
+
"5e183e1c97d2.pdf": "3D Vision / Reconstruction / Gaussian Splatting",
|
| 179 |
+
"9521e9de58b7.pdf": "Others",
|
| 180 |
+
"70bdbc4c792d.pdf": "Others",
|
| 181 |
+
"65734f8bb49d.pdf": "Others",
|
| 182 |
+
"09d4c0a0da65.pdf": "Others",
|
| 183 |
+
"93068ccacf7d.pdf": "Others",
|
| 184 |
+
"78af027647c3.pdf": "Others",
|
| 185 |
+
"02ef1bf17518.pdf": "Others",
|
| 186 |
+
"42e93f81aeab.pdf": "Others",
|
| 187 |
+
"aeb4ad007172.pdf": "Others",
|
| 188 |
+
"948b29b4e4f7.pdf": "Others",
|
| 189 |
+
"1a43020f6c08.pdf": "Others",
|
| 190 |
+
"8d4e4ec90341.pdf": "Others",
|
| 191 |
+
"0bfac94e64fb.pdf": "Others",
|
| 192 |
+
"8f5a693ae39d.pdf": "Others",
|
| 193 |
+
"3a39f9384b01.pdf": "Others",
|
| 194 |
+
"c0479e0b929f.pdf": "Others",
|
| 195 |
+
"c1b9051daa2e.pdf": "Others",
|
| 196 |
+
"1a631564da24.pdf": "Others",
|
| 197 |
+
"04bae7b6fe0b.pdf": "Others",
|
| 198 |
+
"d81650bc948c.pdf": "Others",
|
| 199 |
+
"c23c20b3b50b.pdf": "Others",
|
| 200 |
+
"b0e192d750ee.pdf": "Others",
|
| 201 |
+
"ff298e521b03.pdf": "Others"
|
| 202 |
+
},
|
| 203 |
+
"caption_papers": {
|
| 204 |
+
"9eac27775c25.pdf": "CapRL: Stimulating Dense Image Caption Capabilities via Reinforcement Learning",
|
| 205 |
+
"77da4293cd70.pdf": "Asymmetric Idiosyncrasies in Multimodal Models"
|
| 206 |
+
},
|
| 207 |
+
"caprl_table_md": "| Pretraining Dataset | InfoVQA | DocVQA | ChartQA | RealWorldQA | MathVista | SEED2Plus | MME RW | MMB | MMStar | MMVet | AI2D | GQA | Average |\n|---|---|---|---|---|---|---|---|---|---|---|---|---|---|\n| Vanilla | 43.9 | 81.0 | 72.7 | 55.1 | 41.6 | 56.6 | 30.5 | 68.6 | 44.7 | 41.0 | 68.3 | 61.5 | 55.5 |\n| ShareGPT4V-1M | 46.1 | 82.4 | 74.2 | 55.0 | 44.7 | 60.5 | 29.8 | 68.9 | 45.2 | 42.4 | 70.1 | 61.4 | 56.7 |\n| CapRL-ShareGPT4V-1M | 52.1 | 85.9 | 75.2 | 56.3 | 45.6 | 60.0 | 30.9 | 70.9 | 46.7 | 47.5 | 71.4 | 61.7 | 58.7 |\n| DenseFusion-1M | 49.4 | 84.6 | 74.4 | 54.1 | 44.6 | 59.1 | 30.7 | 69.0 | 45.6 | 40.2 | 70.4 | 62.5 | 57.1 |\n| CapRL-DenseFusion-1M | 55.0 | 87.8 | 77.5 | 56.2 | 44.7 | 62.8 | 32.0 | 71.0 | 46.6 | 49.9 | 72.7 | 62.3 | 59.9 |",
|
| 208 |
+
"caption_table2_info": {
|
| 209 |
+
"9eac27775c25.pdf": {
|
| 210 |
+
"title": "CapRL: Stimulating Dense Image Caption Capabilities via Reinforcement Learning",
|
| 211 |
+
"table_caption_keywords": [
|
| 212 |
+
"Ablation",
|
| 213 |
+
"image sources"
|
| 214 |
+
],
|
| 215 |
+
"required_columns": [
|
| 216 |
+
"InfoVQA",
|
| 217 |
+
"DocVQA",
|
| 218 |
+
"ChartQA",
|
| 219 |
+
"MathVista",
|
| 220 |
+
"Average"
|
| 221 |
+
],
|
| 222 |
+
"required_rows": [
|
| 223 |
+
"CapRL-ShareGPT4V-1M",
|
| 224 |
+
"CapRL-DenseFusion-1M",
|
| 225 |
+
"ShareGPT4V-1M",
|
| 226 |
+
"DenseFusion-1M",
|
| 227 |
+
"Vanilla"
|
| 228 |
+
],
|
| 229 |
+
"data_row_count": 5,
|
| 230 |
+
"key_cells": [
|
| 231 |
+
{
|
| 232 |
+
"row": "CapRL-ShareGPT4V-1M",
|
| 233 |
+
"col": "Average",
|
| 234 |
+
"value": "58.7"
|
| 235 |
+
},
|
| 236 |
+
{
|
| 237 |
+
"row": "CapRL-DenseFusion-1M",
|
| 238 |
+
"col": "Average",
|
| 239 |
+
"value": "59.9"
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"row": "CapRL-ShareGPT4V-1M",
|
| 243 |
+
"col": "InfoVQA",
|
| 244 |
+
"value": "52.1"
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"row": "CapRL-DenseFusion-1M",
|
| 248 |
+
"col": "DocVQA",
|
| 249 |
+
"value": "87.8"
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"row": "ShareGPT4V-1M",
|
| 253 |
+
"col": "Average",
|
| 254 |
+
"value": "56.7"
|
| 255 |
+
}
|
| 256 |
+
]
|
| 257 |
+
},
|
| 258 |
+
"77da4293cd70.pdf": {
|
| 259 |
+
"title": "Asymmetric Idiosyncrasies in Multimodal Models",
|
| 260 |
+
"table_caption_keywords": [
|
| 261 |
+
"TF-IDF",
|
| 262 |
+
"phrases",
|
| 263 |
+
"captioning model"
|
| 264 |
+
],
|
| 265 |
+
"required_columns": [
|
| 266 |
+
"Claude-3.5-Sonnet",
|
| 267 |
+
"Gemini-1.5-Pro",
|
| 268 |
+
"GPT-4o",
|
| 269 |
+
"Qwen3-VL"
|
| 270 |
+
],
|
| 271 |
+
"required_rows": [],
|
| 272 |
+
"data_row_count": 10,
|
| 273 |
+
"key_cells": [
|
| 274 |
+
{
|
| 275 |
+
"row": "1",
|
| 276 |
+
"col": "Claude-3.5-Sonnet",
|
| 277 |
+
"value": "lighting suggests"
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"row": "1",
|
| 281 |
+
"col": "GPT-4o",
|
| 282 |
+
"value": "image depicts"
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"row": "2",
|
| 286 |
+
"col": "Gemini-1.5-Pro",
|
| 287 |
+
"value": "low resolution"
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"row": "5",
|
| 291 |
+
"col": "Qwen3-VL",
|
| 292 |
+
"value": "depth field"
|
| 293 |
+
}
|
| 294 |
+
]
|
| 295 |
+
}
|
| 296 |
+
}
|
| 297 |
+
}
|
01_Productivity_Flow_task_10_pdf_digest/tests/test.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -u
|
| 3 |
+
|
| 4 |
+
mkdir -p /logs/verifier
|
| 5 |
+
|
| 6 |
+
if [[ -d /tests/gt ]]; then
|
| 7 |
+
mkdir -p /tmp_workspace/gt
|
| 8 |
+
cp -a /tests/gt/. /tmp_workspace/gt/
|
| 9 |
+
fi
|
| 10 |
+
|
| 11 |
+
python3 /tests/grader.py
|
01_Productivity_Flow_task_10_pdf_digest/tests/transcript_loader.py
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Load agent transcripts and normalize Harbor ATIF traces for WCB graders."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
OPENCLAW_COMPAT_PATH = Path("/root/.openclaw/agents/main/sessions/chat.jsonl")
|
| 11 |
+
TRANSCRIPT_CANDIDATES = (
|
| 12 |
+
Path("/logs/agent/trajectory.json"),
|
| 13 |
+
OPENCLAW_COMPAT_PATH,
|
| 14 |
+
Path("/claude_code/log/chat.json"),
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def _safe_json_loads(text: str) -> Any | None:
|
| 19 |
+
try:
|
| 20 |
+
return json.loads(text)
|
| 21 |
+
except Exception:
|
| 22 |
+
return None
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def _parse_json_lines(raw: str) -> list[Any]:
|
| 26 |
+
rows: list[Any] = []
|
| 27 |
+
for line in raw.splitlines():
|
| 28 |
+
line = line.strip()
|
| 29 |
+
if not line:
|
| 30 |
+
continue
|
| 31 |
+
parsed = _safe_json_loads(line)
|
| 32 |
+
if parsed is not None:
|
| 33 |
+
rows.append(parsed)
|
| 34 |
+
return rows
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _text_content(value: Any) -> str:
|
| 38 |
+
if isinstance(value, str):
|
| 39 |
+
return value
|
| 40 |
+
if not isinstance(value, list):
|
| 41 |
+
return ""
|
| 42 |
+
|
| 43 |
+
texts: list[str] = []
|
| 44 |
+
for part in value:
|
| 45 |
+
if not isinstance(part, dict):
|
| 46 |
+
continue
|
| 47 |
+
if part.get("type") == "text" and isinstance(part.get("text"), str):
|
| 48 |
+
texts.append(part["text"])
|
| 49 |
+
return "\n".join(texts)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def _atif_to_openclaw(trajectory: dict[str, Any]) -> list[dict[str, Any]]:
|
| 53 |
+
"""Convert the ATIF fields used by Harbor agents to WCB's message shape."""
|
| 54 |
+
rows: list[dict[str, Any]] = []
|
| 55 |
+
steps = trajectory.get("steps")
|
| 56 |
+
if not isinstance(steps, list):
|
| 57 |
+
return rows
|
| 58 |
+
|
| 59 |
+
for step in steps:
|
| 60 |
+
if not isinstance(step, dict):
|
| 61 |
+
continue
|
| 62 |
+
source = step.get("source")
|
| 63 |
+
if source not in ("system", "user", "agent"):
|
| 64 |
+
continue
|
| 65 |
+
|
| 66 |
+
if source == "agent":
|
| 67 |
+
content: list[dict[str, Any]] = []
|
| 68 |
+
message = _text_content(step.get("message"))
|
| 69 |
+
if message:
|
| 70 |
+
content.append({"type": "text", "text": message})
|
| 71 |
+
|
| 72 |
+
tool_calls = step.get("tool_calls")
|
| 73 |
+
if isinstance(tool_calls, list):
|
| 74 |
+
for tool_call in tool_calls:
|
| 75 |
+
if not isinstance(tool_call, dict):
|
| 76 |
+
continue
|
| 77 |
+
content.append(
|
| 78 |
+
{
|
| 79 |
+
"type": "toolCall",
|
| 80 |
+
"id": str(tool_call.get("tool_call_id", "")),
|
| 81 |
+
"name": str(tool_call.get("function_name", "")),
|
| 82 |
+
"arguments": tool_call.get("arguments", {}),
|
| 83 |
+
}
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
rows.append(
|
| 87 |
+
{
|
| 88 |
+
"type": "message",
|
| 89 |
+
"message": {
|
| 90 |
+
"role": "assistant",
|
| 91 |
+
"content": content or message,
|
| 92 |
+
},
|
| 93 |
+
}
|
| 94 |
+
)
|
| 95 |
+
|
| 96 |
+
observation = step.get("observation")
|
| 97 |
+
results = (
|
| 98 |
+
observation.get("results") if isinstance(observation, dict) else None
|
| 99 |
+
)
|
| 100 |
+
if isinstance(results, list):
|
| 101 |
+
for result in results:
|
| 102 |
+
if not isinstance(result, dict):
|
| 103 |
+
continue
|
| 104 |
+
rows.append(
|
| 105 |
+
{
|
| 106 |
+
"type": "message",
|
| 107 |
+
"message": {
|
| 108 |
+
"role": "toolResult",
|
| 109 |
+
"toolCallId": result.get("source_call_id"),
|
| 110 |
+
"content": result.get("content", ""),
|
| 111 |
+
},
|
| 112 |
+
}
|
| 113 |
+
)
|
| 114 |
+
continue
|
| 115 |
+
|
| 116 |
+
rows.append(
|
| 117 |
+
{
|
| 118 |
+
"type": "message",
|
| 119 |
+
"message": {
|
| 120 |
+
"role": source,
|
| 121 |
+
"content": _text_content(step.get("message")),
|
| 122 |
+
},
|
| 123 |
+
}
|
| 124 |
+
)
|
| 125 |
+
return rows
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def _normalize(parsed: Any) -> list[Any]:
|
| 129 |
+
if isinstance(parsed, list):
|
| 130 |
+
return parsed
|
| 131 |
+
if not isinstance(parsed, dict):
|
| 132 |
+
return []
|
| 133 |
+
|
| 134 |
+
schema_version = parsed.get("schema_version")
|
| 135 |
+
if isinstance(schema_version, str) and schema_version.startswith("ATIF-"):
|
| 136 |
+
return _atif_to_openclaw(parsed)
|
| 137 |
+
|
| 138 |
+
for key in ("transcript", "messages", "chat"):
|
| 139 |
+
value = parsed.get(key)
|
| 140 |
+
if isinstance(value, list):
|
| 141 |
+
return value
|
| 142 |
+
return [parsed]
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
def _read_transcript_file(path: Path) -> list[Any]:
|
| 146 |
+
if not path.exists():
|
| 147 |
+
return []
|
| 148 |
+
try:
|
| 149 |
+
raw = path.read_text(encoding="utf-8", errors="ignore")
|
| 150 |
+
except OSError:
|
| 151 |
+
return []
|
| 152 |
+
|
| 153 |
+
parsed = _safe_json_loads(raw)
|
| 154 |
+
if parsed is not None:
|
| 155 |
+
return _normalize(parsed)
|
| 156 |
+
return _parse_json_lines(raw)
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
def load_transcript(path_str: str = "") -> list[Any]:
|
| 160 |
+
candidates = ([Path(path_str)] if path_str else []) + list(TRANSCRIPT_CANDIDATES)
|
| 161 |
+
seen: set[Path] = set()
|
| 162 |
+
for candidate in candidates:
|
| 163 |
+
if candidate in seen:
|
| 164 |
+
continue
|
| 165 |
+
seen.add(candidate)
|
| 166 |
+
loaded = _read_transcript_file(candidate)
|
| 167 |
+
if loaded:
|
| 168 |
+
return loaded
|
| 169 |
+
return []
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
def write_openclaw_compat_transcript(
|
| 173 |
+
transcript: list[Any],
|
| 174 |
+
path: Path = OPENCLAW_COMPAT_PATH,
|
| 175 |
+
) -> None:
|
| 176 |
+
"""Expose the current Harbor trace at the path used by legacy WCB graders."""
|
| 177 |
+
if not transcript:
|
| 178 |
+
return
|
| 179 |
+
try:
|
| 180 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 181 |
+
path.write_text(
|
| 182 |
+
"".join(
|
| 183 |
+
json.dumps(row, ensure_ascii=False, default=str) + "\n"
|
| 184 |
+
for row in transcript
|
| 185 |
+
),
|
| 186 |
+
encoding="utf-8",
|
| 187 |
+
)
|
| 188 |
+
except OSError:
|
| 189 |
+
# The transcript is still supplied through grade(transcript=...), so a
|
| 190 |
+
# non-root verifier can continue even if it cannot write under /root.
|
| 191 |
+
return
|
01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/run-warmup.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
marker="/tmp/wildclaw-harbor-warmup.done"
|
| 5 |
+
[[ -f "$marker" ]] && exit 0
|
| 6 |
+
cd /tmp_workspace
|
| 7 |
+
|
| 8 |
+
bash -lc 'npm install -g agent-browser'
|
| 9 |
+
|
| 10 |
+
touch "$marker"
|
01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/skills/agent-browser/SKILL.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: agent-browser
|
| 3 |
+
description: Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
|
| 4 |
+
metadata: {"clawdbot":{"emoji":"🌐","requires":{"commands":["agent-browser"]},"homepage":"https://github.com/vercel-labs/agent-browser"}}
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Agent Browser Skill
|
| 8 |
+
|
| 9 |
+
Fast browser automation using accessibility tree snapshots with refs for deterministic element selection.
|
| 10 |
+
|
| 11 |
+
## Why Use This Over Built-in Browser Tool
|
| 12 |
+
|
| 13 |
+
**Use agent-browser when:**
|
| 14 |
+
- Automating multi-step workflows
|
| 15 |
+
- Need deterministic element selection
|
| 16 |
+
- Performance is critical
|
| 17 |
+
- Working with complex SPAs
|
| 18 |
+
- Need session isolation
|
| 19 |
+
|
| 20 |
+
**Use built-in browser tool when:**
|
| 21 |
+
- Need screenshots/PDFs for analysis
|
| 22 |
+
- Visual inspection required
|
| 23 |
+
- Browser extension integration needed
|
| 24 |
+
|
| 25 |
+
## Core Workflow
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
# 1. Navigate and snapshot
|
| 29 |
+
agent-browser open https://example.com
|
| 30 |
+
agent-browser snapshot -i --json
|
| 31 |
+
|
| 32 |
+
# 2. Parse refs from JSON, then interact
|
| 33 |
+
agent-browser click @e2
|
| 34 |
+
agent-browser fill @e3 "text"
|
| 35 |
+
|
| 36 |
+
# 3. Re-snapshot after page changes
|
| 37 |
+
agent-browser snapshot -i --json
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Key Commands
|
| 41 |
+
|
| 42 |
+
### Navigation
|
| 43 |
+
```bash
|
| 44 |
+
agent-browser open <url>
|
| 45 |
+
agent-browser back | forward | reload | close
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
### Snapshot (Always use -i --json)
|
| 49 |
+
```bash
|
| 50 |
+
agent-browser snapshot -i --json # Interactive elements, JSON output
|
| 51 |
+
agent-browser snapshot -i -c -d 5 --json # + compact, depth limit
|
| 52 |
+
agent-browser snapshot -s "#main" -i # Scope to selector
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
### Interactions (Ref-based)
|
| 56 |
+
```bash
|
| 57 |
+
agent-browser click @e2
|
| 58 |
+
agent-browser fill @e3 "text"
|
| 59 |
+
agent-browser type @e3 "text"
|
| 60 |
+
agent-browser hover @e4
|
| 61 |
+
agent-browser check @e5 | uncheck @e5
|
| 62 |
+
agent-browser select @e6 "value"
|
| 63 |
+
agent-browser press "Enter"
|
| 64 |
+
agent-browser scroll down 500
|
| 65 |
+
agent-browser drag @e7 @e8
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Get Information
|
| 69 |
+
```bash
|
| 70 |
+
agent-browser get text @e1 --json
|
| 71 |
+
agent-browser get html @e2 --json
|
| 72 |
+
agent-browser get value @e3 --json
|
| 73 |
+
agent-browser get attr @e4 "href" --json
|
| 74 |
+
agent-browser get title --json
|
| 75 |
+
agent-browser get url --json
|
| 76 |
+
agent-browser get count ".item" --json
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
### Check State
|
| 80 |
+
```bash
|
| 81 |
+
agent-browser is visible @e2 --json
|
| 82 |
+
agent-browser is enabled @e3 --json
|
| 83 |
+
agent-browser is checked @e4 --json
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Wait
|
| 87 |
+
```bash
|
| 88 |
+
agent-browser wait @e2 # Wait for element
|
| 89 |
+
agent-browser wait 1000 # Wait ms
|
| 90 |
+
agent-browser wait --text "Welcome" # Wait for text
|
| 91 |
+
agent-browser wait --url "**/dashboard" # Wait for URL
|
| 92 |
+
agent-browser wait --load networkidle # Wait for network
|
| 93 |
+
agent-browser wait --fn "window.ready === true"
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
### Sessions (Isolated Browsers)
|
| 97 |
+
```bash
|
| 98 |
+
agent-browser --session admin open site.com
|
| 99 |
+
agent-browser --session user open site.com
|
| 100 |
+
agent-browser session list
|
| 101 |
+
# Or via env: AGENT_BROWSER_SESSION=admin agent-browser ...
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
### State Persistence
|
| 105 |
+
```bash
|
| 106 |
+
agent-browser state save auth.json # Save cookies/storage
|
| 107 |
+
agent-browser state load auth.json # Load (skip login)
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### Screenshots & PDFs
|
| 111 |
+
```bash
|
| 112 |
+
agent-browser screenshot page.png
|
| 113 |
+
agent-browser screenshot --full page.png
|
| 114 |
+
agent-browser pdf page.pdf
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
### Network Control
|
| 118 |
+
```bash
|
| 119 |
+
agent-browser network route "**/ads/*" --abort # Block
|
| 120 |
+
agent-browser network route "**/api/*" --body '{"x":1}' # Mock
|
| 121 |
+
agent-browser network requests --filter api # View
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
### Cookies & Storage
|
| 125 |
+
```bash
|
| 126 |
+
agent-browser cookies # Get all
|
| 127 |
+
agent-browser cookies set name value
|
| 128 |
+
agent-browser storage local key # Get localStorage
|
| 129 |
+
agent-browser storage local set key val
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
### Tabs & Frames
|
| 133 |
+
```bash
|
| 134 |
+
agent-browser tab new https://example.com
|
| 135 |
+
agent-browser tab 2 # Switch to tab
|
| 136 |
+
agent-browser frame @e5 # Switch to iframe
|
| 137 |
+
agent-browser frame main # Back to main
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
## Snapshot Output Format
|
| 141 |
+
|
| 142 |
+
```json
|
| 143 |
+
{
|
| 144 |
+
"success": true,
|
| 145 |
+
"data": {
|
| 146 |
+
"snapshot": "...",
|
| 147 |
+
"refs": {
|
| 148 |
+
"e1": {"role": "heading", "name": "Example Domain"},
|
| 149 |
+
"e2": {"role": "button", "name": "Submit"},
|
| 150 |
+
"e3": {"role": "textbox", "name": "Email"}
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
## Best Practices
|
| 157 |
+
|
| 158 |
+
1. **Always use `-i` flag** - Focus on interactive elements
|
| 159 |
+
2. **Always use `--json`** - Easier to parse
|
| 160 |
+
3. **Wait for stability** - `agent-browser wait --load networkidle`
|
| 161 |
+
4. **Save auth state** - Skip login flows with `state save/load`
|
| 162 |
+
5. **Use sessions** - Isolate different browser contexts
|
| 163 |
+
6. **Use `--headed` for debugging** - See what's happening
|
| 164 |
+
|
| 165 |
+
## Example: Search and Extract
|
| 166 |
+
|
| 167 |
+
```bash
|
| 168 |
+
agent-browser open https://www.google.com
|
| 169 |
+
agent-browser snapshot -i --json
|
| 170 |
+
# AI identifies search box @e1
|
| 171 |
+
agent-browser fill @e1 "AI agents"
|
| 172 |
+
agent-browser press Enter
|
| 173 |
+
agent-browser wait --load networkidle
|
| 174 |
+
agent-browser snapshot -i --json
|
| 175 |
+
# AI identifies result refs
|
| 176 |
+
agent-browser get text @e3 --json
|
| 177 |
+
agent-browser get attr @e4 "href" --json
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
## Example: Multi-Session Testing
|
| 181 |
+
|
| 182 |
+
```bash
|
| 183 |
+
# Admin session
|
| 184 |
+
agent-browser --session admin open app.com
|
| 185 |
+
agent-browser --session admin state load admin-auth.json
|
| 186 |
+
agent-browser --session admin snapshot -i --json
|
| 187 |
+
|
| 188 |
+
# User session (simultaneous)
|
| 189 |
+
agent-browser --session user open app.com
|
| 190 |
+
agent-browser --session user state load user-auth.json
|
| 191 |
+
agent-browser --session user snapshot -i --json
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
## Installation
|
| 195 |
+
|
| 196 |
+
```bash
|
| 197 |
+
npm install -g agent-browser
|
| 198 |
+
agent-browser install # Download Chromium
|
| 199 |
+
agent-browser install --with-deps # Linux: + system deps
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
## Credits
|
| 203 |
+
|
| 204 |
+
Skill created by Yossi Elkrief ([@MaTriXy](https://github.com/MaTriXy))
|
| 205 |
+
|
| 206 |
+
agent-browser CLI by [Vercel Labs](https://github.com/vercel-labs/agent-browser)
|
01_Productivity_Flow_task_1_arxiv_digest/environment/.wildclaw/skills/agent-browser/_meta.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ownerId": "kn7amrtkn0tjk2r2yxf3hjgp0s7zn6g4",
|
| 3 |
+
"slug": "agent-browser-clawdbot",
|
| 4 |
+
"version": "0.1.0",
|
| 5 |
+
"publishedAt": 1769032854381
|
| 6 |
+
}
|
01_Productivity_Flow_task_1_arxiv_digest/instruction.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an expert in a restricted, non-interactive environment. Solve the task efficiently before the timeout (1200s). Use the available tools and as many iterative steps as needed. Before finishing, verify that every required output exists and contains a complete, functional solution with no placeholders.
|
| 2 |
+
|
| 3 |
+
I'm a CV researcher and the author of **CapRL**.
|
| 4 |
+
|
| 5 |
+
Please prepare my daily arxiv paper digest:
|
| 6 |
+
|
| 7 |
+
1. Fetch cs.CV papers submitted on 2026-02-25 from the arxiv.
|
| 8 |
+
|
| 9 |
+
2. From all fetched papers, classify every paper into exactly one of the following categories and group them accordingly. Papers that don't fit the first five topic categories must be placed under "Others". In the Classification section, only list paper titles (you may include arXiv IDs). No per-paper explanation or summary is needed.
|
| 10 |
+
- Multimodal / Vision-Language Models
|
| 11 |
+
- Medical Image Analysis
|
| 12 |
+
- Image / Video Generation & Editing
|
| 13 |
+
- Autonomous Driving / Robotics / Embodied AI
|
| 14 |
+
- 3D Vision / Reconstruction / Gaussian Splatting
|
| 15 |
+
- Others
|
| 16 |
+
|
| 17 |
+
3. For the papers classified under "Multimodal / Vision-Language Models", build a metadata audit table:
|
| 18 |
+
- arXiv ID
|
| 19 |
+
- all authors
|
| 20 |
+
- whether the paper has an appendix / supplementary section
|
| 21 |
+
- number of main-paper figures
|
| 22 |
+
- number of appendix figures
|
| 23 |
+
- number of main-paper tables
|
| 24 |
+
- number of appendix tables
|
| 25 |
+
- total number of figures, including appendix figures
|
| 26 |
+
- total number of tables, including appendix tables
|
| 27 |
+
- appendix evidence: if the paper has an appendix, give the first appendix / supplementary heading you used as the boundary; otherwise write `None`
|
| 28 |
+
|
| 29 |
+
Count figures/tables from the paper content rather than from abstract-page metadata. If you use arXiv HTML, count top-level paper figures/tables instead of subfigure markers such as "(a)" and "(b)". The `Authors` field must cover the complete author list, not a partial subset. The total counts must equal `main + appendix`.
|
| 30 |
+
|
| 31 |
+
4. Based on my research interests, highlight papers I might find interesting.
|
| 32 |
+
|
| 33 |
+
5. If any paper benchmarks against CapRL, extract the comparison results.
|
| 34 |
+
|
| 35 |
+
Save everything to `/tmp_workspace/results/arxiv_digest.md` using exactly the following structure (do not rename these section headings):
|
| 36 |
+
|
| 37 |
+
```markdown
|
| 38 |
+
# ArXiv Daily Digest - 2026-02-25
|
| 39 |
+
|
| 40 |
+
### Classification
|
| 41 |
+
#### Multimodal / Vision-Language Models
|
| 42 |
+
- **Paper Title** (arXiv ID)
|
| 43 |
+
|
| 44 |
+
#### Medical Image Analysis
|
| 45 |
+
- ...
|
| 46 |
+
|
| 47 |
+
#### Image / Video Generation & Editing
|
| 48 |
+
- ...
|
| 49 |
+
|
| 50 |
+
#### Autonomous Driving / Robotics / Embodied AI
|
| 51 |
+
- ...
|
| 52 |
+
|
| 53 |
+
#### 3D Vision / Reconstruction / Gaussian Splatting
|
| 54 |
+
- ...
|
| 55 |
+
|
| 56 |
+
#### Others
|
| 57 |
+
- ...
|
| 58 |
+
|
| 59 |
+
### Multimodal Paper Metadata Audit
|
| 60 |
+
For papers in the "Multimodal / Vision-Language Models" category, report the full author list, whether the paper has an appendix, split figure/table counts between main paper and appendix, the totals, and appendix evidence:
|
| 61 |
+
|
| 62 |
+
| Paper | arXiv ID | Authors | Has Appendix | Main Figures | Appendix Figures | Main Tables | Appendix Tables | Total Figures | Total Tables | Appendix Evidence |
|
| 63 |
+
|------|----------|---------|--------------|--------------|------------------|-------------|-----------------|---------------|--------------|-------------------|
|
| 64 |
+
| ... | ... | ... | Yes / No | ... | ... | ... | ... | ... | ... | ... |
|
| 65 |
+
|
| 66 |
+
### Personalized Recommendations
|
| 67 |
+
#### Papers of Interest
|
| 68 |
+
Select exactly 1 paper most relevant to my research interests, with a brief reason.
|
| 69 |
+
- **Paper Title** — why it's relevant
|
| 70 |
+
|
| 71 |
+
#### Benchmark Comparison
|
| 72 |
+
If any paper compares against CapRL, extract the **Prism evaluation** main table in markdown table format, focusing on CapRL and the paper's proposed method:
|
| 73 |
+
|
| 74 |
+
| MLLM | Benchmark1 | Benchmark2 | ... | Avg. |
|
| 75 |
+
|------|------------|------------|-----|------|
|
| 76 |
+
| CapRL-3B | ... | ... | ... | <avg> |
|
| 77 |
+
| [proposed method] | ... | ... | ... | <avg> |
|
| 78 |
+
| ... |
|
| 79 |
+
```
|
01_Productivity_Flow_task_1_arxiv_digest/task.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = ["/tmp_workspace/results"]
|
| 3 |
+
|
| 4 |
+
[metadata]
|
| 5 |
+
benchmark = "WildClawBench"
|
| 6 |
+
source_task_id = "01_Productivity_Flow_task_1_arxiv_digest"
|
| 7 |
+
name = "ArXiv Daily Paper Digest"
|
| 8 |
+
category = "01_Productivity_Flow"
|
| 9 |
+
modality = "pure-text"
|
| 10 |
+
|
| 11 |
+
[agent]
|
| 12 |
+
timeout_sec = 1200.0
|
| 13 |
+
|
| 14 |
+
[verifier]
|
| 15 |
+
environment_mode = "shared"
|
| 16 |
+
timeout_sec = 600.0
|
| 17 |
+
|
| 18 |
+
[environment]
|
| 19 |
+
docker_image = "wildclawbench-ubuntu:v1.3"
|
| 20 |
+
workdir = "/tmp_workspace"
|
| 21 |
+
network_mode = "public"
|
| 22 |
+
env = { BRAVE_API_KEY = "${BRAVE_API_KEY:-}", HTTPS_PROXY = "", HTTP_PROXY = "", NO_PROXY = "localhost,127.0.0.1,host.docker.internal", http_proxy = "", https_proxy = "", no_proxy = "localhost,127.0.0.1,host.docker.internal" }
|
| 23 |
+
skills_dir = "/tmp_workspace/.wildclaw/skills"
|
| 24 |
+
|
| 25 |
+
[environment.healthcheck]
|
| 26 |
+
command = "bash /tmp_workspace/.wildclaw/run-warmup.sh"
|
| 27 |
+
timeout_sec = 1200.0
|
| 28 |
+
interval_sec = 1.0
|
| 29 |
+
retries = 1
|
01_Productivity_Flow_task_1_arxiv_digest/tests/checks.py
ADDED
|
@@ -0,0 +1,535 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def grade(**kwargs) -> dict:
|
| 2 |
+
"""
|
| 3 |
+
Grade the arxiv digest task.
|
| 4 |
+
|
| 5 |
+
Returns:
|
| 6 |
+
Dict mapping criterion names to scores (0.0 to 1.0)
|
| 7 |
+
"""
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
import re
|
| 10 |
+
|
| 11 |
+
ALL_CRITERIA = [
|
| 12 |
+
"classify_multimodal",
|
| 13 |
+
"classify_medical",
|
| 14 |
+
"classify_generation",
|
| 15 |
+
"classify_driving",
|
| 16 |
+
"classify_3d",
|
| 17 |
+
"metadata_appendix_flags",
|
| 18 |
+
"metadata_split_consistency",
|
| 19 |
+
"metadata_simpleocr",
|
| 20 |
+
"metadata_exploring_multimodal_lmms",
|
| 21 |
+
"metadata_nolan",
|
| 22 |
+
"metadata_weavetime",
|
| 23 |
+
"metadata_global_local_dual_perception",
|
| 24 |
+
"metadata_see_it_say_it_sorted",
|
| 25 |
+
"metadata_dynamicgtr",
|
| 26 |
+
"metadata_dynamic_multimodal_activation_steering",
|
| 27 |
+
"metadata_dr_seg",
|
| 28 |
+
"metadata_cccaption",
|
| 29 |
+
"interest_count",
|
| 30 |
+
"interest_selection",
|
| 31 |
+
"benchmark_charxiv",
|
| 32 |
+
"benchmark_caprl_avg",
|
| 33 |
+
"benchmark_cccaption_avg",
|
| 34 |
+
"benchmark_caprl_infovqa",
|
| 35 |
+
"classify_score",
|
| 36 |
+
"metadata_score",
|
| 37 |
+
"interest_score",
|
| 38 |
+
"overall_score",
|
| 39 |
+
]
|
| 40 |
+
|
| 41 |
+
scores = {}
|
| 42 |
+
workspace = Path("/tmp_workspace/results")
|
| 43 |
+
digest = workspace / "arxiv_digest.md"
|
| 44 |
+
|
| 45 |
+
if not digest.exists() or len(digest.read_text().strip()) < 100:
|
| 46 |
+
return {k: 0.0 for k in ALL_CRITERIA}
|
| 47 |
+
|
| 48 |
+
content = digest.read_text()
|
| 49 |
+
|
| 50 |
+
def extract_section(markdown_text: str, heading_pattern: str) -> str:
|
| 51 |
+
"""
|
| 52 |
+
Extract section content under the first heading that matches heading_pattern.
|
| 53 |
+
Section ends at the next heading of the same or higher level.
|
| 54 |
+
"""
|
| 55 |
+
h = re.search(heading_pattern, markdown_text, re.MULTILINE | re.IGNORECASE)
|
| 56 |
+
if not h:
|
| 57 |
+
return ""
|
| 58 |
+
|
| 59 |
+
heading_line = h.group(0)
|
| 60 |
+
level_match = re.match(r"^#{1,6}", heading_line)
|
| 61 |
+
if not level_match:
|
| 62 |
+
return ""
|
| 63 |
+
level = len(level_match.group(0))
|
| 64 |
+
|
| 65 |
+
rest = markdown_text[h.end():]
|
| 66 |
+
next_h = re.search(rf"^#{{1,{level}}}\s+", rest, re.MULTILINE)
|
| 67 |
+
return rest[: next_h.start()] if next_h else rest
|
| 68 |
+
|
| 69 |
+
# --- Classification accuracy ---
|
| 70 |
+
# Strictly scope to the "### Classification" block, then require exact
|
| 71 |
+
# matches for the category "####" sub-headings.
|
| 72 |
+
strict_headings = [
|
| 73 |
+
("multimodal", "Multimodal / Vision-Language Models"),
|
| 74 |
+
("medical", "Medical Image Analysis"),
|
| 75 |
+
("generation", "Image / Video Generation & Editing"),
|
| 76 |
+
("driving", "Autonomous Driving / Robotics / Embodied AI"),
|
| 77 |
+
("3d", "3D Vision / Reconstruction / Gaussian Splatting"),
|
| 78 |
+
]
|
| 79 |
+
|
| 80 |
+
classification_section = extract_section(content, r"^###\s+Classification\s*$")
|
| 81 |
+
|
| 82 |
+
# Map strict headings to their positions
|
| 83 |
+
strict_heading_map = {}
|
| 84 |
+
for cat_id, heading_text in strict_headings:
|
| 85 |
+
m = re.search(
|
| 86 |
+
rf"^####\s+{re.escape(heading_text)}\s*$",
|
| 87 |
+
classification_section,
|
| 88 |
+
re.MULTILINE,
|
| 89 |
+
)
|
| 90 |
+
if m:
|
| 91 |
+
strict_heading_map[m.start()] = (m.start(), m.end(), cat_id)
|
| 92 |
+
|
| 93 |
+
# Find ALL #### headings (including "Others") to use as boundaries
|
| 94 |
+
all_h4 = [(m.start(), m.end()) for m in re.finditer(r"^####\s+", classification_section, re.MULTILINE)]
|
| 95 |
+
all_h4.sort()
|
| 96 |
+
|
| 97 |
+
# Extract section text: from each strict heading to the next #### heading
|
| 98 |
+
sections = {}
|
| 99 |
+
for idx, (h_start, h_end) in enumerate(all_h4):
|
| 100 |
+
if h_start not in strict_heading_map:
|
| 101 |
+
continue
|
| 102 |
+
_, s_end, cat_id = strict_heading_map[h_start]
|
| 103 |
+
next_starts = [s for s, _ in all_h4 if s > h_start]
|
| 104 |
+
section_end = next_starts[0] if next_starts else len(classification_section)
|
| 105 |
+
sections[cat_id] = classification_section[s_end:section_end]
|
| 106 |
+
|
| 107 |
+
# Ground-truth: checkpoint papers per category (distinctive keywords)
|
| 108 |
+
ground_truth = {
|
| 109 |
+
"multimodal": [
|
| 110 |
+
r"SimpleOCR",
|
| 111 |
+
r"Exploring Multimodal LMMs",
|
| 112 |
+
r"NoLan",
|
| 113 |
+
r"WeaveTime",
|
| 114 |
+
r"Global.Local Dual Perception",
|
| 115 |
+
r"See It, Say It, Sorted",
|
| 116 |
+
r"DynamicGTR",
|
| 117 |
+
r"Dynamic Multimodal Activation Steering",
|
| 118 |
+
r"Dr\.\s*Seg",
|
| 119 |
+
r"CCCaption",
|
| 120 |
+
],
|
| 121 |
+
"medical": [
|
| 122 |
+
r"(?:Diagnostic Trace|Visual Cognition.guided.*Chest X.Ray)",
|
| 123 |
+
r"(?:Brain Tumor Segmentation.*Non.Enhancing)",
|
| 124 |
+
r"SigVLP",
|
| 125 |
+
],
|
| 126 |
+
"generation": [
|
| 127 |
+
r"SkyReels.?V4",
|
| 128 |
+
r"MultiAnimate",
|
| 129 |
+
r"(?:Accelerating Diffusion.*Pipeline|Hybrid Data.Pipeline.*Diffusion)",
|
| 130 |
+
],
|
| 131 |
+
"driving": [
|
| 132 |
+
r"(?:World Guidance|World Modeling.*Condition Space)",
|
| 133 |
+
r"LiLo.VLA",
|
| 134 |
+
r"SEF.MAP",
|
| 135 |
+
],
|
| 136 |
+
"3d": [
|
| 137 |
+
r"(?:Visual Geometry Priors.*Gaussian|Sparse Gaussian Occupancy)",
|
| 138 |
+
r"(?:Cryo.EM|Protein.*Cryo)",
|
| 139 |
+
r"UniHand",
|
| 140 |
+
],
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
for cat, papers in ground_truth.items():
|
| 144 |
+
section_text = sections.get(cat, "")
|
| 145 |
+
correct = sum(1 for p in papers if re.search(p, section_text, re.IGNORECASE))
|
| 146 |
+
scores[f"classify_{cat}"] = round(correct / len(papers), 2)
|
| 147 |
+
|
| 148 |
+
# --- Multimodal metadata audit ---
|
| 149 |
+
metadata_section = extract_section(
|
| 150 |
+
content,
|
| 151 |
+
r"^###\s+Multimodal Paper Metadata Audit\s*$",
|
| 152 |
+
)
|
| 153 |
+
metadata_section_exists = bool(metadata_section.strip())
|
| 154 |
+
|
| 155 |
+
metadata_ground_truth = {
|
| 156 |
+
"metadata_simpleocr": {
|
| 157 |
+
"paper": r"SimpleOCR",
|
| 158 |
+
"authors": [
|
| 159 |
+
r"Yibo\s+Peng",
|
| 160 |
+
r"Peng\s+Xia",
|
| 161 |
+
r"Ding\s+Zhong",
|
| 162 |
+
r"Kaide\s+Zeng",
|
| 163 |
+
r"Siwei\s+Han",
|
| 164 |
+
r"Yiyang\s+Zhou",
|
| 165 |
+
r"Jiaqi\s+Liu",
|
| 166 |
+
r"Ruiyi\s+Zhang",
|
| 167 |
+
r"Huaxiu\s+Yao",
|
| 168 |
+
],
|
| 169 |
+
"has_appendix": True,
|
| 170 |
+
"main_figures": 5,
|
| 171 |
+
"appendix_figures": 0,
|
| 172 |
+
"main_tables": 4,
|
| 173 |
+
"appendix_tables": 4,
|
| 174 |
+
"total_figures": 5,
|
| 175 |
+
"total_tables": 8,
|
| 176 |
+
"appendix_evidence": r"Appendix A Dataset Details",
|
| 177 |
+
},
|
| 178 |
+
"metadata_exploring_multimodal_lmms": {
|
| 179 |
+
"paper": r"Exploring Multimodal LMMs",
|
| 180 |
+
"authors": [
|
| 181 |
+
r"Giuseppe\s+Lando",
|
| 182 |
+
r"Rosario\s+Forte",
|
| 183 |
+
r"Antonino\s+Furnari",
|
| 184 |
+
],
|
| 185 |
+
"has_appendix": False,
|
| 186 |
+
"main_figures": 3,
|
| 187 |
+
"appendix_figures": 0,
|
| 188 |
+
"main_tables": 5,
|
| 189 |
+
"appendix_tables": 0,
|
| 190 |
+
"total_figures": 3,
|
| 191 |
+
"total_tables": 5,
|
| 192 |
+
"appendix_evidence": r"None",
|
| 193 |
+
},
|
| 194 |
+
"metadata_nolan": {
|
| 195 |
+
"paper": r"NoLan",
|
| 196 |
+
"authors": [
|
| 197 |
+
r"Lingfeng\s+Ren",
|
| 198 |
+
r"Weihao\s+Yu",
|
| 199 |
+
r"Runpeng\s+Yu",
|
| 200 |
+
r"Xinchao\s+Wang",
|
| 201 |
+
],
|
| 202 |
+
"has_appendix": True,
|
| 203 |
+
"main_figures": 4,
|
| 204 |
+
"appendix_figures": 2,
|
| 205 |
+
"main_tables": 5,
|
| 206 |
+
"appendix_tables": 17,
|
| 207 |
+
"total_figures": 6,
|
| 208 |
+
"total_tables": 22,
|
| 209 |
+
"appendix_evidence": r"Appendix A Appendix",
|
| 210 |
+
},
|
| 211 |
+
"metadata_weavetime": {
|
| 212 |
+
"paper": r"WeaveTime",
|
| 213 |
+
"authors": [
|
| 214 |
+
r"Yulin\s+Zhang",
|
| 215 |
+
r"Cheng\s+Shi",
|
| 216 |
+
r"Sibei\s+Yang",
|
| 217 |
+
],
|
| 218 |
+
"has_appendix": False,
|
| 219 |
+
"main_figures": 7,
|
| 220 |
+
"appendix_figures": 0,
|
| 221 |
+
"main_tables": 5,
|
| 222 |
+
"appendix_tables": 0,
|
| 223 |
+
"total_figures": 7,
|
| 224 |
+
"total_tables": 5,
|
| 225 |
+
"appendix_evidence": r"None",
|
| 226 |
+
},
|
| 227 |
+
"metadata_global_local_dual_perception": {
|
| 228 |
+
"paper": r"Global.Local Dual Perception",
|
| 229 |
+
"authors": [
|
| 230 |
+
r"Junxin\s+Lu",
|
| 231 |
+
r"Tengfei\s+Song",
|
| 232 |
+
r"Zhanglin\s+Wu",
|
| 233 |
+
r"Pengfei\s+Li",
|
| 234 |
+
r"Xiaowei\s+Liang",
|
| 235 |
+
r"Hui\s+Yang",
|
| 236 |
+
r"Kun\s+Chen",
|
| 237 |
+
r"Ning\s+Xie",
|
| 238 |
+
r"Yunfei\s+Lu",
|
| 239 |
+
r"Jing\s+Zhao",
|
| 240 |
+
r"Shiliang\s+Sun",
|
| 241 |
+
r"Daimeng\s+Wei",
|
| 242 |
+
],
|
| 243 |
+
"has_appendix": False,
|
| 244 |
+
"main_figures": 7,
|
| 245 |
+
"appendix_figures": 0,
|
| 246 |
+
"main_tables": 4,
|
| 247 |
+
"appendix_tables": 0,
|
| 248 |
+
"total_figures": 7,
|
| 249 |
+
"total_tables": 4,
|
| 250 |
+
"appendix_evidence": r"None",
|
| 251 |
+
},
|
| 252 |
+
"metadata_see_it_say_it_sorted": {
|
| 253 |
+
"paper": r"See It, Say It, Sorted",
|
| 254 |
+
"authors": [
|
| 255 |
+
r"Yongchang\s+Zhang",
|
| 256 |
+
r"Oliver\s+Ma",
|
| 257 |
+
r"Tianyi\s+Liu",
|
| 258 |
+
r"Guangquan\s+Zhou",
|
| 259 |
+
r"Yang\s+Chen",
|
| 260 |
+
],
|
| 261 |
+
"has_appendix": False,
|
| 262 |
+
"main_figures": 5,
|
| 263 |
+
"appendix_figures": 0,
|
| 264 |
+
"main_tables": 6,
|
| 265 |
+
"appendix_tables": 0,
|
| 266 |
+
"total_figures": 5,
|
| 267 |
+
"total_tables": 6,
|
| 268 |
+
"appendix_evidence": r"None",
|
| 269 |
+
},
|
| 270 |
+
"metadata_dynamicgtr": {
|
| 271 |
+
"paper": r"DynamicGTR",
|
| 272 |
+
"authors": [
|
| 273 |
+
r"Yanbin\s+Wei",
|
| 274 |
+
r"Jiangyue\s+Yan",
|
| 275 |
+
r"Chun\s+Kang",
|
| 276 |
+
r"Yang\s+Chen",
|
| 277 |
+
r"Hua\s+Liu",
|
| 278 |
+
r"James\s+Kwok",
|
| 279 |
+
r"Yu\s+Zhang",
|
| 280 |
+
],
|
| 281 |
+
"has_appendix": True,
|
| 282 |
+
"main_figures": 3,
|
| 283 |
+
"appendix_figures": 1,
|
| 284 |
+
"main_tables": 8,
|
| 285 |
+
"appendix_tables": 11,
|
| 286 |
+
"total_figures": 4,
|
| 287 |
+
"total_tables": 19,
|
| 288 |
+
"appendix_evidence": r"A\.?\s*GTR Generation",
|
| 289 |
+
},
|
| 290 |
+
"metadata_dynamic_multimodal_activation_steering": {
|
| 291 |
+
"paper": r"Dynamic Multimodal Activation Steering",
|
| 292 |
+
"authors": [
|
| 293 |
+
r"Jianghao\s+Yin",
|
| 294 |
+
r"Qin\s+Chen",
|
| 295 |
+
r"Kedi\s+Chen",
|
| 296 |
+
r"Jie\s+Zhou",
|
| 297 |
+
r"Xingjiao\s+Wu",
|
| 298 |
+
r"Liang\s+He",
|
| 299 |
+
],
|
| 300 |
+
"has_appendix": True,
|
| 301 |
+
"main_figures": 4,
|
| 302 |
+
"appendix_figures": 2,
|
| 303 |
+
"main_tables": 5,
|
| 304 |
+
"appendix_tables": 9,
|
| 305 |
+
"total_figures": 6,
|
| 306 |
+
"total_tables": 14,
|
| 307 |
+
"appendix_evidence": r"Appendix A Appendix",
|
| 308 |
+
},
|
| 309 |
+
"metadata_dr_seg": {
|
| 310 |
+
"paper": r"Dr\.\s*Seg",
|
| 311 |
+
"authors": [
|
| 312 |
+
r"Haoxiang\s+Sun",
|
| 313 |
+
r"Tao\s+Wang",
|
| 314 |
+
r"Chenwei\s+Tang",
|
| 315 |
+
r"Li\s+Yuan",
|
| 316 |
+
r"Jiancheng\s+Lv",
|
| 317 |
+
],
|
| 318 |
+
"has_appendix": True,
|
| 319 |
+
"main_figures": 7,
|
| 320 |
+
"appendix_figures": 7,
|
| 321 |
+
"main_tables": 6,
|
| 322 |
+
"appendix_tables": 6,
|
| 323 |
+
"total_figures": 14,
|
| 324 |
+
"total_tables": 12,
|
| 325 |
+
"appendix_evidence": r"Appendix A More Experiment Details and Ablations",
|
| 326 |
+
},
|
| 327 |
+
"metadata_cccaption": {
|
| 328 |
+
"paper": r"CCCaption",
|
| 329 |
+
"authors": [
|
| 330 |
+
r"Zhijiang\s+Tang",
|
| 331 |
+
r"Linhua\s+Wang",
|
| 332 |
+
r"Jiaxin\s+Qi",
|
| 333 |
+
r"Weihao\s+Jiang",
|
| 334 |
+
r"Peng\s+Hou",
|
| 335 |
+
r"Anxiang\s+Zeng",
|
| 336 |
+
r"Jianqiang\s+Huang",
|
| 337 |
+
],
|
| 338 |
+
"has_appendix": False,
|
| 339 |
+
"main_figures": 5,
|
| 340 |
+
"appendix_figures": 0,
|
| 341 |
+
"main_tables": 5,
|
| 342 |
+
"appendix_tables": 0,
|
| 343 |
+
"total_figures": 5,
|
| 344 |
+
"total_tables": 5,
|
| 345 |
+
"appendix_evidence": r"None",
|
| 346 |
+
},
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
appendix_flags_ok = True
|
| 350 |
+
split_consistency_ok = True
|
| 351 |
+
if metadata_section_exists:
|
| 352 |
+
for score_key, spec in metadata_ground_truth.items():
|
| 353 |
+
row_match = re.search(
|
| 354 |
+
rf"^\|[^\n]*{spec['paper']}[^\n]*\|\s*$",
|
| 355 |
+
metadata_section,
|
| 356 |
+
re.IGNORECASE | re.MULTILINE,
|
| 357 |
+
)
|
| 358 |
+
if not row_match:
|
| 359 |
+
appendix_flags_ok = False
|
| 360 |
+
split_consistency_ok = False
|
| 361 |
+
scores[score_key] = 0.0
|
| 362 |
+
continue
|
| 363 |
+
|
| 364 |
+
row_text = row_match.group(0)
|
| 365 |
+
author_ok = all(re.search(author_pat, row_text, re.IGNORECASE) for author_pat in spec["authors"])
|
| 366 |
+
appendix_ok = bool(
|
| 367 |
+
re.search(
|
| 368 |
+
r"\|\s*(?:yes|true)\s*\|",
|
| 369 |
+
row_text,
|
| 370 |
+
re.IGNORECASE,
|
| 371 |
+
)
|
| 372 |
+
) if spec["has_appendix"] else bool(
|
| 373 |
+
re.search(
|
| 374 |
+
r"\|\s*(?:no|false)\s*\|",
|
| 375 |
+
row_text,
|
| 376 |
+
re.IGNORECASE,
|
| 377 |
+
)
|
| 378 |
+
)
|
| 379 |
+
main_figures_ok = bool(re.search(rf"\|\s*{spec['main_figures']}\s*\|", row_text))
|
| 380 |
+
appendix_figures_ok = bool(re.search(rf"\|\s*{spec['appendix_figures']}\s*\|", row_text))
|
| 381 |
+
main_tables_ok = bool(re.search(rf"\|\s*{spec['main_tables']}\s*\|", row_text))
|
| 382 |
+
appendix_tables_ok = bool(re.search(rf"\|\s*{spec['appendix_tables']}\s*\|", row_text))
|
| 383 |
+
total_figures_ok = bool(re.search(rf"\|\s*{spec['total_figures']}\s*\|", row_text))
|
| 384 |
+
total_tables_ok = bool(re.search(rf"\|\s*{spec['total_tables']}\s*\|", row_text))
|
| 385 |
+
evidence_ok = bool(re.search(spec["appendix_evidence"], row_text, re.IGNORECASE))
|
| 386 |
+
|
| 387 |
+
cells = [c.strip() for c in row_text.strip().strip("|").split("|")]
|
| 388 |
+
if len(cells) >= 10:
|
| 389 |
+
try:
|
| 390 |
+
row_main_figures = int(cells[4])
|
| 391 |
+
row_appendix_figures = int(cells[5])
|
| 392 |
+
row_main_tables = int(cells[6])
|
| 393 |
+
row_appendix_tables = int(cells[7])
|
| 394 |
+
row_total_figures = int(cells[8])
|
| 395 |
+
row_total_tables = int(cells[9])
|
| 396 |
+
split_figures_consistent = row_main_figures + row_appendix_figures == row_total_figures
|
| 397 |
+
split_tables_consistent = row_main_tables + row_appendix_tables == row_total_tables
|
| 398 |
+
except ValueError:
|
| 399 |
+
split_figures_consistent = False
|
| 400 |
+
split_tables_consistent = False
|
| 401 |
+
else:
|
| 402 |
+
split_figures_consistent = False
|
| 403 |
+
split_tables_consistent = False
|
| 404 |
+
appendix_flags_ok = appendix_flags_ok and appendix_ok
|
| 405 |
+
split_consistency_ok = split_consistency_ok and split_figures_consistent and split_tables_consistent
|
| 406 |
+
scores[score_key] = 1.0 if (
|
| 407 |
+
author_ok
|
| 408 |
+
and main_figures_ok
|
| 409 |
+
and appendix_figures_ok
|
| 410 |
+
and main_tables_ok
|
| 411 |
+
and appendix_tables_ok
|
| 412 |
+
and total_figures_ok
|
| 413 |
+
and total_tables_ok
|
| 414 |
+
and evidence_ok
|
| 415 |
+
) else 0.0
|
| 416 |
+
else:
|
| 417 |
+
for score_key in metadata_ground_truth:
|
| 418 |
+
scores[score_key] = 0.0
|
| 419 |
+
appendix_flags_ok = False
|
| 420 |
+
split_consistency_ok = False
|
| 421 |
+
|
| 422 |
+
scores["metadata_appendix_flags"] = 1.0 if (metadata_section_exists and appendix_flags_ok) else 0.0
|
| 423 |
+
scores["metadata_split_consistency"] = 1.0 if (metadata_section_exists and split_consistency_ok) else 0.0
|
| 424 |
+
|
| 425 |
+
# --- Interest selection ---
|
| 426 |
+
# "### Papers of Interest" must contain exactly one recommended paper, and
|
| 427 |
+
# that paper should be CCCaption.
|
| 428 |
+
# We first scope to "## Personalized Recommendations", then search inside it.
|
| 429 |
+
recommendations_section = extract_section(
|
| 430 |
+
content,
|
| 431 |
+
r"^#{2,4}\s+[^\n]*(?:[Pp]ersonali|[Rr]ecommend)[^\n]*$",
|
| 432 |
+
)
|
| 433 |
+
interest_section = extract_section(
|
| 434 |
+
recommendations_section if recommendations_section.strip() else content,
|
| 435 |
+
r"^#{2,4}\s+[^\n]*[Pp]apers?\s+[Oo]f\s+[Ii]nterest[^\n]*$",
|
| 436 |
+
)
|
| 437 |
+
recommended_papers = re.findall(
|
| 438 |
+
r"(?m)^(?:-\s+\*\*.+?\*\*|\d+\.\s+\*\*.+?\*\*|-\s+.+?—.+|\d+\.\s+.+?—.+)$",
|
| 439 |
+
interest_section,
|
| 440 |
+
)
|
| 441 |
+
scores["interest_count"] = 1.0 if len(recommended_papers) == 1 else 0.0
|
| 442 |
+
scores["interest_selection"] = (
|
| 443 |
+
1.0
|
| 444 |
+
if (
|
| 445 |
+
scores["interest_count"] == 1.0
|
| 446 |
+
and re.search(r"CCCaption", interest_section, re.IGNORECASE)
|
| 447 |
+
)
|
| 448 |
+
else 0.0
|
| 449 |
+
)
|
| 450 |
+
|
| 451 |
+
# --- Benchmark extraction sub-items ---
|
| 452 |
+
benchmark_source = recommendations_section if recommendations_section.strip() else content
|
| 453 |
+
benchmark_section = extract_section(
|
| 454 |
+
benchmark_source,
|
| 455 |
+
r"^#{2,4}\s+[^\n]*(?:[Bb]enchmark|[Cc]omparison|[Pp]rism)[^\n]*$",
|
| 456 |
+
)
|
| 457 |
+
|
| 458 |
+
# Sub-item 1: benchmark table contains CharXiv
|
| 459 |
+
has_charxiv = bool(
|
| 460 |
+
re.search(r"^\|[^\n]*CharXiv[^\n]*\|\s*$", benchmark_section, re.IGNORECASE | re.MULTILINE)
|
| 461 |
+
)
|
| 462 |
+
scores["benchmark_charxiv"] = 1.0 if has_charxiv else 0.0
|
| 463 |
+
|
| 464 |
+
# Sub-item 2: CapRL-3B average score is 51.07
|
| 465 |
+
scores["benchmark_caprl_avg"] = (
|
| 466 |
+
1.0 if re.search(r"CapRL.{0,10}3B.*?51\.07", benchmark_section, re.IGNORECASE) else 0.0
|
| 467 |
+
)
|
| 468 |
+
|
| 469 |
+
# Sub-item 3: CCCaption-2B average score is 52.80
|
| 470 |
+
scores["benchmark_cccaption_avg"] = (
|
| 471 |
+
1.0
|
| 472 |
+
if re.search(r"CCCaption.{0,10}2B.*?52\.80", benchmark_section, re.IGNORECASE)
|
| 473 |
+
else 0.0
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# Sub-item 4: CapRL row has InfoVQA score 55.94
|
| 477 |
+
has_infovqa_header = bool(re.search(r"\|\s*InfoVQA\s*\|", benchmark_section, re.IGNORECASE))
|
| 478 |
+
caprl_row_has_5594 = bool(
|
| 479 |
+
re.search(r"^\|[^\n]*CapRL[^\n]*55\.94[^\n]*\|\s*$", benchmark_section, re.IGNORECASE | re.MULTILINE)
|
| 480 |
+
)
|
| 481 |
+
scores["benchmark_caprl_infovqa"] = 1.0 if (has_infovqa_header and caprl_row_has_5594) else 0.0
|
| 482 |
+
|
| 483 |
+
classify_keys = [
|
| 484 |
+
"classify_multimodal",
|
| 485 |
+
"classify_medical",
|
| 486 |
+
"classify_generation",
|
| 487 |
+
"classify_driving",
|
| 488 |
+
"classify_3d",
|
| 489 |
+
]
|
| 490 |
+
metadata_keys = [
|
| 491 |
+
"metadata_appendix_flags",
|
| 492 |
+
"metadata_split_consistency",
|
| 493 |
+
"metadata_simpleocr",
|
| 494 |
+
"metadata_exploring_multimodal_lmms",
|
| 495 |
+
"metadata_nolan",
|
| 496 |
+
"metadata_weavetime",
|
| 497 |
+
"metadata_global_local_dual_perception",
|
| 498 |
+
"metadata_see_it_say_it_sorted",
|
| 499 |
+
"metadata_dynamicgtr",
|
| 500 |
+
"metadata_dynamic_multimodal_activation_steering",
|
| 501 |
+
"metadata_dr_seg",
|
| 502 |
+
"metadata_cccaption",
|
| 503 |
+
]
|
| 504 |
+
interest_keys = [
|
| 505 |
+
"interest_count",
|
| 506 |
+
"interest_selection",
|
| 507 |
+
"benchmark_charxiv",
|
| 508 |
+
"benchmark_caprl_avg",
|
| 509 |
+
"benchmark_cccaption_avg",
|
| 510 |
+
"benchmark_caprl_infovqa",
|
| 511 |
+
]
|
| 512 |
+
|
| 513 |
+
scores["classify_score"] = round(
|
| 514 |
+
sum(scores.get(k, 0.0) for k in classify_keys) / len(classify_keys), 4
|
| 515 |
+
)
|
| 516 |
+
scores["metadata_score"] = round(
|
| 517 |
+
(
|
| 518 |
+
sum(scores.get(k, 0.0) for k in metadata_keys) / len(metadata_keys)
|
| 519 |
+
if metadata_section_exists
|
| 520 |
+
else 0.0
|
| 521 |
+
),
|
| 522 |
+
4,
|
| 523 |
+
)
|
| 524 |
+
scores["interest_score"] = round(
|
| 525 |
+
sum(scores.get(k, 0.0) for k in interest_keys) / len(interest_keys), 4
|
| 526 |
+
)
|
| 527 |
+
|
| 528 |
+
scores["overall_score"] = round(
|
| 529 |
+
0.3 * scores["classify_score"]
|
| 530 |
+
+ 0.4 * scores["metadata_score"]
|
| 531 |
+
+ 0.3 * scores["interest_score"],
|
| 532 |
+
4,
|
| 533 |
+
)
|
| 534 |
+
|
| 535 |
+
return scores
|
01_Productivity_Flow_task_1_arxiv_digest/tests/grader.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Execute an embedded WildClawBench grader as a Harbor verifier."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
import math
|
| 7 |
+
import runpy
|
| 8 |
+
import traceback
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any
|
| 11 |
+
|
| 12 |
+
from transcript_loader import load_transcript, write_openclaw_compat_transcript
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
WORKSPACE = "/tmp_workspace"
|
| 16 |
+
TESTS_DIR = Path("/tests")
|
| 17 |
+
VERIFIER_LOG_DIR = Path("/logs/verifier")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _numeric_rewards(scores: dict[str, Any]) -> dict[str, float]:
|
| 21 |
+
rewards: dict[str, float] = {}
|
| 22 |
+
for key, value in scores.items():
|
| 23 |
+
if isinstance(value, bool):
|
| 24 |
+
rewards[str(key)] = float(value)
|
| 25 |
+
elif isinstance(value, (int, float)) and math.isfinite(float(value)):
|
| 26 |
+
rewards[str(key)] = float(value)
|
| 27 |
+
|
| 28 |
+
if "overall_score" not in rewards:
|
| 29 |
+
numeric_values = list(rewards.values())
|
| 30 |
+
rewards["overall_score"] = (
|
| 31 |
+
sum(numeric_values) / len(numeric_values) if numeric_values else 0.0
|
| 32 |
+
)
|
| 33 |
+
return rewards
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def _write_json(path: Path, value: Any) -> None:
|
| 37 |
+
path.write_text(
|
| 38 |
+
json.dumps(value, indent=2, ensure_ascii=False, default=str) + "\n",
|
| 39 |
+
encoding="utf-8",
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def main() -> int:
|
| 44 |
+
VERIFIER_LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 45 |
+
try:
|
| 46 |
+
namespace = runpy.run_path(str(TESTS_DIR / "checks.py"))
|
| 47 |
+
grade = namespace.get("grade")
|
| 48 |
+
if not callable(grade):
|
| 49 |
+
raise TypeError("/tests/checks.py must define a callable grade()")
|
| 50 |
+
|
| 51 |
+
transcript = load_transcript()
|
| 52 |
+
write_openclaw_compat_transcript(transcript)
|
| 53 |
+
scores = grade(
|
| 54 |
+
transcript=transcript,
|
| 55 |
+
workspace_path=WORKSPACE,
|
| 56 |
+
)
|
| 57 |
+
if not isinstance(scores, dict):
|
| 58 |
+
raise TypeError(
|
| 59 |
+
f"WildClawBench grade() returned {type(scores).__name__}, expected dict"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
_write_json(VERIFIER_LOG_DIR / "wildclaw_score.json", scores)
|
| 63 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", _numeric_rewards(scores))
|
| 64 |
+
return 0
|
| 65 |
+
except Exception as exc:
|
| 66 |
+
traceback.print_exc()
|
| 67 |
+
_write_json(
|
| 68 |
+
VERIFIER_LOG_DIR / "wildclaw_score.json",
|
| 69 |
+
{"overall_score": 0.0, "error": str(exc)},
|
| 70 |
+
)
|
| 71 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", {"overall_score": 0.0})
|
| 72 |
+
return 0
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
if __name__ == "__main__":
|
| 76 |
+
raise SystemExit(main())
|
01_Productivity_Flow_task_1_arxiv_digest/tests/test.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -u
|
| 3 |
+
|
| 4 |
+
mkdir -p /logs/verifier
|
| 5 |
+
|
| 6 |
+
if [[ -d /tests/gt ]]; then
|
| 7 |
+
mkdir -p /tmp_workspace/gt
|
| 8 |
+
cp -a /tests/gt/. /tmp_workspace/gt/
|
| 9 |
+
fi
|
| 10 |
+
|
| 11 |
+
python3 /tests/grader.py
|
01_Productivity_Flow_task_1_arxiv_digest/tests/transcript_loader.py
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Load agent transcripts and normalize Harbor ATIF traces for WCB graders."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Any
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
OPENCLAW_COMPAT_PATH = Path("/root/.openclaw/agents/main/sessions/chat.jsonl")
|
| 11 |
+
TRANSCRIPT_CANDIDATES = (
|
| 12 |
+
Path("/logs/agent/trajectory.json"),
|
| 13 |
+
OPENCLAW_COMPAT_PATH,
|
| 14 |
+
Path("/claude_code/log/chat.json"),
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
def _safe_json_loads(text: str) -> Any | None:
|
| 19 |
+
try:
|
| 20 |
+
return json.loads(text)
|
| 21 |
+
except Exception:
|
| 22 |
+
return None
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def _parse_json_lines(raw: str) -> list[Any]:
|
| 26 |
+
rows: list[Any] = []
|
| 27 |
+
for line in raw.splitlines():
|
| 28 |
+
line = line.strip()
|
| 29 |
+
if not line:
|
| 30 |
+
continue
|
| 31 |
+
parsed = _safe_json_loads(line)
|
| 32 |
+
if parsed is not None:
|
| 33 |
+
rows.append(parsed)
|
| 34 |
+
return rows
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _text_content(value: Any) -> str:
|
| 38 |
+
if isinstance(value, str):
|
| 39 |
+
return value
|
| 40 |
+
if not isinstance(value, list):
|
| 41 |
+
return ""
|
| 42 |
+
|
| 43 |
+
texts: list[str] = []
|
| 44 |
+
for part in value:
|
| 45 |
+
if not isinstance(part, dict):
|
| 46 |
+
continue
|
| 47 |
+
if part.get("type") == "text" and isinstance(part.get("text"), str):
|
| 48 |
+
texts.append(part["text"])
|
| 49 |
+
return "\n".join(texts)
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
def _atif_to_openclaw(trajectory: dict[str, Any]) -> list[dict[str, Any]]:
|
| 53 |
+
"""Convert the ATIF fields used by Harbor agents to WCB's message shape."""
|
| 54 |
+
rows: list[dict[str, Any]] = []
|
| 55 |
+
steps = trajectory.get("steps")
|
| 56 |
+
if not isinstance(steps, list):
|
| 57 |
+
return rows
|
| 58 |
+
|
| 59 |
+
for step in steps:
|
| 60 |
+
if not isinstance(step, dict):
|
| 61 |
+
continue
|
| 62 |
+
source = step.get("source")
|
| 63 |
+
if source not in ("system", "user", "agent"):
|
| 64 |
+
continue
|
| 65 |
+
|
| 66 |
+
if source == "agent":
|
| 67 |
+
content: list[dict[str, Any]] = []
|
| 68 |
+
message = _text_content(step.get("message"))
|
| 69 |
+
if message:
|
| 70 |
+
content.append({"type": "text", "text": message})
|
| 71 |
+
|
| 72 |
+
tool_calls = step.get("tool_calls")
|
| 73 |
+
if isinstance(tool_calls, list):
|
| 74 |
+
for tool_call in tool_calls:
|
| 75 |
+
if not isinstance(tool_call, dict):
|
| 76 |
+
continue
|
| 77 |
+
content.append(
|
| 78 |
+
{
|
| 79 |
+
"type": "toolCall",
|
| 80 |
+
"id": str(tool_call.get("tool_call_id", "")),
|
| 81 |
+
"name": str(tool_call.get("function_name", "")),
|
| 82 |
+
"arguments": tool_call.get("arguments", {}),
|
| 83 |
+
}
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
rows.append(
|
| 87 |
+
{
|
| 88 |
+
"type": "message",
|
| 89 |
+
"message": {
|
| 90 |
+
"role": "assistant",
|
| 91 |
+
"content": content or message,
|
| 92 |
+
},
|
| 93 |
+
}
|
| 94 |
+
)
|
| 95 |
+
|
| 96 |
+
observation = step.get("observation")
|
| 97 |
+
results = (
|
| 98 |
+
observation.get("results") if isinstance(observation, dict) else None
|
| 99 |
+
)
|
| 100 |
+
if isinstance(results, list):
|
| 101 |
+
for result in results:
|
| 102 |
+
if not isinstance(result, dict):
|
| 103 |
+
continue
|
| 104 |
+
rows.append(
|
| 105 |
+
{
|
| 106 |
+
"type": "message",
|
| 107 |
+
"message": {
|
| 108 |
+
"role": "toolResult",
|
| 109 |
+
"toolCallId": result.get("source_call_id"),
|
| 110 |
+
"content": result.get("content", ""),
|
| 111 |
+
},
|
| 112 |
+
}
|
| 113 |
+
)
|
| 114 |
+
continue
|
| 115 |
+
|
| 116 |
+
rows.append(
|
| 117 |
+
{
|
| 118 |
+
"type": "message",
|
| 119 |
+
"message": {
|
| 120 |
+
"role": source,
|
| 121 |
+
"content": _text_content(step.get("message")),
|
| 122 |
+
},
|
| 123 |
+
}
|
| 124 |
+
)
|
| 125 |
+
return rows
|
| 126 |
+
|
| 127 |
+
|
| 128 |
+
def _normalize(parsed: Any) -> list[Any]:
|
| 129 |
+
if isinstance(parsed, list):
|
| 130 |
+
return parsed
|
| 131 |
+
if not isinstance(parsed, dict):
|
| 132 |
+
return []
|
| 133 |
+
|
| 134 |
+
schema_version = parsed.get("schema_version")
|
| 135 |
+
if isinstance(schema_version, str) and schema_version.startswith("ATIF-"):
|
| 136 |
+
return _atif_to_openclaw(parsed)
|
| 137 |
+
|
| 138 |
+
for key in ("transcript", "messages", "chat"):
|
| 139 |
+
value = parsed.get(key)
|
| 140 |
+
if isinstance(value, list):
|
| 141 |
+
return value
|
| 142 |
+
return [parsed]
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
def _read_transcript_file(path: Path) -> list[Any]:
|
| 146 |
+
if not path.exists():
|
| 147 |
+
return []
|
| 148 |
+
try:
|
| 149 |
+
raw = path.read_text(encoding="utf-8", errors="ignore")
|
| 150 |
+
except OSError:
|
| 151 |
+
return []
|
| 152 |
+
|
| 153 |
+
parsed = _safe_json_loads(raw)
|
| 154 |
+
if parsed is not None:
|
| 155 |
+
return _normalize(parsed)
|
| 156 |
+
return _parse_json_lines(raw)
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
def load_transcript(path_str: str = "") -> list[Any]:
|
| 160 |
+
candidates = ([Path(path_str)] if path_str else []) + list(TRANSCRIPT_CANDIDATES)
|
| 161 |
+
seen: set[Path] = set()
|
| 162 |
+
for candidate in candidates:
|
| 163 |
+
if candidate in seen:
|
| 164 |
+
continue
|
| 165 |
+
seen.add(candidate)
|
| 166 |
+
loaded = _read_transcript_file(candidate)
|
| 167 |
+
if loaded:
|
| 168 |
+
return loaded
|
| 169 |
+
return []
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
def write_openclaw_compat_transcript(
|
| 173 |
+
transcript: list[Any],
|
| 174 |
+
path: Path = OPENCLAW_COMPAT_PATH,
|
| 175 |
+
) -> None:
|
| 176 |
+
"""Expose the current Harbor trace at the path used by legacy WCB graders."""
|
| 177 |
+
if not transcript:
|
| 178 |
+
return
|
| 179 |
+
try:
|
| 180 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 181 |
+
path.write_text(
|
| 182 |
+
"".join(
|
| 183 |
+
json.dumps(row, ensure_ascii=False, default=str) + "\n"
|
| 184 |
+
for row in transcript
|
| 185 |
+
),
|
| 186 |
+
encoding="utf-8",
|
| 187 |
+
)
|
| 188 |
+
except OSError:
|
| 189 |
+
# The transcript is still supplied through grade(transcript=...), so a
|
| 190 |
+
# non-root verifier can continue even if it cannot write under /root.
|
| 191 |
+
return
|
01_Productivity_Flow_task_2_table_tex_download/environment/.gitkeep
ADDED
|
File without changes
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/run-warmup.sh
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
marker="/tmp/wildclaw-harbor-warmup.done"
|
| 5 |
+
[[ -f "$marker" ]] && exit 0
|
| 6 |
+
cd /tmp_workspace
|
| 7 |
+
|
| 8 |
+
bash -lc 'npm install -g agent-browser'
|
| 9 |
+
|
| 10 |
+
touch "$marker"
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/agent-browser/SKILL.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: agent-browser
|
| 3 |
+
description: Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection
|
| 4 |
+
metadata: {"clawdbot":{"emoji":"🌐","requires":{"commands":["agent-browser"]},"homepage":"https://github.com/vercel-labs/agent-browser"}}
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Agent Browser Skill
|
| 8 |
+
|
| 9 |
+
Fast browser automation using accessibility tree snapshots with refs for deterministic element selection.
|
| 10 |
+
|
| 11 |
+
## Why Use This Over Built-in Browser Tool
|
| 12 |
+
|
| 13 |
+
**Use agent-browser when:**
|
| 14 |
+
- Automating multi-step workflows
|
| 15 |
+
- Need deterministic element selection
|
| 16 |
+
- Performance is critical
|
| 17 |
+
- Working with complex SPAs
|
| 18 |
+
- Need session isolation
|
| 19 |
+
|
| 20 |
+
**Use built-in browser tool when:**
|
| 21 |
+
- Need screenshots/PDFs for analysis
|
| 22 |
+
- Visual inspection required
|
| 23 |
+
- Browser extension integration needed
|
| 24 |
+
|
| 25 |
+
## Core Workflow
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
# 1. Navigate and snapshot
|
| 29 |
+
agent-browser open https://example.com
|
| 30 |
+
agent-browser snapshot -i --json
|
| 31 |
+
|
| 32 |
+
# 2. Parse refs from JSON, then interact
|
| 33 |
+
agent-browser click @e2
|
| 34 |
+
agent-browser fill @e3 "text"
|
| 35 |
+
|
| 36 |
+
# 3. Re-snapshot after page changes
|
| 37 |
+
agent-browser snapshot -i --json
|
| 38 |
+
```
|
| 39 |
+
|
| 40 |
+
## Key Commands
|
| 41 |
+
|
| 42 |
+
### Navigation
|
| 43 |
+
```bash
|
| 44 |
+
agent-browser open <url>
|
| 45 |
+
agent-browser back | forward | reload | close
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
### Snapshot (Always use -i --json)
|
| 49 |
+
```bash
|
| 50 |
+
agent-browser snapshot -i --json # Interactive elements, JSON output
|
| 51 |
+
agent-browser snapshot -i -c -d 5 --json # + compact, depth limit
|
| 52 |
+
agent-browser snapshot -s "#main" -i # Scope to selector
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
### Interactions (Ref-based)
|
| 56 |
+
```bash
|
| 57 |
+
agent-browser click @e2
|
| 58 |
+
agent-browser fill @e3 "text"
|
| 59 |
+
agent-browser type @e3 "text"
|
| 60 |
+
agent-browser hover @e4
|
| 61 |
+
agent-browser check @e5 | uncheck @e5
|
| 62 |
+
agent-browser select @e6 "value"
|
| 63 |
+
agent-browser press "Enter"
|
| 64 |
+
agent-browser scroll down 500
|
| 65 |
+
agent-browser drag @e7 @e8
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Get Information
|
| 69 |
+
```bash
|
| 70 |
+
agent-browser get text @e1 --json
|
| 71 |
+
agent-browser get html @e2 --json
|
| 72 |
+
agent-browser get value @e3 --json
|
| 73 |
+
agent-browser get attr @e4 "href" --json
|
| 74 |
+
agent-browser get title --json
|
| 75 |
+
agent-browser get url --json
|
| 76 |
+
agent-browser get count ".item" --json
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
### Check State
|
| 80 |
+
```bash
|
| 81 |
+
agent-browser is visible @e2 --json
|
| 82 |
+
agent-browser is enabled @e3 --json
|
| 83 |
+
agent-browser is checked @e4 --json
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Wait
|
| 87 |
+
```bash
|
| 88 |
+
agent-browser wait @e2 # Wait for element
|
| 89 |
+
agent-browser wait 1000 # Wait ms
|
| 90 |
+
agent-browser wait --text "Welcome" # Wait for text
|
| 91 |
+
agent-browser wait --url "**/dashboard" # Wait for URL
|
| 92 |
+
agent-browser wait --load networkidle # Wait for network
|
| 93 |
+
agent-browser wait --fn "window.ready === true"
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
### Sessions (Isolated Browsers)
|
| 97 |
+
```bash
|
| 98 |
+
agent-browser --session admin open site.com
|
| 99 |
+
agent-browser --session user open site.com
|
| 100 |
+
agent-browser session list
|
| 101 |
+
# Or via env: AGENT_BROWSER_SESSION=admin agent-browser ...
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
### State Persistence
|
| 105 |
+
```bash
|
| 106 |
+
agent-browser state save auth.json # Save cookies/storage
|
| 107 |
+
agent-browser state load auth.json # Load (skip login)
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### Screenshots & PDFs
|
| 111 |
+
```bash
|
| 112 |
+
agent-browser screenshot page.png
|
| 113 |
+
agent-browser screenshot --full page.png
|
| 114 |
+
agent-browser pdf page.pdf
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
### Network Control
|
| 118 |
+
```bash
|
| 119 |
+
agent-browser network route "**/ads/*" --abort # Block
|
| 120 |
+
agent-browser network route "**/api/*" --body '{"x":1}' # Mock
|
| 121 |
+
agent-browser network requests --filter api # View
|
| 122 |
+
```
|
| 123 |
+
|
| 124 |
+
### Cookies & Storage
|
| 125 |
+
```bash
|
| 126 |
+
agent-browser cookies # Get all
|
| 127 |
+
agent-browser cookies set name value
|
| 128 |
+
agent-browser storage local key # Get localStorage
|
| 129 |
+
agent-browser storage local set key val
|
| 130 |
+
```
|
| 131 |
+
|
| 132 |
+
### Tabs & Frames
|
| 133 |
+
```bash
|
| 134 |
+
agent-browser tab new https://example.com
|
| 135 |
+
agent-browser tab 2 # Switch to tab
|
| 136 |
+
agent-browser frame @e5 # Switch to iframe
|
| 137 |
+
agent-browser frame main # Back to main
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
## Snapshot Output Format
|
| 141 |
+
|
| 142 |
+
```json
|
| 143 |
+
{
|
| 144 |
+
"success": true,
|
| 145 |
+
"data": {
|
| 146 |
+
"snapshot": "...",
|
| 147 |
+
"refs": {
|
| 148 |
+
"e1": {"role": "heading", "name": "Example Domain"},
|
| 149 |
+
"e2": {"role": "button", "name": "Submit"},
|
| 150 |
+
"e3": {"role": "textbox", "name": "Email"}
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
```
|
| 155 |
+
|
| 156 |
+
## Best Practices
|
| 157 |
+
|
| 158 |
+
1. **Always use `-i` flag** - Focus on interactive elements
|
| 159 |
+
2. **Always use `--json`** - Easier to parse
|
| 160 |
+
3. **Wait for stability** - `agent-browser wait --load networkidle`
|
| 161 |
+
4. **Save auth state** - Skip login flows with `state save/load`
|
| 162 |
+
5. **Use sessions** - Isolate different browser contexts
|
| 163 |
+
6. **Use `--headed` for debugging** - See what's happening
|
| 164 |
+
|
| 165 |
+
## Example: Search and Extract
|
| 166 |
+
|
| 167 |
+
```bash
|
| 168 |
+
agent-browser open https://www.google.com
|
| 169 |
+
agent-browser snapshot -i --json
|
| 170 |
+
# AI identifies search box @e1
|
| 171 |
+
agent-browser fill @e1 "AI agents"
|
| 172 |
+
agent-browser press Enter
|
| 173 |
+
agent-browser wait --load networkidle
|
| 174 |
+
agent-browser snapshot -i --json
|
| 175 |
+
# AI identifies result refs
|
| 176 |
+
agent-browser get text @e3 --json
|
| 177 |
+
agent-browser get attr @e4 "href" --json
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
## Example: Multi-Session Testing
|
| 181 |
+
|
| 182 |
+
```bash
|
| 183 |
+
# Admin session
|
| 184 |
+
agent-browser --session admin open app.com
|
| 185 |
+
agent-browser --session admin state load admin-auth.json
|
| 186 |
+
agent-browser --session admin snapshot -i --json
|
| 187 |
+
|
| 188 |
+
# User session (simultaneous)
|
| 189 |
+
agent-browser --session user open app.com
|
| 190 |
+
agent-browser --session user state load user-auth.json
|
| 191 |
+
agent-browser --session user snapshot -i --json
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
## Installation
|
| 195 |
+
|
| 196 |
+
```bash
|
| 197 |
+
npm install -g agent-browser
|
| 198 |
+
agent-browser install # Download Chromium
|
| 199 |
+
agent-browser install --with-deps # Linux: + system deps
|
| 200 |
+
```
|
| 201 |
+
|
| 202 |
+
## Credits
|
| 203 |
+
|
| 204 |
+
Skill created by Yossi Elkrief ([@MaTriXy](https://github.com/MaTriXy))
|
| 205 |
+
|
| 206 |
+
agent-browser CLI by [Vercel Labs](https://github.com/vercel-labs/agent-browser)
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/agent-browser/_meta.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ownerId": "kn7amrtkn0tjk2r2yxf3hjgp0s7zn6g4",
|
| 3 |
+
"slug": "agent-browser-clawdbot",
|
| 4 |
+
"version": "0.1.0",
|
| 5 |
+
"publishedAt": 1769032854381
|
| 6 |
+
}
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/ERRORS.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Errors Log
|
| 2 |
+
|
| 3 |
+
Command failures, exceptions, and unexpected behaviors.
|
| 4 |
+
|
| 5 |
+
---
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/FEATURE_REQUESTS.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Feature Requests
|
| 2 |
+
|
| 3 |
+
Capabilities requested by user that don't currently exist.
|
| 4 |
+
|
| 5 |
+
---
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/.learnings/LEARNINGS.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learnings Log
|
| 2 |
+
|
| 3 |
+
Captured learnings, corrections, and discoveries. Review before major tasks.
|
| 4 |
+
|
| 5 |
+
---
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/SKILL.md
ADDED
|
@@ -0,0 +1,647 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: self-improvement
|
| 3 |
+
description: "Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge is outdated or incorrect, (6) A better approach is discovered for a recurring task. Also review learnings before major tasks."
|
| 4 |
+
metadata:
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Self-Improvement Skill
|
| 8 |
+
|
| 9 |
+
Log learnings and errors to markdown files for continuous improvement. Coding agents can later process these into fixes, and important learnings get promoted to project memory.
|
| 10 |
+
|
| 11 |
+
## Quick Reference
|
| 12 |
+
|
| 13 |
+
| Situation | Action |
|
| 14 |
+
|-----------|--------|
|
| 15 |
+
| Command/operation fails | Log to `.learnings/ERRORS.md` |
|
| 16 |
+
| User corrects you | Log to `.learnings/LEARNINGS.md` with category `correction` |
|
| 17 |
+
| User wants missing feature | Log to `.learnings/FEATURE_REQUESTS.md` |
|
| 18 |
+
| API/external tool fails | Log to `.learnings/ERRORS.md` with integration details |
|
| 19 |
+
| Knowledge was outdated | Log to `.learnings/LEARNINGS.md` with category `knowledge_gap` |
|
| 20 |
+
| Found better approach | Log to `.learnings/LEARNINGS.md` with category `best_practice` |
|
| 21 |
+
| Simplify/Harden recurring patterns | Log/update `.learnings/LEARNINGS.md` with `Source: simplify-and-harden` and a stable `Pattern-Key` |
|
| 22 |
+
| Similar to existing entry | Link with `**See Also**`, consider priority bump |
|
| 23 |
+
| Broadly applicable learning | Promote to `CLAUDE.md`, `AGENTS.md`, and/or `.github/copilot-instructions.md` |
|
| 24 |
+
| Workflow improvements | Promote to `AGENTS.md` (OpenClaw workspace) |
|
| 25 |
+
| Tool gotchas | Promote to `TOOLS.md` (OpenClaw workspace) |
|
| 26 |
+
| Behavioral patterns | Promote to `SOUL.md` (OpenClaw workspace) |
|
| 27 |
+
|
| 28 |
+
## OpenClaw Setup (Recommended)
|
| 29 |
+
|
| 30 |
+
OpenClaw is the primary platform for this skill. It uses workspace-based prompt injection with automatic skill loading.
|
| 31 |
+
|
| 32 |
+
### Installation
|
| 33 |
+
|
| 34 |
+
**Via ClawdHub (recommended):**
|
| 35 |
+
```bash
|
| 36 |
+
clawdhub install self-improving-agent
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
**Manual:**
|
| 40 |
+
```bash
|
| 41 |
+
git clone https://github.com/peterskoett/self-improving-agent.git ~/.openclaw/skills/self-improving-agent
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Remade for openclaw from original repo : https://github.com/pskoett/pskoett-ai-skills - https://github.com/pskoett/pskoett-ai-skills/tree/main/skills/self-improvement
|
| 45 |
+
|
| 46 |
+
### Workspace Structure
|
| 47 |
+
|
| 48 |
+
OpenClaw injects these files into every session:
|
| 49 |
+
|
| 50 |
+
```
|
| 51 |
+
~/.openclaw/workspace/
|
| 52 |
+
├── AGENTS.md # Multi-agent workflows, delegation patterns
|
| 53 |
+
├── SOUL.md # Behavioral guidelines, personality, principles
|
| 54 |
+
├── TOOLS.md # Tool capabilities, integration gotchas
|
| 55 |
+
├── MEMORY.md # Long-term memory (main session only)
|
| 56 |
+
├── memory/ # Daily memory files
|
| 57 |
+
│ └── YYYY-MM-DD.md
|
| 58 |
+
└── .learnings/ # This skill's log files
|
| 59 |
+
├── LEARNINGS.md
|
| 60 |
+
├── ERRORS.md
|
| 61 |
+
└── FEATURE_REQUESTS.md
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
### Create Learning Files
|
| 65 |
+
|
| 66 |
+
```bash
|
| 67 |
+
mkdir -p ~/.openclaw/workspace/.learnings
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
Then create the log files (or copy from `assets/`):
|
| 71 |
+
- `LEARNINGS.md` — corrections, knowledge gaps, best practices
|
| 72 |
+
- `ERRORS.md` — command failures, exceptions
|
| 73 |
+
- `FEATURE_REQUESTS.md` — user-requested capabilities
|
| 74 |
+
|
| 75 |
+
### Promotion Targets
|
| 76 |
+
|
| 77 |
+
When learnings prove broadly applicable, promote them to workspace files:
|
| 78 |
+
|
| 79 |
+
| Learning Type | Promote To | Example |
|
| 80 |
+
|---------------|------------|---------|
|
| 81 |
+
| Behavioral patterns | `SOUL.md` | "Be concise, avoid disclaimers" |
|
| 82 |
+
| Workflow improvements | `AGENTS.md` | "Spawn sub-agents for long tasks" |
|
| 83 |
+
| Tool gotchas | `TOOLS.md` | "Git push needs auth configured first" |
|
| 84 |
+
|
| 85 |
+
### Inter-Session Communication
|
| 86 |
+
|
| 87 |
+
OpenClaw provides tools to share learnings across sessions:
|
| 88 |
+
|
| 89 |
+
- **sessions_list** — View active/recent sessions
|
| 90 |
+
- **sessions_history** — Read another session's transcript
|
| 91 |
+
- **sessions_send** — Send a learning to another session
|
| 92 |
+
- **sessions_spawn** — Spawn a sub-agent for background work
|
| 93 |
+
|
| 94 |
+
### Optional: Enable Hook
|
| 95 |
+
|
| 96 |
+
For automatic reminders at session start:
|
| 97 |
+
|
| 98 |
+
```bash
|
| 99 |
+
# Copy hook to OpenClaw hooks directory
|
| 100 |
+
cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
|
| 101 |
+
|
| 102 |
+
# Enable it
|
| 103 |
+
openclaw hooks enable self-improvement
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
See `references/openclaw-integration.md` for complete details.
|
| 107 |
+
|
| 108 |
+
---
|
| 109 |
+
|
| 110 |
+
## Generic Setup (Other Agents)
|
| 111 |
+
|
| 112 |
+
For Claude Code, Codex, Copilot, or other agents, create `.learnings/` in your project:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
mkdir -p .learnings
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Copy templates from `assets/` or create files with headers.
|
| 119 |
+
|
| 120 |
+
### Add reference to agent files AGENTS.md, CLAUDE.md, or .github/copilot-instructions.md to remind yourself to log learnings. (this is an alternative to hook-based reminders)
|
| 121 |
+
|
| 122 |
+
#### Self-Improvement Workflow
|
| 123 |
+
|
| 124 |
+
When errors or corrections occur:
|
| 125 |
+
1. Log to `.learnings/ERRORS.md`, `LEARNINGS.md`, or `FEATURE_REQUESTS.md`
|
| 126 |
+
2. Review and promote broadly applicable learnings to:
|
| 127 |
+
- `CLAUDE.md` - project facts and conventions
|
| 128 |
+
- `AGENTS.md` - workflows and automation
|
| 129 |
+
- `.github/copilot-instructions.md` - Copilot context
|
| 130 |
+
|
| 131 |
+
## Logging Format
|
| 132 |
+
|
| 133 |
+
### Learning Entry
|
| 134 |
+
|
| 135 |
+
Append to `.learnings/LEARNINGS.md`:
|
| 136 |
+
|
| 137 |
+
```markdown
|
| 138 |
+
## [LRN-YYYYMMDD-XXX] category
|
| 139 |
+
|
| 140 |
+
**Logged**: ISO-8601 timestamp
|
| 141 |
+
**Priority**: low | medium | high | critical
|
| 142 |
+
**Status**: pending
|
| 143 |
+
**Area**: frontend | backend | infra | tests | docs | config
|
| 144 |
+
|
| 145 |
+
### Summary
|
| 146 |
+
One-line description of what was learned
|
| 147 |
+
|
| 148 |
+
### Details
|
| 149 |
+
Full context: what happened, what was wrong, what's correct
|
| 150 |
+
|
| 151 |
+
### Suggested Action
|
| 152 |
+
Specific fix or improvement to make
|
| 153 |
+
|
| 154 |
+
### Metadata
|
| 155 |
+
- Source: conversation | error | user_feedback
|
| 156 |
+
- Related Files: path/to/file.ext
|
| 157 |
+
- Tags: tag1, tag2
|
| 158 |
+
- See Also: LRN-20250110-001 (if related to existing entry)
|
| 159 |
+
- Pattern-Key: simplify.dead_code | harden.input_validation (optional, for recurring-pattern tracking)
|
| 160 |
+
- Recurrence-Count: 1 (optional)
|
| 161 |
+
- First-Seen: 2025-01-15 (optional)
|
| 162 |
+
- Last-Seen: 2025-01-15 (optional)
|
| 163 |
+
|
| 164 |
+
---
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
### Error Entry
|
| 168 |
+
|
| 169 |
+
Append to `.learnings/ERRORS.md`:
|
| 170 |
+
|
| 171 |
+
```markdown
|
| 172 |
+
## [ERR-YYYYMMDD-XXX] skill_or_command_name
|
| 173 |
+
|
| 174 |
+
**Logged**: ISO-8601 timestamp
|
| 175 |
+
**Priority**: high
|
| 176 |
+
**Status**: pending
|
| 177 |
+
**Area**: frontend | backend | infra | tests | docs | config
|
| 178 |
+
|
| 179 |
+
### Summary
|
| 180 |
+
Brief description of what failed
|
| 181 |
+
|
| 182 |
+
### Error
|
| 183 |
+
```
|
| 184 |
+
Actual error message or output
|
| 185 |
+
```
|
| 186 |
+
|
| 187 |
+
### Context
|
| 188 |
+
- Command/operation attempted
|
| 189 |
+
- Input or parameters used
|
| 190 |
+
- Environment details if relevant
|
| 191 |
+
|
| 192 |
+
### Suggested Fix
|
| 193 |
+
If identifiable, what might resolve this
|
| 194 |
+
|
| 195 |
+
### Metadata
|
| 196 |
+
- Reproducible: yes | no | unknown
|
| 197 |
+
- Related Files: path/to/file.ext
|
| 198 |
+
- See Also: ERR-20250110-001 (if recurring)
|
| 199 |
+
|
| 200 |
+
---
|
| 201 |
+
```
|
| 202 |
+
|
| 203 |
+
### Feature Request Entry
|
| 204 |
+
|
| 205 |
+
Append to `.learnings/FEATURE_REQUESTS.md`:
|
| 206 |
+
|
| 207 |
+
```markdown
|
| 208 |
+
## [FEAT-YYYYMMDD-XXX] capability_name
|
| 209 |
+
|
| 210 |
+
**Logged**: ISO-8601 timestamp
|
| 211 |
+
**Priority**: medium
|
| 212 |
+
**Status**: pending
|
| 213 |
+
**Area**: frontend | backend | infra | tests | docs | config
|
| 214 |
+
|
| 215 |
+
### Requested Capability
|
| 216 |
+
What the user wanted to do
|
| 217 |
+
|
| 218 |
+
### User Context
|
| 219 |
+
Why they needed it, what problem they're solving
|
| 220 |
+
|
| 221 |
+
### Complexity Estimate
|
| 222 |
+
simple | medium | complex
|
| 223 |
+
|
| 224 |
+
### Suggested Implementation
|
| 225 |
+
How this could be built, what it might extend
|
| 226 |
+
|
| 227 |
+
### Metadata
|
| 228 |
+
- Frequency: first_time | recurring
|
| 229 |
+
- Related Features: existing_feature_name
|
| 230 |
+
|
| 231 |
+
---
|
| 232 |
+
```
|
| 233 |
+
|
| 234 |
+
## ID Generation
|
| 235 |
+
|
| 236 |
+
Format: `TYPE-YYYYMMDD-XXX`
|
| 237 |
+
- TYPE: `LRN` (learning), `ERR` (error), `FEAT` (feature)
|
| 238 |
+
- YYYYMMDD: Current date
|
| 239 |
+
- XXX: Sequential number or random 3 chars (e.g., `001`, `A7B`)
|
| 240 |
+
|
| 241 |
+
Examples: `LRN-20250115-001`, `ERR-20250115-A3F`, `FEAT-20250115-002`
|
| 242 |
+
|
| 243 |
+
## Resolving Entries
|
| 244 |
+
|
| 245 |
+
When an issue is fixed, update the entry:
|
| 246 |
+
|
| 247 |
+
1. Change `**Status**: pending` → `**Status**: resolved`
|
| 248 |
+
2. Add resolution block after Metadata:
|
| 249 |
+
|
| 250 |
+
```markdown
|
| 251 |
+
### Resolution
|
| 252 |
+
- **Resolved**: 2025-01-16T09:00:00Z
|
| 253 |
+
- **Commit/PR**: abc123 or #42
|
| 254 |
+
- **Notes**: Brief description of what was done
|
| 255 |
+
```
|
| 256 |
+
|
| 257 |
+
Other status values:
|
| 258 |
+
- `in_progress` - Actively being worked on
|
| 259 |
+
- `wont_fix` - Decided not to address (add reason in Resolution notes)
|
| 260 |
+
- `promoted` - Elevated to CLAUDE.md, AGENTS.md, or .github/copilot-instructions.md
|
| 261 |
+
|
| 262 |
+
## Promoting to Project Memory
|
| 263 |
+
|
| 264 |
+
When a learning is broadly applicable (not a one-off fix), promote it to permanent project memory.
|
| 265 |
+
|
| 266 |
+
### When to Promote
|
| 267 |
+
|
| 268 |
+
- Learning applies across multiple files/features
|
| 269 |
+
- Knowledge any contributor (human or AI) should know
|
| 270 |
+
- Prevents recurring mistakes
|
| 271 |
+
- Documents project-specific conventions
|
| 272 |
+
|
| 273 |
+
### Promotion Targets
|
| 274 |
+
|
| 275 |
+
| Target | What Belongs There |
|
| 276 |
+
|--------|-------------------|
|
| 277 |
+
| `CLAUDE.md` | Project facts, conventions, gotchas for all Claude interactions |
|
| 278 |
+
| `AGENTS.md` | Agent-specific workflows, tool usage patterns, automation rules |
|
| 279 |
+
| `.github/copilot-instructions.md` | Project context and conventions for GitHub Copilot |
|
| 280 |
+
| `SOUL.md` | Behavioral guidelines, communication style, principles (OpenClaw workspace) |
|
| 281 |
+
| `TOOLS.md` | Tool capabilities, usage patterns, integration gotchas (OpenClaw workspace) |
|
| 282 |
+
|
| 283 |
+
### How to Promote
|
| 284 |
+
|
| 285 |
+
1. **Distill** the learning into a concise rule or fact
|
| 286 |
+
2. **Add** to appropriate section in target file (create file if needed)
|
| 287 |
+
3. **Update** original entry:
|
| 288 |
+
- Change `**Status**: pending` → `**Status**: promoted`
|
| 289 |
+
- Add `**Promoted**: CLAUDE.md`, `AGENTS.md`, or `.github/copilot-instructions.md`
|
| 290 |
+
|
| 291 |
+
### Promotion Examples
|
| 292 |
+
|
| 293 |
+
**Learning** (verbose):
|
| 294 |
+
> Project uses pnpm workspaces. Attempted `npm install` but failed.
|
| 295 |
+
> Lock file is `pnpm-lock.yaml`. Must use `pnpm install`.
|
| 296 |
+
|
| 297 |
+
**In CLAUDE.md** (concise):
|
| 298 |
+
```markdown
|
| 299 |
+
## Build & Dependencies
|
| 300 |
+
- Package manager: pnpm (not npm) - use `pnpm install`
|
| 301 |
+
```
|
| 302 |
+
|
| 303 |
+
**Learning** (verbose):
|
| 304 |
+
> When modifying API endpoints, must regenerate TypeScript client.
|
| 305 |
+
> Forgetting this causes type mismatches at runtime.
|
| 306 |
+
|
| 307 |
+
**In AGENTS.md** (actionable):
|
| 308 |
+
```markdown
|
| 309 |
+
## After API Changes
|
| 310 |
+
1. Regenerate client: `pnpm run generate:api`
|
| 311 |
+
2. Check for type errors: `pnpm tsc --noEmit`
|
| 312 |
+
```
|
| 313 |
+
|
| 314 |
+
## Recurring Pattern Detection
|
| 315 |
+
|
| 316 |
+
If logging something similar to an existing entry:
|
| 317 |
+
|
| 318 |
+
1. **Search first**: `grep -r "keyword" .learnings/`
|
| 319 |
+
2. **Link entries**: Add `**See Also**: ERR-20250110-001` in Metadata
|
| 320 |
+
3. **Bump priority** if issue keeps recurring
|
| 321 |
+
4. **Consider systemic fix**: Recurring issues often indicate:
|
| 322 |
+
- Missing documentation (→ promote to CLAUDE.md or .github/copilot-instructions.md)
|
| 323 |
+
- Missing automation (→ add to AGENTS.md)
|
| 324 |
+
- Architectural problem (→ create tech debt ticket)
|
| 325 |
+
|
| 326 |
+
## Simplify & Harden Feed
|
| 327 |
+
|
| 328 |
+
Use this workflow to ingest recurring patterns from the `simplify-and-harden`
|
| 329 |
+
skill and turn them into durable prompt guidance.
|
| 330 |
+
|
| 331 |
+
### Ingestion Workflow
|
| 332 |
+
|
| 333 |
+
1. Read `simplify_and_harden.learning_loop.candidates` from the task summary.
|
| 334 |
+
2. For each candidate, use `pattern_key` as the stable dedupe key.
|
| 335 |
+
3. Search `.learnings/LEARNINGS.md` for an existing entry with that key:
|
| 336 |
+
- `grep -n "Pattern-Key: <pattern_key>" .learnings/LEARNINGS.md`
|
| 337 |
+
4. If found:
|
| 338 |
+
- Increment `Recurrence-Count`
|
| 339 |
+
- Update `Last-Seen`
|
| 340 |
+
- Add `See Also` links to related entries/tasks
|
| 341 |
+
5. If not found:
|
| 342 |
+
- Create a new `LRN-...` entry
|
| 343 |
+
- Set `Source: simplify-and-harden`
|
| 344 |
+
- Set `Pattern-Key`, `Recurrence-Count: 1`, and `First-Seen`/`Last-Seen`
|
| 345 |
+
|
| 346 |
+
### Promotion Rule (System Prompt Feedback)
|
| 347 |
+
|
| 348 |
+
Promote recurring patterns into agent context/system prompt files when all are true:
|
| 349 |
+
|
| 350 |
+
- `Recurrence-Count >= 3`
|
| 351 |
+
- Seen across at least 2 distinct tasks
|
| 352 |
+
- Occurred within a 30-day window
|
| 353 |
+
|
| 354 |
+
Promotion targets:
|
| 355 |
+
- `CLAUDE.md`
|
| 356 |
+
- `AGENTS.md`
|
| 357 |
+
- `.github/copilot-instructions.md`
|
| 358 |
+
- `SOUL.md` / `TOOLS.md` for OpenClaw workspace-level guidance when applicable
|
| 359 |
+
|
| 360 |
+
Write promoted rules as short prevention rules (what to do before/while coding),
|
| 361 |
+
not long incident write-ups.
|
| 362 |
+
|
| 363 |
+
## Periodic Review
|
| 364 |
+
|
| 365 |
+
Review `.learnings/` at natural breakpoints:
|
| 366 |
+
|
| 367 |
+
### When to Review
|
| 368 |
+
- Before starting a new major task
|
| 369 |
+
- After completing a feature
|
| 370 |
+
- When working in an area with past learnings
|
| 371 |
+
- Weekly during active development
|
| 372 |
+
|
| 373 |
+
### Quick Status Check
|
| 374 |
+
```bash
|
| 375 |
+
# Count pending items
|
| 376 |
+
grep -h "Status\*\*: pending" .learnings/*.md | wc -l
|
| 377 |
+
|
| 378 |
+
# List pending high-priority items
|
| 379 |
+
grep -B5 "Priority\*\*: high" .learnings/*.md | grep "^## \["
|
| 380 |
+
|
| 381 |
+
# Find learnings for a specific area
|
| 382 |
+
grep -l "Area\*\*: backend" .learnings/*.md
|
| 383 |
+
```
|
| 384 |
+
|
| 385 |
+
### Review Actions
|
| 386 |
+
- Resolve fixed items
|
| 387 |
+
- Promote applicable learnings
|
| 388 |
+
- Link related entries
|
| 389 |
+
- Escalate recurring issues
|
| 390 |
+
|
| 391 |
+
## Detection Triggers
|
| 392 |
+
|
| 393 |
+
Automatically log when you notice:
|
| 394 |
+
|
| 395 |
+
**Corrections** (→ learning with `correction` category):
|
| 396 |
+
- "No, that's not right..."
|
| 397 |
+
- "Actually, it should be..."
|
| 398 |
+
- "You're wrong about..."
|
| 399 |
+
- "That's outdated..."
|
| 400 |
+
|
| 401 |
+
**Feature Requests** (→ feature request):
|
| 402 |
+
- "Can you also..."
|
| 403 |
+
- "I wish you could..."
|
| 404 |
+
- "Is there a way to..."
|
| 405 |
+
- "Why can't you..."
|
| 406 |
+
|
| 407 |
+
**Knowledge Gaps** (→ learning with `knowledge_gap` category):
|
| 408 |
+
- User provides information you didn't know
|
| 409 |
+
- Documentation you referenced is outdated
|
| 410 |
+
- API behavior differs from your understanding
|
| 411 |
+
|
| 412 |
+
**Errors** (→ error entry):
|
| 413 |
+
- Command returns non-zero exit code
|
| 414 |
+
- Exception or stack trace
|
| 415 |
+
- Unexpected output or behavior
|
| 416 |
+
- Timeout or connection failure
|
| 417 |
+
|
| 418 |
+
## Priority Guidelines
|
| 419 |
+
|
| 420 |
+
| Priority | When to Use |
|
| 421 |
+
|----------|-------------|
|
| 422 |
+
| `critical` | Blocks core functionality, data loss risk, security issue |
|
| 423 |
+
| `high` | Significant impact, affects common workflows, recurring issue |
|
| 424 |
+
| `medium` | Moderate impact, workaround exists |
|
| 425 |
+
| `low` | Minor inconvenience, edge case, nice-to-have |
|
| 426 |
+
|
| 427 |
+
## Area Tags
|
| 428 |
+
|
| 429 |
+
Use to filter learnings by codebase region:
|
| 430 |
+
|
| 431 |
+
| Area | Scope |
|
| 432 |
+
|------|-------|
|
| 433 |
+
| `frontend` | UI, components, client-side code |
|
| 434 |
+
| `backend` | API, services, server-side code |
|
| 435 |
+
| `infra` | CI/CD, deployment, Docker, cloud |
|
| 436 |
+
| `tests` | Test files, testing utilities, coverage |
|
| 437 |
+
| `docs` | Documentation, comments, READMEs |
|
| 438 |
+
| `config` | Configuration files, environment, settings |
|
| 439 |
+
|
| 440 |
+
## Best Practices
|
| 441 |
+
|
| 442 |
+
1. **Log immediately** - context is freshest right after the issue
|
| 443 |
+
2. **Be specific** - future agents need to understand quickly
|
| 444 |
+
3. **Include reproduction steps** - especially for errors
|
| 445 |
+
4. **Link related files** - makes fixes easier
|
| 446 |
+
5. **Suggest concrete fixes** - not just "investigate"
|
| 447 |
+
6. **Use consistent categories** - enables filtering
|
| 448 |
+
7. **Promote aggressively** - if in doubt, add to CLAUDE.md or .github/copilot-instructions.md
|
| 449 |
+
8. **Review regularly** - stale learnings lose value
|
| 450 |
+
|
| 451 |
+
## Gitignore Options
|
| 452 |
+
|
| 453 |
+
**Keep learnings local** (per-developer):
|
| 454 |
+
```gitignore
|
| 455 |
+
.learnings/
|
| 456 |
+
```
|
| 457 |
+
|
| 458 |
+
**Track learnings in repo** (team-wide):
|
| 459 |
+
Don't add to .gitignore - learnings become shared knowledge.
|
| 460 |
+
|
| 461 |
+
**Hybrid** (track templates, ignore entries):
|
| 462 |
+
```gitignore
|
| 463 |
+
.learnings/*.md
|
| 464 |
+
!.learnings/.gitkeep
|
| 465 |
+
```
|
| 466 |
+
|
| 467 |
+
## Hook Integration
|
| 468 |
+
|
| 469 |
+
Enable automatic reminders through agent hooks. This is **opt-in** - you must explicitly configure hooks.
|
| 470 |
+
|
| 471 |
+
### Quick Setup (Claude Code / Codex)
|
| 472 |
+
|
| 473 |
+
Create `.claude/settings.json` in your project:
|
| 474 |
+
|
| 475 |
+
```json
|
| 476 |
+
{
|
| 477 |
+
"hooks": {
|
| 478 |
+
"UserPromptSubmit": [{
|
| 479 |
+
"matcher": "",
|
| 480 |
+
"hooks": [{
|
| 481 |
+
"type": "command",
|
| 482 |
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
| 483 |
+
}]
|
| 484 |
+
}]
|
| 485 |
+
}
|
| 486 |
+
}
|
| 487 |
+
```
|
| 488 |
+
|
| 489 |
+
This injects a learning evaluation reminder after each prompt (~50-100 tokens overhead).
|
| 490 |
+
|
| 491 |
+
### Full Setup (With Error Detection)
|
| 492 |
+
|
| 493 |
+
```json
|
| 494 |
+
{
|
| 495 |
+
"hooks": {
|
| 496 |
+
"UserPromptSubmit": [{
|
| 497 |
+
"matcher": "",
|
| 498 |
+
"hooks": [{
|
| 499 |
+
"type": "command",
|
| 500 |
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
| 501 |
+
}]
|
| 502 |
+
}],
|
| 503 |
+
"PostToolUse": [{
|
| 504 |
+
"matcher": "Bash",
|
| 505 |
+
"hooks": [{
|
| 506 |
+
"type": "command",
|
| 507 |
+
"command": "./skills/self-improvement/scripts/error-detector.sh"
|
| 508 |
+
}]
|
| 509 |
+
}]
|
| 510 |
+
}
|
| 511 |
+
}
|
| 512 |
+
```
|
| 513 |
+
|
| 514 |
+
### Available Hook Scripts
|
| 515 |
+
|
| 516 |
+
| Script | Hook Type | Purpose |
|
| 517 |
+
|--------|-----------|---------|
|
| 518 |
+
| `scripts/activator.sh` | UserPromptSubmit | Reminds to evaluate learnings after tasks |
|
| 519 |
+
| `scripts/error-detector.sh` | PostToolUse (Bash) | Triggers on command errors |
|
| 520 |
+
|
| 521 |
+
See `references/hooks-setup.md` for detailed configuration and troubleshooting.
|
| 522 |
+
|
| 523 |
+
## Automatic Skill Extraction
|
| 524 |
+
|
| 525 |
+
When a learning is valuable enough to become a reusable skill, extract it using the provided helper.
|
| 526 |
+
|
| 527 |
+
### Skill Extraction Criteria
|
| 528 |
+
|
| 529 |
+
A learning qualifies for skill extraction when ANY of these apply:
|
| 530 |
+
|
| 531 |
+
| Criterion | Description |
|
| 532 |
+
|-----------|-------------|
|
| 533 |
+
| **Recurring** | Has `See Also` links to 2+ similar issues |
|
| 534 |
+
| **Verified** | Status is `resolved` with working fix |
|
| 535 |
+
| **Non-obvious** | Required actual debugging/investigation to discover |
|
| 536 |
+
| **Broadly applicable** | Not project-specific; useful across codebases |
|
| 537 |
+
| **User-flagged** | User says "save this as a skill" or similar |
|
| 538 |
+
|
| 539 |
+
### Extraction Workflow
|
| 540 |
+
|
| 541 |
+
1. **Identify candidate**: Learning meets extraction criteria
|
| 542 |
+
2. **Run helper** (or create manually):
|
| 543 |
+
```bash
|
| 544 |
+
./skills/self-improvement/scripts/extract-skill.sh skill-name --dry-run
|
| 545 |
+
./skills/self-improvement/scripts/extract-skill.sh skill-name
|
| 546 |
+
```
|
| 547 |
+
3. **Customize SKILL.md**: Fill in template with learning content
|
| 548 |
+
4. **Update learning**: Set status to `promoted_to_skill`, add `Skill-Path`
|
| 549 |
+
5. **Verify**: Read skill in fresh session to ensure it's self-contained
|
| 550 |
+
|
| 551 |
+
### Manual Extraction
|
| 552 |
+
|
| 553 |
+
If you prefer manual creation:
|
| 554 |
+
|
| 555 |
+
1. Create `skills/<skill-name>/SKILL.md`
|
| 556 |
+
2. Use template from `assets/SKILL-TEMPLATE.md`
|
| 557 |
+
3. Follow [Agent Skills spec](https://agentskills.io/specification):
|
| 558 |
+
- YAML frontmatter with `name` and `description`
|
| 559 |
+
- Name must match folder name
|
| 560 |
+
- No README.md inside skill folder
|
| 561 |
+
|
| 562 |
+
### Extraction Detection Triggers
|
| 563 |
+
|
| 564 |
+
Watch for these signals that a learning should become a skill:
|
| 565 |
+
|
| 566 |
+
**In conversation:**
|
| 567 |
+
- "Save this as a skill"
|
| 568 |
+
- "I keep running into this"
|
| 569 |
+
- "This would be useful for other projects"
|
| 570 |
+
- "Remember this pattern"
|
| 571 |
+
|
| 572 |
+
**In learning entries:**
|
| 573 |
+
- Multiple `See Also` links (recurring issue)
|
| 574 |
+
- High priority + resolved status
|
| 575 |
+
- Category: `best_practice` with broad applicability
|
| 576 |
+
- User feedback praising the solution
|
| 577 |
+
|
| 578 |
+
### Skill Quality Gates
|
| 579 |
+
|
| 580 |
+
Before extraction, verify:
|
| 581 |
+
|
| 582 |
+
- [ ] Solution is tested and working
|
| 583 |
+
- [ ] Description is clear without original context
|
| 584 |
+
- [ ] Code examples are self-contained
|
| 585 |
+
- [ ] No project-specific hardcoded values
|
| 586 |
+
- [ ] Follows skill naming conventions (lowercase, hyphens)
|
| 587 |
+
|
| 588 |
+
## Multi-Agent Support
|
| 589 |
+
|
| 590 |
+
This skill works across different AI coding agents with agent-specific activation.
|
| 591 |
+
|
| 592 |
+
### Claude Code
|
| 593 |
+
|
| 594 |
+
**Activation**: Hooks (UserPromptSubmit, PostToolUse)
|
| 595 |
+
**Setup**: `.claude/settings.json` with hook configuration
|
| 596 |
+
**Detection**: Automatic via hook scripts
|
| 597 |
+
|
| 598 |
+
### Codex CLI
|
| 599 |
+
|
| 600 |
+
**Activation**: Hooks (same pattern as Claude Code)
|
| 601 |
+
**Setup**: `.codex/settings.json` with hook configuration
|
| 602 |
+
**Detection**: Automatic via hook scripts
|
| 603 |
+
|
| 604 |
+
### GitHub Copilot
|
| 605 |
+
|
| 606 |
+
**Activation**: Manual (no hook support)
|
| 607 |
+
**Setup**: Add to `.github/copilot-instructions.md`:
|
| 608 |
+
|
| 609 |
+
```markdown
|
| 610 |
+
## Self-Improvement
|
| 611 |
+
|
| 612 |
+
After solving non-obvious issues, consider logging to `.learnings/`:
|
| 613 |
+
1. Use format from self-improvement skill
|
| 614 |
+
2. Link related entries with See Also
|
| 615 |
+
3. Promote high-value learnings to skills
|
| 616 |
+
|
| 617 |
+
Ask in chat: "Should I log this as a learning?"
|
| 618 |
+
```
|
| 619 |
+
|
| 620 |
+
**Detection**: Manual review at session end
|
| 621 |
+
|
| 622 |
+
### OpenClaw
|
| 623 |
+
|
| 624 |
+
**Activation**: Workspace injection + inter-agent messaging
|
| 625 |
+
**Setup**: See "OpenClaw Setup" section above
|
| 626 |
+
**Detection**: Via session tools and workspace files
|
| 627 |
+
|
| 628 |
+
### Agent-Agnostic Guidance
|
| 629 |
+
|
| 630 |
+
Regardless of agent, apply self-improvement when you:
|
| 631 |
+
|
| 632 |
+
1. **Discover something non-obvious** - solution wasn't immediate
|
| 633 |
+
2. **Correct yourself** - initial approach was wrong
|
| 634 |
+
3. **Learn project conventions** - discovered undocumented patterns
|
| 635 |
+
4. **Hit unexpected errors** - especially if diagnosis was difficult
|
| 636 |
+
5. **Find better approaches** - improved on your original solution
|
| 637 |
+
|
| 638 |
+
### Copilot Chat Integration
|
| 639 |
+
|
| 640 |
+
For Copilot users, add this to your prompts when relevant:
|
| 641 |
+
|
| 642 |
+
> After completing this task, evaluate if any learnings should be logged to `.learnings/` using the self-improvement skill format.
|
| 643 |
+
|
| 644 |
+
Or use quick prompts:
|
| 645 |
+
- "Log this to learnings"
|
| 646 |
+
- "Create a skill from this solution"
|
| 647 |
+
- "Check .learnings/ for related issues"
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/_meta.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"ownerId": "kn70cjr952qdec1nx70zs6wefn7ynq2t",
|
| 3 |
+
"slug": "self-improving-agent",
|
| 4 |
+
"version": "3.0.5",
|
| 5 |
+
"publishedAt": 1773760428300
|
| 6 |
+
}
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/assets/LEARNINGS.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Learnings
|
| 2 |
+
|
| 3 |
+
Corrections, insights, and knowledge gaps captured during development.
|
| 4 |
+
|
| 5 |
+
**Categories**: correction | insight | knowledge_gap | best_practice
|
| 6 |
+
**Areas**: frontend | backend | infra | tests | docs | config
|
| 7 |
+
**Statuses**: pending | in_progress | resolved | wont_fix | promoted | promoted_to_skill
|
| 8 |
+
|
| 9 |
+
## Status Definitions
|
| 10 |
+
|
| 11 |
+
| Status | Meaning |
|
| 12 |
+
|--------|---------|
|
| 13 |
+
| `pending` | Not yet addressed |
|
| 14 |
+
| `in_progress` | Actively being worked on |
|
| 15 |
+
| `resolved` | Issue fixed or knowledge integrated |
|
| 16 |
+
| `wont_fix` | Decided not to address (reason in Resolution) |
|
| 17 |
+
| `promoted` | Elevated to CLAUDE.md, AGENTS.md, or copilot-instructions.md |
|
| 18 |
+
| `promoted_to_skill` | Extracted as a reusable skill |
|
| 19 |
+
|
| 20 |
+
## Skill Extraction Fields
|
| 21 |
+
|
| 22 |
+
When a learning is promoted to a skill, add these fields:
|
| 23 |
+
|
| 24 |
+
```markdown
|
| 25 |
+
**Status**: promoted_to_skill
|
| 26 |
+
**Skill-Path**: skills/skill-name
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
Example:
|
| 30 |
+
```markdown
|
| 31 |
+
## [LRN-20250115-001] best_practice
|
| 32 |
+
|
| 33 |
+
**Logged**: 2025-01-15T10:00:00Z
|
| 34 |
+
**Priority**: high
|
| 35 |
+
**Status**: promoted_to_skill
|
| 36 |
+
**Skill-Path**: skills/docker-m1-fixes
|
| 37 |
+
**Area**: infra
|
| 38 |
+
|
| 39 |
+
### Summary
|
| 40 |
+
Docker build fails on Apple Silicon due to platform mismatch
|
| 41 |
+
...
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/assets/SKILL-TEMPLATE.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Skill Template
|
| 2 |
+
|
| 3 |
+
Template for creating skills extracted from learnings. Copy and customize.
|
| 4 |
+
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
## SKILL.md Template
|
| 8 |
+
|
| 9 |
+
```markdown
|
| 10 |
+
---
|
| 11 |
+
name: skill-name-here
|
| 12 |
+
description: "Concise description of when and why to use this skill. Include trigger conditions."
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Skill Name
|
| 16 |
+
|
| 17 |
+
Brief introduction explaining the problem this skill solves and its origin.
|
| 18 |
+
|
| 19 |
+
## Quick Reference
|
| 20 |
+
|
| 21 |
+
| Situation | Action |
|
| 22 |
+
|-----------|--------|
|
| 23 |
+
| [Trigger 1] | [Action 1] |
|
| 24 |
+
| [Trigger 2] | [Action 2] |
|
| 25 |
+
|
| 26 |
+
## Background
|
| 27 |
+
|
| 28 |
+
Why this knowledge matters. What problems it prevents. Context from the original learning.
|
| 29 |
+
|
| 30 |
+
## Solution
|
| 31 |
+
|
| 32 |
+
### Step-by-Step
|
| 33 |
+
|
| 34 |
+
1. First step with code or command
|
| 35 |
+
2. Second step
|
| 36 |
+
3. Verification step
|
| 37 |
+
|
| 38 |
+
### Code Example
|
| 39 |
+
|
| 40 |
+
\`\`\`language
|
| 41 |
+
// Example code demonstrating the solution
|
| 42 |
+
\`\`\`
|
| 43 |
+
|
| 44 |
+
## Common Variations
|
| 45 |
+
|
| 46 |
+
- **Variation A**: Description and how to handle
|
| 47 |
+
- **Variation B**: Description and how to handle
|
| 48 |
+
|
| 49 |
+
## Gotchas
|
| 50 |
+
|
| 51 |
+
- Warning or common mistake #1
|
| 52 |
+
- Warning or common mistake #2
|
| 53 |
+
|
| 54 |
+
## Related
|
| 55 |
+
|
| 56 |
+
- Link to related documentation
|
| 57 |
+
- Link to related skill
|
| 58 |
+
|
| 59 |
+
## Source
|
| 60 |
+
|
| 61 |
+
Extracted from learning entry.
|
| 62 |
+
- **Learning ID**: LRN-YYYYMMDD-XXX
|
| 63 |
+
- **Original Category**: correction | insight | knowledge_gap | best_practice
|
| 64 |
+
- **Extraction Date**: YYYY-MM-DD
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Minimal Template
|
| 70 |
+
|
| 71 |
+
For simple skills that don't need all sections:
|
| 72 |
+
|
| 73 |
+
```markdown
|
| 74 |
+
---
|
| 75 |
+
name: skill-name-here
|
| 76 |
+
description: "What this skill does and when to use it."
|
| 77 |
+
---
|
| 78 |
+
|
| 79 |
+
# Skill Name
|
| 80 |
+
|
| 81 |
+
[Problem statement in one sentence]
|
| 82 |
+
|
| 83 |
+
## Solution
|
| 84 |
+
|
| 85 |
+
[Direct solution with code/commands]
|
| 86 |
+
|
| 87 |
+
## Source
|
| 88 |
+
|
| 89 |
+
- Learning ID: LRN-YYYYMMDD-XXX
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Template with Scripts
|
| 95 |
+
|
| 96 |
+
For skills that include executable helpers:
|
| 97 |
+
|
| 98 |
+
```markdown
|
| 99 |
+
---
|
| 100 |
+
name: skill-name-here
|
| 101 |
+
description: "What this skill does and when to use it."
|
| 102 |
+
---
|
| 103 |
+
|
| 104 |
+
# Skill Name
|
| 105 |
+
|
| 106 |
+
[Introduction]
|
| 107 |
+
|
| 108 |
+
## Quick Reference
|
| 109 |
+
|
| 110 |
+
| Command | Purpose |
|
| 111 |
+
|---------|---------|
|
| 112 |
+
| `./scripts/helper.sh` | [What it does] |
|
| 113 |
+
| `./scripts/validate.sh` | [What it does] |
|
| 114 |
+
|
| 115 |
+
## Usage
|
| 116 |
+
|
| 117 |
+
### Automated (Recommended)
|
| 118 |
+
|
| 119 |
+
\`\`\`bash
|
| 120 |
+
./skills/skill-name/scripts/helper.sh [args]
|
| 121 |
+
\`\`\`
|
| 122 |
+
|
| 123 |
+
### Manual Steps
|
| 124 |
+
|
| 125 |
+
1. Step one
|
| 126 |
+
2. Step two
|
| 127 |
+
|
| 128 |
+
## Scripts
|
| 129 |
+
|
| 130 |
+
| Script | Description |
|
| 131 |
+
|--------|-------------|
|
| 132 |
+
| `scripts/helper.sh` | Main utility |
|
| 133 |
+
| `scripts/validate.sh` | Validation checker |
|
| 134 |
+
|
| 135 |
+
## Source
|
| 136 |
+
|
| 137 |
+
- Learning ID: LRN-YYYYMMDD-XXX
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
---
|
| 141 |
+
|
| 142 |
+
## Naming Conventions
|
| 143 |
+
|
| 144 |
+
- **Skill name**: lowercase, hyphens for spaces
|
| 145 |
+
- Good: `docker-m1-fixes`, `api-timeout-patterns`
|
| 146 |
+
- Bad: `Docker_M1_Fixes`, `APITimeoutPatterns`
|
| 147 |
+
|
| 148 |
+
- **Description**: Start with action verb, mention trigger
|
| 149 |
+
- Good: "Handles Docker build failures on Apple Silicon. Use when builds fail with platform mismatch."
|
| 150 |
+
- Bad: "Docker stuff"
|
| 151 |
+
|
| 152 |
+
- **Files**:
|
| 153 |
+
- `SKILL.md` - Required, main documentation
|
| 154 |
+
- `scripts/` - Optional, executable code
|
| 155 |
+
- `references/` - Optional, detailed docs
|
| 156 |
+
- `assets/` - Optional, templates
|
| 157 |
+
|
| 158 |
+
---
|
| 159 |
+
|
| 160 |
+
## Extraction Checklist
|
| 161 |
+
|
| 162 |
+
Before creating a skill from a learning:
|
| 163 |
+
|
| 164 |
+
- [ ] Learning is verified (status: resolved)
|
| 165 |
+
- [ ] Solution is broadly applicable (not one-off)
|
| 166 |
+
- [ ] Content is complete (has all needed context)
|
| 167 |
+
- [ ] Name follows conventions
|
| 168 |
+
- [ ] Description is concise but informative
|
| 169 |
+
- [ ] Quick Reference table is actionable
|
| 170 |
+
- [ ] Code examples are tested
|
| 171 |
+
- [ ] Source learning ID is recorded
|
| 172 |
+
|
| 173 |
+
After creating:
|
| 174 |
+
|
| 175 |
+
- [ ] Update original learning with `promoted_to_skill` status
|
| 176 |
+
- [ ] Add `Skill-Path: skills/skill-name` to learning metadata
|
| 177 |
+
- [ ] Test skill by reading it in a fresh session
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/HOOK.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: self-improvement
|
| 3 |
+
description: "Injects self-improvement reminder during agent bootstrap"
|
| 4 |
+
metadata: {"openclaw":{"emoji":"🧠","events":["agent:bootstrap"]}}
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
+
# Self-Improvement Hook
|
| 8 |
+
|
| 9 |
+
Injects a reminder to evaluate learnings during agent bootstrap.
|
| 10 |
+
|
| 11 |
+
## What It Does
|
| 12 |
+
|
| 13 |
+
- Fires on `agent:bootstrap` (before workspace files are injected)
|
| 14 |
+
- Adds a reminder block to check `.learnings/` for relevant entries
|
| 15 |
+
- Prompts the agent to log corrections, errors, and discoveries
|
| 16 |
+
|
| 17 |
+
## Configuration
|
| 18 |
+
|
| 19 |
+
No configuration needed. Enable with:
|
| 20 |
+
|
| 21 |
+
```bash
|
| 22 |
+
openclaw hooks enable self-improvement
|
| 23 |
+
```
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/handler.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Self-Improvement Hook for OpenClaw
|
| 3 |
+
*
|
| 4 |
+
* Injects a reminder to evaluate learnings during agent bootstrap.
|
| 5 |
+
* Fires on agent:bootstrap event before workspace files are injected.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
const REMINDER_CONTENT = `
|
| 9 |
+
## Self-Improvement Reminder
|
| 10 |
+
|
| 11 |
+
After completing tasks, evaluate if any learnings should be captured:
|
| 12 |
+
|
| 13 |
+
**Log when:**
|
| 14 |
+
- User corrects you → \`.learnings/LEARNINGS.md\`
|
| 15 |
+
- Command/operation fails → \`.learnings/ERRORS.md\`
|
| 16 |
+
- User wants missing capability → \`.learnings/FEATURE_REQUESTS.md\`
|
| 17 |
+
- You discover your knowledge was wrong → \`.learnings/LEARNINGS.md\`
|
| 18 |
+
- You find a better approach → \`.learnings/LEARNINGS.md\`
|
| 19 |
+
|
| 20 |
+
**Promote when pattern is proven:**
|
| 21 |
+
- Behavioral patterns → \`SOUL.md\`
|
| 22 |
+
- Workflow improvements → \`AGENTS.md\`
|
| 23 |
+
- Tool gotchas → \`TOOLS.md\`
|
| 24 |
+
|
| 25 |
+
Keep entries simple: date, title, what happened, what to do differently.
|
| 26 |
+
`.trim();
|
| 27 |
+
|
| 28 |
+
const handler = async (event) => {
|
| 29 |
+
// Safety checks for event structure
|
| 30 |
+
if (!event || typeof event !== 'object') {
|
| 31 |
+
return;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// Only handle agent:bootstrap events
|
| 35 |
+
if (event.type !== 'agent' || event.action !== 'bootstrap') {
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
// Safety check for context
|
| 40 |
+
if (!event.context || typeof event.context !== 'object') {
|
| 41 |
+
return;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
// Inject the reminder as a virtual bootstrap file
|
| 45 |
+
// Check that bootstrapFiles is an array before pushing
|
| 46 |
+
if (Array.isArray(event.context.bootstrapFiles)) {
|
| 47 |
+
event.context.bootstrapFiles.push({
|
| 48 |
+
path: 'SELF_IMPROVEMENT_REMINDER.md',
|
| 49 |
+
content: REMINDER_CONTENT,
|
| 50 |
+
virtual: true,
|
| 51 |
+
});
|
| 52 |
+
}
|
| 53 |
+
};
|
| 54 |
+
|
| 55 |
+
module.exports = handler;
|
| 56 |
+
module.exports.default = handler;
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/hooks/openclaw/handler.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Self-Improvement Hook for OpenClaw
|
| 3 |
+
*
|
| 4 |
+
* Injects a reminder to evaluate learnings during agent bootstrap.
|
| 5 |
+
* Fires on agent:bootstrap event before workspace files are injected.
|
| 6 |
+
*/
|
| 7 |
+
|
| 8 |
+
import type { HookHandler } from 'openclaw/hooks';
|
| 9 |
+
|
| 10 |
+
const REMINDER_CONTENT = `## Self-Improvement Reminder
|
| 11 |
+
|
| 12 |
+
After completing tasks, evaluate if any learnings should be captured:
|
| 13 |
+
|
| 14 |
+
**Log when:**
|
| 15 |
+
- User corrects you → \`.learnings/LEARNINGS.md\`
|
| 16 |
+
- Command/operation fails → \`.learnings/ERRORS.md\`
|
| 17 |
+
- User wants missing capability → \`.learnings/FEATURE_REQUESTS.md\`
|
| 18 |
+
- You discover your knowledge was wrong → \`.learnings/LEARNINGS.md\`
|
| 19 |
+
- You find a better approach → \`.learnings/LEARNINGS.md\`
|
| 20 |
+
|
| 21 |
+
**Promote when pattern is proven:**
|
| 22 |
+
- Behavioral patterns → \`SOUL.md\`
|
| 23 |
+
- Workflow improvements → \`AGENTS.md\`
|
| 24 |
+
- Tool gotchas → \`TOOLS.md\`
|
| 25 |
+
|
| 26 |
+
Keep entries simple: date, title, what happened, what to do differently.`;
|
| 27 |
+
|
| 28 |
+
const handler: HookHandler = async (event) => {
|
| 29 |
+
// Safety checks for event structure
|
| 30 |
+
if (!event || typeof event !== 'object') {
|
| 31 |
+
return;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// Only handle agent:bootstrap events
|
| 35 |
+
if (event.type !== 'agent' || event.action !== 'bootstrap') {
|
| 36 |
+
return;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
// Safety check for context
|
| 40 |
+
if (!event.context || typeof event.context !== 'object') {
|
| 41 |
+
return;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
// Skip sub-agent sessions to avoid bootstrap issues
|
| 45 |
+
// Sub-agents have sessionKey patterns like "agent:main:subagent:..."
|
| 46 |
+
const sessionKey = event.sessionKey || '';
|
| 47 |
+
if (sessionKey.includes(':subagent:')) {
|
| 48 |
+
return;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
// Inject the reminder as a virtual bootstrap file
|
| 52 |
+
// Check that bootstrapFiles is an array before pushing
|
| 53 |
+
if (Array.isArray(event.context.bootstrapFiles)) {
|
| 54 |
+
event.context.bootstrapFiles.push({
|
| 55 |
+
path: 'SELF_IMPROVEMENT_REMINDER.md',
|
| 56 |
+
content: REMINDER_CONTENT,
|
| 57 |
+
virtual: true,
|
| 58 |
+
});
|
| 59 |
+
}
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
export default handler;
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/examples.md
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Entry Examples
|
| 2 |
+
|
| 3 |
+
Concrete examples of well-formatted entries with all fields.
|
| 4 |
+
|
| 5 |
+
## Learning: Correction
|
| 6 |
+
|
| 7 |
+
```markdown
|
| 8 |
+
## [LRN-20250115-001] correction
|
| 9 |
+
|
| 10 |
+
**Logged**: 2025-01-15T10:30:00Z
|
| 11 |
+
**Priority**: high
|
| 12 |
+
**Status**: pending
|
| 13 |
+
**Area**: tests
|
| 14 |
+
|
| 15 |
+
### Summary
|
| 16 |
+
Incorrectly assumed pytest fixtures are scoped to function by default
|
| 17 |
+
|
| 18 |
+
### Details
|
| 19 |
+
When writing test fixtures, I assumed all fixtures were function-scoped.
|
| 20 |
+
User corrected that while function scope is the default, the codebase
|
| 21 |
+
convention uses module-scoped fixtures for database connections to
|
| 22 |
+
improve test performance.
|
| 23 |
+
|
| 24 |
+
### Suggested Action
|
| 25 |
+
When creating fixtures that involve expensive setup (DB, network),
|
| 26 |
+
check existing fixtures for scope patterns before defaulting to function scope.
|
| 27 |
+
|
| 28 |
+
### Metadata
|
| 29 |
+
- Source: user_feedback
|
| 30 |
+
- Related Files: tests/conftest.py
|
| 31 |
+
- Tags: pytest, testing, fixtures
|
| 32 |
+
|
| 33 |
+
---
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Learning: Knowledge Gap (Resolved)
|
| 37 |
+
|
| 38 |
+
```markdown
|
| 39 |
+
## [LRN-20250115-002] knowledge_gap
|
| 40 |
+
|
| 41 |
+
**Logged**: 2025-01-15T14:22:00Z
|
| 42 |
+
**Priority**: medium
|
| 43 |
+
**Status**: resolved
|
| 44 |
+
**Area**: config
|
| 45 |
+
|
| 46 |
+
### Summary
|
| 47 |
+
Project uses pnpm not npm for package management
|
| 48 |
+
|
| 49 |
+
### Details
|
| 50 |
+
Attempted to run `npm install` but project uses pnpm workspaces.
|
| 51 |
+
Lock file is `pnpm-lock.yaml`, not `package-lock.json`.
|
| 52 |
+
|
| 53 |
+
### Suggested Action
|
| 54 |
+
Check for `pnpm-lock.yaml` or `pnpm-workspace.yaml` before assuming npm.
|
| 55 |
+
Use `pnpm install` for this project.
|
| 56 |
+
|
| 57 |
+
### Metadata
|
| 58 |
+
- Source: error
|
| 59 |
+
- Related Files: pnpm-lock.yaml, pnpm-workspace.yaml
|
| 60 |
+
- Tags: package-manager, pnpm, setup
|
| 61 |
+
|
| 62 |
+
### Resolution
|
| 63 |
+
- **Resolved**: 2025-01-15T14:30:00Z
|
| 64 |
+
- **Commit/PR**: N/A - knowledge update
|
| 65 |
+
- **Notes**: Added to CLAUDE.md for future reference
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
```
|
| 69 |
+
|
| 70 |
+
## Learning: Promoted to CLAUDE.md
|
| 71 |
+
|
| 72 |
+
```markdown
|
| 73 |
+
## [LRN-20250115-003] best_practice
|
| 74 |
+
|
| 75 |
+
**Logged**: 2025-01-15T16:00:00Z
|
| 76 |
+
**Priority**: high
|
| 77 |
+
**Status**: promoted
|
| 78 |
+
**Promoted**: CLAUDE.md
|
| 79 |
+
**Area**: backend
|
| 80 |
+
|
| 81 |
+
### Summary
|
| 82 |
+
API responses must include correlation ID from request headers
|
| 83 |
+
|
| 84 |
+
### Details
|
| 85 |
+
All API responses should echo back the X-Correlation-ID header from
|
| 86 |
+
the request. This is required for distributed tracing. Responses
|
| 87 |
+
without this header break the observability pipeline.
|
| 88 |
+
|
| 89 |
+
### Suggested Action
|
| 90 |
+
Always include correlation ID passthrough in API handlers.
|
| 91 |
+
|
| 92 |
+
### Metadata
|
| 93 |
+
- Source: user_feedback
|
| 94 |
+
- Related Files: src/middleware/correlation.ts
|
| 95 |
+
- Tags: api, observability, tracing
|
| 96 |
+
|
| 97 |
+
---
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
## Learning: Promoted to AGENTS.md
|
| 101 |
+
|
| 102 |
+
```markdown
|
| 103 |
+
## [LRN-20250116-001] best_practice
|
| 104 |
+
|
| 105 |
+
**Logged**: 2025-01-16T09:00:00Z
|
| 106 |
+
**Priority**: high
|
| 107 |
+
**Status**: promoted
|
| 108 |
+
**Promoted**: AGENTS.md
|
| 109 |
+
**Area**: backend
|
| 110 |
+
|
| 111 |
+
### Summary
|
| 112 |
+
Must regenerate API client after OpenAPI spec changes
|
| 113 |
+
|
| 114 |
+
### Details
|
| 115 |
+
When modifying API endpoints, the TypeScript client must be regenerated.
|
| 116 |
+
Forgetting this causes type mismatches that only appear at runtime.
|
| 117 |
+
The generate script also runs validation.
|
| 118 |
+
|
| 119 |
+
### Suggested Action
|
| 120 |
+
Add to agent workflow: after any API changes, run `pnpm run generate:api`.
|
| 121 |
+
|
| 122 |
+
### Metadata
|
| 123 |
+
- Source: error
|
| 124 |
+
- Related Files: openapi.yaml, src/client/api.ts
|
| 125 |
+
- Tags: api, codegen, typescript
|
| 126 |
+
|
| 127 |
+
---
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Error Entry
|
| 131 |
+
|
| 132 |
+
```markdown
|
| 133 |
+
## [ERR-20250115-A3F] docker_build
|
| 134 |
+
|
| 135 |
+
**Logged**: 2025-01-15T09:15:00Z
|
| 136 |
+
**Priority**: high
|
| 137 |
+
**Status**: pending
|
| 138 |
+
**Area**: infra
|
| 139 |
+
|
| 140 |
+
### Summary
|
| 141 |
+
Docker build fails on M1 Mac due to platform mismatch
|
| 142 |
+
|
| 143 |
+
### Error
|
| 144 |
+
```
|
| 145 |
+
error: failed to solve: python:3.11-slim: no match for platform linux/arm64
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
### Context
|
| 149 |
+
- Command: `docker build -t myapp .`
|
| 150 |
+
- Dockerfile uses `FROM python:3.11-slim`
|
| 151 |
+
- Running on Apple Silicon (M1/M2)
|
| 152 |
+
|
| 153 |
+
### Suggested Fix
|
| 154 |
+
Add platform flag: `docker build --platform linux/amd64 -t myapp .`
|
| 155 |
+
Or update Dockerfile: `FROM --platform=linux/amd64 python:3.11-slim`
|
| 156 |
+
|
| 157 |
+
### Metadata
|
| 158 |
+
- Reproducible: yes
|
| 159 |
+
- Related Files: Dockerfile
|
| 160 |
+
|
| 161 |
+
---
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
## Error Entry: Recurring Issue
|
| 165 |
+
|
| 166 |
+
```markdown
|
| 167 |
+
## [ERR-20250120-B2C] api_timeout
|
| 168 |
+
|
| 169 |
+
**Logged**: 2025-01-20T11:30:00Z
|
| 170 |
+
**Priority**: critical
|
| 171 |
+
**Status**: pending
|
| 172 |
+
**Area**: backend
|
| 173 |
+
|
| 174 |
+
### Summary
|
| 175 |
+
Third-party payment API timeout during checkout
|
| 176 |
+
|
| 177 |
+
### Error
|
| 178 |
+
```
|
| 179 |
+
TimeoutError: Request to payments.example.com timed out after 30000ms
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
### Context
|
| 183 |
+
- Command: POST /api/checkout
|
| 184 |
+
- Timeout set to 30s
|
| 185 |
+
- Occurs during peak hours (lunch, evening)
|
| 186 |
+
|
| 187 |
+
### Suggested Fix
|
| 188 |
+
Implement retry with exponential backoff. Consider circuit breaker pattern.
|
| 189 |
+
|
| 190 |
+
### Metadata
|
| 191 |
+
- Reproducible: yes (during peak hours)
|
| 192 |
+
- Related Files: src/services/payment.ts
|
| 193 |
+
- See Also: ERR-20250115-X1Y, ERR-20250118-Z3W
|
| 194 |
+
|
| 195 |
+
---
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
## Feature Request
|
| 199 |
+
|
| 200 |
+
```markdown
|
| 201 |
+
## [FEAT-20250115-001] export_to_csv
|
| 202 |
+
|
| 203 |
+
**Logged**: 2025-01-15T16:45:00Z
|
| 204 |
+
**Priority**: medium
|
| 205 |
+
**Status**: pending
|
| 206 |
+
**Area**: backend
|
| 207 |
+
|
| 208 |
+
### Requested Capability
|
| 209 |
+
Export analysis results to CSV format
|
| 210 |
+
|
| 211 |
+
### User Context
|
| 212 |
+
User runs weekly reports and needs to share results with non-technical
|
| 213 |
+
stakeholders in Excel. Currently copies output manually.
|
| 214 |
+
|
| 215 |
+
### Complexity Estimate
|
| 216 |
+
simple
|
| 217 |
+
|
| 218 |
+
### Suggested Implementation
|
| 219 |
+
Add `--output csv` flag to the analyze command. Use standard csv module.
|
| 220 |
+
Could extend existing `--output json` pattern.
|
| 221 |
+
|
| 222 |
+
### Metadata
|
| 223 |
+
- Frequency: recurring
|
| 224 |
+
- Related Features: analyze command, json output
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
```
|
| 228 |
+
|
| 229 |
+
## Feature Request: Resolved
|
| 230 |
+
|
| 231 |
+
```markdown
|
| 232 |
+
## [FEAT-20250110-002] dark_mode
|
| 233 |
+
|
| 234 |
+
**Logged**: 2025-01-10T14:00:00Z
|
| 235 |
+
**Priority**: low
|
| 236 |
+
**Status**: resolved
|
| 237 |
+
**Area**: frontend
|
| 238 |
+
|
| 239 |
+
### Requested Capability
|
| 240 |
+
Dark mode support for the dashboard
|
| 241 |
+
|
| 242 |
+
### User Context
|
| 243 |
+
User works late hours and finds the bright interface straining.
|
| 244 |
+
Several other users have mentioned this informally.
|
| 245 |
+
|
| 246 |
+
### Complexity Estimate
|
| 247 |
+
medium
|
| 248 |
+
|
| 249 |
+
### Suggested Implementation
|
| 250 |
+
Use CSS variables for colors. Add toggle in user settings.
|
| 251 |
+
Consider system preference detection.
|
| 252 |
+
|
| 253 |
+
### Metadata
|
| 254 |
+
- Frequency: recurring
|
| 255 |
+
- Related Features: user settings, theme system
|
| 256 |
+
|
| 257 |
+
### Resolution
|
| 258 |
+
- **Resolved**: 2025-01-18T16:00:00Z
|
| 259 |
+
- **Commit/PR**: #142
|
| 260 |
+
- **Notes**: Implemented with system preference detection and manual toggle
|
| 261 |
+
|
| 262 |
+
---
|
| 263 |
+
```
|
| 264 |
+
|
| 265 |
+
## Learning: Promoted to Skill
|
| 266 |
+
|
| 267 |
+
```markdown
|
| 268 |
+
## [LRN-20250118-001] best_practice
|
| 269 |
+
|
| 270 |
+
**Logged**: 2025-01-18T11:00:00Z
|
| 271 |
+
**Priority**: high
|
| 272 |
+
**Status**: promoted_to_skill
|
| 273 |
+
**Skill-Path**: skills/docker-m1-fixes
|
| 274 |
+
**Area**: infra
|
| 275 |
+
|
| 276 |
+
### Summary
|
| 277 |
+
Docker build fails on Apple Silicon due to platform mismatch
|
| 278 |
+
|
| 279 |
+
### Details
|
| 280 |
+
When building Docker images on M1/M2 Macs, the build fails because
|
| 281 |
+
the base image doesn't have an ARM64 variant. This is a common issue
|
| 282 |
+
that affects many developers.
|
| 283 |
+
|
| 284 |
+
### Suggested Action
|
| 285 |
+
Add `--platform linux/amd64` to docker build command, or use
|
| 286 |
+
`FROM --platform=linux/amd64` in Dockerfile.
|
| 287 |
+
|
| 288 |
+
### Metadata
|
| 289 |
+
- Source: error
|
| 290 |
+
- Related Files: Dockerfile
|
| 291 |
+
- Tags: docker, arm64, m1, apple-silicon
|
| 292 |
+
- See Also: ERR-20250115-A3F, ERR-20250117-B2D
|
| 293 |
+
|
| 294 |
+
---
|
| 295 |
+
```
|
| 296 |
+
|
| 297 |
+
## Extracted Skill Example
|
| 298 |
+
|
| 299 |
+
When the above learning is extracted as a skill, it becomes:
|
| 300 |
+
|
| 301 |
+
**File**: `skills/docker-m1-fixes/SKILL.md`
|
| 302 |
+
|
| 303 |
+
```markdown
|
| 304 |
+
---
|
| 305 |
+
name: docker-m1-fixes
|
| 306 |
+
description: "Fixes Docker build failures on Apple Silicon (M1/M2). Use when docker build fails with platform mismatch errors."
|
| 307 |
+
---
|
| 308 |
+
|
| 309 |
+
# Docker M1 Fixes
|
| 310 |
+
|
| 311 |
+
Solutions for Docker build issues on Apple Silicon Macs.
|
| 312 |
+
|
| 313 |
+
## Quick Reference
|
| 314 |
+
|
| 315 |
+
| Error | Fix |
|
| 316 |
+
|-------|-----|
|
| 317 |
+
| `no match for platform linux/arm64` | Add `--platform linux/amd64` to build |
|
| 318 |
+
| Image runs but crashes | Use emulation or find ARM-compatible base |
|
| 319 |
+
|
| 320 |
+
## The Problem
|
| 321 |
+
|
| 322 |
+
Many Docker base images don't have ARM64 variants. When building on
|
| 323 |
+
Apple Silicon (M1/M2/M3), Docker attempts to pull ARM64 images by
|
| 324 |
+
default, causing platform mismatch errors.
|
| 325 |
+
|
| 326 |
+
## Solutions
|
| 327 |
+
|
| 328 |
+
### Option 1: Build Flag (Recommended)
|
| 329 |
+
|
| 330 |
+
Add platform flag to your build command:
|
| 331 |
+
|
| 332 |
+
\`\`\`bash
|
| 333 |
+
docker build --platform linux/amd64 -t myapp .
|
| 334 |
+
\`\`\`
|
| 335 |
+
|
| 336 |
+
### Option 2: Dockerfile Modification
|
| 337 |
+
|
| 338 |
+
Specify platform in the FROM instruction:
|
| 339 |
+
|
| 340 |
+
\`\`\`dockerfile
|
| 341 |
+
FROM --platform=linux/amd64 python:3.11-slim
|
| 342 |
+
\`\`\`
|
| 343 |
+
|
| 344 |
+
### Option 3: Docker Compose
|
| 345 |
+
|
| 346 |
+
Add platform to your service:
|
| 347 |
+
|
| 348 |
+
\`\`\`yaml
|
| 349 |
+
services:
|
| 350 |
+
app:
|
| 351 |
+
platform: linux/amd64
|
| 352 |
+
build: .
|
| 353 |
+
\`\`\`
|
| 354 |
+
|
| 355 |
+
## Trade-offs
|
| 356 |
+
|
| 357 |
+
| Approach | Pros | Cons |
|
| 358 |
+
|----------|------|------|
|
| 359 |
+
| Build flag | No file changes | Must remember flag |
|
| 360 |
+
| Dockerfile | Explicit, versioned | Affects all builds |
|
| 361 |
+
| Compose | Convenient for dev | Requires compose |
|
| 362 |
+
|
| 363 |
+
## Performance Note
|
| 364 |
+
|
| 365 |
+
Running AMD64 images on ARM64 uses Rosetta 2 emulation. This works
|
| 366 |
+
for development but may be slower. For production, find ARM-native
|
| 367 |
+
alternatives when possible.
|
| 368 |
+
|
| 369 |
+
## Source
|
| 370 |
+
|
| 371 |
+
- Learning ID: LRN-20250118-001
|
| 372 |
+
- Category: best_practice
|
| 373 |
+
- Extraction Date: 2025-01-18
|
| 374 |
+
```
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/hooks-setup.md
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Hook Setup Guide
|
| 2 |
+
|
| 3 |
+
Configure automatic self-improvement triggers for AI coding agents.
|
| 4 |
+
|
| 5 |
+
## Overview
|
| 6 |
+
|
| 7 |
+
Hooks enable proactive learning capture by injecting reminders at key moments:
|
| 8 |
+
- **UserPromptSubmit**: Reminder after each prompt to evaluate learnings
|
| 9 |
+
- **PostToolUse (Bash)**: Error detection when commands fail
|
| 10 |
+
|
| 11 |
+
## Claude Code Setup
|
| 12 |
+
|
| 13 |
+
### Option 1: Project-Level Configuration
|
| 14 |
+
|
| 15 |
+
Create `.claude/settings.json` in your project root:
|
| 16 |
+
|
| 17 |
+
```json
|
| 18 |
+
{
|
| 19 |
+
"hooks": {
|
| 20 |
+
"UserPromptSubmit": [
|
| 21 |
+
{
|
| 22 |
+
"matcher": "",
|
| 23 |
+
"hooks": [
|
| 24 |
+
{
|
| 25 |
+
"type": "command",
|
| 26 |
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"PostToolUse": [
|
| 32 |
+
{
|
| 33 |
+
"matcher": "Bash",
|
| 34 |
+
"hooks": [
|
| 35 |
+
{
|
| 36 |
+
"type": "command",
|
| 37 |
+
"command": "./skills/self-improvement/scripts/error-detector.sh"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
}
|
| 41 |
+
]
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
### Option 2: User-Level Configuration
|
| 47 |
+
|
| 48 |
+
Add to `~/.claude/settings.json` for global activation:
|
| 49 |
+
|
| 50 |
+
```json
|
| 51 |
+
{
|
| 52 |
+
"hooks": {
|
| 53 |
+
"UserPromptSubmit": [
|
| 54 |
+
{
|
| 55 |
+
"matcher": "",
|
| 56 |
+
"hooks": [
|
| 57 |
+
{
|
| 58 |
+
"type": "command",
|
| 59 |
+
"command": "~/.claude/skills/self-improvement/scripts/activator.sh"
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
| 63 |
+
]
|
| 64 |
+
}
|
| 65 |
+
}
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
### Minimal Setup (Activator Only)
|
| 69 |
+
|
| 70 |
+
For lower overhead, use only the UserPromptSubmit hook:
|
| 71 |
+
|
| 72 |
+
```json
|
| 73 |
+
{
|
| 74 |
+
"hooks": {
|
| 75 |
+
"UserPromptSubmit": [
|
| 76 |
+
{
|
| 77 |
+
"matcher": "",
|
| 78 |
+
"hooks": [
|
| 79 |
+
{
|
| 80 |
+
"type": "command",
|
| 81 |
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
}
|
| 85 |
+
]
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
```
|
| 89 |
+
|
| 90 |
+
## Codex CLI Setup
|
| 91 |
+
|
| 92 |
+
Codex uses the same hook system as Claude Code. Create `.codex/settings.json`:
|
| 93 |
+
|
| 94 |
+
```json
|
| 95 |
+
{
|
| 96 |
+
"hooks": {
|
| 97 |
+
"UserPromptSubmit": [
|
| 98 |
+
{
|
| 99 |
+
"matcher": "",
|
| 100 |
+
"hooks": [
|
| 101 |
+
{
|
| 102 |
+
"type": "command",
|
| 103 |
+
"command": "./skills/self-improvement/scripts/activator.sh"
|
| 104 |
+
}
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
]
|
| 108 |
+
}
|
| 109 |
+
}
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## GitHub Copilot Setup
|
| 113 |
+
|
| 114 |
+
Copilot doesn't support hooks directly. Instead, add guidance to `.github/copilot-instructions.md`:
|
| 115 |
+
|
| 116 |
+
```markdown
|
| 117 |
+
## Self-Improvement
|
| 118 |
+
|
| 119 |
+
After completing tasks that involved:
|
| 120 |
+
- Debugging non-obvious issues
|
| 121 |
+
- Discovering workarounds
|
| 122 |
+
- Learning project-specific patterns
|
| 123 |
+
- Resolving unexpected errors
|
| 124 |
+
|
| 125 |
+
Consider logging the learning to `.learnings/` using the format from the self-improvement skill.
|
| 126 |
+
|
| 127 |
+
For high-value learnings that would benefit other sessions, consider skill extraction.
|
| 128 |
+
```
|
| 129 |
+
|
| 130 |
+
## Verification
|
| 131 |
+
|
| 132 |
+
### Test Activator Hook
|
| 133 |
+
|
| 134 |
+
1. Enable the hook configuration
|
| 135 |
+
2. Start a new Claude Code session
|
| 136 |
+
3. Send any prompt
|
| 137 |
+
4. Verify you see `<self-improvement-reminder>` in the context
|
| 138 |
+
|
| 139 |
+
### Test Error Detector Hook
|
| 140 |
+
|
| 141 |
+
1. Enable PostToolUse hook for Bash
|
| 142 |
+
2. Run a command that fails: `ls /nonexistent/path`
|
| 143 |
+
3. Verify you see `<error-detected>` reminder
|
| 144 |
+
|
| 145 |
+
### Dry Run Extract Script
|
| 146 |
+
|
| 147 |
+
```bash
|
| 148 |
+
./skills/self-improvement/scripts/extract-skill.sh test-skill --dry-run
|
| 149 |
+
```
|
| 150 |
+
|
| 151 |
+
Expected output shows the skill scaffold that would be created.
|
| 152 |
+
|
| 153 |
+
## Troubleshooting
|
| 154 |
+
|
| 155 |
+
### Hook Not Triggering
|
| 156 |
+
|
| 157 |
+
1. **Check script permissions**: `chmod +x scripts/*.sh`
|
| 158 |
+
2. **Verify path**: Use absolute paths or paths relative to project root
|
| 159 |
+
3. **Check settings location**: Project vs user-level settings
|
| 160 |
+
4. **Restart session**: Hooks are loaded at session start
|
| 161 |
+
|
| 162 |
+
### Permission Denied
|
| 163 |
+
|
| 164 |
+
```bash
|
| 165 |
+
chmod +x ./skills/self-improvement/scripts/activator.sh
|
| 166 |
+
chmod +x ./skills/self-improvement/scripts/error-detector.sh
|
| 167 |
+
chmod +x ./skills/self-improvement/scripts/extract-skill.sh
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
### Script Not Found
|
| 171 |
+
|
| 172 |
+
If using relative paths, ensure you're in the correct directory or use absolute paths:
|
| 173 |
+
|
| 174 |
+
```json
|
| 175 |
+
{
|
| 176 |
+
"command": "/absolute/path/to/skills/self-improvement/scripts/activator.sh"
|
| 177 |
+
}
|
| 178 |
+
```
|
| 179 |
+
|
| 180 |
+
### Too Much Overhead
|
| 181 |
+
|
| 182 |
+
If the activator feels intrusive:
|
| 183 |
+
|
| 184 |
+
1. **Use minimal setup**: Only UserPromptSubmit, skip PostToolUse
|
| 185 |
+
2. **Add matcher filter**: Only trigger for certain prompts:
|
| 186 |
+
|
| 187 |
+
```json
|
| 188 |
+
{
|
| 189 |
+
"matcher": "fix|debug|error|issue",
|
| 190 |
+
"hooks": [...]
|
| 191 |
+
}
|
| 192 |
+
```
|
| 193 |
+
|
| 194 |
+
## Hook Output Budget
|
| 195 |
+
|
| 196 |
+
The activator is designed to be lightweight:
|
| 197 |
+
- **Target**: ~50-100 tokens per activation
|
| 198 |
+
- **Content**: Structured reminder, not verbose instructions
|
| 199 |
+
- **Format**: XML tags for easy parsing
|
| 200 |
+
|
| 201 |
+
If you need to reduce overhead further, you can edit `activator.sh` to output less text.
|
| 202 |
+
|
| 203 |
+
## Security Considerations
|
| 204 |
+
|
| 205 |
+
- Hook scripts run with the same permissions as Claude Code
|
| 206 |
+
- Scripts only output text; they don't modify files or run commands
|
| 207 |
+
- Error detector reads `CLAUDE_TOOL_OUTPUT` environment variable
|
| 208 |
+
- All scripts are opt-in (you must configure them explicitly)
|
| 209 |
+
|
| 210 |
+
## Disabling Hooks
|
| 211 |
+
|
| 212 |
+
To temporarily disable without removing configuration:
|
| 213 |
+
|
| 214 |
+
1. **Comment out in settings**:
|
| 215 |
+
```json
|
| 216 |
+
{
|
| 217 |
+
"hooks": {
|
| 218 |
+
// "UserPromptSubmit": [...]
|
| 219 |
+
}
|
| 220 |
+
}
|
| 221 |
+
```
|
| 222 |
+
|
| 223 |
+
2. **Or delete the settings file**: Hooks won't run without configuration
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/references/openclaw-integration.md
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OpenClaw Integration
|
| 2 |
+
|
| 3 |
+
Complete setup and usage guide for integrating the self-improvement skill with OpenClaw.
|
| 4 |
+
|
| 5 |
+
## Overview
|
| 6 |
+
|
| 7 |
+
OpenClaw uses workspace-based prompt injection combined with event-driven hooks. Context is injected from workspace files at session start, and hooks can trigger on lifecycle events.
|
| 8 |
+
|
| 9 |
+
## Workspace Structure
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
~/.openclaw/
|
| 13 |
+
├── workspace/ # Working directory
|
| 14 |
+
│ ├── AGENTS.md # Multi-agent coordination patterns
|
| 15 |
+
│ ├── SOUL.md # Behavioral guidelines and personality
|
| 16 |
+
│ ├── TOOLS.md # Tool capabilities and gotchas
|
| 17 |
+
│ ├── MEMORY.md # Long-term memory (main session only)
|
| 18 |
+
│ └── memory/ # Daily memory files
|
| 19 |
+
│ └── YYYY-MM-DD.md
|
| 20 |
+
├── skills/ # Installed skills
|
| 21 |
+
│ └── <skill-name>/
|
| 22 |
+
│ └── SKILL.md
|
| 23 |
+
└── hooks/ # Custom hooks
|
| 24 |
+
└── <hook-name>/
|
| 25 |
+
├── HOOK.md
|
| 26 |
+
└── handler.ts
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
## Quick Setup
|
| 30 |
+
|
| 31 |
+
### 1. Install the Skill
|
| 32 |
+
|
| 33 |
+
```bash
|
| 34 |
+
clawdhub install self-improving-agent
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
Or copy manually:
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
cp -r self-improving-agent ~/.openclaw/skills/
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
### 2. Install the Hook (Optional)
|
| 44 |
+
|
| 45 |
+
Copy the hook to OpenClaw's hooks directory:
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
cp -r hooks/openclaw ~/.openclaw/hooks/self-improvement
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
Enable the hook:
|
| 52 |
+
|
| 53 |
+
```bash
|
| 54 |
+
openclaw hooks enable self-improvement
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
### 3. Create Learning Files
|
| 58 |
+
|
| 59 |
+
Create the `.learnings/` directory in your workspace:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
mkdir -p ~/.openclaw/workspace/.learnings
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
Or in the skill directory:
|
| 66 |
+
|
| 67 |
+
```bash
|
| 68 |
+
mkdir -p ~/.openclaw/skills/self-improving-agent/.learnings
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## Injected Prompt Files
|
| 72 |
+
|
| 73 |
+
### AGENTS.md
|
| 74 |
+
|
| 75 |
+
Purpose: Multi-agent workflows and delegation patterns.
|
| 76 |
+
|
| 77 |
+
```markdown
|
| 78 |
+
# Agent Coordination
|
| 79 |
+
|
| 80 |
+
## Delegation Rules
|
| 81 |
+
- Use explore agent for open-ended codebase questions
|
| 82 |
+
- Spawn sub-agents for long-running tasks
|
| 83 |
+
- Use sessions_send for cross-session communication
|
| 84 |
+
|
| 85 |
+
## Session Handoff
|
| 86 |
+
When delegating to another session:
|
| 87 |
+
1. Provide full context in the handoff message
|
| 88 |
+
2. Include relevant file paths
|
| 89 |
+
3. Specify expected output format
|
| 90 |
+
```
|
| 91 |
+
|
| 92 |
+
### SOUL.md
|
| 93 |
+
|
| 94 |
+
Purpose: Behavioral guidelines and communication style.
|
| 95 |
+
|
| 96 |
+
```markdown
|
| 97 |
+
# Behavioral Guidelines
|
| 98 |
+
|
| 99 |
+
## Communication Style
|
| 100 |
+
- Be direct and concise
|
| 101 |
+
- Avoid unnecessary caveats and disclaimers
|
| 102 |
+
- Use technical language appropriate to context
|
| 103 |
+
|
| 104 |
+
## Error Handling
|
| 105 |
+
- Admit mistakes promptly
|
| 106 |
+
- Provide corrected information immediately
|
| 107 |
+
- Log significant errors to learnings
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
### TOOLS.md
|
| 111 |
+
|
| 112 |
+
Purpose: Tool capabilities, integration gotchas, local configuration.
|
| 113 |
+
|
| 114 |
+
```markdown
|
| 115 |
+
# Tool Knowledge
|
| 116 |
+
|
| 117 |
+
## Self-Improvement Skill
|
| 118 |
+
Log learnings to `.learnings/` for continuous improvement.
|
| 119 |
+
|
| 120 |
+
## Local Tools
|
| 121 |
+
- Document tool-specific gotchas here
|
| 122 |
+
- Note authentication requirements
|
| 123 |
+
- Track integration quirks
|
| 124 |
+
```
|
| 125 |
+
|
| 126 |
+
## Learning Workflow
|
| 127 |
+
|
| 128 |
+
### Capturing Learnings
|
| 129 |
+
|
| 130 |
+
1. **In-session**: Log to `.learnings/` as usual
|
| 131 |
+
2. **Cross-session**: Promote to workspace files
|
| 132 |
+
|
| 133 |
+
### Promotion Decision Tree
|
| 134 |
+
|
| 135 |
+
```
|
| 136 |
+
Is the learning project-specific?
|
| 137 |
+
├── Yes → Keep in .learnings/
|
| 138 |
+
└── No → Is it behavioral/style-related?
|
| 139 |
+
├── Yes → Promote to SOUL.md
|
| 140 |
+
└── No → Is it tool-related?
|
| 141 |
+
├── Yes → Promote to TOOLS.md
|
| 142 |
+
└── No → Promote to AGENTS.md (workflow)
|
| 143 |
+
```
|
| 144 |
+
|
| 145 |
+
### Promotion Format Examples
|
| 146 |
+
|
| 147 |
+
**From learning:**
|
| 148 |
+
> Git push to GitHub fails without auth configured - triggers desktop prompt
|
| 149 |
+
|
| 150 |
+
**To TOOLS.md:**
|
| 151 |
+
```markdown
|
| 152 |
+
## Git
|
| 153 |
+
- Don't push without confirming auth is configured
|
| 154 |
+
- Use `gh auth status` to check GitHub CLI auth
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
## Inter-Agent Communication
|
| 158 |
+
|
| 159 |
+
OpenClaw provides tools for cross-session communication:
|
| 160 |
+
|
| 161 |
+
### sessions_list
|
| 162 |
+
|
| 163 |
+
View active and recent sessions:
|
| 164 |
+
```
|
| 165 |
+
sessions_list(activeMinutes=30, messageLimit=3)
|
| 166 |
+
```
|
| 167 |
+
|
| 168 |
+
### sessions_history
|
| 169 |
+
|
| 170 |
+
Read transcript from another session:
|
| 171 |
+
```
|
| 172 |
+
sessions_history(sessionKey="session-id", limit=50)
|
| 173 |
+
```
|
| 174 |
+
|
| 175 |
+
### sessions_send
|
| 176 |
+
|
| 177 |
+
Send message to another session:
|
| 178 |
+
```
|
| 179 |
+
sessions_send(sessionKey="session-id", message="Learning: API requires X-Custom-Header")
|
| 180 |
+
```
|
| 181 |
+
|
| 182 |
+
### sessions_spawn
|
| 183 |
+
|
| 184 |
+
Spawn a background sub-agent:
|
| 185 |
+
```
|
| 186 |
+
sessions_spawn(task="Research X and report back", label="research")
|
| 187 |
+
```
|
| 188 |
+
|
| 189 |
+
## Available Hook Events
|
| 190 |
+
|
| 191 |
+
| Event | When It Fires |
|
| 192 |
+
|-------|---------------|
|
| 193 |
+
| `agent:bootstrap` | Before workspace files inject |
|
| 194 |
+
| `command:new` | When `/new` command issued |
|
| 195 |
+
| `command:reset` | When `/reset` command issued |
|
| 196 |
+
| `command:stop` | When `/stop` command issued |
|
| 197 |
+
| `gateway:startup` | When gateway starts |
|
| 198 |
+
|
| 199 |
+
## Detection Triggers
|
| 200 |
+
|
| 201 |
+
### Standard Triggers
|
| 202 |
+
- User corrections ("No, that's wrong...")
|
| 203 |
+
- Command failures (non-zero exit codes)
|
| 204 |
+
- API errors
|
| 205 |
+
- Knowledge gaps
|
| 206 |
+
|
| 207 |
+
### OpenClaw-Specific Triggers
|
| 208 |
+
|
| 209 |
+
| Trigger | Action |
|
| 210 |
+
|---------|--------|
|
| 211 |
+
| Tool call error | Log to TOOLS.md with tool name |
|
| 212 |
+
| Session handoff confusion | Log to AGENTS.md with delegation pattern |
|
| 213 |
+
| Model behavior surprise | Log to SOUL.md with expected vs actual |
|
| 214 |
+
| Skill issue | Log to .learnings/ or report upstream |
|
| 215 |
+
|
| 216 |
+
## Verification
|
| 217 |
+
|
| 218 |
+
Check hook is registered:
|
| 219 |
+
|
| 220 |
+
```bash
|
| 221 |
+
openclaw hooks list
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
Check skill is loaded:
|
| 225 |
+
|
| 226 |
+
```bash
|
| 227 |
+
openclaw status
|
| 228 |
+
```
|
| 229 |
+
|
| 230 |
+
## Troubleshooting
|
| 231 |
+
|
| 232 |
+
### Hook not firing
|
| 233 |
+
|
| 234 |
+
1. Ensure hooks enabled in config
|
| 235 |
+
2. Restart gateway after config changes
|
| 236 |
+
3. Check gateway logs for errors
|
| 237 |
+
|
| 238 |
+
### Learnings not persisting
|
| 239 |
+
|
| 240 |
+
1. Verify `.learnings/` directory exists
|
| 241 |
+
2. Check file permissions
|
| 242 |
+
3. Ensure workspace path is configured correctly
|
| 243 |
+
|
| 244 |
+
### Skill not loading
|
| 245 |
+
|
| 246 |
+
1. Check skill is in skills directory
|
| 247 |
+
2. Verify SKILL.md has correct frontmatter
|
| 248 |
+
3. Run `openclaw status` to see loaded skills
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/activator.sh
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Self-Improvement Activator Hook
|
| 3 |
+
# Triggers on UserPromptSubmit to remind Claude about learning capture
|
| 4 |
+
# Keep output minimal (~50-100 tokens) to minimize overhead
|
| 5 |
+
|
| 6 |
+
set -e
|
| 7 |
+
|
| 8 |
+
# Output reminder as system context
|
| 9 |
+
cat << 'EOF'
|
| 10 |
+
<self-improvement-reminder>
|
| 11 |
+
After completing this task, evaluate if extractable knowledge emerged:
|
| 12 |
+
- Non-obvious solution discovered through investigation?
|
| 13 |
+
- Workaround for unexpected behavior?
|
| 14 |
+
- Project-specific pattern learned?
|
| 15 |
+
- Error required debugging to resolve?
|
| 16 |
+
|
| 17 |
+
If yes: Log to .learnings/ using the self-improvement skill format.
|
| 18 |
+
If high-value (recurring, broadly applicable): Consider skill extraction.
|
| 19 |
+
</self-improvement-reminder>
|
| 20 |
+
EOF
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/error-detector.sh
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Self-Improvement Error Detector Hook
|
| 3 |
+
# Triggers on PostToolUse for Bash to detect command failures
|
| 4 |
+
# Reads CLAUDE_TOOL_OUTPUT environment variable
|
| 5 |
+
|
| 6 |
+
set -e
|
| 7 |
+
|
| 8 |
+
# Check if tool output indicates an error
|
| 9 |
+
# CLAUDE_TOOL_OUTPUT contains the result of the tool execution
|
| 10 |
+
OUTPUT="${CLAUDE_TOOL_OUTPUT:-}"
|
| 11 |
+
|
| 12 |
+
# Patterns indicating errors (case-insensitive matching)
|
| 13 |
+
ERROR_PATTERNS=(
|
| 14 |
+
"error:"
|
| 15 |
+
"Error:"
|
| 16 |
+
"ERROR:"
|
| 17 |
+
"failed"
|
| 18 |
+
"FAILED"
|
| 19 |
+
"command not found"
|
| 20 |
+
"No such file"
|
| 21 |
+
"Permission denied"
|
| 22 |
+
"fatal:"
|
| 23 |
+
"Exception"
|
| 24 |
+
"Traceback"
|
| 25 |
+
"npm ERR!"
|
| 26 |
+
"ModuleNotFoundError"
|
| 27 |
+
"SyntaxError"
|
| 28 |
+
"TypeError"
|
| 29 |
+
"exit code"
|
| 30 |
+
"non-zero"
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
# Check if output contains any error pattern
|
| 34 |
+
contains_error=false
|
| 35 |
+
for pattern in "${ERROR_PATTERNS[@]}"; do
|
| 36 |
+
if [[ "$OUTPUT" == *"$pattern"* ]]; then
|
| 37 |
+
contains_error=true
|
| 38 |
+
break
|
| 39 |
+
fi
|
| 40 |
+
done
|
| 41 |
+
|
| 42 |
+
# Only output reminder if error detected
|
| 43 |
+
if [ "$contains_error" = true ]; then
|
| 44 |
+
cat << 'EOF'
|
| 45 |
+
<error-detected>
|
| 46 |
+
A command error was detected. Consider logging this to .learnings/ERRORS.md if:
|
| 47 |
+
- The error was unexpected or non-obvious
|
| 48 |
+
- It required investigation to resolve
|
| 49 |
+
- It might recur in similar contexts
|
| 50 |
+
- The solution could benefit future sessions
|
| 51 |
+
|
| 52 |
+
Use the self-improvement skill format: [ERR-YYYYMMDD-XXX]
|
| 53 |
+
</error-detected>
|
| 54 |
+
EOF
|
| 55 |
+
fi
|
01_Productivity_Flow_task_2_table_tex_download/environment/.wildclaw/skills/self-improving-agent-3.0.5/scripts/extract-skill.sh
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
# Skill Extraction Helper
|
| 3 |
+
# Creates a new skill from a learning entry
|
| 4 |
+
# Usage: ./extract-skill.sh <skill-name> [--dry-run]
|
| 5 |
+
|
| 6 |
+
set -e
|
| 7 |
+
|
| 8 |
+
# Configuration
|
| 9 |
+
SKILLS_DIR="./skills"
|
| 10 |
+
|
| 11 |
+
# Colors for output
|
| 12 |
+
RED='\033[0;31m'
|
| 13 |
+
GREEN='\033[0;32m'
|
| 14 |
+
YELLOW='\033[1;33m'
|
| 15 |
+
NC='\033[0m' # No Color
|
| 16 |
+
|
| 17 |
+
usage() {
|
| 18 |
+
cat << EOF
|
| 19 |
+
Usage: $(basename "$0") <skill-name> [options]
|
| 20 |
+
|
| 21 |
+
Create a new skill from a learning entry.
|
| 22 |
+
|
| 23 |
+
Arguments:
|
| 24 |
+
skill-name Name of the skill (lowercase, hyphens for spaces)
|
| 25 |
+
|
| 26 |
+
Options:
|
| 27 |
+
--dry-run Show what would be created without creating files
|
| 28 |
+
--output-dir Relative output directory under current path (default: ./skills)
|
| 29 |
+
-h, --help Show this help message
|
| 30 |
+
|
| 31 |
+
Examples:
|
| 32 |
+
$(basename "$0") docker-m1-fixes
|
| 33 |
+
$(basename "$0") api-timeout-patterns --dry-run
|
| 34 |
+
$(basename "$0") pnpm-setup --output-dir ./skills/custom
|
| 35 |
+
|
| 36 |
+
The skill will be created in: \$SKILLS_DIR/<skill-name>/
|
| 37 |
+
EOF
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
log_info() {
|
| 41 |
+
echo -e "${GREEN}[INFO]${NC} $1"
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
log_warn() {
|
| 45 |
+
echo -e "${YELLOW}[WARN]${NC} $1"
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
log_error() {
|
| 49 |
+
echo -e "${RED}[ERROR]${NC} $1" >&2
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
# Parse arguments
|
| 53 |
+
SKILL_NAME=""
|
| 54 |
+
DRY_RUN=false
|
| 55 |
+
|
| 56 |
+
while [[ $# -gt 0 ]]; do
|
| 57 |
+
case $1 in
|
| 58 |
+
--dry-run)
|
| 59 |
+
DRY_RUN=true
|
| 60 |
+
shift
|
| 61 |
+
;;
|
| 62 |
+
--output-dir)
|
| 63 |
+
if [ -z "${2:-}" ] || [[ "${2:-}" == -* ]]; then
|
| 64 |
+
log_error "--output-dir requires a relative path argument"
|
| 65 |
+
usage
|
| 66 |
+
exit 1
|
| 67 |
+
fi
|
| 68 |
+
SKILLS_DIR="$2"
|
| 69 |
+
shift 2
|
| 70 |
+
;;
|
| 71 |
+
-h|--help)
|
| 72 |
+
usage
|
| 73 |
+
exit 0
|
| 74 |
+
;;
|
| 75 |
+
-*)
|
| 76 |
+
log_error "Unknown option: $1"
|
| 77 |
+
usage
|
| 78 |
+
exit 1
|
| 79 |
+
;;
|
| 80 |
+
*)
|
| 81 |
+
if [ -z "$SKILL_NAME" ]; then
|
| 82 |
+
SKILL_NAME="$1"
|
| 83 |
+
else
|
| 84 |
+
log_error "Unexpected argument: $1"
|
| 85 |
+
usage
|
| 86 |
+
exit 1
|
| 87 |
+
fi
|
| 88 |
+
shift
|
| 89 |
+
;;
|
| 90 |
+
esac
|
| 91 |
+
done
|
| 92 |
+
|
| 93 |
+
# Validate skill name
|
| 94 |
+
if [ -z "$SKILL_NAME" ]; then
|
| 95 |
+
log_error "Skill name is required"
|
| 96 |
+
usage
|
| 97 |
+
exit 1
|
| 98 |
+
fi
|
| 99 |
+
|
| 100 |
+
# Validate skill name format (lowercase, hyphens, no spaces)
|
| 101 |
+
if ! [[ "$SKILL_NAME" =~ ^[a-z0-9]+(-[a-z0-9]+)*$ ]]; then
|
| 102 |
+
log_error "Invalid skill name format. Use lowercase letters, numbers, and hyphens only."
|
| 103 |
+
log_error "Examples: 'docker-fixes', 'api-patterns', 'pnpm-setup'"
|
| 104 |
+
exit 1
|
| 105 |
+
fi
|
| 106 |
+
|
| 107 |
+
# Validate output path to avoid writes outside current workspace.
|
| 108 |
+
if [[ "$SKILLS_DIR" = /* ]]; then
|
| 109 |
+
log_error "Output directory must be a relative path under the current directory."
|
| 110 |
+
exit 1
|
| 111 |
+
fi
|
| 112 |
+
|
| 113 |
+
if [[ "$SKILLS_DIR" =~ (^|/)\.\.(/|$) ]]; then
|
| 114 |
+
log_error "Output directory cannot include '..' path segments."
|
| 115 |
+
exit 1
|
| 116 |
+
fi
|
| 117 |
+
|
| 118 |
+
SKILLS_DIR="${SKILLS_DIR#./}"
|
| 119 |
+
SKILLS_DIR="./$SKILLS_DIR"
|
| 120 |
+
|
| 121 |
+
SKILL_PATH="$SKILLS_DIR/$SKILL_NAME"
|
| 122 |
+
|
| 123 |
+
# Check if skill already exists
|
| 124 |
+
if [ -d "$SKILL_PATH" ] && [ "$DRY_RUN" = false ]; then
|
| 125 |
+
log_error "Skill already exists: $SKILL_PATH"
|
| 126 |
+
log_error "Use a different name or remove the existing skill first."
|
| 127 |
+
exit 1
|
| 128 |
+
fi
|
| 129 |
+
|
| 130 |
+
# Dry run output
|
| 131 |
+
if [ "$DRY_RUN" = true ]; then
|
| 132 |
+
log_info "Dry run - would create:"
|
| 133 |
+
echo " $SKILL_PATH/"
|
| 134 |
+
echo " $SKILL_PATH/SKILL.md"
|
| 135 |
+
echo ""
|
| 136 |
+
echo "Template content would be:"
|
| 137 |
+
echo "---"
|
| 138 |
+
cat << TEMPLATE
|
| 139 |
+
name: $SKILL_NAME
|
| 140 |
+
description: "[TODO: Add a concise description of what this skill does and when to use it]"
|
| 141 |
+
---
|
| 142 |
+
|
| 143 |
+
# $(echo "$SKILL_NAME" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))}1')
|
| 144 |
+
|
| 145 |
+
[TODO: Brief introduction explaining the skill's purpose]
|
| 146 |
+
|
| 147 |
+
## Quick Reference
|
| 148 |
+
|
| 149 |
+
| Situation | Action |
|
| 150 |
+
|-----------|--------|
|
| 151 |
+
| [Trigger condition] | [What to do] |
|
| 152 |
+
|
| 153 |
+
## Usage
|
| 154 |
+
|
| 155 |
+
[TODO: Detailed usage instructions]
|
| 156 |
+
|
| 157 |
+
## Examples
|
| 158 |
+
|
| 159 |
+
[TODO: Add concrete examples]
|
| 160 |
+
|
| 161 |
+
## Source Learning
|
| 162 |
+
|
| 163 |
+
This skill was extracted from a learning entry.
|
| 164 |
+
- Learning ID: [TODO: Add original learning ID]
|
| 165 |
+
- Original File: .learnings/LEARNINGS.md
|
| 166 |
+
TEMPLATE
|
| 167 |
+
echo "---"
|
| 168 |
+
exit 0
|
| 169 |
+
fi
|
| 170 |
+
|
| 171 |
+
# Create skill directory structure
|
| 172 |
+
log_info "Creating skill: $SKILL_NAME"
|
| 173 |
+
|
| 174 |
+
mkdir -p "$SKILL_PATH"
|
| 175 |
+
|
| 176 |
+
# Create SKILL.md from template
|
| 177 |
+
cat > "$SKILL_PATH/SKILL.md" << TEMPLATE
|
| 178 |
+
---
|
| 179 |
+
name: $SKILL_NAME
|
| 180 |
+
description: "[TODO: Add a concise description of what this skill does and when to use it]"
|
| 181 |
+
---
|
| 182 |
+
|
| 183 |
+
# $(echo "$SKILL_NAME" | sed 's/-/ /g' | awk '{for(i=1;i<=NF;i++) $i=toupper(substr($i,1,1)) tolower(substr($i,2))}1')
|
| 184 |
+
|
| 185 |
+
[TODO: Brief introduction explaining the skill's purpose]
|
| 186 |
+
|
| 187 |
+
## Quick Reference
|
| 188 |
+
|
| 189 |
+
| Situation | Action |
|
| 190 |
+
|-----------|--------|
|
| 191 |
+
| [Trigger condition] | [What to do] |
|
| 192 |
+
|
| 193 |
+
## Usage
|
| 194 |
+
|
| 195 |
+
[TODO: Detailed usage instructions]
|
| 196 |
+
|
| 197 |
+
## Examples
|
| 198 |
+
|
| 199 |
+
[TODO: Add concrete examples]
|
| 200 |
+
|
| 201 |
+
## Source Learning
|
| 202 |
+
|
| 203 |
+
This skill was extracted from a learning entry.
|
| 204 |
+
- Learning ID: [TODO: Add original learning ID]
|
| 205 |
+
- Original File: .learnings/LEARNINGS.md
|
| 206 |
+
TEMPLATE
|
| 207 |
+
|
| 208 |
+
log_info "Created: $SKILL_PATH/SKILL.md"
|
| 209 |
+
|
| 210 |
+
# Suggest next steps
|
| 211 |
+
echo ""
|
| 212 |
+
log_info "Skill scaffold created successfully!"
|
| 213 |
+
echo ""
|
| 214 |
+
echo "Next steps:"
|
| 215 |
+
echo " 1. Edit $SKILL_PATH/SKILL.md"
|
| 216 |
+
echo " 2. Fill in the TODO sections with content from your learning"
|
| 217 |
+
echo " 3. Add references/ folder if you have detailed documentation"
|
| 218 |
+
echo " 4. Add scripts/ folder if you have executable code"
|
| 219 |
+
echo " 5. Update the original learning entry with:"
|
| 220 |
+
echo " **Status**: promoted_to_skill"
|
| 221 |
+
echo " **Skill-Path**: skills/$SKILL_NAME"
|
01_Productivity_Flow_task_2_table_tex_download/instruction.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are an expert in a restricted, non-interactive environment. Solve the task efficiently before the timeout (900s). Use the available tools and as many iterative steps as needed. Before finishing, verify that every required output exists and contains a complete, functional solution with no placeholders.
|
| 2 |
+
|
| 3 |
+
I want to recover original LaTeX table source from an arXiv paper.
|
| 4 |
+
|
| 5 |
+
Please work on this paper:
|
| 6 |
+
|
| 7 |
+
- Paper URL: `https://arxiv.org/abs/2501.07888`
|
| 8 |
+
|
| 9 |
+
Your task is to find the corresponding original arXiv source package, download it, and extract **all table environments from the paper source**. You should delete the source package after extracting.
|
| 10 |
+
|
| 11 |
+
Save the results into `/tmp_workspace/results`.
|
| 12 |
+
|
| 13 |
+
- Save each recovered table as a separate file named `1.tex`, `2.tex`, `3.tex`, ...
|
| 14 |
+
- Number the files in the order the tables appear in the paper
|
| 15 |
+
- Each file must contain exactly one original LaTeX `table` environment copied from the source package
|
| 16 |
+
- Preserve the original table content and formatting as much as possible
|
| 17 |
+
- Do not merge multiple tables into one file
|
| 18 |
+
- Do not wrap the table with extra explanation, markdown, or prose
|
| 19 |
+
- Do not skip numbers in the sequence
|
| 20 |
+
- Only generate the required output files
|
01_Productivity_Flow_task_2_table_tex_download/task.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.4"
|
| 2 |
+
artifacts = ["/tmp_workspace/results"]
|
| 3 |
+
|
| 4 |
+
[metadata]
|
| 5 |
+
benchmark = "WildClawBench"
|
| 6 |
+
source_task_id = "01_Productivity_Flow_task_2_table_tex_download"
|
| 7 |
+
name = "Recover Original Table TeX from arXiv Source"
|
| 8 |
+
category = "01_Productivity_Flow"
|
| 9 |
+
modality = "pure-text"
|
| 10 |
+
|
| 11 |
+
[agent]
|
| 12 |
+
timeout_sec = 900.0
|
| 13 |
+
|
| 14 |
+
[verifier]
|
| 15 |
+
environment_mode = "shared"
|
| 16 |
+
timeout_sec = 600.0
|
| 17 |
+
|
| 18 |
+
[environment]
|
| 19 |
+
docker_image = "wildclawbench-ubuntu:v1.3"
|
| 20 |
+
workdir = "/tmp_workspace"
|
| 21 |
+
network_mode = "public"
|
| 22 |
+
env = { BRAVE_API_KEY = "${BRAVE_API_KEY:-}", HTTPS_PROXY = "", HTTP_PROXY = "", NO_PROXY = "localhost,127.0.0.1,host.docker.internal", http_proxy = "", https_proxy = "", no_proxy = "localhost,127.0.0.1,host.docker.internal" }
|
| 23 |
+
skills_dir = "/tmp_workspace/.wildclaw/skills"
|
| 24 |
+
|
| 25 |
+
[environment.healthcheck]
|
| 26 |
+
command = "bash /tmp_workspace/.wildclaw/run-warmup.sh"
|
| 27 |
+
timeout_sec = 1200.0
|
| 28 |
+
interval_sec = 1.0
|
| 29 |
+
retries = 1
|
01_Productivity_Flow_task_2_table_tex_download/tests/checks.py
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def grade(**kwargs) -> dict:
|
| 2 |
+
"""
|
| 3 |
+
Grade the table-tex extraction task.
|
| 4 |
+
|
| 5 |
+
Args:
|
| 6 |
+
|
| 7 |
+
Returns:
|
| 8 |
+
Dict mapping criterion names to scores (0.0 to 1.0)
|
| 9 |
+
"""
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
import re
|
| 12 |
+
|
| 13 |
+
workspace = Path("/tmp_workspace/results")
|
| 14 |
+
gt_dir = Path("/tmp_workspace") / "gt"
|
| 15 |
+
|
| 16 |
+
def normalize_tex(text: str) -> str:
|
| 17 |
+
text = text.strip()
|
| 18 |
+
text = re.sub(r"%[^\n]*", "", text)
|
| 19 |
+
text = re.sub(r"\s+", " ", text)
|
| 20 |
+
text = text.strip()
|
| 21 |
+
return text
|
| 22 |
+
|
| 23 |
+
if not gt_dir.exists() or not gt_dir.is_dir():
|
| 24 |
+
return {"error": f"gt_dir does not exist or is not a directory: {gt_dir}"}
|
| 25 |
+
|
| 26 |
+
gt_files = sorted(gt_dir.glob("*.tex"), key=lambda p: int(p.stem))
|
| 27 |
+
gt_contents = [normalize_tex(f.read_text(encoding="utf-8")) for f in gt_files]
|
| 28 |
+
num_gt = len(gt_contents)
|
| 29 |
+
|
| 30 |
+
if num_gt == 0:
|
| 31 |
+
return {"error": f"no .tex files found under gt_dir: {gt_dir}"}
|
| 32 |
+
|
| 33 |
+
ALL_CRITERIA = (
|
| 34 |
+
["files_created"]
|
| 35 |
+
+ [f"ordered_match_{i}" for i in range(1, num_gt + 1)]
|
| 36 |
+
+ ["strict_ordered_ratio", "unordered_recall", "unordered_precision", "unordered_f1", "overall_score"]
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
if not workspace.exists() or not workspace.is_dir():
|
| 40 |
+
return {k: 0.0 for k in ALL_CRITERIA} | {"error": f"workspace not found: {workspace}"}
|
| 41 |
+
|
| 42 |
+
pred_files = sorted(
|
| 43 |
+
[p for p in workspace.glob("*.tex") if p.stem.isdigit()],
|
| 44 |
+
key=lambda p: int(p.stem),
|
| 45 |
+
)
|
| 46 |
+
pred_contents = [normalize_tex(f.read_text(encoding="utf-8")) for f in pred_files]
|
| 47 |
+
num_pred = len(pred_contents)
|
| 48 |
+
scores = {}
|
| 49 |
+
|
| 50 |
+
scores["files_created"] = 1.0 if num_pred > 0 else 0.0
|
| 51 |
+
|
| 52 |
+
for i in range(1, num_gt + 1):
|
| 53 |
+
key = f"ordered_match_{i}"
|
| 54 |
+
if i - 1 < num_pred and i - 1 < num_gt:
|
| 55 |
+
scores[key] = 1.0 if pred_contents[i - 1] == gt_contents[i - 1] else 0.0
|
| 56 |
+
else:
|
| 57 |
+
scores[key] = 0.0
|
| 58 |
+
|
| 59 |
+
ordered_correct = 0
|
| 60 |
+
for i in range(min(num_pred, num_gt)):
|
| 61 |
+
if pred_contents[i] == gt_contents[i]:
|
| 62 |
+
ordered_correct += 1
|
| 63 |
+
scores["strict_ordered_ratio"] = round(ordered_correct / num_gt, 4)
|
| 64 |
+
|
| 65 |
+
gt_matched = set()
|
| 66 |
+
pred_matched = set()
|
| 67 |
+
for pi, pc in enumerate(pred_contents):
|
| 68 |
+
for gi, gc in enumerate(gt_contents):
|
| 69 |
+
if gi not in gt_matched and pc == gc:
|
| 70 |
+
gt_matched.add(gi)
|
| 71 |
+
pred_matched.add(pi)
|
| 72 |
+
break
|
| 73 |
+
|
| 74 |
+
recall = len(gt_matched) / num_gt if num_gt > 0 else 0.0
|
| 75 |
+
precision = len(pred_matched) / num_pred if num_pred > 0 else 0.0
|
| 76 |
+
f1 = (2 * precision * recall / (precision + recall)) if (precision + recall) > 0 else 0.0
|
| 77 |
+
|
| 78 |
+
scores["unordered_recall"] = round(recall, 4)
|
| 79 |
+
scores["unordered_precision"] = round(precision, 4)
|
| 80 |
+
scores["unordered_f1"] = round(f1, 4)
|
| 81 |
+
|
| 82 |
+
scores["overall_score"] = round(
|
| 83 |
+
0.7 * scores["strict_ordered_ratio"] + 0.3 * scores["unordered_f1"], 4
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
return scores
|
01_Productivity_Flow_task_2_table_tex_download/tests/grader.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Execute an embedded WildClawBench grader as a Harbor verifier."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import json
|
| 6 |
+
import math
|
| 7 |
+
import runpy
|
| 8 |
+
import traceback
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any
|
| 11 |
+
|
| 12 |
+
from transcript_loader import load_transcript, write_openclaw_compat_transcript
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
WORKSPACE = "/tmp_workspace"
|
| 16 |
+
TESTS_DIR = Path("/tests")
|
| 17 |
+
VERIFIER_LOG_DIR = Path("/logs/verifier")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def _numeric_rewards(scores: dict[str, Any]) -> dict[str, float]:
|
| 21 |
+
rewards: dict[str, float] = {}
|
| 22 |
+
for key, value in scores.items():
|
| 23 |
+
if isinstance(value, bool):
|
| 24 |
+
rewards[str(key)] = float(value)
|
| 25 |
+
elif isinstance(value, (int, float)) and math.isfinite(float(value)):
|
| 26 |
+
rewards[str(key)] = float(value)
|
| 27 |
+
|
| 28 |
+
if "overall_score" not in rewards:
|
| 29 |
+
numeric_values = list(rewards.values())
|
| 30 |
+
rewards["overall_score"] = (
|
| 31 |
+
sum(numeric_values) / len(numeric_values) if numeric_values else 0.0
|
| 32 |
+
)
|
| 33 |
+
return rewards
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
def _write_json(path: Path, value: Any) -> None:
|
| 37 |
+
path.write_text(
|
| 38 |
+
json.dumps(value, indent=2, ensure_ascii=False, default=str) + "\n",
|
| 39 |
+
encoding="utf-8",
|
| 40 |
+
)
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
def main() -> int:
|
| 44 |
+
VERIFIER_LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 45 |
+
try:
|
| 46 |
+
namespace = runpy.run_path(str(TESTS_DIR / "checks.py"))
|
| 47 |
+
grade = namespace.get("grade")
|
| 48 |
+
if not callable(grade):
|
| 49 |
+
raise TypeError("/tests/checks.py must define a callable grade()")
|
| 50 |
+
|
| 51 |
+
transcript = load_transcript()
|
| 52 |
+
write_openclaw_compat_transcript(transcript)
|
| 53 |
+
scores = grade(
|
| 54 |
+
transcript=transcript,
|
| 55 |
+
workspace_path=WORKSPACE,
|
| 56 |
+
)
|
| 57 |
+
if not isinstance(scores, dict):
|
| 58 |
+
raise TypeError(
|
| 59 |
+
f"WildClawBench grade() returned {type(scores).__name__}, expected dict"
|
| 60 |
+
)
|
| 61 |
+
|
| 62 |
+
_write_json(VERIFIER_LOG_DIR / "wildclaw_score.json", scores)
|
| 63 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", _numeric_rewards(scores))
|
| 64 |
+
return 0
|
| 65 |
+
except Exception as exc:
|
| 66 |
+
traceback.print_exc()
|
| 67 |
+
_write_json(
|
| 68 |
+
VERIFIER_LOG_DIR / "wildclaw_score.json",
|
| 69 |
+
{"overall_score": 0.0, "error": str(exc)},
|
| 70 |
+
)
|
| 71 |
+
_write_json(VERIFIER_LOG_DIR / "reward.json", {"overall_score": 0.0})
|
| 72 |
+
return 0
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
if __name__ == "__main__":
|
| 76 |
+
raise SystemExit(main())
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/1.tex
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\resizebox{\textwidth}{!}{
|
| 4 |
+
\begin{tabular}{l|cccccc}
|
| 5 |
+
\toprule
|
| 6 |
+
\multirow{2}{*}{\textbf{Model}} & \multicolumn{5}{c}{\textbf{Video Categories}} & \multirow{2}{*}{\textbf{Overall}} \\
|
| 7 |
+
& Live-action & Animation & Stock & YouTube & Shorts & \\\midrule
|
| 8 |
+
\multicolumn{7}{l}{\textit{Proprietary models}} \\
|
| 9 |
+
GPT-4V \cite{gpt4v} & 34.8/39.2/31.3 & 27.4/31.9/24.0 & 40.7/\underline{46.7}/36.1 & 33.8/40.1/29.2 & 34.8/46.1/28.0 & 34.4/40.8/29.7 \\
|
| 10 |
+
GPT-4o \cite{gpt4o} & 39.8/\underline{42.1}/37.8 & 35.8/39.1/33.1 & 44.0/46.6/41.7 & 35.9/\underline{41.5}/31.7 & 39.9/47.9/34.2 & 39.2/\underline{43.4}/35.7 \\
|
| 11 |
+
Gemini-1.5-Flash \cite{geminiteam2024gemini15unlockingmultimodal} & 34.8/36.4/33.3 & 29.2/32.5/26.5 & 39.4/39.7/39.1 & 34.3/38.6/30.9 & 35.6/42.4/30.7 & 34.8/37.9/32.1 \\
|
| 12 |
+
Gemini-1.5-Pro \cite{geminiteam2024gemini15unlockingmultimodal} & 36.4/36.4/36.4 & 30.7/31.8/29.7 & 42.2/40.7/43.8 & 34.0/36.7/31.6 & 37.0/42.4/32.7 & 36.2/37.6/34.8 \\
|
| 13 |
+
\midrule
|
| 14 |
+
\multicolumn{7}{l}{\textit{Open-source models ($>$10B)}} \\
|
| 15 |
+
PLLaVA-34B \cite{xu2024pllava} & 29.3/34.9/25.2 & 20.9/32.0/15.6 & 35.1/42.5/29.9 & 28.9/40.8/22.3 & 25.6/41.9/18.4 & 28.2/38.4/22.3 \\
|
| 16 |
+
VideoLLaMA2-72B \cite{cheng2024videollama2} & 27.3/29.3/25.6 & 19.7/21.7/18.1 & 33.9/37.0/31.3 & 27.7/33.0/23.8 & 26.5/33.1/22.1 & 27.1/30.8/24.2 \\
|
| 17 |
+
LLaVA-OV-72B \cite{li2024llavanext} & 31.7/32.8/30.7 & 27.7/30.6/25.2 & 38.0/39.6/36.6 & 34.1/34.7/33.5 & 33.8/41.8/28.4 & 33.2/35.9/30.9 \\
|
| 18 |
+
LLaVA-Video-72B \cite{zhang2024video} & 33.5/36.3/31.1 & 28.6/31.7/26.1 & 39.3/41.1/37.6 & 32.8/34.7/31.1 & 35.7/42.8/30.6 & 34.0/37.3/31.3\\
|
| 19 |
+
Qwen2-VL-72B \cite{qwen2vl} & 32.1/33.7/30.6 & 27.6/32.6/23.9 & 41.1/41.2/41.1 & 32.0/38.1/27.7 & 32.1/41.0/26.4 & 33.2/37.3/29.9\\
|
| 20 |
+
InternVL2.5-78B \cite{chen2024expanding} & 25.3/31.5/21.1 & 21.8/28.8/17.6 & 33.5/38.1/29.9 & 31.0/38.5/25.9 & 31.1/41.7/24.8 & 28.6/35.7/23.9\\
|
| 21 |
+
Tarsier-34B \cite{wang2024tarsierrecipestrainingevaluating} & 38.5/39.6/37.5 & 32.2/35.8/29.2 & 41.7/46.4/37.8 & 34.5/41.1/29.7 & 34.0/44.1/27.7 & 36.3/41.4/32.4 \\
|
| 22 |
+
% VILA-40B \\
|
| 23 |
+
\midrule
|
| 24 |
+
\multicolumn{7}{l}{\textit{Open-source models ($<$10B)}} \\
|
| 25 |
+
Video-LLaVA-7B \cite{lin2023video} & 19.4/24.3/16.2 & 15.3/21.2/11.9 & 27.0/33.5/22.7 & 21.2/31.9/15.8 & 18.5/29.4/13.5 & 20.4/28.1/16.0 \\
|
| 26 |
+
VideoLLaMA2-7B \cite{cheng2024videollama2} & 25.1/28.7/22.2 & 20.4/25.5/17.0 & 32.6/35.5/30.2 & 27.5/33.5/23.4 & 24.5/34.1/19.2 & 26.2/31.5/22.4 \\
|
| 27 |
+
LLaVA-OV-7B \cite{li2024llavanext} & 31.2/33.2/29.3 & 26.8/29.0/25.0 & 38.1/39.1/37.1 & 30.6/32.1/29.2 & 31.4/38.3/26.6 & 31.7/34.3/29.4 \\
|
| 28 |
+
LLaVA-Video-7B \cite{zhang2024video} & 31.4/35.2/28.4 & 27.6/32.9/23.8 & 36.7/39.7/34.1 & 33.0/\textbf{39.5}/28.3 & 33.4/42.5/27.5 & 32.5/37.9/28.4 \\
|
| 29 |
+
Qwen2-VL-7B \cite{qwen2vl} & 27.7/32.5/24.2 & 22.2/28.0/18.4 & 37.0/36.1/38.0 & 30.7/35.5/27.0 & 29.1/37.6/23.8 & 29.6/33.9/26.3 \\
|
| 30 |
+
InternVL2.5-8B \cite{chen2024expanding} & 26.6/32.0/22.8 & 21.3/28.9/16.9 & 32.7/37.2/29.1 & 27.9/35.4/23.0 & 28.9/39.9/22.7 & 27.6/34.7/22.9 \\
|
| 31 |
+
Tarsier-7B \cite{wang2024tarsierrecipestrainingevaluating} & 36.6/38.5/34.8 & 29.3/34.6/25.5 & 39.6/44.7/35.5 & 33.0/39.2/28.4 & 33.6/44.6/26.9 & 34.6/40.3/30.2 \\
|
| 32 |
+
\midrule
|
| 33 |
+
Tarsier2-7B & \underline{\textbf{44.4}}/\textbf{41.9}/\underline{\textbf{47.3}} & \underline{\textbf{39.3}}/\underline{\textbf{39.5}}/\underline{\textbf{39.1}} & \underline{\textbf{45.7}}/\textbf{45.4}/\underline{\textbf{46.0}} & \underline{\textbf{36.0}}/38.4/\underline{\textbf{33.9}} & \underline{\textbf{43.7}}/\underline{\textbf{48.9}}/\underline{\textbf{39.4}} & \underline{\textbf{42.0}}/\textbf{42.8}/\underline{\textbf{41.1}} \\
|
| 34 |
+
\bottomrule
|
| 35 |
+
\end{tabular}
|
| 36 |
+
}
|
| 37 |
+
\caption{Evaluation results on DREAM-1K. We report F1/Precision/Recall scores for each category and for the overall dataset. For open-source models, all results are tested with their official checkpoint and inference code under recommended setting. SOTA results of comparable scale ($<$10B) are bolded and overall best results are underlined.}
|
| 38 |
+
\label{tab:dream-1k}
|
| 39 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/10.tex
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[t]
|
| 2 |
+
\centering
|
| 3 |
+
\scriptsize
|
| 4 |
+
\setlength{\tabcolsep}{3pt} % 调整列间距
|
| 5 |
+
\resizebox{\textwidth}{!}{\begin{tabular}{l|ccc|cc|c}
|
| 6 |
+
\toprule
|
| 7 |
+
\multirow{2}{*}{\textbf{Model}} & \multicolumn{3}{c|}{\textbf{Caption}} & \multicolumn{2}{c|}{\textbf{Video QA}} & \multirow{2}{*}{\textbf{Hallucination}} \\
|
| 8 |
+
& DREAM-1K & TempCompass-cg & Vinoground-Text & Short & Long & \\
|
| 9 |
+
\midrule
|
| 10 |
+
Tarsier2-7B & 42.0 & 66.6 & 65.8 & 56.1 & 62.8 & 74.0 \\
|
| 11 |
+
\midrule
|
| 12 |
+
\quad \textit{w/o DPO} & 40.8 ($\downarrow$1.2) & 62.1 ($\downarrow$6.5) & 60.6 ($\downarrow$5.6) & 56.2 ($\uparrow$0.1) & 63.2 ($\uparrow$0.4) & 71.9 ($\downarrow$2.1) \\
|
| 13 |
+
\quad \textit{w/o NS} & 41.5 ($\downarrow$0.5) & 61.1 ($\downarrow$5.5) & 59.8 ($\downarrow$6.0)& 56.1 ($\downarrow$0.0) & 62.8 ($\downarrow$0.0) & 72.9 ($\downarrow$1.1) \\
|
| 14 |
+
\quad \textit{w/o PF} & 40.5 ($\downarrow$1.5) & 65.1 ($\downarrow$1.5) & 67.6 ($\uparrow$1.8) & 56.0 ($\downarrow$0.1) & 62.3 ($\downarrow$0.5) & 74.2 ($\uparrow$0.2) \\
|
| 15 |
+
\bottomrule
|
| 16 |
+
\end{tabular}}
|
| 17 |
+
\caption{Ablation study for DPO training phase, negative sampling (NS) and preference data filtering (PF) strategies.}
|
| 18 |
+
\label{tab:dpo_ablation}
|
| 19 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/11.tex
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[t]
|
| 2 |
+
\centering
|
| 3 |
+
\scriptsize
|
| 4 |
+
\setlength{\tabcolsep}{3pt} % 调整列间距
|
| 5 |
+
\resizebox{\textwidth}{!}{\begin{tabular}{l|ccc|cc|c}
|
| 6 |
+
\toprule
|
| 7 |
+
\multirow{2}{*}{\textbf{Model}} & \multicolumn{3}{c|}{\textbf{Caption}} & \multicolumn{2}{c|}{\textbf{Video QA}} & \multirow{2}{*}{\textbf{Hallucination}} \\
|
| 8 |
+
& DREAM-1K & TempCompass-cg & Vinoground-Text & Short & Long & \\
|
| 9 |
+
\midrule
|
| 10 |
+
% Tarsier2-7B & 42.0 & 66.6 & 65.8 & 56.1 & 62.6 & 74.0 \\
|
| 11 |
+
% \midrule
|
| 12 |
+
% Tarsier-7B & 34.6 & 55.3 & 29.8 & 45.6 & 46.3 & 56.3 \\
|
| 13 |
+
% \makecell[l]{+ \textit{Recaption FT}} & 31.6 & 52.9 & 27.4 & 44.1 & 45.2 & 46.3 \\
|
| 14 |
+
% \makecell[l]{+ \textit{Original FT}} & xxx & xxx & xxx & xxx & xxx & xxx \\
|
| 15 |
+
% \midrule
|
| 16 |
+
Qwen2-VL-7B \cite{qwen2vl} & 31.2 & 54.2 & 40.0 & 49.4 & 60.3 & 51.9 \\
|
| 17 |
+
\midrule
|
| 18 |
+
\makecell[l]{+ \textit{Original FT}} & 35.2 ($\uparrow$4.0) & 49.9 ($\downarrow$4.3) & 39.0 ($\downarrow$1.0) & 46.9 ($\downarrow$2.5) & 55.4 ($\downarrow$4.9) & 43.0 ($\downarrow$8.9) \\
|
| 19 |
+
\makecell[l]{+ \textit{Recaption FT}} & 39.5 ($\uparrow$8.3) & 67.7 ($\uparrow$13.5) & 55.0 ($\uparrow$15.0) & 52.5 ($\uparrow$3.1) & 56.8 ($\downarrow$3.5) & 68.5 ($\uparrow$16.6) \\
|
| 20 |
+
\bottomrule
|
| 21 |
+
\end{tabular}}
|
| 22 |
+
\caption{The experimental results of recaptioning. ``\textit{Recaption FT}'' represents fine-tune the model on the Tarsier2-Recap-585K dataset. ``\textit{Original FT}'' represents fine-tune the model with the same videos as Tarsier2-Recap-585K but taking their original labels as target output.}
|
| 23 |
+
\label{tab:recaption}
|
| 24 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/12.tex
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\resizebox{\textwidth}{!}{
|
| 4 |
+
\begin{tabular}{l |c c c c}
|
| 5 |
+
\toprule
|
| 6 |
+
\textbf{Configuration} & \textbf{Pre-training} & \textbf{SFT-1} & \textbf{SFT-2} & \textbf{DPO} \\\midrule
|
| 7 |
+
VLM init. & Qwen2-VL-7B & Tarsier2-Pre-trian & Tarsier2-SFT-1 & Tarsier2-SFT-2 \\
|
| 8 |
+
Optimizer name & \multicolumn{4}{c}{AdamW} \\
|
| 9 |
+
Optimizer $\beta_1$ & \multicolumn{4}{c}{$0.9$}\\
|
| 10 |
+
Optimizer $\beta_2$ & \multicolumn{4}{c}{$0.999$}\\
|
| 11 |
+
Optimizer eps & \multicolumn{4}{c}{$1e^{-6}$}\\
|
| 12 |
+
Learning rate & $2e^{-5}$ & $2e^{-5}$ & $2e^{-6}$ & $1e^{-6}$\\
|
| 13 |
+
Learning rate schedule & \multicolumn{4}{c}{cosine} \\
|
| 14 |
+
Training steps & 200,000 & 5,000 & 5,000 & 1,000\\
|
| 15 |
+
Warm-up steps & 1,000 & 250 & 250 & 100 \\
|
| 16 |
+
Weight decay & \multicolumn{4}{c}{0.01}\\
|
| 17 |
+
Gradient clip & \multicolumn{4}{c}{1.0} \\
|
| 18 |
+
Dropout rate & \multicolumn{4}{c}{0.0}\\
|
| 19 |
+
Global batch size & 384 & 64 & 64 & 64 \\
|
| 20 |
+
Max pixels & \multicolumn{4}{c}{460,800} \\
|
| 21 |
+
Frames per video & [8,128] & 16 & 16 & 16 \\
|
| 22 |
+
Numerical precision & \multicolumn{4}{c}{bfloat16} \\
|
| 23 |
+
\bottomrule
|
| 24 |
+
\end{tabular}
|
| 25 |
+
}
|
| 26 |
+
\caption{Training hyper-parameters of \modelname}
|
| 27 |
+
\label{tab:hyperparam}
|
| 28 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/13.tex
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\small
|
| 4 |
+
\setlength{\tabcolsep}{3pt} % 调整列间距
|
| 5 |
+
\resizebox{\textwidth}{!}{
|
| 6 |
+
\begin{tabular}{llll}
|
| 7 |
+
\toprule
|
| 8 |
+
\multicolumn{4}{l}{\textit{\textbf{Video Captioning}}} \\
|
| 9 |
+
WebVid~\cite{bain2021frozen} (2.9M) &
|
| 10 |
+
LSMDC~\cite{rohrbach2017movie} (109K) &
|
| 11 |
+
TGIF~\cite{li2016tgif} (105K) &
|
| 12 |
+
ActivityNet~\cite{krishna2017dense} (38K) \\
|
| 13 |
+
Charades~\cite{sigurdsson2016hollywood} (16K) &
|
| 14 |
+
Charades-Ego~\cite{sigurdsson2018charades} (6K) &
|
| 15 |
+
YouCook2~\cite{zhou2018youcook2} (9K) &
|
| 16 |
+
TACoS~\cite{regneri2013grounding} (18K)\\
|
| 17 |
+
Ego4D~\cite{grauman2022ego4d} (1.1M) &
|
| 18 |
+
Spoken Moments~\cite{monfort2021spoken} (493K) &
|
| 19 |
+
Multi-Moments~\cite{monfort2021multi} (997K) &
|
| 20 |
+
TREC-VTT~\cite{awad2023trecvid} (64K) \\
|
| 21 |
+
ShareGPT-4o-video~\cite{sharegpt4o} (2K) &
|
| 22 |
+
MovieStory101\cite{he2024storyteller} (11K) &
|
| 23 |
+
GPT4o-labeled Caption$^\dagger$ (2.5M) &
|
| 24 |
+
Human-labeled Caption$^\dagger$ (145K) \\
|
| 25 |
+
Film\&TV Commentary$^\dagger$ (11.5M) &
|
| 26 |
+
\\
|
| 27 |
+
|
| 28 |
+
\midrule
|
| 29 |
+
\multicolumn{4}{l}{\textit{\textbf{Action Recognition}}} \\
|
| 30 |
+
HMDB~\cite{kuehne2011hmdb} (5.8K) &
|
| 31 |
+
COIN~\cite{tang2019coin} (10K) &
|
| 32 |
+
SSV2~\cite{goyal2017something} (169K) &
|
| 33 |
+
Kinetics-700~\cite{carreira2017quo} (537K) \\
|
| 34 |
+
FineAction~\cite{liu2022fineaction} (82K) &
|
| 35 |
+
RareAct~\cite{miech2020rareact} (2K) &
|
| 36 |
+
20BN-jester~\cite{materzynska2019jester} (46K) & \\
|
| 37 |
+
|
| 38 |
+
\midrule
|
| 39 |
+
\multicolumn{4}{l}{\textit{\textbf{Video QA}}} \\
|
| 40 |
+
CLEVRER~\cite{yi2019clevrer} (83K) &
|
| 41 |
+
TGIF-QA~\cite{jang2017tgif} (72K) &
|
| 42 |
+
EgoQA~\cite{fan2019egovqa} (5K) &
|
| 43 |
+
VideoInstruct~\cite{maaz2023video} (89K) \\
|
| 44 |
+
LLaVA-Video-178K~\cite{zhang2024video} (165K) &
|
| 45 |
+
M4-Instruct-video~\cite{li2024llava} (255K) &
|
| 46 |
+
GPT4o-labeled QA$^\dagger$ (16.2K) &
|
| 47 |
+
\\
|
| 48 |
+
|
| 49 |
+
\midrule
|
| 50 |
+
\multicolumn{4}{l}{\textit{\textbf{Grounding}}} \\
|
| 51 |
+
DiDeMo~\cite{anne2017localizing} (82K) &
|
| 52 |
+
AVA~\cite{gu2018ava} (28K) &
|
| 53 |
+
E.T. Instruct 164K~\cite{liu2024etbench} (147K) &
|
| 54 |
+
Object Tracking$^\dagger$ (745K) \\
|
| 55 |
+
|
| 56 |
+
\midrule
|
| 57 |
+
\multicolumn{4}{l}{\textit{\textbf{Video Self-Supervised Training}}} \\
|
| 58 |
+
Frame Order Prediction$^\dagger$ (825K) \\
|
| 59 |
+
|
| 60 |
+
\midrule
|
| 61 |
+
\multicolumn{4}{l}{\textit{\textbf{Intent Recognition}}} \\
|
| 62 |
+
Oops!~\cite{epstein2020oops} (15K) & & & \\
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
\midrule
|
| 67 |
+
\multicolumn{4}{l}{\textit{\textbf{Multi-Image Understanding}}} \\
|
| 68 |
+
VIST~\cite{huang2016visual} (38K) &
|
| 69 |
+
MMDU~\cite{liu2024mmdu} (45K) &
|
| 70 |
+
M4-Instruct-image~\cite{li2024llava} (616K) &
|
| 71 |
+
Image Retrival$^\dagger$ (533K) \\
|
| 72 |
+
|
| 73 |
+
\midrule
|
| 74 |
+
\multicolumn{4}{l}{\textit{\textbf{Single-Image Understanding}}} \\
|
| 75 |
+
ShareGPT4V~\cite{chen2023sharegpt4v} (95K) &
|
| 76 |
+
LLaVA-1.5~\cite{liu2023improved} (643K) &
|
| 77 |
+
ShareGPT-4o-image\cite{sharegpt4o} (57K) &
|
| 78 |
+
MS COCO~\cite{lin2014microsoft} (566K) \\
|
| 79 |
+
Flicker~\cite{plummer2015flickr30k} (145K) &
|
| 80 |
+
LLaVA-ReCap-CC3M~\cite{li2024llava} (2.9M) &
|
| 81 |
+
Visual Genome~\cite{krishna2017visual} (759K) &
|
| 82 |
+
SBU Captions~\cite{ordonez2011im2text} (860K) \\
|
| 83 |
+
GPT4o-labeled Caption$^\dagger$ (1.13M) \\
|
| 84 |
+
|
| 85 |
+
\midrule
|
| 86 |
+
\multicolumn{4}{l}{\textit{\textbf{Image OCR}}} \\
|
| 87 |
+
RCTW-17~\cite{shi2017icdar2017} (8K) &
|
| 88 |
+
LSVT~\cite{sun2019icdar} (430K) &
|
| 89 |
+
ReCTS~\cite{zhang2019icdar} (20K) &
|
| 90 |
+
Art~\cite{bhagavatula2019abductive} (5.6K) \\
|
| 91 |
+
COCOTextV2~\cite{veit2016coco} (16K) &
|
| 92 |
+
CORD-v2~\cite{park2019cord} (1K) &
|
| 93 |
+
HierText~\cite{long2022towards} (10K) &
|
| 94 |
+
MSRA-TD500~\cite{yao2012detecting} (465) \\
|
| 95 |
+
IC03~\cite{lucas2005icdar} (499) &
|
| 96 |
+
SynthDoG-en~\cite{kim2022donut} (100K) &
|
| 97 |
+
SynthDoG-zh~\cite{kim2022donut} (100K) & \\
|
| 98 |
+
|
| 99 |
+
\midrule
|
| 100 |
+
\multicolumn{4}{l}{\textit{\textbf{Text Generation}}} \\
|
| 101 |
+
OpenOrca~\cite{lian2023openorca} (995K) &
|
| 102 |
+
ShareGPT~\cite{vicuna2023} (80K) & & \\
|
| 103 |
+
|
| 104 |
+
\bottomrule
|
| 105 |
+
\end{tabular}
|
| 106 |
+
}
|
| 107 |
+
\caption{Datasets and their sizes used in \modelname pre-training. $\dagger$ indicates in-house datasets.}
|
| 108 |
+
\label{tab:pretraining-datasets}
|
| 109 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/14.tex
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\resizebox{0.9\textwidth}{!}{%
|
| 4 |
+
\begin{tabular}{cl|ccc}
|
| 5 |
+
\toprule
|
| 6 |
+
\textbf{Capability} & \textbf{Benchmark} & \textbf{Tarsier1-7B} & \textbf{Tarsier1-7B-Qwen} & \textbf{Tarsier2-7B} \\
|
| 7 |
+
|
| 8 |
+
\midrule
|
| 9 |
+
\multirow{3}{*}{Caption} & DREAM-1K & 34.6/30.2/40.3 & 38.4/40.6/36.4 & 40.8/42.5/39.3 \\
|
| 10 |
+
& TempCompass-cg & 55.3 & 59.3 & 60.1 \\
|
| 11 |
+
& Vinoground-Text & 29.8 & 48.6 & 60.2 \\
|
| 12 |
+
\midrule
|
| 13 |
+
\multirow{3}{*}{Video QA Short} & MVBench & 62.6 & 69.8 & 72.8 \\
|
| 14 |
+
& TVBench & 45.8 & 51.0 & 53.5 \\
|
| 15 |
+
& TOMATO & 28.6 & 36.5 & 39.5 \\
|
| 16 |
+
\midrule
|
| 17 |
+
\multirow{3}{*}{Video QA Long} & Video-MME & 42.2 & 58.9 & 65.3 \\
|
| 18 |
+
& LongVideoBench & 39.8 & 52.1 & 58.3 \\
|
| 19 |
+
& TemporalBench & 56.9 & 61.9 & 68.7 \\
|
| 20 |
+
\midrule
|
| 21 |
+
\multirow{2}{*}{Hallucination} & EventHallusion-Y/N & 70.9 & 75.6 & 77.8 \\
|
| 22 |
+
& EventHallusion-Desc & 41.6 & 48.6 & 49.1\\
|
| 23 |
+
\bottomrule
|
| 24 |
+
\end{tabular}
|
| 25 |
+
}
|
| 26 |
+
\caption{Detailed results of the ablation study for pre-training. For the captioning task, results are reported after the SFT stage. For other tasks, results are reported after the pre-training stage. }
|
| 27 |
+
\label{tab:appendix-pretrain_detailed_results}
|
| 28 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/15.tex
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\resizebox{0.9\textwidth}{!}{%
|
| 4 |
+
\begin{tabular}{cl|ccc}
|
| 5 |
+
\toprule
|
| 6 |
+
\textbf{Capability} & \textbf{Benchmark} & \makecell[c]{\\ pre-train} & \makecell[c]{\textbf{Tarsier2-7B}\\ SFT w/o grounding} & \makecell[c]{\\ SFT} \\
|
| 7 |
+
\midrule
|
| 8 |
+
\multirow{3}{*}{Caption} & DREAM-1K & 35.2/36.8/33.7 & 37.4/38.6/36.3 & 40.8/42.5/39.3 \\
|
| 9 |
+
& TempCompass-cg & 50.5 & 50.2 & 60.1 \\
|
| 10 |
+
& Vinoground-Text & 57.2 & 60.6 & 60.2 \\
|
| 11 |
+
\midrule
|
| 12 |
+
\multirow{3}{*}{Video QA Short} & MVBench & 72.8 & 71.9 & 72.5 \\
|
| 13 |
+
& TVBench & 53.5 & 54.5 & 54.2 \\
|
| 14 |
+
& TOMATO & 39.5 & 41.3 & 41.9 \\
|
| 15 |
+
\midrule
|
| 16 |
+
\multirow{3}{*}{Video QA Long} & Video-MME & 65.3 & 64.0 & 64.7 \\
|
| 17 |
+
& LongVideoBench & 58.3 & 54.7 & 58.2 \\
|
| 18 |
+
& TemporalBench & 68.7 & 66.9 & 66.6 \\
|
| 19 |
+
\midrule
|
| 20 |
+
\multirow{2}{*}{Hallucination} & EventHallusion-Y/N & 77.8 & 80.1 & 84.4 \\
|
| 21 |
+
& EventHallusion-Desc & 49.1 & 56.2 & 59.4 \\
|
| 22 |
+
\bottomrule
|
| 23 |
+
\end{tabular}
|
| 24 |
+
}
|
| 25 |
+
\caption{Detailed results of the ablation study for SFT.}
|
| 26 |
+
\label{tab:appendix-sft_detailed_results}
|
| 27 |
+
\end{table}
|
01_Productivity_Flow_task_2_table_tex_download/tests/gt/16.tex
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\begin{table}[h!]
|
| 2 |
+
\centering
|
| 3 |
+
\resizebox{0.9\textwidth}{!}{%
|
| 4 |
+
\begin{tabular}{cl|cccc}
|
| 5 |
+
\toprule
|
| 6 |
+
\textbf{Capability} & \textbf{Benchmark} & \textbf{Tarsier2-7B} & \textit{w/o DPO} & \textit{w/o NS} & \textit{w/o PF}\\
|
| 7 |
+
\midrule
|
| 8 |
+
\multirow{3}{*}{Caption} & DREAM-1K & 42.0/42.8/41.1 & 40.8/42.5/39.3 & 41.5/44.5/39.0 & 40.5/39.9/41.1 \\
|
| 9 |
+
& TempCompass-cg & 66.6 & 60.1 & 62.1 & 65.1 \\
|
| 10 |
+
& Vinoground-Text & 65.8 & 60.2 & 60.6 & 67.6 \\
|
| 11 |
+
\midrule
|
| 12 |
+
\multirow{3}{*}{Video QA Short} & MVBench & 71.5 & 72.5 & 72.2 & 71.7 \\
|
| 13 |
+
& TVBench & 54.7 & 54.2 & 54.9 & 54.6 \\
|
| 14 |
+
& TOMATO & 42.0 & 41.9 & 41.3 & 41.8 \\
|
| 15 |
+
\midrule
|
| 16 |
+
\multirow{3}{*}{Video QA Long} & Video-MME & 64.5 & 64.7 & 64.3 & 64.4 \\
|
| 17 |
+
& LongVideoBench & 58.6 & 58.2 & 58.6 & 57.4 \\
|
| 18 |
+
& TemporalBench & 65.3 & 66.6 & 65.4 & 65.2 \\
|
| 19 |
+
\midrule
|
| 20 |
+
\multirow{2}{*}{Hallucination} & EventHallusion-Y/N & 84.6 & 84.4 & 85.1 & 84.8 \\
|
| 21 |
+
& EventHallusion-Desc & 63.3 & 59.4 & 60.7 & 63.5 \\
|
| 22 |
+
\bottomrule
|
| 23 |
+
\end{tabular}
|
| 24 |
+
}
|
| 25 |
+
\caption{Detailed results of the ablation study for DPO.}
|
| 26 |
+
\label{tab:appendix-dpo_detailed_results}
|
| 27 |
+
\end{table}
|