Documentation Index
Fetch the complete documentation index at: https://docs.meshagent.com/llms.txt
Use this file to discover all available pages before exploring further.
meshagent process is the main CLI runtime for agents that stay available in a room. Use it when you want one agent identity that people can talk to conversationally and that can also handle background work from queues, mail, or toolkit calls.
Run a multi-channel process agent locally
If you want the agent to receive email, create the mailbox first:- can be reached through chat, mail, queue, and toolkit channels
- keeps thread history under
.threads/support-agent - has built-in web search and storage tools
- has one inline rule
meshagent process pattern: one long-running agent can serve several entry points while keeping continuity organized by thread.
If you want to see more channels, model options, and built-in tool flags, run:
How to reach the agent
Once the process is running, you can use the same agent in a few different ways.Chat with it conversationally
Open the same room in MeshAgent Studio and start chatting withsupport-agent.
- MeshAgent Studio is the main place to test the agent while you are building
- you can inspect the room, participants, logs, traces, and metrics while the process is running
Send background work through the queue
Use the queue channel when you want the same agent to do non-interactive work:Invoke it from another agent or app
Use the toolkit channel when another participant should be able to call this agent as a tool:Send it email
If you enabledmail:support-agent@mail.meshagent.com, you can also email the agent at that address and let the mail channel turn the message into room work.
Deploy the same agent
When the local version looks right, deploy the same agent shape so it stays available without your terminal open:meshagent process join while developing and meshagent process deploy when you want the agent to stay available as a room or project service.
What meshagent process is
Supported channels:
| Channel | Use it for |
|---|---|
chat | Interactive conversation in MeshAgent Studio, Powerboards, or other chat clients |
mail:EMAIL | Turning inbound email into agent work |
queue:NAME | Running background jobs from a room queue |
toolkit:NAME | Letting other agents or apps call this agent like a toolkit |
--channel flag adds another entry point to the same running agent.
The core idea is simple:
- the agent is the running participant
- the channels are how work reaches that agent
- the thread is the continuity boundary
Shape the agent with rules and tools
The process command is also where you shape what the agent can do.- use
--rulefor inline instructions - use
--room-ruleswhen you want editable room-backed rules - use tool flags such as
--web-search,--storage,--mcp,--shell, or--advanced-shellto add capabilities - choose the model with
--model
meshagent process is not just how the agent starts. It is also how you define its channels, rules, tools, and continuity behavior.
When to use meshagent process
Use meshagent process when you want an agent that should:
- stay available over time instead of acting like a one-shot run
- work across chat, mail, queues, or toolkit calls
- keep one rules and tools setup across those entry points
- preserve thread continuity across longer workflows
- be easy to run locally and then deploy with the CLI
Threads and continuity
Thread configuration matters most when the agent needs durable history.--thread-dircontrols where thread documents are stored--threading-modecontrols how chat-oriented clients treat thread creation and selection
Main commands
| Command | Use |
|---|---|
meshagent process join | Run the agent locally in a room |
meshagent process run | Run the agent and wait for interactive messages |
meshagent process use | Send work to a running process agent |
meshagent process spec | Generate a service manifest from CLI flags |
meshagent process deploy | Deploy the agent as a service |
Where to go next
- Agent Turns: understand how one request becomes one process-backed turn and how turn lifecycle differs from plain messages
- Process Agent Architecture: understand how channels, supervisors, and per-thread execution fit together
- Threads Overview: understand thread paths, thread directories, and persisted continuity
- Tools and Toolkits: understand built-in tools, custom tools, and toolkit patterns
- Queues and Scheduled Tasks: use queues for background work