Skip to main content

Execution Modes

ModeCommandDescription
TUIloopyInteractive terminal UI with chat history and spinner
Printloopy -p "task"Single task, output to stdout, exit code 0/1
REPLloopy --replSimple readline loop for quick tasks

CLI Flags

FlagDescriptionDefault
-d, --directory <path>Working directoryCurrent directory
-m, --model <name>Model to usePer-provider default
-t, --max-turns <n>Maximum agent loop iterations20
-p, --print <prompt>Single-shot print mode
--provider <name>anthropic, openai, google-genaianthropic
--base-url <url>Custom API base URL (vLLM, LM Studio)
--debugVerbose agent activity on stderr
--replREPL mode
--helpPrint usage
--versionPrint version

Slash Commands

Lines starting with / are intercepted before reaching the agent — zero LLM tokens consumed.
CommandDescription
/helpList available commands
/clearClear session memory
/quitExit Loopy
/btw <question>Stateless side question — never added to conversation history
/skillsDiscover, search, install, and manage domain skills
/boot-newScaffold a new Spring Boot project from a bundled template
/boot-setupOne-time preferences wizard (groupId, Java version, database)
/startersDiscover Agent Starters; suggest by pom.xml triggers
/boot-addBootstrap domain capabilities into an existing project
/boot-modifyStructural modifications (Java version, native support, CI)
/forge-agent --brief <path>Bootstrap an agent experiment project from YAML brief
/session save [name]Save current session
/session listList saved sessions
/session load <id>Restore a saved session

Agent Tools

The embedded agent has access to these tools:
ToolDescription
BashExecute shell commands
ReadRead file contents
WriteCreate or overwrite files
EditTargeted edits to existing files
GlobFind files by pattern
GrepSearch file contents
ListDirectoryList directory with optional depth
SkillLoad domain skills on demand
SubmitSubmit final answer (ends the loop)
TodoWriteTrack work items
TaskDelegate to subagents
TaskOutputRetrieve background subagent results
AskUserQuestionAsk user for clarification (TUI only)
WebSearchWeb search (requires BRAVE_API_KEY)
WebFetchFetch and summarize web pages

Environment Variables

VariableDescription
ANTHROPIC_API_KEYAnthropic API key (required for default provider)
OPENAI_API_KEYOpenAI API key
GOOGLE_API_KEYGoogle Gemini API key
BRAVE_API_KEYBrave Search API key (for WebSearch/WebFetch)
LOOPY_DEBUG_LOGPath for debug log file

Default Models

ProviderModel
Anthropicclaude-sonnet-4-20250514
OpenAIgpt-4o
Geminigemini-2.5-flash
Override with --model or .model() in the programmatic API.