How to Make Claude Code Run Autonomously for Hours Using the GSD Framework

To bypass the constant need for manual intervention in Claude Code, you can leverage the GSD (Get Shit Done) framework. This method allows you to break down massive projects into phases and grant the tool autonomous execution capabilities to gather context, plan, code, and generate phase summaries without continuous prompts for approval.

This is the official link:

  • https://github.com/gsd-build/get-shit-done
  • If you need help using them or want to learn more about AI and how to leverage it, join our upcoming courses:

  • Course Registration: https://tally.so/r/D4KBB5
  • My Instagram:- https://www.instagram.com/ai.with.mo/

    Planning and Phase Division

    Start by using the /gsd-do command followed by a detailed description of your project. Ask the tool to engineer the project and divide it into multiple phases. The system will map out a clear roadmap for each phase before writing any code.

    Enable Autonomous Execution

    Once the phases are structured, execute the /gsd-autonomous command. You can specify exactly which phase to start from (e.g., phase 5). The tool will automatically gather research, update the context, execute the plan, and write a summary of the phase before seamlessly moving to the next one.

    Bypassing Manual Permissions

    To ensure the tool runs for 7+ hours as shown in the video without pausing to ask for file read/write approvals, you must launch Claude Code from your terminal using the permission bypass flag (claude --dangerously-skip-permissions).

    كيف تجعل Claude Code يعمل باستقلالية لساعات باستخدام إطار GSD

    لتجاوز مشكلة التدخل اليدوي المستمر في Claude Code، يمكنك استخدام إطار العمل GSD (Get Shit Done). هذه الطريقة تتيح لك تقسيم المشاريع الضخمة إلى مراحل، ثم إعطاء الأداة صلاحية العمل المستقل (Autonomous) لجمع السياق، التخطيط، كتابة الكود، وإصدار ملخصات لكل مرحلة دون الحاجة لتأكيدك المستمر.

    هذه هي الروابط الرسمية للاضافة:

  • https://github.com/gsd-build/get-shit-done
  • في حال لم تعرف كيف تستخدمها، او اردت معلومات اكثر عن الذكاء الاصطناعي وكيفية الاستفادة منه، انضم الى الدورات التي نقوم بتحضيرها:

  • رابط الانضمام للدورة: https://tally.so/r/D4KBB5
  • رابط حسابي على الانستغرام: https://www.instagram.com/ai.with.mo/
  • الخطوات

    التخطيط وتقسيم المهام

    ابدأ باستخدام الأمر /gsd-do متبوعاً بوصف دقيق لمشروعك. اطلب من الأداة هندسة المشروع وتقسيمه إلى مراحل (Phases) متعددة. ستقوم الأداة بإنشاء خارطة طريق واضحة لكل مرحلة قبل كتابة أي سطر برمجي.

    تفعيل التنفيذ المستقل

    بعد ترتيب المراحل، استخدم الأمر /gsd-autonomous. يمكنك تحديد مرحلة معينة للبدء منها (مثلاً المرحلة رقم 5). ستبدأ الأداة تلقائياً بجمع البحث والسياق، التخطيط للمرحلة، تنفيذ الأكواد، ثم كتابة ملخص كامل للمرحلة قبل الانتقال للمرحلة التالية باستقلالية.

    تخطي صلاحيات التدخل البشري

    لضمان عمل الأداة لـ 7 ساعات أو أكثر كما في الفيديو دون أن تتوقف لطلب إذنك لقراءة أو تعديل الملفات، يجب تشغيل الأداة من التيرمنال باستخدام العلم المخصص بتخطي الصلاحيات (claude --dangerously-skip-permissions).

    Prompt

    # 1. First, describe your project and ask the system to divide it into phases:
    /gsd-do "Build a full-stack dashboard for a restaurant POS system. Divide this task into as many phases as needed."
    
    # 2. Once the roadmap and phases are generated, run the autonomous command starting from a specific phase:
    /gsd-autonomous --only 5
    
    # Pro-Tip: To ensure Claude Code runs for hours without stopping to ask for file read/write permissions, start your terminal session with:
    claude --dangerously-skip-permissions