# Windsurf Rules for AGIT

This project uses AGIT for AI memory persistence.

## Required Workflow

For every task, follow this sequence:

### Step 1: Log User Intent
When the user makes a request, immediately call:
```
agit_log_step(role="user", category="intent", content="<user's request>")
```

### Step 2: Log Your Reasoning
Before writing any code, call:
```
agit_log_step(role="ai", category="reasoning", content="<your plan>")
```

### Step 3: Implement
Only after completing steps 1 and 2, begin coding.

## Purpose

AGIT creates a "neural graph" alongside Git's code graph.
Every thought you log becomes part of the project's permanent history.

When someone runs `agit log`, they see:
- WHAT changed (git)
- WHY it changed (agit - your logged intent)
- HOW the decision was made (agit - your logged reasoning)

## Available MCP Tools

| Tool | Purpose |
|------|---------|
| `agit_log_step` | Log intent, reasoning, or errors |
| `agit_read_roadmap` | Get project goals and direction |
| `agit_get_context` | Get context for a specific git commit |
