Skip to content

The only tool you need to know what is happening and how to fix it.

fix: thumbnail

narrow-adventure237d974095e1
diff --git a/website/content/blog/auto-fix-loop.mdx b/website/content/blog/auto-fix-loop.mdx
index 8eb57437..623cb60c 100644
--- a/website/content/blog/auto-fix-loop.mdx
+++ b/website/content/blog/auto-fix-loop.mdx
@@ -3,6 +3,7 @@ title: "How to build an AI SRE agent [Part 1]"
date: "2026-07-29"
category: "engineering"
author: "dusan"
+image: "/blog/auto-fix-loop/og.png"
description: "A beginner-friendly walkthrough for building your first AI SRE agent. In this tutorial we'll catch a production error, open an issue, and set up an automatic workflow that runs Claude Code to investigate and fix the root cause. When it's done it will open a PR linked to the original bug, or leave a comment explaining why the issue could not be automatically addressed."
---
diff --git a/website/lib/blog.ts b/website/lib/blog.ts
index ca4cdf35..13172e47 100644
--- a/website/lib/blog.ts
+++ b/website/lib/blog.ts
@@ -1,6 +1,7 @@
import fs from "node:fs";
import path from "node:path";
import matter from "gray-matter";
+import type { Metadata } from "next";
const BLOG_DIR = path.join(process.cwd(), "content", "blog");
@@ -14,6 +15,7 @@ export type BlogPostMeta = {
category: BlogCategory;
description?: string;
author?: string;
+ image?: string;
};
export type BlogPost = BlogPostMeta & {
@@ -33,7 +35,18 @@ function readPostFile(filename: string): BlogPost | null {
const description =
typeof data.description === "string" ? data.description : undefined;
const author = typeof data.author === "string" ? data.author : undefined;
- return { slug, title, date, version, category, description, author, content };
+ const image = typeof data.image === "string" ? data.image : undefined;
+ return {
+ slug,
+ title,
+ date,
+ version,
+ category,
+ description,
+ author,
+ image,
+ content,
+ };
}
export function getAllPosts(): BlogPostMeta[] {
@@ -63,14 +76,28 @@ export function postHref(p: { slug: string; category: BlogCategory }): string {
: `/releases/${p.slug}`;
}
-export function postMetadata(post: BlogPost): {
- title: string;
- description: string;
-} {
+export function postMetadata(post: BlogPost): Metadata {
+ const title = `${post.title} · Traceway`;
const description =
post.description ??
(post.category === "engineering"
? `${post.title}, from the Traceway engineering blog.`
: `Release notes for Traceway ${post.title}.`);
- return { title: `${post.title} · Traceway`, description };
+ if (!post.image) return { title, description };
+ return {
+ title,
+ description,
+ openGraph: {
+ title,
+ description,
+ type: "article",
+ images: [{ url: post.image, width: 1200, height: 630 }],
+ },
+ twitter: {
+ card: "summary_large_image",
+ title,
+ description,
+ images: [post.image],
+ },
+ };
}
diff --git a/website/public/blog/auto-fix-loop/og.png b/website/public/blog/auto-fix-loop/og.png
new file mode 100644
index 00000000..441a8465
Binary files /dev/null and b/website/public/blog/auto-fix-loop/og.png differ