ما هو Claude Code
شرح أداة CLI/IDE الوكيلة — حلقة الجلسة، والتثبيت، وأين يوجد كل شيء.
Claude Code Cheat Sheet
One printable page of Claude Code flags, commands, shortcuts, permission modes and file locations — every line checked against the official docs on 2026-10-13.
واجهة claude لسطر الأوامر: الأعلام التي تغيّر النتائج
جولة برأي واضح في سطر أوامر Claude Code — عقد الأعلام الخمسة للتشغيل بلا إشراف، وفخ موجّه النظام المسجَّل، والفرق بين --bare و--safe-mode و--restricted.
CLAUDE.md وملفات الذاكرة
أعلى تخصيص أثرًا في Claude Code: ذاكرة المشروع الدائمة.
ملف AGENTS.md والتشغيل البيني بين الأدوات
المعيار المفتوح الذي يقرأه كل وكيل برمجي — وكيف تبقيه متزامنًا مع ملف CLAUDE.md الخاص بك.
وضع التخطيط
تحقَّق واقترح قبل تنفيذ أي تعديل — أأمن طريقة للتعامل مع التغييرات الكبيرة، والقيود التي لا يفرضها.
تكاملات بيئة التطوير المتكاملة (IDE)
إضافات VS Code و JetBrains، والفروقات المضمّنة، والإعدادات المشتركة.
settings.json: نظام الإعداد
طبقات الملفات وأولوياتها، والأقسام الرئيسية، وإعداد المشروع مقابل الشخصي.
الأذونات وأوضاع الأذونات
قواعد allow/ask/deny والأوضاع — قلّل طلبات التأكيد دون أن تفقد الأمان.
Agent SDK Permissions: the Six-Step Order
Every permission bug in a headless agent is an order bug. The six steps the Agent SDK evaluates — which ones can only deny, which can only allow, and the five ways allowedTools silently does nothing.
Sandbox Credential Masking: keep tokens working, keep them secret
Mask environment variables, JWTs, AWS SigV4 pairs, and credential files so sandboxed commands authenticate without ever seeing the real secret. Config, gotchas, and OS matrix.
أوامر شرطة مائلة مخصصة
حوّل سير عمل متكرر إلى كلمة واحدة.
The /design Command: Artboards Before Code
Claude Code's /design skill drafts editable UI artboards before writing a line — how it works, when it wins, and the gotchas nobody documents.
أنماط المخرَجات
غيّر نبرة Claude Code، وإسهابه، وسلوكه التعليمي.
تخصيص شريط الحالة
اعرض النموذج، ودليل العمل الحالي، وميزانية السياق، وحالة git عبر سكربت مخصص.
التطوير المبني على المواصفات مع Spec Kit
توقّف عن البرمجة الارتجالية للميزات الكبيرة. اجعل المواصفة القابلة للتنفيذ مصدر الحقيقة، ثم دع Claude Code يبني انطلاقًا منها — باستخدام Spec Kit من GitHub.
إدارة السياق
/compact مقابل /clear، والضغط التلقائي، والبقاء فعّالًا مع نمو الجلسات.
Context Budget Audit: /skill-doctor, Output Caps and the Six Numbers That Fill Your Window
A 20-minute audit for a Claude Code project that has grown slow, forgetful, or expensive. Measure with /context and /usage, prune the skill listing with /skill-doctor and skillOverrides, cap tool output with bashOutputMaxChars and taskOutputMaxChars, keep CLAUDE.md out of subagents with omitClaudeMd, and set the auto-compact window on purpose. Every number cited to the September 2026 Claude Code docs.
نقاط التحقّق والتراجع
تراجَع عن تعديلات Claude، وأرجِع جلسة كاملة، وضغط السياق باستخدام /rewind — شبكة الأمان للتشغيلات الطموحة.
Hooks: الأتمتة الحتمية
شغّل أوامر عند أحداث دورة الحياة لفرض التنسيق والبوابات والأمان.
المهارات: خبرة عند الطلب
SKILL.md، والكشف التدريجي، والمهارة مقابل الأمر مقابل الوكيل الفرعي مقابل MCP.
الوكلاء الفرعيون والوكلاء المتوازون
فوّض إلى وكلاء بسياق معزول وأدوات محددة النطاق — ومتى لا تفعل ذلك.
Subagent Fleet Limits: Concurrency Caps & Nested Depth
On July 21, 2026 Claude Code capped concurrent subagents at 20 and killed nested spawning. Three days later nesting came back at depth 3. Here are the four env vars, the error you'll hit, why the caps exist, and how to design fleets that survive them.
سير العمل الديناميكي وultracode
نسّق عشرات إلى مئات الوكلاء الفرعيين من سكربت يكتبه Claude — لتدقيق قواعد الكود، وعمليات النقل الكبيرة، والبحث المتقاطع التحقق.
Cross-Session Messaging
Make two Claude Code sessions talk to each other — the native SendMessage / ListAgents tools shipped in Claude Code 2.1.224, the @mention syntax, the trust boundary, and when to use messaging vs. subagents vs. worktrees.
Projects: The Coordinator & Parallel Threads
On September 17, 2026 Claude Code Projects became an orchestration layer: a coordinator that scopes and delegates, and threads that are full cloud sessions, each on its own branch and repo copy. Here is the architecture, how it differs from subagents and worktrees, what it costs against your usage limits, and the eligibility rule that explains why you may not have it yet.
خوادم MCP في Claude Code
اربط قواعد البيانات وGitHub والمتصفحات والمزيد عبر بروتوكول سياق النموذج (Model Context Protocol).
المهام الخلفية، و/loop، والجدولة
الأوامر طويلة التشغيل، والحلقات المتكررة، والوكلاء السحابيون المجدولون.
Auto-Commit Background Agents: Draft-PR Handoff
On July 1, 2026 Claude Code v2.1.198 let background agents commit, push, and open a draft PR on their own. Five weeks later v2.1.221 tuned the default. Here is what the flow actually does, the notification hook it fires, why the community wanted an off switch, and the propose-only pattern that still works.
الإضافات والأسواق
اجمع المهارات والوكلاء والأوامر والـ hooks وMCP في وحدة واحدة قابلة للتثبيت.
Mods: In-Process Extensions
Mods are TypeScript middleware that runs inside Claude Code — rewrite tool calls, prompts, turns, and the interface itself.
Plugin Evals: اختبر إضافتك باستخدام claude plugin eval
أثبت أن إضافة Claude Code تفيد فعلًا: اكتب حالات تقييم، وصحّحها بستة أنواع من الـ graders، واقرأ الفرق بين التشغيل مع الإضافة وبدونها، وحاكِ خوادم MCP، واجعل النتيجة بوابة في CI.
أشجار عمل Git ومسارات العمل المتوازية
شغّل عدة جلسات Claude معزولة على مستودع واحد دون أن تتصادم.
Parallel Agents at Merge Time: Intent Conflicts and the CI Wall (2026)
Worktrees stop agents from overwriting each other's files. They don't stop two plans that can't both be true from merging cleanly. The coordination layer above Git (Foremerge's protocol, decoded) plus the CI surgery Linear did when agents started adding 2,000 tests a week — with every number.
الوضع بلا واجهة (Headless) وحزمة تطوير الوكلاء (Agent SDK)
شغّل Claude Code في CI، وابنِ وكلاء إنتاجيين على الإطار نفسه.
Cloud Sessions: the VM Claude Code runs in when it isn't your laptop
Practitioner guide to Claude Code cloud sessions and cloud environments — exactly what carries over from your machine and what silently doesn't, the four network access levels and the four paths that bypass them, network secrets, setup scripts vs SessionStart hooks, the ~5-minute cache rule, resource and time limits, and the --cloud/--teleport round trip.
Self-Hosted Environments: run cloud sessions on your own boxes
Practitioner guide to the claude self-hosted-runner beta (shipped Aug 7, 2026 in v2.1.224). Run Claude Code web, mobile and desktop cloud sessions on infrastructure you control — egress-only, no inbound holes, one-user-at-a-time isolation. Architecture, quickstart, runner lifecycle, git creds, autoscaling, and the six gotchas that catch every first fleet.
The MCP Token Tax
Why connecting MCP servers can burn 50k–150k tokens before your first request — and the three fixes: Tool Search, code execution, and knowing when a CLI call wins.
Accessibility
Screen reader mode, vim ergonomics, mouse and scroll controls, and high-contrast themes in Claude Code.
Troubleshooting Claude Code
Symptom-to-fix for hangs, high memory, broken search, compaction thrashing, and garbled terminals.
Feature Flags: Why Your Claude Code Isn't Mine
Claude Code switches features on with flags it fetches from Anthropic. Privacy env vars, Bedrock, gateways and fresh installs silently turn that fetch off — here's exactly what you lose and how to pin behavior instead.