> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Task infrastructure PostHog uses shared task infrastructure to run agents across its products. Use these guides when your scripts or agent instructions need to work with a PostHog task environment. - [Detect a PostHog task environment](/docs/tasks/agent-environment.md) – Check the environment variables that PostHog supplies in a cloud sandbox. - [Task-runs API reference](/docs/api/task-runs.md) – Read and manage task runs through the API. ### Still have questions? Ask PostHog AI ### Was this page useful? HelpfulCould be better