aizee

aizee is a cursor rule for Cursor from m3taz-ahmed/ai-globals. It costs 916 tokens per session, scanned A, original, MIT.

A persona-switching and project-context rule set for the aiZee system. It loads shared instructions, detects the appropriate working personas, and routes requests to the matching workflow.

In plain words
What is it for?
Use it to bootstrap an aiZee session, switch personas from supported commands, load project rules, check the manifest, and select the relevant workflow.
Why use it?
Projects with many roles and rules can produce inconsistent behavior if the context is not loaded first. This setup establishes the required project location, instructions, memory, and workflow before work begins.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it to bootstrap an aiZee session, switch personas from supported commands, load project rules, check the manifest, and select the relevant workflow.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/m3taz-ahmed/ai-globals/aizee
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.

Clone the repo
git clone --depth 1 https://github.com/m3taz-ahmed/ai-globals

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 aizee

README.md
[![agentmods](https://agentmods.dev/badge/rules/m3taz-ahmed/ai-globals/aizee.svg)](https://agentmods.dev/rules/m3taz-ahmed/ai-globals/aizee)
Your own site
<a href="https://agentmods.dev/rules/m3taz-ahmed/ai-globals/aizee"><img src="https://agentmods.dev/badge/rules/m3taz-ahmed/ai-globals/aizee.svg" alt="Measured on agentmods" height="20"></a>
Per session 916 This file is loaded in full into every session.
When invoked 916 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.00916 $0.00916
Opus 5 $0.00458 $0.00458
Sonnet 5 $0.00183 $0.00183
Haiku 4.5 $0.00092 $0.00092

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

Security

Grade A, and why

aizee 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 8d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/aizee.mdc · 56 lines

How it starts

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

aiZee — Global Bootloader

  • Root: discovered via AIZEE_ROOT env or config.discover_root() (no hardcoded path).
  • Set AIZEE_ROOT if not already set. Use PYTHONIOENCODING=utf-8 on Windows.
  • This file is the canonical root pointer. All other OS files discover the root via AIZEE_ROOT or config.discover_root() and are loaded relative to it.

Working Directory [DIR-01]

  • Working directory: D:\server.ai ONLY. All edits go here.
  • D:\server\aizee is READ-ONLY — updated only via batch script.

Cold Start

  1. Read global-roles.md, global-workflow.md, and Memory.md.
  2. Detect personas with aizee persona detect --multi and load the returned skills/ before acting. Persona switch directive (mandatory): If the user message STARTS with a persona command — #انتحل, /انتحل, #reset, /reset, #persona, /persona, #redetect, #switch (or Arabic #شخصيات, /شخصيات, #بدّل, /بدّل, #حالة, /حالة, #مين, /مين, #معلومات, /معلومات) — strip the command token, then run aizee persona detect --multi "<remaining text>" and ADOPT the returned primary + secondary personas and load their skills/ + lords/ before acting. For status commands (#حالة, /status, #مين, /معلومات) print the currently active persona set instead of acting. This makes persona adoption explicit and verifiable; never silently ignore these commands.
  3. If the current project has spec.md, read it before any action.

Runtime Gate

  • Route every action through runtime/kernel.py.
  • Use aizee check <action> --args '{"tokens":N}' or Kernel.act to validate policy + budget.
  • No destructive action without explicit user approval.

Context & Memory

  • Detect stack from package.json / composer.json and load matching tech-stack/<pkg>-<ver>.md only after reading the lockfile for the exact version ([VER-01]).
  • If graphify-out/graph.json exists, use graphify query or query_graph (MCP); never raw grep.
  • Query Context7 MCP for external libraries/frameworks before implementation; use aizee_mcp/aizee_server.py for global context.
  • Run aizee memory ingest when rules/, tech-stack/, or workflows/ change; update Memory.md via workflows/17-memory-sync.md after every milestone.

Read the full file on GitHub · 56 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. 8d ago First seen · 56 lines · 916 tokens per session scan A c1c1aaf7c804

Subscribe to this mod's changes

aizee is a cursor rule published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 916 tokens to every session, about $0.0046 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-31.