PromptisePromptise
PlatformSoonEnterprise
DocsGitHub
Talk to usGet started
Promptise - AI Framework LogoPromptise

The full-stack framework for agentic systems. Build with the framework. Run it on the platform. Launch it with our engineers.

pip install promptise

[01] Product

  • Framework
  • Platform (coming soon)
  • Enterprise
  • How it works
  • Contact

[02] Framework

  • The Agent
  • The Interface
  • The Harness

[03] Resources

  • Documentation
  • GitHub
  • Why Promptise
  • Use cases
  • Roadmap
  • Guides
  • Learning Paths
  • Questions

[04] Company

  • About
  • Terms of Service
  • Privacy Policy
  • Cookie Policy
  • Subprocessors

© 2026 Promptise by Manser Ventures. All rights reserved.

hello@promptise.com
← Guides> Topic

Runtime, triggers and deployment

Many useful agents do not wait for a chat message. They run on a schedule, react to a webhook or a file change, and keep working for minutes or hours. That needs a runtime around the agent: something that starts runs from triggers, records progress so a crash does not lose work, enforces limits, and reports health.

These guides start with what an agentic runtime is, how it differs from a framework, a workflow engine and a hosting platform, and when you need one. They then cover each piece on its own: cron schedules, webhook and file-watch triggers, running many agents in one runtime, lifecycle states with pause and resume, automatic restarts, state between runs, durable runs that resume after a crash, messaging a running agent, the HTTP control API, health monitoring, goal-driven missions, scoped secrets, and long-running MCP tasks handled as background jobs. The last guides take an agent to production: running, debugging and deploying a project with one command, and the operational checks to have in place first.

42
guides
3
Beginner
35
Intermediate
4
Advanced
13 h
of reading
01

Start here

What Is an Agentic Runtime? AI Agent Runtimes Explained

An agentic runtime runs AI agents as long-lived processes with triggers, state, crash recovery and budgets. See how it differs from frameworks and hosts.

Beginner · 13 minRead the guide →

Then read on, in this order

