<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Peter Cappetto</title><description>Articles and updates from Peter Cappetto, a creative technologist building projects in technology, medicine, and entertainment.</description><link>https://www.petercappetto.com</link><atom:link href="https://www.petercappetto.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>Introducing, Hobgoblin, my Rust-based coding-agent harness</title><link>https://www.petercappetto.com/projects/hobgoblin</link><guid isPermaLink="true">https://www.petercappetto.com/projects/hobgoblin</guid><pubDate>Thu, 05 Nov 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Hobgoblin is a growing coding-agent harness I’m writing in Rust. It started as my solution to
CodeCrafters’ &lt;a href=&quot;https://codecrafters.io/challenges/claude-code&quot;&gt;Build Your Own Claude Code&lt;/a&gt;
challenge and is growing into an agent that runs inside editors such as Zed over the
&lt;a href=&quot;https://agentclientprotocol.com/&quot;&gt;Agent Client Protocol (ACP)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I’m implementing ACP directly with Tokio and Serde instead of using an SDK to get more hands-on experience and wrestle with the protocol directly. This has been a challenge, but a lot of fun.&lt;/p&gt;
&lt;h2 id=&quot;what-it-does-today&quot;&gt;What it does today&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;One-shot prompts and interactive, multi-turn conversations in the terminal&lt;/li&gt;
&lt;li&gt;Model-directed tools for reading files, writing files and running shell commands&lt;/li&gt;
&lt;li&gt;An ACP server that creates sessions and runs prompt turns, tested in Zed&lt;/li&gt;
&lt;li&gt;Deterministic tests that run against a scripted model&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Next up is cancelling a prompt while it’s running. I am currently working on the 7th of 9 milestones. After that, the sky is the limit. I plan to add streaming and evals afterwards. Have any ideas? Let &lt;a href=&quot;mailto:peter@petercappetto.com&quot;&gt;me know&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;The code is on GitHub at &lt;a href=&quot;https://github.com/pcapp/hobgoblin&quot;&gt;pcapp/hobgoblin&lt;/a&gt;.&lt;/p&gt;
</content:encoded><category>Pulse</category></item><item><title>Built a Kubernetes homelab on Raspberry Pis, with an AI agent as my tutor</title><link>https://www.petercappetto.com/projects/homelab</link><guid isPermaLink="true">https://www.petercappetto.com/projects/homelab</guid><pubDate>Thu, 05 Nov 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;My homelab is a three-node Kubernetes cluster I built from scratch on Raspberry Pis. I have
used Kubernetes at work, but I had never built and administered a cluster myself. I wanted a place to do that
where the cost of failure is small.&lt;/p&gt;
&lt;p&gt;The cluster is live; you can see all three nodes’ vitals at &lt;a href=&quot;https://vitals.petercappetto.com/&quot;&gt;vitals.petercappetto.com&lt;/a&gt;. The nodes run as a DaemonSet and form a BEAM cluster using libcluster. I wrote this in Elixir and use LiveView to do realtime updates. The application code is available at &lt;a href=&quot;https://github.com/pcapp/pi-cluster-vitals&quot;&gt;https://github.com/pcapp/pi-cluster-vitals&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;agentic-teaching&quot;&gt;Agentic Teaching&lt;/h2&gt;
&lt;p&gt;Coding agents tend to jump into problem solving mode and fix problems, but I wanted the agent to serve as a teacher and guide instead. I built agentic infrastructure like AGENTS.md and teaching skills to prevent immediate problem solving. I used &lt;a href=&quot;https://hermes-agent.nousresearch.com/&quot;&gt;Hermes&lt;/a&gt; and had the agent self-improve at the end of every session by asking it to reflect on how it can improve.&lt;/p&gt;
&lt;h3 id=&quot;key-points&quot;&gt;Key Points:&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Lesson Structure&lt;/strong&gt;&lt;br&gt;
The agent gives me background and references on a topic before handing me any commands. The lesson include links to relevant documentation that I can use while executing the lesson tasks.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Hands-on commands rather than automation&lt;/strong&gt;&lt;br&gt;
I started off using Ansible, but I moved to executing commands manually on the command line. In normal situations, I would codify procedures with scripts and IaC, but I kept things basic with core Linux system administration done by hand. I liken this to learning a language or music where repetition reinforces learning.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Readable commands&lt;/strong&gt;&lt;br&gt;
The lesson planner writes flags out in long form instead of a string of terse switches. Again, this reinforced learning the commands and intention.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Memory across sessions&lt;/strong&gt;&lt;br&gt;
The system keeps notes on the cluster and my progress in a wiki it can read back, so each session picks up where the last one ended.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;checking-my-work&quot;&gt;Checking my work&lt;/h2&gt;
&lt;p&gt;The most important part is that the agent verifies my work. After I make a change, it inspects
the cluster and tells me whether I got it right. That feedback loop is what turns a list of
instructions into actual learning.&lt;/p&gt;
&lt;p&gt;The agent works under guardrails of its own, too. It starts read-only, previews changes with dry
runs before anything is applied, asks before anything destructive, and doesn’t report a task as
done until it has actually tested the result.&lt;/p&gt;
&lt;h2 id=&quot;whats-running&quot;&gt;What’s running&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Three Raspberry Pis running upstream Kubernetes, installed with kubeadm&lt;/li&gt;
&lt;li&gt;Cilium for eBPF-based pod networking, and ingress-nginx for routing&lt;/li&gt;
&lt;li&gt;A public path from the internet through Caddy and a WireGuard tunnel into the cluster&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://vitals.petercappetto.com/&quot;&gt;vitals&lt;/a&gt;, a small Elixir app that shows the cluster’s
temperature&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;moving-from-calico-to-cilium&quot;&gt;Moving from Calico to Cilium&lt;/h2&gt;
&lt;p&gt;The cluster started out on Calico. I later migrated it to Cilium, and now its networking is
entirely Cilium and eBPF. Cilium also replaced kube-proxy, so service load balancing runs in eBPF
too. That took some effort. I initially transitioned one node at a time, but I ended up
briefly taking the cluster down for an hour to finish the switch.&lt;/p&gt;
</content:encoded><category>Pulse</category></item><item><title>Resurrected a spooky project from 2013</title><link>https://www.petercappetto.com/demos/bones</link><guid isPermaLink="true">https://www.petercappetto.com/demos/bones</guid><pubDate>Thu, 05 Nov 2026 12:00:00 GMT</pubDate><category>Pulse</category></item><item><title>Added a Now entry for 2026</title><link>https://www.petercappetto.com/now#2026</link><guid isPermaLink="true">https://www.petercappetto.com/now#2026</guid><pubDate>Tue, 11 Aug 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;a href=&quot;https://www.petercappetto.com/now#2026&quot;&gt;See what I have been up to in 2026&lt;/a&gt;&lt;/p&gt;
</content:encoded><category>Pulse</category></item><item><title>Adding games I worked on</title><link>https://www.petercappetto.com/games</link><guid isPermaLink="true">https://www.petercappetto.com/games</guid><pubDate>Mon, 10 Aug 2026 12:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This is still a work-in-progress, so stay tuned updates.&lt;/p&gt;
&lt;p&gt;Take a look &lt;a href=&quot;https://www.petercappetto.com/games&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;
</content:encoded><category>Pulse</category></item><item><title>Attended the AI Engineering World&apos;s Fair in San Francisco</title><pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate><guid isPermaLink="false">pulse/aie-worlds-fair-26</guid><category>Pulse</category></item><item><title>Attended CascadiaJS</title><pubDate>Mon, 01 Jun 2026 12:00:00 GMT</pubDate><guid isPermaLink="false">pulse/cascadia-js-26</guid><category>Pulse</category></item><item><title>Started my agentic job search platform, Scout</title><pubDate>Sun, 01 Mar 2026 12:00:00 GMT</pubDate><guid isPermaLink="false">pulse/started-scout</guid><category>Pulse</category></item><item><title>Visualizing time series inputs for RNNs</title><link>https://www.petercappetto.com/articles/visualizing-time-series-inputs-for-rnns</link><guid isPermaLink="true">https://www.petercappetto.com/articles/visualizing-time-series-inputs-for-rnns</guid><description>An exploration of RNNs for predicting US book sales prices, showcasing data preparation, model training, and visualization techniques.</description><pubDate>Mon, 22 Jan 2024 12:00:00 GMT</pubDate><content:encoded>&lt;h2 id=&quot;motivation&quot;&gt;Motivation&lt;/h2&gt;
&lt;p&gt;My background in deep learning stems from building computer vision systems, so I wanted to expand my horizons and develop a more holistic view of the field. This search led me to the excellent Learning Deep Learning book by Magnus Ekman and published by NVIDIA. With the rise of Transform-based networks, it became clear that it was time to become comfortable with sequential data.&lt;/p&gt;
&lt;p&gt;The book Learning Deep Learning introduces recurrent neural networks with an
example of a network that learns to predict US book sales prices using historical sales data. The data consists of the combined monthly sales of US booksellers dating back to 1992 up to 2020.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.petercappetto.com/Monthly_Book_Sales.png&quot; alt=&quot;Monthly book sales&quot;&gt;&lt;/p&gt;
&lt;p&gt;The data contains 348 months of sales. If you squint, you can see repeating patterns showing the seasonality of the sales. The next question is, how can we present this to a recurrent neural network?&lt;/p&gt;
&lt;h3 id=&quot;preparing-the-data&quot;&gt;Preparing the data&lt;/h3&gt;
&lt;p&gt;Pictorially, we can visualize the data as follows.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.petercappetto.com/SVG/all_data.svg&quot; alt=&quot;An array&quot;&gt;&lt;/p&gt;
&lt;p&gt;In our case, n is 348.
Next, we want to create training, validation, and testing splits. Note that in the book, Ekman uses an array called test for validation. I will refer to this as the validation set, for which it is used, but the example code on his GitHub uses the test naming. An 80% split yields a training set of 278 examples and a test set of 70 examples.&lt;/p&gt;
&lt;p&gt;At this point, the book discusses different options for preparing the training set. If we wanted to predict m1, we would have empty input. When predicting m2, we would have m1 as historical data. With mi, we have m_i-1 prior points. While we could feed this to a network, training would be inefficient. Frameworks like PyTorch and TensorFlow require batches with a consistent length.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.petercappetto.com/SVG/make_examples.svg&quot; alt=&quot;Train/validation/test split&quot;&gt;&lt;/p&gt;
&lt;p&gt;The above diagram shows how we can require a minimum amount of history without losing potential training examples. In the code, we need 12 months of history. This leaves 278 – 12 = 262 months to build our training examples.&lt;/p&gt;
&lt;h3 id=&quot;building-training-data&quot;&gt;Building training data&lt;/h3&gt;
&lt;p&gt;Ekman provides the following code for building the training data set:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;python&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;# Create training examples.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;train_months &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; len&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(train_sales)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;train_X &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; np.zeros((train_months&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, train_months&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;train_y &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; np.zeros((train_months&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; i &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; range&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, train_months&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;):&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    train_X[i, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(i&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;):, &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; train_sales_std[&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;:i&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    train_y[i, &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; train_sales_std[i&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;MIN&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;He recommends tracing through the code to understand this loop better. I wanted to provide a picture to help illustrate what the loop does.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.petercappetto.com/SVG/core_loop.svg&quot; alt=&quot;Time series training data&quot;&gt;&lt;/p&gt;
&lt;p&gt;The code starts by allocating and zero-initializing a tensor with the shape 262 x 277 x 1. The zero initialization corresponds to the padding value. We have up to 277 data points for each training example. Why 277? We take the most recent point and make it the y value. The one corresponds to our monthly sales dimension, but we could also include other data for a monthly measure of consumer optimism.&lt;/p&gt;
&lt;p&gt;When we enter the loop, we see it building the structure in the above illustration. The right-most edge of the array represents the most current monthly data, while the left-most edge represents the oldest time points. The shaded area shows the minimum required history. The previous monthly target becomes the most recent data point with each loop iteration.&lt;/p&gt;
</content:encoded></item></channel></rss>