Skip to main content

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.
Like a style guide that your co-pilot actually reads. Just as a design system keeps a UI consistent across 10 developers, a project rules file keeps your LoT code consistent across humans and AI assistants alike.

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/, or CLAUDE.md file 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 Naming conventions, Working with JSON, Designing your data layer, and Anti-patterns — those standards are the foundation for everything below.

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 Naming conventions 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: For maximum compatibility, use AGENTS.md in your project root. If you use Cursor extensively, you can also maintain .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:

Starter Template

The following template incorporates the conventions from Naming conventions and related pattern pages. Copy it into an AGENTS.md file at your project root and customize the project-specific sections:
Prefer to grab it from GitHub? The Coreflux AI Starter repository has ready-to-use templates (minimal, full, and industrial), pre-built MCP configs for every editor, and filled-in examples you can clone directly.
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:
Do not include credentials, API keys, or sensitive connection strings in your AGENTS.md or rules files. These files are typically committed to version control.

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, not PUBLISH 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.

Working with JSON

GET JSON patterns and structured output with Models.
Last modified on May 22, 2026