Skip to content

Commit 500ff65

Browse files
sharpninjaCopilot
andcommitted
Add mandatory session logging to Cursor, Codex, and Cline agent configs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3d0c485 commit 500ff65

3 files changed

Lines changed: 74 additions & 0 deletions

File tree

.clinerules

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Cline Rules
2+
3+
## ⚠️ PRIORITY ORDER — NON-NEGOTIABLE ⚠️
4+
5+
**Speed is never more important than following workspace procedures.**
6+
7+
Before doing ANY work on ANY user request, you MUST complete these steps in order:
8+
9+
1. **Read `AGENTS-README-FIRST.yaml`** in the repo root for the current API key and endpoints
10+
2. **GET `/health`** to verify the MCP server is running
11+
3. **POST `/mcp/sessionlog`** with your session entry — do NOT proceed until this succeeds
12+
4. **GET `/mcp/sessionlog?limit=5`** to review recent session history for context
13+
5. **GET `/mcp/todo`** to check current tasks
14+
6. **THEN** begin working on the user's request
15+
16+
On EVERY subsequent user message:
17+
1. POST an updated session log entry BEFORE starting work
18+
2. Complete the user's request
19+
3. POST the final session log with results, actions taken, and files modified
20+
21+
**If you skip any of these steps, STOP and go back and do them before continuing.**
22+
Session logging is not optional, not deferred, and not secondary to the task.
23+
Failure to maintain the session log is a compliance violation.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
description: Mandatory MCP session logging before any work
3+
alwaysApply: true
4+
---
5+
6+
# MCP Session Logging — Mandatory Precondition
7+
8+
## ⚠️ PRIORITY ORDER — NON-NEGOTIABLE ⚠️
9+
10+
**Speed is never more important than following workspace procedures.**
11+
12+
Before doing ANY work on ANY user request, you MUST complete these steps in order:
13+
14+
1. **Read `AGENTS-README-FIRST.yaml`** in the repo root for the current API key and endpoints
15+
2. **GET `/health`** to verify the MCP server is running
16+
3. **POST `/mcp/sessionlog`** with your session entry — do NOT proceed until this succeeds
17+
4. **GET `/mcp/sessionlog?limit=5`** to review recent session history for context
18+
5. **GET `/mcp/todo`** to check current tasks
19+
6. **THEN** begin working on the user's request
20+
21+
On EVERY subsequent user message:
22+
1. POST an updated session log entry BEFORE starting work
23+
2. Complete the user's request
24+
3. POST the final session log with results, actions taken, and files modified
25+
26+
**If you skip any of these steps, STOP and go back and do them before continuing.**
27+
Session logging is not optional, not deferred, and not secondary to the task.
28+
Failure to maintain the session log is a compliance violation.

AGENTS.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Agent Instructions
2+
3+
## ⚠️ PRIORITY ORDER — NON-NEGOTIABLE ⚠️
4+
5+
**Speed is never more important than following workspace procedures.**
6+
7+
Before doing ANY work on ANY user request, you MUST complete these steps in order:
8+
9+
1. **Read `AGENTS-README-FIRST.yaml`** in the repo root for the current API key and endpoints
10+
2. **GET `/health`** to verify the MCP server is running
11+
3. **POST `/mcp/sessionlog`** with your session entry — do NOT proceed until this succeeds
12+
4. **GET `/mcp/sessionlog?limit=5`** to review recent session history for context
13+
5. **GET `/mcp/todo`** to check current tasks
14+
6. **THEN** begin working on the user's request
15+
16+
On EVERY subsequent user message:
17+
1. POST an updated session log entry BEFORE starting work
18+
2. Complete the user's request
19+
3. POST the final session log with results, actions taken, and files modified
20+
21+
**If you skip any of these steps, STOP and go back and do them before continuing.**
22+
Session logging is not optional, not deferred, and not secondary to the task.
23+
Failure to maintain the session log is a compliance violation.

0 commit comments

Comments
 (0)