agent-runtime-gateway-smoke-test
यह क्या करती है
यह जांचता है कि क्या एक AI एजेंट एक सुरक्षित tunnel के ज़रिए लोकल API से बात कर सकता है, बिना किसी असली टूल या डेटा के इस्तेमाल के। यह पूरे communication path को टेस्ट करता है और बाद में सब कुछ पहले जैसा कर देता है।
कब इस्तेमाल करें
- ✓जब आपको जांचना हो कि एजेंट के साथ लोकल API सही से काम कर रही है या नहीं।
- ✓अगर कोई एजेंट टास्क अचानक काम करना बंद कर दे और आपको शक हो कि communication tunnel में दिक्कत है।
- ✓किसी नए setup को टेस्ट करते समय, जहां वेबसाइट कुछ देर के लिए लोकल API की तरफ इशारा करती है।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/skills/agent-runtime-gateway-smoke-test/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरी लोकल API और एक AI एजेंट के बीच secure tunnel से communication जांचो, बिना असली डेटा के, और फिर original connection वापस कर दो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह टेस्ट आपकी लोकल API और एक secure tunnel शुरू करता है। फिर tunnel पर एक सरल request भेजता है ताकि पक्का हो सके कि API जवाब दे रही है। इसके बाद एजेंट के साथ एक छोटा टेस्ट टास्क चलाता है और देखता है कि लोकल API को अपेक्षित जवाब वापस मिला या नहीं। आखिर में यह वेबसाइट की original configuration को वापस लाता है और टेस्ट API व tunnel को बंद कर देता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Agent Runtime Gateway Smoke Test
Use this workflow when an agent task runs in a remote sandbox that calls back to a local API through a gateway. It verifies the whole path without relying on connected tools or private production data.
When to Activate
- A local agent API needs an end-to-end runtime check.
- A task stalls after dispatch and the gateway or tunnel may be unreachable.
- A web app is temporarily pointed at a local API for agent testing.
- A previous test left the web app pointing at a stopped API.
Required Inputs
- Repository-relative instructions for starting the API and web app.
- The gateway route path and its expected anonymous response.
- An isolated test agent, a tool-free prompt, and its exact expected answer.
- A way to inspect task status and confirm a callback reached the local API.
- Provider credentials, supplied through the project's normal secret store. Name the providers in shared documentation; never copy credential values into the skill or test report.
If these inputs are unavailable, report the missing input instead of guessing an endpoint or using a real account.
Authorization and Cleanup
Confirm authorization to expose the local test API through the selected tunnel provider, dispatch the test task, and temporarily change the web app route. Use an isolated local web app or test deployment; do not switch a shared production app as part of this smoke test. Keep tunnel access scoped to the required authenticated route.
Install cleanup before changing the route: on success, error, timeout, interruption, or cancellation, restore the recorded target and verify health before stopping the API and tunnel. Track only the process IDs or resources created by this test. If restoration fails, report it immediately and keep the evidence needed to recover; do not claim success.
Smoke Test
- Record and check the original route. Note the web app's current API target and verify it is healthy. Keep this value locally for restoration. Confirm the test agent and data are isolated from real users.
- Start the local API and tunnel. Use a process manager that will keep both alive for the full test. Verify API health. Probe the gateway route anonymously and confirm the documented authentication response, usually
401or403. Confirm the probe appears in the local API log; an edge response alone does not prove the API was reached. - Switch the web app only after both checks pass. Verify a request from the web app reaches the local API. Check the route again after any web server restart or configuration reload.
- Run one tool-free task. Use a short prompt with an exact expected answer. Confirm the remote sandbox called the local gateway, the task reached a terminal state, and the returned answer matches. A queued or running task is not a pass.
- Restore the original route. Set the web app back to its recorded API target, verify that target and a representative page load, then stop the test API and tunnel. If restoration fails, report the broken route immediately.
Example checks, with values supplied by the project:
curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$LOCAL_API_HEALTH_URL"
curl --silent --show-error --output /dev/null --write-out '%{http_code}\n' "$PUBLIC_GATEWAY_PROBE_URL"
The first command should return the project's healthy status. The second should return the documented anonymous authentication status and appear in the local API log. Do not put a credential in either URL.
Connected Tool Follow-up
Run a separate test only after the tool-free task passes. Use an explicit test connection and grants. Report connection presence and actions granted as different facts. Do not infer that an empty action search means no app is connected. Do not execute a write action against a real account as a smoke test.
Failure Handling
| Observation | Next check |
|---|---|
| Web page loads but API requests fail | Compare the configured API target with the listening process and restore the original route. |
Gateway probe gets a connection error or 404 |
Check tunnel lifetime, route path, and local API health before dispatching a task. |
Gateway probe gets 401 or 403, but no local log entry |
The response may come from the tunnel edge; verify the callback path. |
| Task stays queued or running | Check whether another dispatcher claimed it and whether the sandbox reached the local gateway. |
…
अक्सर पूछे जाने वाले सवाल
असली डेटा क्यों नहीं इस्तेमाल होता?
सुरक्षा और privacy के लिए यह टेस्ट सिर्फ एक नकली (simulated) स्थिति का इस्तेमाल करता है, और किसी संवेदनशील जानकारी तक नहीं पहुंचता।
'secure tunnel' क्या होता है?
यह एक सुरक्षित connection है जिससे लोकल API AI एजेंट से सुरक्षित तरीके से बात कर पाती है, भले ही दोनों अलग-अलग जगह पर हों।
अगर टेस्ट fail हो जाए तो क्या होता है?
टेस्ट बताएगा कि communication का कौन सा हिस्सा fail हुआ (लोकल API, tunnel, एजेंट या configuration वापस लाना), ताकि आप उस दिक्कत को ठीक कर सकें।
जानकारी
लेखक का मूल विवरण
Verify a local agent API, temporary gateway tunnel, and remote sandbox callback with a tool-free task, then restore the original app connection.
repo: affaan-m/ECC
लोकप्रियता
- GitHub स्टार
- 280k
- रैंकिंग में स्थान
- #259
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-harness-construction
280kयह आपके एजेंट को काम कैसे करना है, यह बेहतर समझने में मदद करता है। यह उन tools और instructions को बेहतर बनाता है जिनका एजेंट इस्तेमाल करता है, ताकि उसकी सफलता की संभावना बढ़े।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।