From dab6c2adb7d8f3c3963b1fd1db11810be20e3d08 Mon Sep 17 00:00:00 2001 From: Damian <0xev0r0x@gmail.com> Date: Tue, 13 Jan 2026 07:27:44 +0100 Subject: [PATCH 1/2] Update comments for agent setup steps --- docs/base-app/agents/getting-started.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/base-app/agents/getting-started.mdx b/docs/base-app/agents/getting-started.mdx index c6730c066..df1d9e127 100644 --- a/docs/base-app/agents/getting-started.mdx +++ b/docs/base-app/agents/getting-started.mdx @@ -35,17 +35,17 @@ This example shows how to create an agent that sends a message when it receives ```ts [Node] import { Agent } from '@xmtp/agent-sdk'; -// 2. Spin up the agent +// 1. Spin up the agent const agent = await Agent.createFromEnv({ env: 'production', // base app works only on production }); -// 3. Respond to text messages +// 2. Respond to text messages agent.on('text', async (ctx) => { await ctx.sendText('Hello from my Base App Agent! 👋'); }); -// 4. Log when we're ready +// 3. Log when we're ready agent.on('start', () => { console.log(`Waiting for messages...`); console.log(`Address: ${agent.address}`); @@ -92,4 +92,4 @@ Give your agent a human-readable name: For the complete guide, visit [XMTP documentation](https://docs.xmtp.org/agents/get-started/build-an-agent) - \ No newline at end of file + From 9f1a7847081372e4973ac47d36854dc79502592f Mon Sep 17 00:00:00 2001 From: Damian <0xev0r0x@gmail.com> Date: Tue, 13 Jan 2026 07:33:02 +0100 Subject: [PATCH 2/2] Update getting-started.mdx