background-agents
Background Agents
Run the requested work through a selected profile, verify the remote outcome, and return usable results with run references.
Keep four choices separate: execution backend (Trigger.dev by default), agent engine (for example Pi), model provider, and model. Changing one does not automatically change the others. Profiles select deployed tasks; they do not install a new engine or grant it tools.
Select configuration
Use the configuration explicitly supplied by the user, otherwise BACKGROUND_AGENT_PROFILES, otherwise agents.profiles.json in the working project. Do not search unrelated projects or reuse remembered account/project identifiers.
Read references/profiles.md when creating, extending or resolving profiles. Copy assets/profiles.example.json as a starting point; it contains environment references, not working deployment identifiers.
The standard-library helper lists and resolves profiles without executing jobs:
python3 scripts/profiles.py --config agents.profiles.json list
python3 scripts/profiles.py --config agents.profiles.json validate
python3 scripts/profiles.py --config agents.profiles.json resolve pi-openrouter