ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"return_code": 1
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
{"type":"system","subtype":"init","cwd":"/Users/boj/book/ai-agent-book/chapter2/agent-skills-ppt/runs/exp2-6-claude-pptx-20260730-v2/workspace","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","tools":["Task","Bash","CronCreate","CronDelete","CronList","Edit","EnterWorktree","ExitWorktree","NotebookEdit","Read","ReportFindings","ScheduleWakeup","SendMessage","Skill","TaskCreate","TaskGet","TaskList","TaskOutput","TaskStop","TaskUpdate","ToolSearch","WebFetch","WebSearch","Workflow","Write"],"mcp_servers":[],"model":"claude-sonnet-5","permissionMode":"bypassPermissions","slash_commands":["pptx","deep-research","dataviz","update-config","verify","debug","code-review","simplify","batch","fewer-permission-prompts","doctor","loop","claude-api","run","run-skill-generator","agents","clear","color","compact","config","context","effort","fast","heapdump","init","mcp","model","__remote-workflow","workflow-launch-exec","reload-skills","rename","review","security-review","usage","insights","recap","goal","team-onboarding"],"apiKeySource":"ANTHROPIC_API_KEY","claude_code_version":"2.1.218","output_style":"default","agents":["claude","Explore","general-purpose","Plan","statusline-setup"],"skills":["pptx","deep-research","dataviz","update-config","verify","debug","code-review","simplify","batch","fewer-permission-prompts","doctor","loop","claude-api","run","run-skill-generator"],"plugins":[],"capabilities":["interrupt_receipt_v1","msg_lifecycle_v1"],"analytics_disabled":true,"product_feedback_disabled":false,"uuid":"ae3f0aa9-a87b-4693-a2d7-d7408763316b","memory_paths":{"auto":"/Users/boj/.claude/projects/-Users-boj-book-ai-agent-book/memory/"},"fast_mode_state":"off"}
|
||||
{"type":"system","subtype":"api_retry","attempt":1,"max_retries":10,"retry_delay_ms":547,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"a9c5efdb-903a-4d39-9181-a5a27e9620dd"}
|
||||
{"type":"system","subtype":"api_retry","attempt":2,"max_retries":10,"retry_delay_ms":1110,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"6be5a82f-4a4f-45e6-936c-beb3edcff939"}
|
||||
{"type":"system","subtype":"api_retry","attempt":3,"max_retries":10,"retry_delay_ms":2014,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"40c5357e-5dae-4f62-b58e-1c6525ef2fa3"}
|
||||
{"type":"system","subtype":"api_retry","attempt":4,"max_retries":10,"retry_delay_ms":4650,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"830d6982-79aa-4daa-a2fd-a6d2944c2559"}
|
||||
{"type":"system","subtype":"api_retry","attempt":5,"max_retries":10,"retry_delay_ms":9091,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"22c49e8a-c0cf-4bc8-b04d-df019f57205f"}
|
||||
{"type":"system","subtype":"api_retry","attempt":6,"max_retries":10,"retry_delay_ms":19672,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"517f55b5-92ec-460e-93f5-a20eab1a78f8"}
|
||||
{"type":"system","subtype":"api_retry","attempt":7,"max_retries":10,"retry_delay_ms":34637,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"11241223-2cc9-4769-9800-3551fcea8305"}
|
||||
{"type":"system","subtype":"api_retry","attempt":8,"max_retries":10,"retry_delay_ms":32868,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"42e5b7fc-5c60-4a2e-905b-1d15d5d8179b"}
|
||||
{"type":"system","subtype":"api_retry","attempt":9,"max_retries":10,"retry_delay_ms":36134,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"9a5e6a0c-eb29-4050-b3db-75fd56179da6"}
|
||||
{"type":"system","subtype":"api_retry","attempt":10,"max_retries":10,"retry_delay_ms":34271,"error_status":401,"error":"authentication_failed","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"34390b97-f09f-4081-9b46-fe98604b04fc"}
|
||||
{"type":"assistant","message":{"id":"ebd5c598-7796-4581-9513-0d0dccb49362","container":null,"model":"<synthetic>","role":"assistant","stop_details":null,"stop_reason":"stop_sequence","stop_sequence":"","type":"message","usage":{"input_tokens":0,"output_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":null,"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":null,"iterations":null,"speed":null},"content":[{"type":"text","text":"Failed to authenticate. API Error: 401 API key is invalid."}],"context_management":null},"parent_tool_use_id":null,"session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","uuid":"971c3df7-a74b-489d-b32b-d20624b78096","timestamp":"2026-07-29T19:41:56.444Z","error":"authentication_failed"}
|
||||
{"is_error":true,"duration_api_ms":0,"num_turns":1,"stop_reason":"stop_sequence","session_id":"b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18","total_cost_usd":0,"usage":{"input_tokens":0,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":0,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{},"permission_denials":[],"terminal_reason":"api_error","fast_mode_state":"off","subtype":"success","api_error_status":401,"result":"Failed to authenticate. API Error: 401 API key is invalid.","type":"result","duration_ms":182912,"uuid":"8a488e57-1f7a-4998-aa57-5800b261e318"}
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
"claude",
|
||||
"/pptx\n\nCreate a polished 10\u201315 slide presentation from the real academic paper at\n`attention-is-all-you-need.pdf`. Write the final deck to\n`output/attention-is-all-you-need.pptx`.\n\nThis is an audited Agent Skills experiment. Follow the official PPTX Skill by\nprogressive disclosure: invoke the pptx Skill, read its complete SKILL.md, then\nread its complete html2pptx.md only after selection. Use the pinned official\n`scripts/html2pptx.js` workflow. Use the official `scripts/thumbnail.py` to\nmake `output/full-deck-thumbnail.jpg`, inspect the full grid, and fix visible\noverlap, cutoff, contrast, or alignment defects before finishing.\n\nContent gates:\n- cover title, problem/background, Transformer method/architecture, key\n experimental results, and conclusion;\n- extract or crop at least three visuals directly from the source PDF (not\n invented replacements), place the files under `source_visuals/`, and embed\n all of them in the deck;\n- create `source_visuals/manifest.json` as a JSON list. Each item must contain\n `file`, one-based PDF `page`, the paper's `label` (for example Figure 1 or\n Table 2), and a faithful `caption`;\n- make every visual consistent with the surrounding slide explanation and\n cite its source page/label on-slide.\n\nYou may install the Node packages required by the official Skill inside this\nworkspace. Do not use the repository's bundled `demo.py`, local proxy Skill,\nor prewritten sample outline. The final response must name the deck,\nthumbnail, visual manifest, slide count, validation performed, and any\nremaining limitation.\n",
|
||||
"--print",
|
||||
"--output-format",
|
||||
"stream-json",
|
||||
"--verbose",
|
||||
"--model",
|
||||
"sonnet",
|
||||
"--effort",
|
||||
"high",
|
||||
"--max-budget-usd",
|
||||
"8",
|
||||
"--no-session-persistence",
|
||||
"--dangerously-skip-permissions",
|
||||
"--add-dir",
|
||||
"/Users/boj/book/ai-agent-book/chapter2/agent-skills-ppt/external/anthropics-skills/skills/pptx"
|
||||
]
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"experiment_id": "2-6",
|
||||
"protocol_sha256": "2990c8ef624edc12a06fb1b622de33b0fe8842cc5b42faf85788850111265eba",
|
||||
"official_skill_receipt": {
|
||||
"repository": "https://github.com/anthropics/skills.git",
|
||||
"revision": "69c0b1a0674149f27b61b2635f935524b6add202",
|
||||
"skill_path": "/Users/boj/book/ai-agent-book/chapter2/agent-skills-ppt/external/anthropics-skills/skills/pptx",
|
||||
"required_file_hashes": {
|
||||
"skills/pptx/SKILL.md": "b6f25545bfb358739f1532f793458b5dbc87ee009933cb7c306b2d951ab6617f",
|
||||
"skills/pptx/html2pptx.md": "f08ed7580969b796d9cd5ade93e2cdee981dcaf13cc5eb12e8d4a3700c2d6047",
|
||||
"skills/pptx/scripts/html2pptx.js": "c675d09a54d6a002e8ca5917b9d24a6568aa8d455bb7abeb212d4f564dd07a34",
|
||||
"skills/pptx/scripts/thumbnail.py": "c21fd950b6ada7bd2f029885d3e56bc66b7ff061cc8404c492eb301664aa9e5d"
|
||||
}
|
||||
},
|
||||
"claude_result": {
|
||||
"subtype": "success",
|
||||
"is_error": true,
|
||||
"duration_ms": 182912,
|
||||
"duration_api_ms": 0,
|
||||
"num_turns": 1,
|
||||
"result": "Failed to authenticate. API Error: 401 API key is invalid.",
|
||||
"total_cost_usd": 0,
|
||||
"usage": {
|
||||
"input_tokens": 0,
|
||||
"cache_creation_input_tokens": 0,
|
||||
"cache_read_input_tokens": 0,
|
||||
"output_tokens": 0,
|
||||
"server_tool_use": {
|
||||
"web_search_requests": 0,
|
||||
"web_fetch_requests": 0
|
||||
},
|
||||
"service_tier": "standard",
|
||||
"cache_creation": {
|
||||
"ephemeral_1h_input_tokens": 0,
|
||||
"ephemeral_5m_input_tokens": 0
|
||||
},
|
||||
"inference_geo": "",
|
||||
"iterations": [],
|
||||
"speed": "standard"
|
||||
},
|
||||
"modelUsage": {},
|
||||
"session_id": "b7b08ae5-01d0-46f5-b0e0-2e319fa9ab18"
|
||||
},
|
||||
"slide_count": 0,
|
||||
"section_checks": {
|
||||
"title": false,
|
||||
"background": false,
|
||||
"method": false,
|
||||
"results": false,
|
||||
"conclusion": false
|
||||
},
|
||||
"source_visuals": [],
|
||||
"embedded_media": {},
|
||||
"thumbnail_files": [],
|
||||
"gates": {
|
||||
"source_pdf_hash_matches": true,
|
||||
"claude_run_succeeded": false,
|
||||
"pptx_skill_invoked": false,
|
||||
"skill_md_loaded": false,
|
||||
"html2pptx_guide_loaded": false,
|
||||
"official_html2pptx_used": false,
|
||||
"official_thumbnail_used": false,
|
||||
"thumbnail_visually_inspected": false,
|
||||
"pptx_zip_valid": false,
|
||||
"pptx_reopens": false,
|
||||
"slide_count_in_range": false,
|
||||
"required_sections_present": false,
|
||||
"three_source_visuals_embedded_and_documented": false,
|
||||
"thumbnail_grid_present": false,
|
||||
"credential_scan_passed": true
|
||||
},
|
||||
"official_complete": false,
|
||||
"artifacts": {
|
||||
"experiment_protocol.json": {
|
||||
"sha256": "2990c8ef624edc12a06fb1b622de33b0fe8842cc5b42faf85788850111265eba",
|
||||
"bytes": 2582
|
||||
},
|
||||
"claude_stream.jsonl": {
|
||||
"sha256": "40004d1a5ed3c5f9dd4f8526b438bef025149feada0edd226f8e956d83874cdc",
|
||||
"bytes": 5725
|
||||
},
|
||||
"workspace/attention-is-all-you-need.pdf": {
|
||||
"sha256": "bdfaa68d8984f0dc02beaca527b76f207d99b666d31d1da728ee0728182df697",
|
||||
"bytes": 2215244
|
||||
}
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"experiment_id": "2-6",
|
||||
"protocol_version": "1.0.0",
|
||||
"frozen_on": "2026-07-30",
|
||||
"authority": "book/chapter2.md:767",
|
||||
"runtime": {
|
||||
"agent": "Claude Code",
|
||||
"model_alias": "sonnet",
|
||||
"official_skill_repository": "https://github.com/anthropics/skills.git",
|
||||
"official_skill_revision": "69c0b1a0674149f27b61b2635f935524b6add202",
|
||||
"skill_path": "skills/pptx",
|
||||
"revision_reason": "This is the official revision whose PPTX Skill contains the html2pptx.md workflow named by the manuscript; later revision 4e6907a packages that guide as html2pptx.tgz."
|
||||
},
|
||||
"paper": {
|
||||
"title": "Attention Is All You Need",
|
||||
"authors": "Ashish Vaswani et al.",
|
||||
"arxiv_id": "1706.03762",
|
||||
"pdf_url": "https://arxiv.org/pdf/1706.03762",
|
||||
"pdf_sha256": "bdfaa68d8984f0dc02beaca527b76f207d99b666d31d1da728ee0728182df697"
|
||||
},
|
||||
"output": {
|
||||
"minimum_slides": 10,
|
||||
"maximum_slides": 15,
|
||||
"required_sections": [
|
||||
"title",
|
||||
"problem/background",
|
||||
"method/Transformer architecture",
|
||||
"key results",
|
||||
"conclusion"
|
||||
],
|
||||
"minimum_paper_visuals": 3,
|
||||
"visual_policy": "At least three images must be extracted or cropped from the source PDF, embedded in the deck, and listed with PDF page and source label in source_visuals/manifest.json."
|
||||
},
|
||||
"progressive_disclosure_gates": [
|
||||
"Claude Code discovers only PPTX Skill metadata before selection",
|
||||
"Claude invokes the official pptx Skill and loads its complete SKILL.md",
|
||||
"Claude reads the complete official html2pptx.md only after selecting the Skill",
|
||||
"Claude uses the official scripts/html2pptx.js workflow",
|
||||
"Claude invokes the official scripts/thumbnail.py preview workflow and visually inspects the result"
|
||||
],
|
||||
"artifact_gates": [
|
||||
"the source PDF hash matches the preregistered academic paper",
|
||||
"the presentation is a valid ZIP/OOXML package and python-pptx reopens it",
|
||||
"slide count is between 10 and 15 inclusive",
|
||||
"the five required content sections are present",
|
||||
"three or more source visual files are byte-identical to media embedded in the PPTX",
|
||||
"each source visual has a PDF page, paper label, and caption in the visual manifest",
|
||||
"a full-deck thumbnail grid exists",
|
||||
"raw Claude Code stream events, actual model, usage/cost, commands, hashes, and credential scan are retained"
|
||||
],
|
||||
"claim_policy": "The bundled Python demo is a noncanonical mechanism illustration and cannot satisfy Experiment 2-6. Only a real Claude Code run with the pinned official Skill and real paper can complete this protocol."
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"experiment_id": "2-6",
|
||||
"official_complete": false,
|
||||
"protocol_sha256": "2990c8ef624edc12a06fb1b622de33b0fe8842cc5b42faf85788850111265eba",
|
||||
"comparison_sha256": "c3656f5fb04adf733f90731b2be71791a69a54d2ad91b633b58adc1262a3c9ec",
|
||||
"pptx_sha256": null
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"repository": "https://github.com/anthropics/skills.git",
|
||||
"revision": "69c0b1a0674149f27b61b2635f935524b6add202",
|
||||
"skill_path": "/Users/boj/book/ai-agent-book/chapter2/agent-skills-ppt/external/anthropics-skills/skills/pptx",
|
||||
"required_file_hashes": {
|
||||
"skills/pptx/SKILL.md": "b6f25545bfb358739f1532f793458b5dbc87ee009933cb7c306b2d951ab6617f",
|
||||
"skills/pptx/html2pptx.md": "f08ed7580969b796d9cd5ade93e2cdee981dcaf13cc5eb12e8d4a3700c2d6047",
|
||||
"skills/pptx/scripts/html2pptx.js": "c675d09a54d6a002e8ca5917b9d24a6568aa8d455bb7abeb212d4f564dd07a34",
|
||||
"skills/pptx/scripts/thumbnail.py": "c21fd950b6ada7bd2f029885d3e56bc66b7ff061cc8404c492eb301664aa9e5d"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
/pptx
|
||||
|
||||
Create a polished 10–15 slide presentation from the real academic paper at
|
||||
`attention-is-all-you-need.pdf`. Write the final deck to
|
||||
`output/attention-is-all-you-need.pptx`.
|
||||
|
||||
This is an audited Agent Skills experiment. Follow the official PPTX Skill by
|
||||
progressive disclosure: invoke the pptx Skill, read its complete SKILL.md, then
|
||||
read its complete html2pptx.md only after selection. Use the pinned official
|
||||
`scripts/html2pptx.js` workflow. Use the official `scripts/thumbnail.py` to
|
||||
make `output/full-deck-thumbnail.jpg`, inspect the full grid, and fix visible
|
||||
overlap, cutoff, contrast, or alignment defects before finishing.
|
||||
|
||||
Content gates:
|
||||
- cover title, problem/background, Transformer method/architecture, key
|
||||
experimental results, and conclusion;
|
||||
- extract or crop at least three visuals directly from the source PDF (not
|
||||
invented replacements), place the files under `source_visuals/`, and embed
|
||||
all of them in the deck;
|
||||
- create `source_visuals/manifest.json` as a JSON list. Each item must contain
|
||||
`file`, one-based PDF `page`, the paper's `label` (for example Figure 1 or
|
||||
Table 2), and a faithful `caption`;
|
||||
- make every visual consistent with the surrounding slide explanation and
|
||||
cite its source page/label on-slide.
|
||||
|
||||
You may install the Node packages required by the official Skill inside this
|
||||
workspace. Do not use the repository's bundled `demo.py`, local proxy Skill,
|
||||
or prewritten sample outline. The final response must name the deck,
|
||||
thumbnail, visual manifest, slide count, validation performed, and any
|
||||
remaining limitation.
|
||||
Reference in New Issue
Block a user