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
Add Claude Agent SDK templates and update to kernel.sh domain (#63)
## Summary
- Add new **Claude Agent SDK** templates for both TypeScript and Python
that demonstrate browser automation using the Claude Agent SDK with
Kernel's Playwright execution API
- Update all documentation URLs from `onkernel.com` to `kernel.sh` (new
domain)
- Remove outdated `kernel logs -f` instructions since `kernel invoke`
now streams logs automatically
## New Templates
### TypeScript (`pkg/templates/typescript/claude-agent-sdk/`)
- Uses `@anthropic-ai/claude-agent-sdk` with `@onkernel/sdk`
- Creates a Kernel browser session and exposes Playwright execution as
an MCP tool
- Supports both local execution (`pnpm exec tsx index.ts "task"`) and
Kernel deployment
### Python (`pkg/templates/python/claude-agent-sdk/`)
- Uses `claude-agent-sdk` with `kernel` Python SDK
- Same functionality as TypeScript version
- Supports both local execution (`uv run main.py "task"`) and Kernel
deployment
## Other Changes
- **Domain migration**: Updated all `onkernel.com`, `www.onkernel.com`,
`dashboard.onkernel.com`, `docs.onkernel.com` references to use
`kernel.sh`
- **Email update**: Changed `[email protected]` to `[email protected]`
- **Removed outdated instructions**: Removed `kernel logs <app> -f`
comments from all templates since logs now stream automatically with
`kernel invoke`
## Test Plan
- [ ] Test TypeScript template locally: `pnpm exec tsx index.ts "Go to
news.ycombinator.com and get top 3 stories"`
- [ ] Test Python template locally: `uv run main.py "Go to
news.ycombinator.com and get top 3 stories"`
- [ ] Deploy and invoke TypeScript template via Kernel CLI
- [ ] Deploy and invoke Python template via Kernel CLI
- [ ] Verify all documentation links resolve correctly to kernel.sh
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces Claude Agent SDK samples and aligns repo/docs with the new
Kernel domain.
>
> - Adds `claude-agent-sdk` templates for both TypeScript and Python,
including MCP tool to execute Playwright against Kernel browsers, local
run scripts, and Kernel deploy/invoke actions
> - Updates `README.md`, template READMEs, and code comments to replace
`onkernel.com` with `kernel.sh`; removes outdated `kernel logs -f` notes
since `kernel invoke` streams logs
> - Extends QA guide with new create/deploy/invoke steps for
`ts-claude-agent-sdk` and `py-claude-agent-sdk`; increases app count in
test matrix
> - Updates Go module path and imports from `github.com/onkernel/cli` to
`github.com/kernel/cli`; adjusts `goreleaser` org/URLs and author email
> - Enhances template registry (`pkg/create/templates.go`) to include
the new template, entry points, env requirements, and invoke commands
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
67aed22. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
---------
Co-authored-by: Daniel Prevoznik <[email protected]>
kernel invoke ts-openai-cua cua-task --payload '{"task": "Go to https://news.ycombinator.com and get the top 5 articles"}'
214
236
kernel invoke ts-gemini-cua gemini-cua-task --payload '{"startingUrl": "https://www.magnitasks.com/", "instruction": "Click the Tasks option in the left-side bar, and move the 5 items in the To Do and In Progress items to the Done section of the Kanban board? You are done successfully when the items are moved."}'
237
+
kernel invoke ts-claude-agent-sdk agent-task --payload '{"task": "Go to https://news.ycombinator.com and get the top 3 stories"}'
@@ -220,13 +243,14 @@ kernel invoke python-bu bu-task --payload '{"task": "Compare the price of gpt-4o
220
243
kernel invoke python-anthropic-cua cua-task --payload '{"query": "Return the first url of a search result for NYC restaurant reviews Pete Wells"}'
221
244
kernel invoke python-openai-cua cua-task --payload '{"task": "Go to https://news.ycombinator.com and get the top 5 articles"}'
222
245
kernel invoke python-openagi-cua openagi-default-task -p '{"instruction": "Navigate to https://agiopen.org and click the What is Computer Use? button"}'
246
+
kernel invoke py-claude-agent-sdk agent-task --payload '{"task": "Go to https://news.ycombinator.com and get the top 3 stories"}'
223
247
```
224
248
225
249
## Step 7: Automated Runtime Testing (Optional)
226
250
227
-
**STOP and ask the human:** "Would you like me to automatically invoke all 13 templates and report back on their runtime status?"
251
+
**STOP and ask the human:** "Would you like me to automatically invoke all 15 templates and report back on their runtime status?"
228
252
229
-
If the human agrees, invoke each template and collect results. Present findings in this format:
253
+
If the human agrees, invoke each template use the Kernel CLI and collect results. Present findings in this format:
230
254
231
255
### Testing Guidelines
232
256
-**Parallel execution:** You may run multiple invocations in parallel to speed up testing.
@@ -243,12 +267,14 @@ If the human agrees, invoke each template and collect results. Present findings
243
267
| ts-magnitude | ts-magnitude |||
244
268
| ts-openai-cua | ts-openai-cua |||
245
269
| ts-gemini-cua | ts-gemini-cua |||
270
+
| ts-claude-agent-sdk | ts-claude-agent-sdk |||
246
271
| py-sample-app | python-basic |||
247
272
| py-captcha-solver | python-captcha-solver |||
248
273
| py-browser-use | python-bu |||
249
274
| py-anthropic-cua | python-anthropic-cua |||
250
275
| py-openai-cua | python-openai-cua |||
251
276
| py-openagi-cua | python-openagi-cua |||
277
+
| py-claude-agent-sdk | py-claude-agent-sdk |||
252
278
253
279
Status values:
254
280
-**SUCCESS**: App started and returned a result
@@ -261,9 +287,9 @@ Notes should include brief error messages for failures or confirmation of succes
261
287
-[ ] Built CLI with `make build`
262
288
-[ ] Created QA directory
263
289
-[ ] Got KERNEL_API_KEY from human
264
-
-[ ] Created all 13 template variations
290
+
-[ ] Created all 15 template variations
265
291
-[ ] Got required API keys from human (OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY, OAGI_API_KEY)
266
-
-[ ] Deployed all 13 apps
292
+
-[ ] Deployed all 15 apps
267
293
-[ ] Provided invoke commands to human for manual testing
268
294
-[ ] (Optional) Ran automated runtime testing and reviewed results
The Kernel CLI is a fast, friendly command‑line interface for Kernel — the platform that provides sandboxed, ready‑to‑use Chrome browsers for browser automations and web agents.
15
15
16
-
Sign up at [onkernel.com](https://www.onkernel.com/) and read the [docs](https://onkernel.com/docs/introduction).
16
+
Sign up at [kernel.sh](https://www.kernel.sh/) and read the [docs](https://www.kernel.sh/docs/introduction).
17
17
18
18
## What's Kernel?
19
19
@@ -124,6 +124,7 @@ Create an API key from the [Kernel dashboard](https://dashboard.onkernel.com).
124
124
-`gemini-computer-use` - Implements a Gemini computer use agent (TypeScript only)
0 commit comments