code
7 posts
- Live code blocks with CodeRunner
I always wanted a simple way to run some code examples in my blog posts and see output in the browser - like jupyter / marimo / observable notebooks.
I had the right idea - use Astro and Svelte to have a simple coderunner component - and Claude Code magicked it into being.
- Agentic AI Agent 101, June 2025 edition
Weekend experiments with AI agentic coding using opencode.ai and Zed.
Why opencode when Claude Code is the current talk of the town? Code uses up credits fast, and I don't have a claude subscription, and opencode is opensource and looks promising. There is also goose which looks promising.
-
This is clever - Mastra has launched a how to build agents course as a MCP. Notes on the course.
Instal an MCP capable ide - I went with Cursor:
brew install --cask cursorand then the Mastra MCP:npx create-mastra@latest --default -m cursor - Advent of Code 2024 Notes and learnings from doing Advent of Code 2024
- Astro Blogging Switched the blog over to Astro
-
uv looks like a very promising new python package manager. Its fast, does global python tool installs, and has sensible defaults.
The only downside against conda is that uv only installs python tools, while conda can install other apps and tools.
-
python-dotenv makes it easy to read in secrets from env or a
.envfile in the project folder.from dotenv import load_dotenv load_dotenv() # take environment variables