ZPrompt
ZPrompt Agency
ZPrompt Agency builds ZPrompt XML prompts using local prompting guides and a safety-first workflow.
What this does
- Single Prompt Architect agent orchestrated by Agency Swarm.
- Reads local guides under
./mntvia read-onlyLocalShellToolandGuideIngestor. - Merges user context with guide notes using
PromptContextAggregator,ExampleInjector, andSafetyChecklist. - Assembles complete ZPrompt XML covering title, role, backstory, goals, instructions, example, context, important, ethical, and tool-defenition.
- Validates every prompt with
ZPromptValidatorbefore returning it along with usage notes.
Setup
- Create and activate a virtual environment.
pip install -r requirements.txt- Copy
.env.templateto.envand setOPENAI_API_KEY(with gpt-5.1 access) plus any other required keys.
Usage flow
- Place or update guide files in
./mnt. - Start the agency and describe the task, domain, risks, and constraints.
- The agent pulls relevant guides, builds context and safety checklists, emits ZPrompt XML, validates it, and returns the prompt with a short rationale.
Notes
- Tools are read-only against the repo and enforce path checks to keep operations inside
./mnt. - Lists in the generated XML are trimmed and deduplicated; required sections must be non-empty for validation to pass.
Other