web-eval-agent / rules
Cursor rule1.2k starsChanged 20 months agoApache-2.0Archived repositoryView on GitHub
Use the Operative Control Center logging system instead of print statements
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this logging-standards.mdc into the rules it gives an agent
7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When working with the Operative codebase, follow these logging practices:
- Very specific: line 11
NEVER: use print() statements for logging in production code
- Very specific: line 12
Always use the send_log() function from the log server module for all logs
- Distinctive: line 29
Use appropriate emojis as the second parameter to categorize logs:
- Distinctive: line 43
If a request is not one of these, find an emoji that fits!
- Distinctive: line 46
All logs are visible in the Operative Control Center dashboard
- Distinctive: line 66
Always ensure logs are meaningful and provide context that helps with debugging or understanding the system state.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: Use the Operative Control Center logging system instead of print statements
globs: ["**/*.py"]
alwaysApply: true
---
# Operative Control Center Logging Standards
When working with the Operative codebase, follow these logging practices:
## Core Logging Principle
- **NEVER** use `print()` statements for logging in production code
- Always use the `send_log()` function from the log server module for all logs
## Importing the Log Function
```python
from webEvalAgent.src.log_server import send_log
```
## Basic Usage Pattern
```python
# ❌ Don't do this
print("Some message")
# ✅ Do this instead
send_log("Some message", "➡️") # Second parameter is the emoji prefix
```
## Emoji Usage Guidelines
Use appropriate emojis as the second parameter to categorize logs:
- 🚀 - Initialization/startup
- ✅ - Successful operation
- ❌ - Error
- ⚠️ - Warning
- 🔍 - Debug information
- 🖱️ - User interactions
- 🖥️ - Console logs
- 🔗 - URL/navigation related
- ➡️ - Network request
- ⬅️ - Network response
- 📝 - Information/notes
- 🏁 - Completion/final state
If a request is not one of these, find an emoji that fits!
## Benefits of the Logging System
- All logs are visible in the Operative Control Center dashboard
- Logs are organized and categorized with emojis
- Users can easily copy logs for debugging
- Logging doesn't interfere with MCP server stdout/stderr
## Example
```python
# Function that performs some operation
def perform_operation():
send_log("Starting operation", "🚀")
try:
# Do something
result = process_data()
send_log(f"Operation completed with result: {result}", "✅")
return result
except Exception as e:
send_log(f"Error during operation: {e}", "❌")
raise
```
Always ensure logs are meaningful and provide context that helps with debugging or understanding the system state. Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

