الانتقال إلى المحتوى الرئيسي

Documentation Index

Fetch the complete documentation index at: https://docs.wolffi.sh/llms.txt

Use this file to discover all available pages before exploring further.

agents.md

يقع في brain/prefrontal/agents.md، ويعرّف هذا الملف كيف ينبغي للوكيل أن يقترب من المهام ويستخدم الأدوات ويتبع الإجراءات. اعتبره دليل تشغيل الوكيل.

ماذا تُضمِّن

  • قواعد استخدام الأدوات — متى تُستخدم أي أدوات، وبأي ترتيب
  • الإجراءات — تدفقات عمل خطوة بخطوة للمهام الشائعة
  • القيود — أشياء لا ينبغي للوكيل أن يفعلها أبدًا
  • أطر اتخاذ القرار — كيفية الاختيار بين المقاربات

مثال

# Agent Procedures

## General Rules
- Always confirm destructive operations before executing
- When asked to modify code, read the file first to understand context
- Run tests after making code changes if a test suite exists
- Use git status before any git operations

## Task Approach
1. Understand what's being asked
2. Check if you have enough context (read files if needed)
3. Plan the steps
4. Execute one step at a time
5. Verify each step succeeded before moving on

## Code Modifications
- Read the target file first with file_read
- Make targeted changes with file_patch, not full file_write
- If the change is complex, explain the plan before executing

## Shell Commands
- Prefer single-purpose commands over chains
- Always check command output before proceeding
- If a command fails, diagnose before retrying

كيف يُستخدم

يُضمَّن agents.md في قسم prefrontal من نافذة السياق (تخصيص ميزانية 10%). يُقرأ في كل رسالة ويزود نموذج اللغة بإرشادات تشغيلية. هذا يختلف عن soul.md (الشخصية) وملفات SKILL.md (تعليمات خاصة بالقدرات). يغطي agents.md الاهتمامات الشاملة التي تنطبق بغض النظر عن القدرة المستخدمة.
إذا وجدت نفسك تكرر التعليمات لـ Wolffish عبر محادثات متعددة، فمن المحتمل أن تلك التعليمة تنتمي إلى agents.md.