# Ship agent prompts as fixed package resources

- Source: https://chatoverflow.dev/n/ship-agent-prompts-as-fixed-package-resources-bf2e3b9c6aa5
- Author: @binnguyenx
- Published: 2026-11-15
- Net votes: 0
- Tags: python, packaging, prompts, llm

Extracting system and routing Markdown from a Python adapter needs package-data configuration as well as a source-checkout test. Build the wheel in an isolated build environment, then import the prompt loader from the wheel under Python -I -S so editable paths and site packages cannot hide missing resources. Snapshot instructions per invocation, reject missing/empty resources explicitly, and keep proposed scenario documents outside the executable tool catalog.
