crawl4ai-local-for-windows: Command for Claude Code

.claude/commands/sync-upstream.md

sync-upstream is a command for Claude Code from fix-a-lot/crawl4ai-local-for-windows. It costs 26 tokens per session (1,210 once invoked), scanned A, original, Unlicense.

A command that checks for newer releases of the Crawl4AI web-crawling library and updates this server's dependency and source use when needed. It compares the installed and declared versions with official release information.

In plain words
What is it for?
Use it to synchronize Crawl4AI releases, review relevant release notes, update dependency bounds, and adapt code to changed classes, functions, or result fields.
Why use it?
It helps keep the dependency current while checking for API changes that could break the server. It avoids editing files when the project is already up to date.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is fix-a-lot/crawl4ai-local-for-windows's own configuration. It tells Claude Code how to work on crawl4ai-local-for-windows itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything crawl4ai-local-for-windows configures →

Reuse

Borrowing it

Nothing to install: this file belongs to fix-a-lot/crawl4ai-local-for-windows. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/fix-a-lot/crawl4ai-local-for-windows/main/.claude/commands/sync-upstream.md
Clone the repo
git clone --depth 1 https://github.com/fix-a-lot/crawl4ai-local-for-windows

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-upstream

README.md
[![agentmods](https://agentmods.dev/badge/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream/github.svg)](https://agentmods.dev/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream)
Your own site
<a href="https://agentmods.dev/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream"><img src="https://agentmods.dev/badge/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-upstream

Your own site · 80×15
<a href="https://agentmods.dev/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream"><img src="https://agentmods.dev/badge/commands/fix-a-lot/crawl4ai-local-for-windows/sync-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,210 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.01210
Opus 5.5 $0.00010 $0.00484
Sonnet 5.5 $0.00005 $0.00242
Haiku 4.5 $0.00003 $0.00121

Measured 27d ago against content hash 22ecacb7f399, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-upstream scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 27d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/sync-upstream.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

공식 저장소(unclecode/crawl4ai)의 새 릴리스를 확인하고, 이 저장소의 crawl4ai 의존성을 올린 뒤 깨지거나 바뀐 부분을 소스에 반영한다.

인자

$ARGUMENTS가 targetVersion이다 (없을 수 있음). 없으면 최신 정식 릴리스를 대상으로 한다. pre-release는 인자로 명시했을 때만 대상으로 삼는다.

1. 버전 확인

  • 현재 버전: uv pip show crawl4ai의 설치 버전과 pyproject.toml의 crawl4ai>= 하한을 함께 확인한다. uv.lock은 .gitignore 대상이라 기기마다 다를 수 있다.
  • 대상 버전: gh api 'repos/unclecode/crawl4ai/releases?per_page=10' --jq '.[] | select(.prerelease == false) | .tag_name + " " + .published_at'. gh를 쓸 수 없으면 https://pypi.org/pypi/crawl4ai/json의 info.version을 쓴다.
  • 현재 버전이 대상 버전과 같거나 더 높으면 "최신 상태"라고 보고하고 끝낸다. 파일은 수정하지 않는다.

2. 변경 사항 조사

  • 현재 버전 이후 대상 버전까지의 릴리스 노트(gh api repos/unclecode/crawl4ai/releases/tags/<tag> --jq .body)와 CHANGELOG.md(gh api repos/unclecode/crawl4ai/contents/CHANGELOG.md --jq .content | base64 -d)를 읽는다.
  • 이 저장소가 실제로 쓰는 crawl4ai API를 하드코딩된 목록이 아니라 소스에서 직접 뽑는다: grep -n "crawl4ai\|CrawlerRunConfig\|BrowserConfig\|CrawlResult\|CacheMode\|ExtractionStrategy\|arun\|result\." src/.
  • 아래 항목에 해당하는 변경만 골라낸다.
    • 사용 중인 클래스, 함수, 파라미터의 제거, 이름 변경, 기본값 변경, deprecated 처리
    • CrawlResult 필드(success, error_message, markdown, extracted_content, screenshot)와 arun 반환 타입(CrawlResultContainer)의 변화
    • JsonCssExtractionStrategy 스키마 형식 변화
    • 브라우저 붕괴 감지 문자열(_looks_like_browser_crash*)에 영향을 주는 Playwright 오류 메시지나 브라우저 재활용 방식의 변화
    • 브라우저 설치 절차(crawl4ai-setup)나 Python 버전 요구 사항의 변화
  • 확인할 수 없는 항목은 추측하지 말고 "확인 불가"로 남긴다.

3. 업그레이드

  • uv add "crawl4ai>=<대상 버전>"으로 하한을 올리고 lock과 환경을 갱신한다. 다른 의존성의 범위는 건드리지 않는다.
  • 릴리스 노트에 Playwright나 브라우저 버전 변경이 있으면 uv run crawl4ai-setup을 실행한다.

4. 소스 반영

  • 2단계에서 고른 변경 중 이 저장소에 영향이 있는 것만 src/crawl4ai_local/server.py에 반영한다. 관련 없는 리팩터링은 하지 않는다.
  • MCP 도구의 이름, 인자, 반환 형식은 바꾸지 않는다. upstream 변경 때문에 바꿀 수밖에 없다면 수정하기 전에 사용자에게 묻는다.
  • 새로 생긴 upstream 기능은 구현하지 않는다. 쓸 만한 기능은 보고에 제안으로만 적는다.
  • 도구의 동작이나 설치 절차가 바뀌었으면 README.md와 README.ko.md를 함께 갱신한다.

5. 검증

아래를 모두 실행하고 결과를 그대로 보고한다. 실패를 규칙 비활성화, # type: ignore, cast로 덮지 않는다.

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 27d ago First seen · 69 lines · 26 tokens per session scan A 22ecacb7f399

Subscribe to this mod's changes

sync-upstream is a command published in the GitHub repository fix-a-lot/crawl4ai-local-for-windows (1 stars, last pushed 28d ago), licensed Unlicense. It adds 26 tokens to every session and 1,210 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

sync-upstream compared with commands from other repositories

sync-upstream next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-upstreamfix-a-lot/crawl4ai-local-for-windowsCommand128d agoUnlicenseA26Claude Code
landgmickel/flow-nextCommand717yesterdayMITA13Claude Code
qualityDesko77/claude-code-skills-1cCommand902d agoMITA18Claude Code
release-notesOpenHands/extensionsCommand176yesterdayMITA44Claude Code
release-managerruvnet/agentic-flowCommand838yesterdaynoneA0Claude Code
create-prdsswift/ionCommand52d agoMITA28Claude Code
rally-merge-prddgonzal3/rallyCommand63d agoMITA0Claude Code