Programmatic API

Use core.run.run_agent() from Python backends, scripts, or a future hosted API.

from core.run import run_agent

result = run_agent("Draft a LinkedIn post about our product launch")
print(result.reply)
print(result.intent)  # posting | complaint | funnel

AgentResult

CLI equivalent

loopmark-agent chat
loopmark-agent stats

The CLI wraps the same graph via main.py. Hosted REST endpoints are tracked separately for the paid layer.