mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-18 06:11:12 +00:00
Promote the a0_small prompt work into the shipped default stack. Token count for default prompt, accounting for tools, plugins, secrets placeholders, inactive project, etc: 2996 tokens. - migrate compact prompt fragments into core prompts, plugin-owned prompts, and the agent0 overlay - remove the obsolete a0_small profile and rename the tool-call knowledge reference to a generic framework file - keep a small set of high-value JSON examples while preserving key guardrails for tool names, tool args, and method-style calls - bake balanced conciseness into default response behavior without changing the initial greeting - drop the call_sub prompt-side loader and keep call_sub guidance self-contained - restore essential secrets/security guidance, preserve inactive-project messaging, and rebalance the A2A prompt - add a regression test that verifies the assembled default agent0 prompt stays under the token budget and retains critical guardrails |
||
|---|---|---|
| .. | ||
| extensions/python/system_prompt | ||
| helpers | ||
| prompts | ||
| webui | ||
| 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.