Skip to content

Commit 40e365e

Browse files
committed
*
1 parent 23a64ab commit 40e365e

File tree

7 files changed

+72
-0
lines changed

7 files changed

+72
-0
lines changed

images/threads/agent-card.png

54.6 KB
Loading

images/threads/deploy-chat.png

84.5 KB
Loading

images/threads/minimal-chat.png

89.5 KB
Loading

images/threads/training-chat-2.png

106 KB
Loading

images/threads/training-chat.png

94.3 KB
Loading
136 KB
Loading

threads.mdx

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,28 @@ Everything you build in Threads can be **deployed to production**:
6868

6969
## Getting started: your first agent
7070

71+
<div style={{ display: "flex", justifyContent: "center" }}>
72+
<img
73+
src="/images/threads/agent-card.png"
74+
alt="Your First Agent"
75+
style={{
76+
width: "60%",
77+
maxWidth: "60%",
78+
height: "auto",
79+
display: "block",
80+
margin: "0 auto",
81+
}}
82+
/>
83+
</div>
84+
7185
Let's build a **Code Review Agent** that helps catch bugs and suggest
7286
improvements. This example shows how Threads transforms a simple idea into a
7387
working agent.
7488

7589
### Step 1: start with intent
7690

91+
![Your First Thread](/images/threads/minimal-chat.png)
92+
7793
```text
7894
You: "I need an agent that reviews pull requests, checks for security issues,
7995
and suggests better variable names"
@@ -92,6 +108,12 @@ agent with:
92108

93109
### Step 2: train through conversation
94110

111+
Through iterative dialogue, you refine your agent's behavior in real-time—each
112+
exchange teaches it to better understand your specific requirements and workflow
113+
preferences.
114+
115+
![Train through conversation](/images/threads/training-chat.png)
116+
95117
```text
96118
You: "Here's a PR with a potential SQL injection vulnerability"
97119
[Pastes code snippet]
@@ -113,6 +135,8 @@ You: "Perfect. Now I want to deploy this agent"
113135

114136
When your agent works exactly how you want:
115137

138+
![Deploy agent through conversation](/images/threads/deploy-chat.png)
139+
116140
```text
117141
You: "I want to deploy this agent to handle our GitHub PRs automatically"
118142
@@ -125,6 +149,54 @@ Threads: *Agent is now available for deployment through Hypermode*
125149

126150
Your conversation just became a **production-ready agent**.
127151

152+
### Step 4: iterate and enhance
153+
154+
Your agent is working, but now you want to streamline your team's workflow.
155+
Through continued conversation, you can enhance your agent's capabilities in
156+
real-time.
157+
158+
![Iterate and enhance](/images/threads/training-chat-2.png)
159+
160+
```text
161+
You: "When you find issues in PRs, can you create Linear tickets automatically?
162+
That would save us a lot of manual work."
163+
164+
Agent: "Absolutely! I can integrate with Linear to create tickets for issues I find.
165+
I'll need access to your Linear workspace. What priority should I set for
166+
security issues vs. code quality issues?"
167+
168+
You: "Security issues should be High priority, code quality Medium.
169+
Tag them with 'code-review-bot' so we know the source."
170+
171+
Agent: "Perfect! I'm now connecting to Linear and updating my workflow:
172+
• Security vulnerabilities → High priority Linear tickets
173+
• Code quality issues → Medium priority tickets
174+
• All tickets tagged with 'code-review-bot'
175+
Ready to test! Try submitting a PR with issues."
176+
```
177+
178+
Now your agent has evolved into a **fully automated workflow** that not only
179+
reviews code but takes action on what it finds:
180+
181+
![Enhanced workflow](/images/threads/workflow-diagram.png)
182+
183+
**Your enhanced agent now**:
184+
185+
- Analyzes every new pull request automatically
186+
- Detects security vulnerabilities and code quality issues
187+
- Creates prioritized Linear tickets with appropriate tags
188+
- Comments on PRs with detailed feedback and ticket links
189+
- Maintains context about your team's priorities and conventions
190+
191+
**What changed**: through a simple 3-message conversation, your agent learned to
192+
integrate with Linear, understand your priority system, and automate ticket
193+
creation. No configuration files, no API documentation—just natural language
194+
instruction.
195+
196+
**The result**: your team's code review process is now fully automated, from
197+
detection to ticket creation, saving hours of manual work while ensuring nothing
198+
falls through the cracks.
199+
128200
## Real-world examples
129201

130202
### Development workflow agent

0 commit comments

Comments
 (0)