memory

A project-context rule that defines a hierarchy of memory files, from product requirements and technical details to tasks, active work, errors, and lessons learned.

In plain words
What is it for?
It is for organizing required documentation, architecture notes, task plans, current context, research, and problem records.
Why use it?
It helps the agent build a consistent understanding of the project across tasks.

Cursor rule for 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/inakianduaga/clockify-mcp/memory
Clone the repo
git clone --depth 1 https://github.com/inakianduaga/clockify-mcp

Made for: Cursor.

Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,310 The whole file, excluding the scripts and references it only reads on demand.
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 $0.00007 $0.02310
Opus 5 $0.00003 $0.01155
Sonnet 5 $0.00001 $0.00462
Haiku 4.5 $0.00001 $0.00231

Measured 2d ago against content hash fe401623c20f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory 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.

.cursor/rules/memory.mdc · 202 lines

How it starts

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


description: ALWAYS INCLUDE to HAVE Project Context. globs: alwaysApply: true

Memory Files Structure

This outlines the fundamental principles, required files, workflow structure, and essential procedures that govern documentation, and maintaining a memory using file system. The Memory Files consists of required core files and optional context files. Files build upon each other in a clear hierarchy:

flowchart TD
    PB[ [product_requirement_docs.md](mdc:docs/product_requirement_docs.md) ] --> PC[ [technical.md](mdc:docs/technical.md) ]
    PB --> SP[ [architecture.md](mdc:docs/architecture.md) ]

    SP --> TC[ [tasks_plan.md](mdc:tasks/tasks_plan.md) ]
    PC --> TC
    PB --> TC
    
    TC --> AC[ [active_context.md](mdc:tasks/active_context.md) ]

    AC --> ER[ [error-documentation.mdc](mdc:.cursor/rules/error-documentation.mdc)]
    AC --> LL[ [lessons-learned.mdc](mdc:.cursor/rules/lessons-learned.mdc) ]
    
    subgraph LIT[ @docs/literature ]
        L1[...]
        L2[...]
    end
    
    subgraph RFC[ @tasks/rfc/ ]
        R1[...]
        R2[...]
    end
    
    PC --o LIT
    TC --o RFC

Core Files (Required)

7 files:

  1. product_requirement_docs.md (docs/product_requirement_docs.md): Product Requirement Document (PRD) for the project or an SOP.
  • Why this project exists
  • Problems it solves
  • Defines core requirements and goals
  • Foundation document that shapes all other files
  • Source of truth for project scope
  • Created at project start if it doesn't exist
  1. architecture.md (docs/architecture.md): System architecture
  • How it should work
  • Component relationships
  • Dependencies
  • Work flow of the Solution
  • Mermaid diagram of solution overview: each component and code flow
  1. technical.md (docs/technical.md): Development environment and stack
  • Technologies used
  • Development setup
  • Key technical decisions
  • Design patterns in use
  • Technical constraints

Read the full file on GitHub · 202 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. 2d ago First seen · 202 lines · 7 tokens per session scan A fe401623c20f

Subscribe to this mod's changes

memory is a cursor rule published in the GitHub repository inakianduaga/clockify-mcp (14 stars, last pushed 1y ago), licensed MIT. It adds 7 tokens to every session and 2,310 once invoked, about $0.0000 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-08-30.