You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v0.1.8 — run_agent tool, AI agent generation, stale connection cleanup
- New MCP tool: run_agent — trigger agents from Poke via iMessage
- agent create: sends prompt to Poke, writes code via write_file tool
- macOS app: Generate with Poke UI, direct API call instead of npx
- Stale connection cleanup via connection history tracking
- Delete agent confirmation dialog
- Docs: AI agent generation guide, CLI reference update
Made-with: Cursor
Copy file name to clipboardExpand all lines: docs/agents/creating.md
+29-1Lines changed: 29 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,34 @@
1
1
# Creating Agents
2
2
3
-
This guide walks you through creating an agent from scratch.
3
+
There are two ways to create agents: **ask Poke to generate one** (recommended) or write one manually.
4
+
5
+
## Generate with AI
6
+
7
+
The fastest way — describe what you want and Poke writes the code for you:
8
+
9
+
```bash
10
+
npx poke-gate agent create --prompt "monitor disk space and alert when above 85%"
11
+
```
12
+
13
+
Or interactively:
14
+
15
+
```bash
16
+
npx poke-gate agent create
17
+
> Describe the agent you want to create:
18
+
> track my git repos for uncommitted changes
19
+
```
20
+
21
+
Poke generates the complete agent code and saves it directly to your agents folder using the `write_file` tool (requires poke-gate to be running). You'll get a confirmation in your chat when it's done.
22
+
23
+
You can also generate agents from the **macOS app** — open Agents, click "Generate with AI", type your description, and Poke does the rest.
24
+
25
+
::: tip
26
+
Poke may ask clarifying questions before writing the code. Just reply in your chat and it will proceed.
27
+
:::
28
+
29
+
## Write manually
30
+
31
+
If you prefer to write agents yourself, follow the steps below.
Sends your description to Poke with detailed instructions and examples. Poke generates the agent code and saves it directly to `~/.config/poke-gate/agents/` using the `write_file` tool.
51
+
52
+
**Requires poke-gate to be running** (so Poke can use the `write_file` tool through the tunnel).
53
+
54
+
**Interactive mode:**
55
+
56
+
```bash
57
+
npx poke-gate agent create
58
+
```
59
+
60
+
**Examples:**
61
+
62
+
```bash
63
+
npx poke-gate agent create --prompt "alert me when disk space is above 85%"
64
+
npx poke-gate agent create --prompt "send me a daily git commit summary across all repos"
65
+
npx poke-gate agent create --prompt "track Spotify listening and log my music taste"
0 commit comments