Skip to content
Prompt

DMN — Windsurf Rules

by snath-ai

AI Summary

A Windsurf cursor rules prompt that introduces the Lár framework—a graph-based agent architecture for building structured, type-safe code agents. Developers building multi-step AI workflows in Windsurf will find patterns for nodes, tools, and routers that enforce explicit typing and state management.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "DMN — Windsurf Rules" prompt rules to my project.
Repository: https://github.com/snath-ai/DMN

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Showcase of Cognitive Architectures: Replicating the Human Default Mode Network in Code.

Lár Framework - Cursor Rules

You are coding with Lár, a graph-based agent framework that treats "Code as the Graph".

Core Principles

• Strict Typing: Every Node and Function MUST have Pydantic/Python type hints. • Explicit Linking: Connect nodes using .next_node = target or RouterNode(path_map={...}). • No "Magic": Do not assume global state. Use state.get() and state.set().

1. Defining a Node

`python from lar import LLMNode architect = LLMNode( model_name="gemini/gemini-1.5-pro", prompt_template="Analyze {input}...", output_key="plan" ) `

2. Defining a Tool

`python from lar import ToolNode def my_tool(state): return "result" tool = ToolNode( tool_function=my_tool, input_keys=["__state__"], output_key="result", next_node=None ) `

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 3mo ago
Stale
AdoptionUnder 100 stars
2 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars2
Issues0
Updated3mo ago
View on GitHub
Apache-2.0 License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more