mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-07-09 17:08:29 +00:00
Add comprehensive file-level DOX documentation across the repo and update directory AGENTS.md indexes. Many new `*.py.dox.md` files were added under api, helpers, tools, plugins, extensions, webui, and other dirs to document endpoint purpose, ownership, runtime contracts, work guidance, and verification. Several AGENTS.md files were created or updated (agents profiles, api, docker, extensions, helpers, plugins, skills, webui components, etc.) to list child DOX files and clarify documentation/work guidance. Also add example and bundled profile DOX files (agent0, default, developer, hacker, researcher) and minor updates to helpers/dirty_json.py and its tests. These changes improve on-disk documentation coverage and establish the convention that each direct runtime file should have a matching `*.dox.md` describing its contracts and verification steps. |
||
|---|---|---|
| .. | ||
| extensions/python/system_prompt | ||
| helpers | ||
| prompts | ||
| webui | ||
| AGENTS.md | ||
| default_config.yaml | ||
| plugin.yaml | ||
| README.md | ||
Prompt Include
Automatically inject persistent behavioral rules and preferences into the system prompt from project files.
What It Does
This plugin scans a workspace for *.promptinclude.md files, applies gitignore-aware filtering and token budgets, and makes the collected content available for prompt injection.
Main Behavior
- Workspace scanning
- Recursively searches for files matching
*.promptinclude.md.
- Recursively searches for files matching
- Ignore support
- Respects ignore patterns derived from gitignore-style content.
- Budgeted inclusion
- Applies per-file and total token limits.
- Crops oversized files when they partially fit within the remaining token budget.
- Structured scan result
- Returns included file content together with path, token count, status, and skipped count.
Key Files
- Scanner
helpers/scanner.pyimplements file discovery, ignore handling, token budgeting, and trimming.
- Configuration
default_config.yamlcontains prompt-include scanning defaults.
- Prompts and UI
prompts/andwebui/provide integration with the broader app.
Configuration Scope
- Settings section:
agent - Per-project config:
true - Per-agent config:
true
Plugin Metadata
- Name:
_promptinclude - Title:
Prompt Include - Description: Persistent behavioral rules and preferences auto-injected into system prompt.