Hogli

From PostHog/posthog · View interactive version

Hogli is an AI agent skill from the GitHub repository PostHog/posthog. PostHog developer CLI and repo tooling reference. Use when the user mentions hogli, asks about repo CLI tools, bin scripts, Makefiles, how to run/build/test/lint, or any dev environment commands. Also use when the disk is full, a command fails with "No space left on device", or the user asks to free

How to use this skill

Skill file

hogli - PostHog Developer CLI

Unified CLI for PostHog development. Wraps all repo scripts, bin commands, and tooling behind a single entry point. There is no Makefile — hogli is the equivalent.

Run hogli --help to get the full, current command list. Run hogli <command> --help for any subcommand.

Process logging (for agents/debugging)

Where logs land depends on how the stack was launched:

Detached (hogli up -d) — phrocs writes files under .posthog/.generated/logs/ on every boot:

TUI with hogli dev:setup --log, then hogli start — adds a tee wrap per process:

When the phrocs MCP is reachable, prefer mcp__phrocs__get_process_logs over grepping files.

Disk full

Preview before deleting anything:

Show the user the estimates, then run what they approve with --yes and one --area per approved area.

The cleanup commands need --yes or --dry-run in an agent shell, because no terminal answers their prompts.

Ask before these, because they lose data or force a full rebuild:

Key references

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.