41 guides

  1. 02Autonomous AI Agent Runtime: Budgets, Crash Recovery, APIRun an autonomous AI agent runtime in Python: budgets for irreversible actions, restarts, kill -9 recovery, missions and an API, tested on real runs.Advanced · 18 minAdvanced · 18 min→
  2. 03Event-Driven AI Agents: Webhook, Cron and File TriggersRun an AI agent on a GitHub webhook, a cron schedule or a new file, with signed webhooks and real prompt-injection tests. Python code that runs.Intermediate · 22 minIntermediate · 22 min→
  3. 04AI Agent Cron Jobs: Run an Agent on a ScheduleRun an AI agent on a cron schedule: time zones and DST, runs that overlap, missed ticks, idempotent jobs, and tests that don't wait. Real output.Intermediate · 18 minIntermediate · 18 min→
  4. 05Scheduled AI Agent With Push Notifications (ntfy, Pushover)Build a scheduled AI agent with push notifications: a cron trigger, a notify tool for ntfy or Pushover, budgets, and alerts only when something changed.Intermediate · 18 minIntermediate · 18 min→
  5. 06AI Agent Webhook Trigger: Run an Agent on HTTP EventsTrigger an AI agent from a webhook: HMAC signatures for GitHub and Stripe, replay protection, response codes, filters and payload injection scans.Intermediate · 20 minIntermediate · 20 min→
  6. 07AI Agent File Watcher: Process New Files AutomaticallyRun an AI agent when files land in a folder: events, debouncing, half-written files, archiving processed files and avoiding loops. Code and real output.Intermediate · 18 minIntermediate · 18 min→
  7. 08Custom AI Agent Triggers: Wake an Agent From Any SourceBuild a custom AI agent trigger for any queue or source: the trigger protocol, registering a type, acknowledging jobs, clean stops and use in manifests.Advanced · 22 minAdvanced · 22 min→
  8. 09AI Agent Event Filters: Skip Runs Before the LLMFilter events before the LLM call in an AI agent: a safe expression language, Python function filters, errors caught at config time, and LLM calls saved.Intermediate · 16 minIntermediate · 16 min→
  9. 10AI Agent Retries and a Dead Letter Queue for Failed RunsRetry failed AI agent runs with exponential backoff, catch what still fails in a dead letter queue, redeliver it, and keep tool side effects idempotent.Intermediate · 20 minIntermediate · 20 min→
  10. 11Run Multiple AI Agents: One Runtime, Many ProcessesRun multiple AI agents in one runtime: add and remove processes, load manifests, share notifications, contain failures and shut down cleanly on SIGTERM.Intermediate · 18 minIntermediate · 18 min→
  11. 12AI Agent Manifest: Declare a Long-Running Agent in YAMLDeclare a long-running AI agent in a YAML manifest: tools, triggers, state, journal, budgets and hooks, with strict validation and real CLI output.Intermediate · 20 minIntermediate · 20 min→
  12. 13AI Agent CLI: Start, Stop and Inspect Running AgentsRun AI agents from the command line: start a runtime in the background, check status, follow logs, restart, stop and rewind. Real terminal output.Intermediate · 20 minIntermediate · 20 min→
  13. 14AI Agent Monitoring Dashboard in the TerminalMonitor AI agents in a terminal dashboard: process states, triggers, context state, logs and events, plus commands to suspend, resume and inject runs.Beginner · 15 minBeginner · 15 min→
  14. 15Multi-Agent Event Bus: Chain Agents With EventsConnect AI agents with a pub/sub event bus: topics and wildcards, chaining agents on events and failures, full queues, and LangGraph and CrewAI compared.Intermediate · 20 minIntermediate · 20 min→
  15. 16Distributed AI Agents: Run Agents Across Many MachinesRun AI agents across multiple servers: a coordinator, node registration, health checks and remote control, and what to do when one node dies.Advanced · 22 minAdvanced · 22 min→
  16. 17Pause and Resume an AI Agent: Lifecycle States ExplainedPause and resume a running AI agent: the eight lifecycle states, valid transitions, suspend and resume from code or HTTP, and what happens to queued work.Intermediate · 16 minIntermediate · 16 min→
  17. 18AI Agent Auto-Restart: Restart Policies and TimeoutsAuto-restart an AI agent on failure: restart policies, backoff, restart limits, run timeouts and lifetime recycling, plus an alert when it gives up.Intermediate · 18 minIntermediate · 18 min→
  18. 19AI Agent State Between Runs: Context, Keys and AuditKeep AI agent state between runs: a key-value context with writable keys and an audit trail, how it differs from memory, and how to recover it on restart.Intermediate · 17 minIntermediate · 17 min→
  19. 20AI Agent Lifecycle Hooks: Run Code on Agent EventsAI agent lifecycle hooks: run code when an agent starts, queues a task, builds a prompt or is refused. Block, rewrite, shell hooks and fail-closed rules.Intermediate · 20 minIntermediate · 20 min→
  20. 21Durable AI Agents: Crash Recovery and Safe ResumeHow to make an AI agent survive a crash: journal its progress, resume from the last step, and use idempotency keys so side effects never run twice.Intermediate · 16 minIntermediate · 16 min→
  21. 22Rewind an AI Agent: Roll Back State and ConversationRewind an AI agent to an earlier point: roll back its state and conversation from the journal, preview the plan, and compare with LangGraph time travel.Intermediate · 18 minIntermediate · 18 min→
  22. 23Message a Running AI Agent: Inbox, Directives and AskSend instructions to a running AI agent without a restart: directives, context, corrections and questions, with TTLs, rate limits and safe scanning.Intermediate · 16 minIntermediate · 16 min→
  23. 24AI Agent Control API: Manage Running Agents Over HTTPManage running AI agents over HTTP: deploy, stop and restart them, patch budgets and prompts, send messages, and secure the API. Real curl calls.Intermediate · 20 minIntermediate · 20 min→
  24. 25AI Agent Health Monitoring: Catch Silent FailuresMonitor AI agent behavior in production: catch empty replies, rising error rates, stuck calls and loops, then log, pause or escalate. Real output.Intermediate · 18 minIntermediate · 18 min→
  25. 26AI Agent Escalation: Page a Human When Limits HitMake an AI agent escalate to a human when a budget, health check or mission judge trips: targets, payloads, and routing to Slack or PagerDuty via a relay.Intermediate · 18 minIntermediate · 18 min→
  26. 27AI Agent Kill Switch: Detect, Downgrade and Stop an AgentAn AI agent kill switch that works: detect bursts and loops, downgrade the agent to read-only, pause or stop it over an API, and revoke its credentials.Advanced · 18 minAdvanced · 18 min→
  27. 28Goal-Driven AI Agents: Missions With an LLM JudgeGive an AI agent a goal and let an LLM judge decide when it is done: success criteria, confidence thresholds, limits and costs. Runnable code, real output.Intermediate · 18 minIntermediate · 18 min→
  28. 29Build a Personal AI Agent: Memory, Reminders, ChatBuild a personal AI agent you host: chat over a signed webhook, memory that survives restarts, and reminders on a cron trigger, with runnable code.Intermediate · 25 minIntermediate · 25 min→
  29. 30AI Agent Secrets Management: Scoped, Expiring CredentialsManage AI agent secrets safely: scope credentials per agent, expire and rotate them, keep them out of prompts and logs, and audit each access. Real output.Intermediate · 17 minIntermediate · 17 min→
  30. 31AI Agent Irreversible Actions: Cap Destructive Tool CallsLimit destructive actions by an AI agent: mark tools irreversible, cap them per run, add human approval, audit refusals, and know what rewind can't undo.Intermediate · 20 minIntermediate · 20 min→
  31. 32Test Autonomous AI Agents Without Waiting for TriggersTest a scheduled or event-driven AI agent in pytest: inject ticks, script the model, freeze the clock, and assert on journal, dead letters and hooks.Intermediate · 20 minIntermediate · 20 min→
  32. 33MCP Long-Running Tasks: Background Jobs in PythonRun slow MCP tools as background jobs in Python: submit, poll progress, retry failures and cancel, with a real agent, real runs and honest limits.Intermediate · 19 minIntermediate · 19 min→
  33. 34How to Run, Debug and Deploy an AI Agent in PythonRun, debug and deploy a Python AI agent project with one command: a package.json-style manifest, live traces, a terminal UI, JSON logs and an API.Beginner · 15 minBeginner · 15 min→
  34. 35Deploy AI Agents in Production: Long-Running Python AgentsRun an AI agent as a long-lived Python process: cron and webhook triggers, state between runs, a journal, budgets that pause it, and honest limits.Intermediate · 15 minIntermediate · 15 min→
  35. 36How to Deploy an AI Agent with Docker (2026 Guide)Deploy an AI agent with Docker: a Dockerfile, env vars and secrets, health checks, graceful shutdown, and docker compose with the agent's MCP server.Intermediate · 18 minIntermediate · 18 min→
  36. 37AI Agent Production Checklist: What to Check Before LaunchAn AI agent production checklist: security, approvals, guardrails, limits, cost, observability, evals, deployment and incident response, with code.Intermediate · 17 minIntermediate · 17 min→
  37. 38AI Agent Code Execution Sandbox: Run LLM Code SafelyLet an AI agent write and run Python in a Docker sandbox: analyse a CSV, try real escape attempts, set limits, and learn where the sandbox stops.Intermediate · 18 minIntermediate · 18 min→
  38. 39AutoGen Docker Task Isolation: Secure the Code ExecutorSet up AutoGen Docker task isolation: configure DockerCommandLineCodeExecutor, run one container per task, cut the network, set limits and fix errors.Intermediate · 20 minIntermediate · 20 min→
  39. 40AI Agent Cost Control: Budgets That Stop Runaway SpendHow to control AI agent costs: per-run and daily budgets that refuse tool calls before they run, token caps, iteration limits, and what each one misses.Intermediate · 18 minIntermediate · 18 min→
  40. 41AI Agent Notifications: Webhook and Slack Alerts in PythonGet alerted when your AI agent fails a tool call, hits a guardrail or budget, or needs approval. Webhooks, Slack and Python callbacks, with real payloads.Intermediate · 25 minIntermediate · 25 min→
  41. 42MCP Transports: stdio vs Streamable HTTP vs SSE (Python)stdio vs Streamable HTTP vs SSE, shown on the wire with curl, then an MCP server over HTTP in production: Host checks, auth, health checks and scaling.Intermediate · 22 minIntermediate · 22 min→

Other topics

  • Building AI agents in Python
  • Models and providers
  • Tools and the Model Context Protocol (MCP)
  • Memory, context and RAG
  • Agent reasoning patterns
  • Multi-agent systems
  • Guardrails and security
  • Human approvals (human-in-the-loop)
  • Observability and debugging
  • Cost control and rate limits
  • Testing and evals
  • Frameworks and comparisons
  • AI at work
  • AI for leaders
  • Enterprise AI agents

In the documentation

  • Agent runtimedocs ↗
  • Triggersdocs ↗
  • Journal and crash recoverydocs ↗
  • Health monitoringdocs ↗
  • Control APIdocs ↗
  • Deploying MCP serversdocs ↗

Build it with Promptise Foundry.

The code in these guides runs on Promptise Foundry, an open-source Python framework for AI agents and MCP servers.

QuickstartAll guides