---
title: How to Make Claude Code Run Autonomously for Hours Using the GSD Framework
title_ar: كيف تجعل Claude Code يعمل باستقلالية لساعات باستخدام إطار GSD
url: "https://www.aiwithmo.com/prompts/autonomous"
canonical: "https://www.aiwithmo.com/prompts/autonomous"
published: 2026-04-21
updated: 2026-04-22
category: ai-tools
languages: [ar, en]
author: Mohamed Khair
site: aiwithmo
---

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

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

Source: https://www.aiwithmo.com/prompts/autonomous · Author: Mohamed Khair (محمد خير), aiwithmo · Published in Arabic and English.

## English

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/

## العربية

لتجاوز مشكلة التدخل اليدوي المستمر في 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/

## Steps

### 1. Planning and Phase Division

*Using the Foundation Command*

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.

### 2. Enable Autonomous Execution

*Automatic Phase Transition*

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.

### 3. Bypassing Manual Permissions

*Continuous Background Execution*

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).

## الخطوات

### 1. التخطيط وتقسيم المهام

*استخدام أمر التأسيس*

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

### 2. تفعيل التنفيذ المستقل

*الانتقال التلقائي بين المراحل*

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

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

*التشغيل المستمر في الخلفية*

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

## Prompt (البرومبت)

```text
# 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
```

---

More free bilingual AI guides: https://www.aiwithmo.com/prompts · One to one AI mentorship in Arabic or English: https://www.aiwithmo.com/mentorship
