COG-second-brain: Cursor rule for Cursor

.cursorrules

cursorrules is a cursor rule for Cursor from huytieu/COG-second-brain. It costs 931 tokens per session, scanned A, original, MIT.

A set of Cursor editor rules for COG, a note-based system that combines coding work, project knowledge, and Git. It documents available skills, worker agents, and a process for checking relevant notes before answering questions.

In plain words
What is it for?
Use it when working in a COG project with its skills, worker agents, knowledge folders, and AGENTS.md command reference. It covers tasks such as research, file operations, data collection, and publishing.
Why use it?
It gives the coding agent shared instructions for finding knowledge, choosing workers, and following project procedures.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

This is huytieu/COG-second-brain's own configuration. It tells Cursor how to work on COG-second-brain itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything COG-second-brain configures →

About the project

COG is an AI-assisted second brain that stores knowledge in Markdown files and uses agents, skills, and version control to evolve it over time. It helps people manage knowledge and contacts while supporting several coding-agent tools; the catalogue entries are COG’s skills, agents, instructions, rules, and plugin surfaces.

huytieu/COG-second-brain · 1,559 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to huytieu/COG-second-brain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/huytieu/COG-second-brain/main/.cursorrules
Clone the repo
git clone --depth 1 https://github.com/huytieu/COG-second-brain

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/huytieu/cog-second-brain/cursorrules/github.svg)](https://agentmods.dev/rules/huytieu/cog-second-brain/cursorrules)
Your own site
<a href="https://agentmods.dev/rules/huytieu/cog-second-brain/cursorrules"><img src="https://agentmods.dev/badge/rules/huytieu/cog-second-brain/cursorrules/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/rules/huytieu/cog-second-brain/cursorrules"><img src="https://agentmods.dev/badge/rules/huytieu/cog-second-brain/cursorrules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 931 This file is loaded in full into every session.
When invoked 931 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00931 $0.00931
Opus 5.5 $0.00372 $0.00372
Sonnet 5.5 $0.00186 $0.00186
Haiku 4.5 $0.00093 $0.00093

Measured today against content hash a3b6b58f34b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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 · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

COG Second Brain - Cursor Rules

This is the Cursor-compatible version of CLAUDE.md

COG: Cognition + Obsidian + Git - a self-evolving agentic second brain

Inspired by Garry Tan's gstack and gbrain patterns

Skills

COG exposes 49 skills via .claude/skills/*/SKILL.md. Each skill has a name and description in YAML frontmatter. Use AGENTS.md as the universal command reference.

Worker Agents

10 agents live in .claude/agents/: 6 workers handle data-heavy tasks, 4 verification agents check the result against acceptance criteria by observing the artifact. The lead session handles reasoning and synthesis.

  • worker-data-collector: Structured extraction from GitHub, Slack, Jira, Linear
  • worker-researcher: Web research with source citations
  • worker-file-ops: Vault file operations, metadata, profiles
  • worker-executor: Pre-approved mutations (Jira, Linear, APIs)
  • worker-publisher: Publishing to Slack, Confluence, Notion
  • brief-people-updater: Batch-update people profiles

Brain-First Protocol

Before answering questions about people, projects, strategy, or decisions:

  1. Read relevant notes from 05-knowledge/ first
  2. If project-specific, read 04-projects/<project>/
  3. Then synthesize an answer

Daily Journal

Ambient, not a command. After finishing a meaningful unit of work (shipped or committed something, produced a deliverable, made a decision, hit a blocker), append one entry to 01-daily/journal/YYYY-MM-DD.md (date +%F). Create the file from the template in .claude/skills/daily-journal/SKILL.md on the first entry of the day; append only. Skip trivia and scratch work, and do not announce the write.

Integration Preferences

Check 00-inbox/MY-INTEGRATIONS.md before using any external integration:

  • Active: use normally
  • Disabled: skip silently
  • Unknown: ask the user

Vault Location

The notes can live outside this repository. Read vault_path from cog.local.yaml at the repository root once per session. Resolve every path that starts with 00-inbox/ … 06-templates/ against it. If the file is absent, or vault_path is empty or ., the vault is the repository root. Framework paths stay relative to the repository. Use the absolute vault path in double quotes in shell commands. If the folder does not exist or you cannot access it, stop and tell the user.

Read the full file on GitHub · 65 lines

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. today Changed · +6 lines · +129 tokens per session a3b6b58f34b3
  2. 2mo ago Changed · +70 tokens per session 671f4ba49716
  3. 3mo ago First seen · 59 lines · 732 tokens per session scan A be3118fbb97b

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository huytieu/COG-second-brain (1,559 stars, last pushed yesterday), licensed MIT. It adds 931 tokens to every session, about $0.0037 per session on Opus 5.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-08-30.

Related

cursorrules compared with cursor rules from other repositories

cursorrules next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorruleshuytieu/COG-second-brainCursor rule1.6kyesterdayMITA931Cursor
orchestratorNeftedollar/multiagent-templateCursor rule64mo agoMITA13Cursor
workspaceNeftedollar/multiagent-templateCursor rule64mo agoMITA662Cursor
engineering-agent-prompt-engineerNeftedollar/multiagent-templateCursor rule64mo agoMITA19Cursor
foddapiers-fawkes/fodda-mcpCursor rule1todaynoneA160Cursor
ponytailDietrichGebert/ponytailCursor rule204k12d agoMITA604Cursor
angular-20angular/angularCursor rule102ktodayMITA0Cursor