الأكاديمية ← دليل المطوّرتوثيق رسمي · إرشاد عربي

خريطة ملكية الشيفرة

Codebase Ownership Map

متقدم3 دقائق قراءةالدرس 28سؤال واحد✓ 2026-08-18
قبل أن تقرأ

ما هذه الصفحة، وماذا تحتوي.

صفحة «خريطة ملكية الشيفرة» من التوثيق الرسمي، معروضة هنا كاملة. القراءة نحو 3 دقائق.

0أقسام
0أمثلة برمجية
1جداول
0أوامر
311كلمة من المصدر
الوصف الرسمي في سطر

Which directories belong to which subsystem, and where the right docs entry point lives for each

ماذا ستستطيع بعدها

نتائج مأخوذة من هذه الصفحة، لا من قالب.

  • تقرأ الجدول وتأخذ منه السطر الذي يخصّك فقط.
الصفحة الرسمية كاملة

بلا اختصار أو حذف.

النص أدناه منقول من المصدر الرسمي بالإنجليزية حتى تبقى الأوامر والأسماء دقيقة كما هي. قبل كل قسم شرح عربي يوضّح ما بداخله.

Hermes is a large repository, and most contributions touch exactly one subsystem. This page maps each subsystem to its source directories and the documentation entry point you should read before changing it. Use it to find the right starting doc, the right place for a change, and the right test directory (tests mirror source: code in tools/ is tested in tests/tools/, plugins in tests/plugins/<type>/, and so on).

SubsystemSource directoriesDocs entry point
Agent core (loop, transports, compression)agent/, run_agent.pyAgent Loop, Context Compression & Caching
Prompt assemblyagent/prompt_builder.py, agent/system_prompt.pyPrompt Assembly
Model providers & transportsagent/transports/, plugins/model-providers/, hermes_cli/models.pyAdding Providers, Model Provider Plugins, Provider Runtime
Built-in toolstools/Adding Tools, Tools Runtime
Messaging gatewaygateway/, plugins/platforms/Gateway Internals, Adding Platform Adapters
CLIhermes_cli/Extending the CLI
Plugins systemplugins/Build a Hermes Plugin
Skills (bundled & optional)skills/, optional-skills/Creating Skills
Cron / scheduled jobscron/Cron Internals
Session storagehermes_state.pySession Storage
Browser stacktools/browser_tool.py, tools/browser_supervisor.py, tools/browser_cdp_tool.pyBrowser Supervisor
Egress firewallagent/proxy_sources/iron_proxy.pyEgress Internals
ACP (IDE integration)acp_adapter/ACP Internals
Desktop appapps/desktop/Desktop Plugin SDK, Worktree UI Development
TUIui-tui/, tui_gateway/Worktree UI Development
Docs sitewebsite/Contributing
Teststests/, tests-js/Contributing → Before Submitting

A few conventions that fall out of this map:

  • Changes should stay inside their subsystem. A plugin that needs to edit core files is a design smell — widen the generic plugin surface instead (see the contribution rubric in the repository's AGENTS.md).
  • Run the mirror test directory for every source directory you touch. A change to plugins/platforms/telegram/ needs tests/plugins/platforms/ green, not just the test file you happened to think of.
  • When two subsystems are involved, the narrower one owns the change. Prefer a fix in an adapter or plugin over a branch in the agent core; the core is a narrow waist, and every addition there is paid for on every API call.
اختبار الفهم

سؤال واحد إجاباتها كلها في هذه الصفحة.

كل خيار اسم حقيقي من توثيق Hermes. حتى الخيارات الخاطئة حقيقية، لكنها من صفحات أخرى.

1. في جدول هذا الدرس، ما «Source directories» المقابل لـ«Messaging gateway»؟