coding-agent
ما الذي تفعله
تعدّ هذه المهارة جهازًا افتراضيًا منفصلًا يستطيع فيه وكيل البرمجة تعديل مشروعك وتثبيت الأدوات، بينما يبقى حاسوبك محميًا. وهي لمطوري من يريدون أن يعمل وكيل بكامل الصلاحيات.
متى تستخدمها
- ✓عندما تريد أن يعمل وكيل برمجة دون أن يطلب الإذن في كل خطوة.
- ✓عندما تريد إبقاء عمليات التثبيت والتجارب لوكيل بعيدة عن حاسوبك.
- ✓عندما تريد بيئة قابلة للتخلص منها تستطيع الوصول إلى مجلد مشروعك.
رابط المهارة
https://github.com/smol-machines/smolvm/blob/main/docs/coding-agent/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أعدّ جهازًا افتراضيًا آمنًا يستطيع فيه Claude Code أن يعمل بكامل الصلاحيات على مجلد مشروعي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يعدّ ملف Smolfile الجهاز ويربط مشروعك به. تشغّل الجهاز وتشغّل الوكيل داخله، وتظهر تعديلات الملفات في مجلد مشروعك على حاسوبك.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
A coding agent in a machine
Verified on smolvm v1.27.4 on Linux x86_64, 2026-10-14, and on v1.29.0 on macOS arm64, 2026-10-15. Done means the agent runs inside the machine from the project directory, its edits appear on the host, and git works on the mounted repo.
Procedure
1. Copy the Smolfile into the project. Edit the npm install line in init to the agents you
use; any install command works.
cp docs/coding-agent/assets/agent.smolfile ./Smolfile
2. Create and start the machine. Pass API keys as references so they are read from your host at launch, never written to the machine record:
smolvm machine create --name agent -s Smolfile --secret-env ANTHROPIC_API_KEY=ANTHROPIC_API_KEY
smolvm machine start --name agent # first start runs init: under a minute once the image is pulled
The Smolfile forwards your SSH agent, so start needs SSH_AUTH_SOCK set on the host: without it,
it stops with ssh-agent: SSH_AUTH_SOCK is not set. Start one with eval $(ssh-agent), or delete
the [auth] block.
3. Run the agent.
smolvm machine exec --name agent -it -- claude --dangerously-skip-permissions
smolvm machine exec --name agent -it -- opencode
machine shell --name agent gives a shell in /workspace for anything else.
4. Check git. smolvm machine exec --name agent -- git status must print the repo's status,
not dubious ownership; if it does not, the safe.directory line in init did not run.
5. Stop or delete. machine stop --name agent keeps the installed agents for next time, and the
next start takes about a second. machine delete --name agent -f removes the machine; the project
stays on the host.
Notes
initruns once. Changing it later needs a new machine, or run the new commands withexec.- To keep the agent off your LAN and the host's ports, add
block_private = trueunder[network](from v1.28.1). SeeREADME.md. - An agent that needs Docker: add
"/var/lib/docker", "/var/lib/containerd"to[dev] volumes(from v1.28.1) and see docker-in-machine.
الأسئلة الشائعة
هل سيغيّر الوكيل ملفات على حاسوبي؟
تظهر التعديلات على مجلد المشروع المربوط على حاسوبك. ويعمل الوكيل داخل الجهاز لا مباشرة على نظامك.
أي وكلاء تدعم؟
تذكر المهارة Claude Code وOpenCode وCodex، وتقول إن أي وكيل له أمر تثبيت يمكن أن يعمل.
هل تحتاج إلى SSH agent الخاص بي؟
يمرر Smolfile وكيل SSH الخاص بك، لذلك يجب أن يكون وكيل SSH قيد التشغيل على المضيف، أو يمكنك حذف هذه الكتلة من الملف.
التفاصيل
الوصف الأصلي من المؤلف
Runs a coding agent (Claude Code, OpenCode, Codex or any other) inside a persistent smolvm machine with the project mounted, so it can run with full permissions without touching the host. Use when someone wants to sandbox their coding agent, run it in skip-permissions or YOLO mode safely, or give it a disposable environment it can install anything into. Do not use it to run untrusted code with no network; use throwaway-machine for that.
repo: smol-machines/smolvm
الشعبية
- نجوم GitHub
- 6.9k
- الترتيب
- #13715
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
branch-and-checkpoint
6.9kيساعد وكيلك على حفظ جهاز smolvm افتراضي قيد التشغيل كنقاط حفظ، واستعادته لاحقًا، وإيقافه مؤقتًا واستئنافه، وتفريعه إلى نسخ.
credentials
6.9kيتيح لوكيلك استدعاء واجهة برمجية بمفتاحك دون أن يدخل المفتاح نفسه إلى جهازه الافتراضي، فلا يستطيع الكود غير الموثوق قراءته.
dev-env
6.9kيعلّم وكيلك إبقاء جهاز تطوير smolvm مع أدواته مثبتة، ليعود بسرعة ويحتفظ بالحزم بين الجلسات.
docker-in-machine
6.9kيساعد وكيلك على تشغيل خدمة Docker داخل جهاز smolvm افتراضي، فتعمل فيه الاختبارات والبناءات والوكلاء الذين يشغّلون حاويات.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.