آفاق البحث: AGI وما بعده
مسائل مفتوحة في متانة الوكلاء، والذاكرة طويلة الأمد، والتنسيق بين الوكلاء.
آفاق البحث: AGI وما بعده درس مجاني في AI Agents على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في AI Agents، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة AI Agents 4 دروس في المجموع.
حالة وكلاء الذكاء الاصطناعي في عام 2025
حتى عام 2025، يستطيع وكلاء الذكاء الاصطناعي المدعومون بنماذج لغوية كبيرة إنجاز مهام معقدة متعددة الخطوات بشكل موثوق، واستخدام الأدوات، والاستدلال عبر وسائط متعددة، والعمل بإشراف محدود. ومع ذلك، لا تزال عدة تحديات أساسية دون حل قبل أن يحقق الوكلاء قدرة عامة حقيقية.
يستعرض هذا الدرس آفاق البحث المفتوحة التي ترسم ملامح الجيل القادم من الذكاء الاصطناعي.
المشكلة المفتوحة 1: الذاكرة طويلة الأفق
تمتلك نماذج LLM الحالية نوافذ سياق تتراوح من 128K إلى 1M من الرموز — وهو أمر مثير للإعجاب، لكنه لا يزال محدودًا بالنسبة إلى المهام التي تمتد لأشهر من العمل. وتتمثل المشكلة المفتوحة في كيفية ضغط الذاكرة طويلة الأفق واسترجاعها والاستدلال باستخدامها بشكل موثوق، من دون فقدان التفاصيل المهمة أو إدخال هلوسات.
# Illustration of long-horizon memory challenges:
LONG_HORIZON_CHALLENGES = {
'compression': {
'problem': 'Summarising months of interactions loses nuance',
'current_approach': 'Hierarchical summarisation (recent detail, old summary)',
'limitation': 'Important details get compressed away; hallucination risk in summaries'
},
'retrieval': {
'problem': 'Finding the relevant memory among millions of entries',
'current_approach': 'Embedding-based similarity search (vector databases)',
'limitation': 'Semantic similarity does not always match relevance; false negatives'
},
'reasoning_over_time': {
'problem': 'Connecting observations from 6 months apart',
'current_approach': 'Temporal indexing + LLM reasoning',
'limitation': 'LLMs struggle with precise temporal ordering of distant events'
}
}
for challenge, details in LONG_HORIZON_CHALLENGES.items():
print(f'{challenge}: {details["limitation"][:80]}')المشكلة المفتوحة 2: المتانة عبر المجالات
الوكلاء الحاليون هشّون: فقد يفشل وكيل ضُبط بدقة لدعم العملاء في أداء مهمة مشابهة ضمن مجال جديد (طبي أو قانوني أو تقني). وتعني المتانة الحقيقية الأداء الجيد في مهام ومجالات لم يُدرَّب الوكيل عليها صراحةً — وهو متطلب أساسي لتحقيق AGI.
# Measuring domain robustness
import statistics
def measure_domain_robustness(agent_fn, test_suite: dict) -> dict:
"""
test_suite: {domain: [(input, expected_output)]}
Returns per-domain accuracy and overall robustness score.
"""
domain_scores = {}
for domain, cases in test_suite.items():
correct = 0
for inp, expected in cases:
result = agent_fn(inp)
# Simplified scoring: check if expected phrase is in result
if expected.lower() in result.lower():
correct += 1
domain_scores[domain] = round(correct / len(cases), 3)
scores = list(domain_scores.values())
return {
'domain_scores': domain_scores,
'mean_accuracy': round(statistics.mean(scores), 3),
'min_accuracy': min(scores), # robustness = performance on worst domain
'variance': round(statistics.variance(scores), 4)
}
# High variance = brittle (good at some domains, bad at others)
# Low variance + high mean = robust
if __name__ == '__main__':
def toy_agent(inp):
return {
'2+2': 'The answer is 4',
'capital of France': 'Paris is the capital'
}.get(inp, 'I do not know')
test_suite = {
'math': [('2+2', '4')],
'geography': [('capital of France', 'paris')],
}
result = measure_domain_robustness(toy_agent, test_suite)
print('Domain scores:', result['domain_scores'])
print('Mean accuracy:', result['mean_accuracy'])
المشكلة المفتوحة 3: تنسيق الوكلاء المتعددين
يمكن لشبكات من الوكلاء المتخصصين معالجة مهام تتجاوز قدرة أي وكيل منفرد. لكن تنسيقها أمر صعب: يجب أن يتواصل الوكلاء بكفاءة، ويتجنبوا تكرار الجهد، ويحلّوا النزاعات، ويتشاركوا التقدم دون عنق زجاجة مركزي.
import anthropic
import json
client = anthropic.Anthropic(api_key='YOUR_API_KEY')
# Simple task negotiation between two agents
def negotiate_task_division(
task: str,
agent1_capabilities: list,
agent2_capabilities: list
) -> dict:
prompt = (
f'Task: {task}\n\n'
f'Agent A capabilities: {agent1_capabilities}\n'
f'Agent B capabilities: {agent2_capabilities}\n\n'
'How should this task be divided between Agent A and Agent B?\n'
'Minimise handoffs. Assign subtasks to the best-suited agent.\n'
'Return JSON: {"agent_a_tasks": [str], "agent_b_tasks": [str], '
'"shared_tasks": [str], "handoffs": int}'
)
response = client.messages.create(
model='claude-opus-4-5', max_tokens=512,
messages=[{'role': 'user', 'content': prompt}]
)
return json.loads(response.content[0].text)
# Open research challenge:
# How do agents coordinate without a central planner
# when each has only partial information?المشكلة المفتوحة 4: قابلية التفسير
لا نستطيع حتى الآن تفسير سبب اتخاذ شبكة عصبية كبيرة قرارًا محددًا بشكل موثوق. تهدف أبحاث قابلية التفسير إلى تحديد الدوائر والمفاهيم وأنماط الاستدلال داخل النماذج. ومن دون قابلية التفسير، تعتمد المواءمة والسلامة كليًا على الاختبار السلوكي — وهو اختبار لا يستطيع اكتشاف جميع أنماط الإخفاق.
# Practical interpretability techniques available today:
INTERPRETABILITY_TECHNIQUES = {
'chain_of_thought': {
'description': 'Ask model to show reasoning steps',
'limitation': 'CoT may not reflect true internal computation',
'example': 'Q: Why did you choose action X? A: Because...'
},
'attention_visualisation': {
'description': 'Show which input tokens the model attended to most',
'limitation': 'Attention != causation; incomplete explanation',
'example': 'Highlight most attended tokens in a response'
},
'logit_lens': {
'description': 'Read out predictions at each transformer layer',
'limitation': 'Requires model internals access (not API-accessible)',
'example': 'Prediction at layer 12 vs layer 24'
},
'activation_patching': {
'description': 'Intervene on specific neurons to find causal circuits',
'limitation': 'Research technique, not yet practical in production',
'example': 'Anthropic mechanistic interpretability research'
}
}
for technique, info in INTERPRETABILITY_TECHNIQUES.items():
print(f'{technique}: {info["limitation"][:80]}')الوضع الحالي: ما الذي تستطيع النماذج فعله في عام 2025؟
تُظهر النماذج الرائدة في عام 2025 (GPT-4o، Claude Opus 4، Gemini 1.5 Pro) قدرات تشمل: الاستدلال متعدد الخطوات عبر سياقات طويلة، والاستخدام الموثوق للأدوات، وفهم الصور والصوت، وأداءً يقارب أداء البشر في كثير من المعايير المهنية، وقدرة محدودة لكنها حقيقية على توليد التعليمات البرمجية وتصحيحها.
CAPABILITY_MAP_2025 = {
'strengths': [
'Multi-step reasoning (GSM8K, MATH near human performance)',
'Code generation (HumanEval >90%)',
'Instruction following (complex multi-part prompts)',
'Tool use (reliable function calling)',
'Vision understanding (OCR, chart analysis, scene description)',
'Context: 128K-1M tokens',
'Multi-agent orchestration (AutoGen, CrewAI frameworks)'
],
'limitations': [
'Long-horizon planning (>20 steps degrades significantly)',
'Reliable factual grounding without hallucination',
'Consistent reasoning in out-of-distribution domains',
'True causal reasoning (vs pattern matching)',
'Self-knowledge of own uncertainty',
'Physical world understanding without embodiment'
]
}
print('Strengths:', len(CAPABILITY_MAP_2025['strengths']))
print('Active limitations:', len(CAPABILITY_MAP_2025['limitations']))الطريق إلى AGI: مجالات البحث الرئيسية
يتفق الباحثون عمومًا على القدرات التي يحتاج إليها النظام ليُصنَّف ضمن الذكاء الاصطناعي العام: يجب أن يتعلم بكفاءة من أمثلة قليلة، وأن يعمم على نطاق واسع عبر المجالات، وأن يستدل سببيًا لا ارتباطيًا فحسب، وأن يعمل بمتانة في بيئات مفتوحة النهاية.
AGI_RESEARCH_AREAS = {
'sample_efficiency': {
'question': 'How to learn from 10 examples what LLMs need 10M for?',
'approaches': ['meta-learning', 'few-shot learning', 'in-context learning']
},
'causal_reasoning': {
'question': 'How to distinguish correlation from causation reliably?',
'approaches': ['causal graphs', 'do-calculus integration', 'intervention-based training']
},
'open_world_operation': {
'question': 'How to act effectively in environments not seen during training?',
'approaches': ['world models', 'imagination-based planning', 'transfer learning']
},
'recursive_self_improvement': {
'question': 'Can an agent improve its own architecture safely?',
'approaches': ['neural architecture search', 'prompt optimisation', 'constrained self-modification']
}
}
for area, info in AGI_RESEARCH_AREAS.items():
print(f'{area}: {info["question"][:70]}')الآثار العملية لمطوّري الوكلاء
يساعدكم فهم آفاق البحث على اتخاذ قرارات هندسية أفضل: استخدموا chain-of-thought لجعل الاستدلال قابلًا للفحص، وصمّموا وكلاء يتعاملون مع الفشل بأمان في المجالات الجديدة، وأدرجوا إشرافًا بشريًا في المهام طويلة الأفق، وفضّلوا البنى الأبسط حيثما أمكن — فالأنظمة الأبسط تفشل بطرق أكثر قابلية للتنبؤ.
ENGINEERING_PRINCIPLES_FROM_RESEARCH = {
'long_horizon_memory': (
'Use hierarchical summaries + vector retrieval. '
'Set a hard context age limit and revalidate critical facts. '
'Never trust old memories without verification.'
),
'domain_robustness': (
'Evaluate your agent on held-out domains before production. '
'Monitor domain distribution of production inputs. '
'Fall back to human when input is out-of-distribution.'
),
'multi_agent': (
'Minimise inter-agent communication. '
'Use shared state (not message passing) where possible. '
'Assign clear non-overlapping scopes to each agent.'
),
'interpretability': (
'Always request chain-of-thought for high-stakes decisions. '
'Log all tool calls and intermediate reasoning steps. '
'Build anomaly detection on the CoT stream, not just final output.'
)
}
for principle, guidance in ENGINEERING_PRINCIPLES_FROM_RESEARCH.items():
print(f'{principle}: {guidance[:80]}...')القدرات الناشئة والمفاجآت
القدرات الناشئة هي قدرات تظهر بشكل غير متوقع في النماذج الأكبر من دون تدريب صريح عليها. ومن أمثلتها: التعلّم داخل السياق، والحساب، والاستدلال باستخدام chain-of-thought. وتجعل هذه القدرات التنبؤ بالقدرات أمرًا صعبًا — فقد يفاجئ الاختراق التالي الجميع.
# Historical emergent capability timeline (approximate):
EMERGENCE_TIMELINE = [
{'year': 2020, 'scale': 'GPT-3 (175B)',
'emergent': 'Few-shot in-context learning without fine-tuning'},
{'year': 2022, 'scale': 'PaLM (540B)',
'emergent': 'Chain-of-thought reasoning with step-by-step prompts'},
{'year': 2023, 'scale': 'GPT-4',
'emergent': 'Reliable code generation, bar exam performance'},
{'year': 2024, 'scale': 'Claude 3 Opus, GPT-4o',
'emergent': 'Reliable multi-step tool use, vision-language integration'},
{'year': 2025, 'scale': 'Claude Opus 4, GPT-4o class',
'emergent': 'Extended multi-agent task delegation, agentic autonomy'}
]
for entry in EMERGENCE_TIMELINE:
print(f'{entry["year"]} ({entry["scale"]}): {entry["emergent"]}')
print('\nKey insight: capabilities can appear suddenly as scale increases — '
'current limitations may not be permanent.')مشهد أبحاث السلامة
تجري أبحاث السلامة بالتوازي مع أبحاث القدرات. ومن أبرز المجالات النشطة: الإشراف القابل للتوسّع (كيفية الإشراف على وكلاء أذكى منا)، والمناظرة (يتجادل وكيلان ويصدر إنسان الحكم)، والتضخيم (استخدام الذكاء الاصطناعي بشكل تكراري لمساعدة البشر على تقييم الذكاء الاصطناعي)، وقابلية التفسير (فهم ما تفعله النماذج داخليًا).
SAFETY_RESEARCH_AREAS = {
'scalable_oversight': (
'Challenge: how do humans supervise agents that are better than us at the task?\n'
'Approach: break tasks into verifiable sub-problems humans can check\n'
'Status: active research at Anthropic, DeepMind, OpenAI'
),
'debate': (
'Challenge: finding truth when the agent is more capable than the evaluator\n'
'Approach: two AI agents argue for different answers; human judges quality of argument\n'
'Status: theoretical framework, limited empirical results'
),
'weak_to_strong_generalization': (
'Challenge: a weak supervisor training a stronger model\n'
'Approach: show strong model responses can be elicited by weak supervision\n'
'Status: OpenAI 2024 paper showed promising early results'
),
'interpretability': (
'Challenge: understanding neural network internals\n'
'Approach: mechanistic interp, sparse autoencoders, circuit analysis\n'
'Status: Anthropic found emotion-like representations in Claude'
)
}
for area, desc in SAFETY_RESEARCH_AREAS.items():
print(f'{area}:')
print(f' {desc.split(chr(10))[0]}')طريقكم إلى الأمام كمطوّري وكلاء
يتطور مشهد وكلاء الذكاء الاصطناعي بسرعة كبيرة. وسيزدهر المطوّرون الذين يواكبون الأبحاث، ويبنون بمسؤولية مع مراعاة الإشراف والمواءمة، ويصمّمون الأنظمة لتتحمل تراجع الأداء بسلاسة، ويتعاملون مع الوكلاء باعتبارهم أنظمة اجتماعية تقنية — لا مجرد برمجيات.
DEVELOPER_ROADMAP = {
'immediate': [
'Master prompt engineering + few-shot design',
'Build reliable tool-use agents with retry + error handling',
'Implement proper logging, monitoring, and human oversight',
'Study agent frameworks: LangChain, AutoGen, CrewAI'
],
'next_6_months': [
'Build multi-agent systems with clear agent scopes',
'Implement vector memory + episodic reflection',
'Contribute to open-source agent tooling',
'Run proper evals: domain robustness, alignment red-teaming'
],
'long_term': [
'Follow interpretability research (Anthropic, DeepMind papers)',
'Engage with alignment research community',
'Build agents that remain human-overseen as capability grows',
'Contribute to safety-conscious deployment standards'
]
}
for horizon, items in DEVELOPER_ROADMAP.items():
print(f'{horizon}:')
for item in items:
print(f' - {item}')اختبروا معرفتكم
ماذا يعني مصطلح القدرة الناشئة في سياق النماذج اللغوية الكبيرة؟
مراجعة: آفاق البحث وAGI وما بعدها
تهانينا على إكمال سلسلة دورات وكلاء الذكاء الاصطناعي كاملة! أهم النقاط المستخلصة من هذا الدرس:
- المشكلات المفتوحة: الذاكرة طويلة الأفق، والمتانة عبر المجالات، وتنسيق الوكلاء المتعددين، وقابلية التفسير
- نقاط القوة الحالية (2025): استخدام الأدوات، والرؤية، والاستدلال، وسياقات تبلغ مليون رمز
- الطريق إلى AGI: كفاءة التعلّم من الأمثلة، والاستدلال السببي، والعمل في عالم مفتوح
- أبحاث السلامة: الإشراف القابل للتوسّع، والمناظرة، والتعميم من الضعيف إلى القوي، وقابلية التفسير
- دوركم: البناء بمسؤولية، والمراقبة المستمرة، وتصميم الأنظمة لإتاحة الإشراف البشري على كل مستوى
شكرًا لكم على إكمال منهج وكلاء الذكاء الاصطناعي. أنتم الآن مجهزون لبناء أنظمة وكلاء متقدمة وآمنة وقادرة.
تعلم AI Agents مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 60
- الدروس
- 239
الأسئلة الشائعة
هل درس «آفاق البحث: AGI وما بعده» مجاني؟
نعم — نص درس «آفاق البحث: AGI وما بعده» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة AI Agents، انتقل إلى CoddyKit PRO. تتضمن دورة AI Agents 4 دروس في المجموع.
ماذا ستتعلم في «آفاق البحث: AGI وما بعده»؟
مسائل مفتوحة في متانة الوكلاء، والذاكرة طويلة الأمد، والتنسيق بين الوكلاء. تتمرن على AI Agents مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ AI Agents؟
لا تُشترط خبرة سابقة. AI Agents على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «آفاق البحث: AGI وما بعده»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس AI Agents هذا؟
نعم. كل درس في AI Agents يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- من المساعد إلى الوكيل المستقل
- نماذج العالم والتخطيط التنبؤي
- تحديات المواءمة في الوكلاء المستقلين
- آفاق البحث: AGI وما بعده