Skip to content

Commands and Tools

KZvilla edited this page Nov 17, 2026 · 6 revisions

Commands and Tools

Lagrange exposes two surfaces: slash commands (/lagrange:*, Claude Code only) that you type, and MCP tools that Claude (or Codex) calls on its own when you ask in plain language. Most commands are thin wrappers around one tool.

This page groups them by what they are for. The exact parameters, defaults and timeouts live in the Reference; a test fails if that table and the server drift apart, so trust it over any copy.

Delegating work to agy

Tool Command Writes? Where it runs
run /lagrange:run Yes Your machine
plan /lagrange:plan No Read-only container
review /lagrange:review No Read-only container
audit /lagrange:audit No Read-only container
research /lagrange:research No Your machine (it needs the open web)
session_summary /lagrange:summary Writes the summary file Your machine

plan, review and audit also accept engine: "deepseek" or "opencode-go" when you ask for it explicitly — see Engines and Fallback.

plan also accepts mode: "consultation" for a short second opinion on a decision — recommendation, why, risks, what would change it and confidence — instead of a plan. It works with the same three engines.

Images

Tool Command Writes? Where it runs
image — Writes the copy Your machine (agy in an empty temporary directory)

image generates or edits an image through agy's built-in image-generator subagent. It returns a durable JPEG copy (1K by default) with format, dimensions and size. It is not a direct image API: the tool runs agy -p in an empty temporary directory, asks the main agent to delegate to image-generator, parses the artifact path and copies it to output_path or ~/.claude/lagrange-images/. Use it for mockups, diagrams and assets. The subagent may retry up to three times, so one edit can cost two or three images. For 2K/4K, PNG or fine-grained reference control, the Gemini API is the route (not wired into Lagrange yet). See Known Limitations and the Reference.

Parallel and confined work

Tool Command What it does
fanout /lagrange:fanout Several agy subagents at once, one git worktree each, only if their files are disjoint
batch — A confined batch: each task in its own container, tested in a no-network runner and audited by a different model
— /lagrange:integrar-lote Merges a confined batch into its base branch, only with green tests and an audit PASS
— /lagrange:watch Local viewer for fan-outs, agents, Souls and batches

A worktree keeps parallel subagents from colliding; it does not stop them writing elsewhere. Only batch contains them. See Fan-Out, Watch and Confined Batches and Isolation and Security Model.

Persistent agents and Souls

Tool What it does
cast_agent A reviewer or auditor built from a SKILL that keeps its identity, thread and learned criteria across sessions — see Persistent Agents
soul Souls: identities with memory that speak through narration, Telegram and voice chat — see Souls

Voice

Tool Command What it does
narrate /lagrange:narrate Speaks a summary of the latest checkpoint
say — Speaks a text you already have
narrate_voices /lagrange:voices Lists profiles and service health without starting anything
voice_model — Starts the TTS server and pins or unloads the model in VRAM
voice_stream — Backend of the real-time voice chat

See Voice for setup, identities, Voicebox, OmniVoice and real-time voice.

Telegram, sessions and the console

Tool What it does
telegram_notify, telegram_ask, telegram_send_voice Reach your phone; telegram_ask blocks until you tap an answer — see Telegram Bridge
telegram_bridge_status (/lagrange:bridge) Diagnoses the daemon and shows which Lagrange version each part runs
message Messages between Claude Code sessions, on this machine or on other nodes — see Sessions and Messages
console Lets a session drive the web console; gated by orquestacion_modo — see Telegram Bridge
knowledge A knowledge base shared by every session and account on the machine
recall Reads this project's memory from another Claude account, read-only — see Sessions and Messages

Deep web research

research (or /lagrange:research <topic>) runs a cited web research task. It needs the network capability; if denied, it fails with an explicit error instead of answering from memory. It runs on the host because it needs the open web, and it takes a git status snapshot before and after and reports any change. A project_context argument focuses the relevance section, recency constrains the sources, and conversation_id resumes a research thread. The output is a structured report with sources. Parameters are in the Reference.

Status and settings

status, usage (/lagrange:usage) and set_config. /lagrange:setup configures the optional pieces — see Installation.

Clone this wiki locally