Documentation
LLMScript Language
JavaScript-like syntax + AI reasoning = powerful workflows
Preview
ChordFlow is currently in preview. Features and documentation may change as we improve the product.
Page updated: September 5, 2025
JavaScript-like syntax + AI reasoning = powerful workflows
ChordFlow is currently in preview. Features and documentation may change as we improve the product.
JavaScript Syntax
Familiar variables, loops, conditions
AI Reasoning
Smart execution through AI interpretation
ChordFlow Integration
Direct access to projects, tasks, documents
Quick Start
Agent Compatibility
LLMScript workflows execute differently depending on your AI agent type:
Coding Agents
system()
commandsBest for: Implementation workflows, code generation, testing, deployment
Planning Agents
system()
executionBest for: Planning workflows, research, documentation, project setup
Writing Agent-Aware Scripts
Design workflows that gracefully handle different agent capabilities. Use
ai()
for reasoning tasks that work everywhere, andsystem()
for implementation tasks that require coding agents.Core Functions
ai("instruction")
AI reasoning with full context
system("command")
Execute system operations
prompt("message")
Get user input (blocks execution)
print("message")
Display output to user
printMarkdown(content)
Format as beautiful markdown
callMcpTool(tool, params)
Execute ChordFlow operations
Examples
Best Practices
Do
\\n
in markdownprint()
Don't
prompt()
blocks executionKey Concepts
.chordflow
file handling