Make Your AI Assistant a LoT Expert
AI coding assistants — in Cursor, VS Code with Copilot, or Claude — can generate excellent LoT (Language of Things) code when they know your project’s conventions. The key is giving them the right context upfront through an AGENTS.md or project rules file. This page shows you how to set up that context so your assistant produces LoT code that matches your team’s standards from the first prompt.When to Use This
- You want your AI assistant to generate correct LoT code without constant corrections
- You’re setting up an AGENTS.md,
.cursor/rules/, orCLAUDE.mdfile for your project - You’re onboarding new team members (human or AI) and need a single reference
- You’re starting a new Coreflux project and want AI-ready conventions from day one
This page focuses on AI assistant configuration. For the underlying conventions, naming rules, topic architecture, code patterns, and anti-patterns, see the LoT Concepts page — those standards are the foundation for everything below.
In This Page
- Setting Up Your AI Assistant — AGENTS.md structure and starter template
- Quick Reference Checklist — Review checklist for LoT code quality
- Next Steps
Setting Up Your AI Assistant
An AGENTS.md file (or equivalent project rules file) tells your AI assistant how to work with your Coreflux project. It prevents the assistant from generating code with wrong naming, invented syntax, or inconsistent patterns. The conventions defined in the LoT Concepts page form the content — the structure below tells you how to organize them for your assistant.What Is an AGENTS.md?
An AGENTS.md is a markdown file in your project root that AI coding assistants read automatically. It works across tools:| File / Location | Supported By |
|---|---|
AGENTS.md (project root) | Cursor, GitHub Copilot, OpenAI Codex, Google Jules, Aider |
.cursor/rules/*.mdc | Cursor (native format with glob pattern support) |
CLAUDE.md (project root) | Claude Code |
.github/copilot-instructions.md | GitHub Copilot |
.cursor/rules/ files for features like auto-attaching rules to specific file types.
The Three-Tier Boundary System
The most effective structure for preventing AI mistakes is a three-tier permission system. Define what the assistant should always do, what it should ask about first, and what it should never do:| Tier | Guideline | LoT Examples |
|---|---|---|
| Always do | Follow without asking | Use PascalCase for entities, snake_case for variables, lot language tag for code blocks |
| Ask first | Confirm before proceeding | Adding new Routes (external connections), modifying Rules (access control), removing Actions |
| Never do | Refuse even if asked | Invent LoT syntax that doesn’t exist, use LOT or lot capitalization, mention competitor broker products |
Starter Template
The following template incorporates the conventions from the LoT Concepts page. Copy it into anAGENTS.md file at your project root and customize the project-specific sections:
- AGENTS.md
- Cursor Rules (.mdc)
A cross-platform template that works with Cursor, Copilot, Claude, and other AI tools:
Keeping It Effective
The best project rules files share these qualities:| Quality | Why It Matters |
|---|---|
| Specific | ”Use PascalCase for Actions” beats “use good naming” |
| Example-driven | One code snippet beats three paragraphs of description |
| Iterative | Start small, then add rules when you see the AI make a mistake |
| Current | Update the file as your project conventions evolve |
| Concise | A 50-line focused file outperforms a 500-line generic one |
Quick Reference Checklist
Use this checklist when reviewing LoT code — whether written by you or generated by an AI assistant:- All entity names are PascalCase and descriptive
- All variables and model fields are snake_case
- All topics are lowercase with slash separators
- All numeric operations include explicit type casts (
AS DOUBLE,AS INT) - Models trigger on primary data fields, not timestamps
- Internal state uses
KEEP TOPIC, notPUBLISH TOPIC - Complex logic is split into callable Actions with
INPUT/OUTPUT - Rules use permission tags (
USER HAS) over user names (USER IS) - Python is used only where LoT can’t handle the task natively
-
$SYS/#topics are protected by a high-priority Rule
Next Steps
Coreflux MCP
Connect your AI assistant to the Coreflux documentation for real-time syntax help and guided answers.
LoT Concepts
Review the naming conventions, topic hierarchy, code patterns, and anti-patterns that power these templates.

