verify

द्वारा anthropic

डॉकर के बिना हार्नेस परिवर्तनों को एंड-टू-एंड सत्यापित करें — हेडर-कैप्चर करने वाले स्टब सर्वर के विरुद्ध वास्तविक पिन किए गए CLI को चलाएँ, सटीक env resolve_auth_env() के साथ…

npx skills add https://github.com/anthropics/defending-code-reference-harness --skill verify

Verifying harness changes on a docker-less host

The pipeline's real surface is the in-container claude -p process and its outbound API requests. Without docker, drive the same pinned CLI binary directly with the env dict the harness would inject via docker -e.

Recipe

  1. Get the pinned CLI (version from harness/agent_image.py:CLAUDE_CODE_VERSION): npm install --no-save @anthropic-ai/claude-code@<pin> in a temp dir → binary at node_modules/@anthropic-ai/claude-code/bin/claude.exe (the .exe name is the real native-binary entry on Linux too, filled in by the package's postinstall — not a Windows leftover).
  2. Stub API server: a tiny HTTP server that appends each request's headers to a JSONL file and returns a 400 invalid_request_error (non-retryable, so the CLI exits fast; exit=1 is expected).
  3. Build the agent env exactly as the pipeline does: python3 -c "from harness.auth import resolve_auth_env; ..." and dump to an export-lines file with shlex.quote (values contain newlines — NEVER pass via env $(...), word-splitting mangles them; source the file).
  4. Emulate the container env: unset ANTHROPIC_CUSTOM_HEADERS (and any other ambient var not in the resolved dict) before sourcing — a Claude Code session in this repo injects .claude/settings.json env into shells, which containers never see.
  5. Run: ANTHROPIC_BASE_URL=http://127.0.0.1:<port> CLAUDECODE= IS_SANDBOX=1 timeout 30 <cli> -p hi --model claude-sonnet-4-5 --max-turns 1, then read the captured JSONL.

Gotchas

  • Unit tests in tests/test_patch.py / tests/test_patch_grade.py need docker and fail on docker-less hosts — pre-existing, not your change.
  • The docker -e injection leg itself can't be exercised without docker; it's the same mechanism that carries ANTHROPIC_API_KEY in production.
  • For the interactive-skills surface, copy .claude/settings.json into a fresh temp dir and run the host claude from there (with ambient ANTHROPIC_CUSTOM_HEADERS unset so settings.json is the only source).

anthropic की और Skills

analyzing-financial-statements
anthropic
यह कौशल निवेश विश्लेषण के लिए वित्तीय विवरण डेटा से प्रमुख वित्तीय अनुपात और मीट्रिक की गणना करता है।
applying-brand-guidelines
anthropic
यह कौशल सभी जनरेट किए गए दस्तावेज़ों में रंग, फ़ॉन्ट, लेआउट और संदेश सहित एक समान कॉर्पोरेट ब्रांडिंग और स्टाइलिंग लागू करता है।
creating-financial-models
anthropic
यह कौशल डीसीएफ विश्लेषण, संवेदनशीलता परीक्षण, मोंटे कार्लो सिमुलेशन और निवेश के लिए परिदृश्य योजना के साथ एक उन्नत वित्तीय मॉडलिंग सूट प्रदान करता है…
board-minutes
anthropic
बोर्ड या समिति की बैठक के कार्यवृत्त आपके घरेलू प्रारूप में तैयार करता है। आपके कैलेंडर से आगामी बोर्ड और समिति की बैठकों का स्वतः पता लगाता है, एजेंडा मांगता है और…
crm-cleanup
anthropic
HubSpot में पुराने डील, डुप्लीकेट कॉन्टैक्ट और गायब फ़ील्ड को स्कैन करता है, फिर मालिक द्वारा अनुमोदित चीज़ों को ठीक करता है। डील, कॉन्टैक्ट आदि के लिए वैकल्पिक scope आर्गुमेंट स्वीकार करता है।
redshift-api
anthropic
Amazon Redshift के विरुद्ध SQL चलाएँ — स्टेटमेंट सबमिट करें, स्थिति जाँचें, परिणामों को पृष्ठांकित करें, और डेटाबेस/स्कीमा/टेबल ब्राउज़ करें। इसका उपयोग तब करें जब उपयोगकर्ता चाहता है…
ticket-deflector
anthropic
ग्राहक के अग्रेषित ईमेल या टिकट को पढ़ता है, PayPal से ऑर्डर/रिफंड स्थिति और HubSpot से खाता इतिहास खींचता है, मालिक के अनुरूप स्वर में उत्तर का मसौदा तैयार करता है…
reg-feed-watcher
anthropic
अब नियामक फीड्स की जाँच करें और पिछली जाँच के बाद से नई चीज़ों की रिपोर्ट करें, जो आपकी भौतिकता सीमा के अनुसार फ़िल्टर की गई हों। उपयोग तब करें जब उपयोगकर्ता "फीड्स की जाँच करें" कहे,…