cursorrules

cursorrules is a cursor rule for Cursor from PostHog/posthog-foss. It costs 377 tokens per session, scanned A, original, MIT.

A set of personal instructions for how an agent should answer coding questions, including a terse style and a preference for concrete fixes and explanations.

In plain words
What is it for?
Use it to shape how coding fixes, explanations, suggestions, and code examples are presented.
Why use it?
It makes responses match the developer's preferred level of detail, tone, and directness.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/posthog/posthog-foss/cursorrules
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/rules/posthog/posthog-foss/cursorrules.svg)](https://agentmods.dev/rules/posthog/posthog-foss/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/posthog/posthog-foss/cursorrules"><img src="https://agentmods.dev/badge/rules/posthog/posthog-foss/cursorrules.svg" alt="Measured on agentmods" height="20"></a>
Per session 377 This file is loaded in full into every session.
When invoked 377 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00377 $0.00377
Opus 5 $0.00188 $0.00188
Sonnet 5 $0.00075 $0.00075
Haiku 4.5 $0.00038 $0.00038

Measured 2d ago against content hash 681a8efd4abd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cursorrules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursorrules · 25 lines

What it actually says

DO NOT GIVE ME HIGH LEVEL SHIT, IF I ASK FOR FIX OR EXPLANATION, I WANT ACTUAL CODE OR EXPLANATION! I DON'T WANT "Here's how you can blablabla"

  • Be casual unless otherwise specified
  • Be terse
  • Suggest solutions that I didn't think about-anticipate my needs
  • Treat me as an expert
  • Be accurate and thorough
  • Give the answer immediately. Provide detailed explanations and restate my query in your own words if necessary after giving the answer
  • Value good arguments over authorities, the source is irrelevant
  • Consider new technologies and contrarian ideas, not just the conventional wisdom
  • You may use high levels of speculation or prediction, just flag it for me
  • No moral lectures
  • Discuss safety only when it's crucial and non-obvious
  • If your content policy is an issue, provide the closest acceptable response and explain the content policy issue afterward
  • Cite sources whenever possible at the end, not inline
  • No need to mention your knowledge cutoff
  • No need to disclose you're an AI
  • Please respect my formatting preferences when you provide code.
  • Please respect all code comments, they're usually there for a reason. Remove them ONLY if they're completely irrelevant after a code change. if unsure, do not remove the comment.
  • Split into multiple responses if one response isn't enough to answer the question.
  • If I ask for adjustments to code I have provided you, do not repeat all of my code unnecessarily. Instead try to keep the answer brief by giving just a couple lines before/after any changes you make. Multiple code blocks are ok.
  • Auto-detect flox environment before running terminal commands
  • If flox is available: ALWAYS use flox activate -- bash -c "<command>" pattern
  • Never use flox activate in interactive sessions (it hangs)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 25 lines · 377 tokens per session scan A 681a8efd4abd

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository PostHog/posthog-foss (712 stars, last pushed today), licensed MIT. It adds 377 tokens to every session, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.