# CodeMind OKF — Antigravity / AI IDE Agent Rules
# ==================================================
# This file configures the Antigravity IDE agent to use the OKF knowledge
# bundle as its primary codebase context before answering any question.
#
# Generated by `codemind init`. Re-run `codemind index` to refresh bundles.

## Primary Context Instruction

When working in this repository, ALWAYS read the OKF knowledge bundle FIRST:

1. Read `.okf/index.md` — this is the definitive architecture map of the project.
   It groups all modules by type (api, database, module, config, test) with
   descriptions, tags, and cross-references.

2. For specific questions, search `.okf/modules/` — each `.md` file maps to one
   source file and contains structured YAML frontmatter with:
   - `type`: architecture layer
   - `title`: human-readable module name  
   - `description`: what the module does
   - `key_functions`: most important functions/classes
   - `resource`: original source file path
   - `tags`: concept tags for cross-referencing

3. Use the `key_functions` and `tags` fields to trace how modules connect to each
   other before answering questions about system architecture or data flow.

## Rules

- Prefer `.okf/` structured knowledge over raw source file reading for architecture questions.
- Always cite the source file (`resource` field) when referencing a module.
- When a user asks "how does X work", start by finding the relevant `.okf/modules/*.md`
  file before reading raw source code.

## Bundle Info

Generated by: CodeMind CLI (`codemind index`)
Bundle path: `.okf/`
Index: `.okf/index.md`
