Files
agent-zero/plugins/_promptinclude
Jan Tomášek 188cff2073 Move optional runtimes into persistent gVisor plugin sandboxes
Move tunnel, browser, document, speech and integration runtimes into plugin-owned
sandboxes with lazy dependencies and instance-scoped lifecycle management.
Reuse Tuxee display assets and the sandbox image's Python/Node runtimes, enable
automatic Desktop login, and show elapsed time for each browser launch.

Slim the outer image, use offline ONNX embeddings, and calculate sandbox storage
only on demand. Include regression coverage and updated runtime documentation.
Exclude local handoff notes and temporary verification artifacts from publication.
2026-11-08 21:43:22 +01:00
..
2026-03-19 17:35:03 +01:00
2026-03-13 23:25:12 +08:00

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.
  • 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.py implements file discovery, ignore handling, token budgeting, and trimming.
  • Configuration
    • default_config.yaml contains prompt-include scanning defaults.
  • Prompts and UI
    • prompts/ and webui/ 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.