Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.2 KB
Raw Blame
developer_instructions = """
Run commands that depend on PostHog's development environment from the repository
root through `.codex/with-flox <command> [args...]`.
This includes hogli, Python and uv, Node.js and pnpm, Rust and Go, and local-stack
commands. Basic filesystem, Git, and GitHub commands can run directly. Never use
a dependency executable inherited from another checkout. Request elevated
execution on the first attempt for environment preparation, dependency changes,
and local-stack lifecycle commands. Dependency changes also apply the existing
dev sandbox.
"""

[sandbox_workspace_write]
# Flox and dependency managers keep mutable caches outside the worktree.
writable_roots = [
    "~/.cache/flox",
    "~/.cache/node",
    "~/.cache/uv",
    "~/.local/share/flox",
    "~/.local/share/pnpm",
    "~/Library/pnpm",
]
network_access = false

[shell_environment_policy]
# Keep another checkout's Flox, virtualenv, and compiler paths out of commands.
inherit = "core"
# xdist opens a loopback socket even without parallel workers, which the
# Codex sandbox blocks.
set = { PATH = "/usr/local/bin:/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin", PYTEST_ADDOPTS = "-p no:xdist" }