<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Orlando's Claude Code setup: rules, skills, agents, and hooks on Orlando O'Neill</title><link>https://oneillo.com/ai-setup/</link><description>Recent content in Orlando's Claude Code setup: rules, skills, agents, and hooks on Orlando O'Neill</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 23 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://oneillo.com/ai-setup/index.xml" rel="self" type="application/rss+xml"/><item><title>Apps: the apps around Orlando's Claude Code sessions</title><link>https://oneillo.com/ai-setup/apps/</link><pubDate>Sun, 22 Nov 2026 00:00:00 +0000</pubDate><guid>https://oneillo.com/ai-setup/apps/</guid><description>AI-written: the apps around Orlando&amp;rsquo;s AI sessions, each described in a few lines.</description><content:encoded><![CDATA[<div class="post-description">The apps around Orlando's AI sessions, each described in a few lines.</div>
<blockquote>
<p><strong>Written by AI.</strong> This page was generated from Orlando&rsquo;s own setup by an automated run, and checked for private details before it was published. <a href="/ai-setup/#how-this-section-is-made">How this section is made</a>. Last updated 2026-11-22.</p>
</blockquote>
<p>The apps around Orlando&rsquo;s sessions. Each one is described here, not shared as text. When an app goes public, its section links to it.</p>
<h2 id="corillo">Corillo</h2>
<p>Lets you review AI-written documents by leaving comments on the page, then has the agent make changes and reply to each comment.</p>
<p>Public: <a href="https://github.com/oneillo/corillo" target="_blank" rel="noopener">its code</a>.</p>
<h2 id="brega">Brega</h2>
<p>Keeps your tasks in a small Mac to-do app that AI agents can read, add to, and finish from any Claude Code session.</p>
<p>Not public yet.</p>
<h2 id="pregon">Pregón</h2>
<p>Publishes a finished post from an Obsidian vault to a blog with one button.</p>
<p>Not public yet.</p>
<h2 id="heartbeat">The heartbeat</h2>
<p>Runs agent jobs on a timer, checks for work for free first, and starts a Claude Code session only when there is something to do.</p>
<p>Not public yet.</p>
<p>Its skill has its own page: <a href="/ai-setup/skills/heartbeat/">Heartbeat</a>.</p>
<h2 id="latido">Latido</h2>
<p>Shows what the heartbeat, the helper that runs scheduled jobs on your Mac, is doing, in a small window.</p>
<p>Not public yet.</p>
<h2 id="relay">The relay</h2>
<p>Its full text is on its skill page: <a href="/ai-setup/skills/relay/">Relay</a>.</p>
]]></content:encoded></item><item><title>How it's organized: Orlando's Claude Code workspace</title><link>https://oneillo.com/ai-setup/workspace/</link><pubDate>Sun, 22 Nov 2026 00:00:00 +0000</pubDate><guid>https://oneillo.com/ai-setup/workspace/</guid><description>AI-written: how Orlando&amp;rsquo;s AI workspace is organized: its folders, the knowledge base, version history, backups, and Python scripts.</description><content:encoded><![CDATA[<div class="post-description">How Orlando's AI workspace is organized: its folders, the knowledge base, version history, backups, and Python scripts.</div>
<blockquote>
<p><strong>Written by AI.</strong> This page was generated from Orlando&rsquo;s own setup by an automated run, and checked for private details before it was published. <a href="/ai-setup/#how-this-section-is-made">How this section is made</a>. Last updated 2026-11-22.</p>
</blockquote>
<p>This page explains how Orlando&rsquo;s setup is organized: one workspace for agents, a knowledge base, local git history, an automatic cloud backup, and Python scripts that carry their own needs.</p>
<h2 id="the-workspace">The workspace</h2>
<p>One folder holds everything. It has the knowledge base, projects sorted by area in dated folders that each have a context file, finished tools, and a scratch folder. The scratch folder is swept daily and never holds anything vital.</p>
<h2 id="the-knowledge-base">The knowledge base</h2>
<p>The knowledge base is a vault of notes. It is split into areas, and each area has a hub note. Concept notes link back to their sources. A scratch folder holds notes for Orlando to review. Agents start from the vault&rsquo;s rules file and its index. When a project closes, the lasting facts move into the knowledge base.</p>
<h2 id="version-history-with-git">Version history with git</h2>
<p>The workspace, the Claude Code config folder, and the vault are each a local git repo with no remote. Agents do all the git work. There is a commit at the end of each session and a checkpoint before a bulk change. Undoing means restoring files. Why: any change an agent makes can be seen and undone.</p>
<h2 id="backups">Backups</h2>
<p>&ldquo;If an agent ever accidentally removes a file completely, I can generally recover it from the cloud storage&rsquo;s recycle bin online.&rdquo;</p>
<p>The backup is one of three safety nets:</p>
<ol>
<li>Deletes go to the Trash, so a mistake can be recovered from there.</li>
<li>Local version history keeps every committed change.</li>
<li>The cloud copy mirrors the workspace and the Claude Code config folder.</li>
</ol>
<p>His backup goes to OneDrive (cloud storage). It copies <code>~/ai/</code> and <code>~/.claude/</code> every 30 minutes, on a timer. A private GitHub repo or similar is another way to do it, with one catch: it has no recycle bin for a file deleted between commits, so it needs frequent automatic commits.</p>
<p>To restore, follow these steps:</p>
<ol>
<li>Sign in to the cloud storage on the new computer and let the backup folder download fully.</li>
<li>Install the tools the setup needs, such as Claude Code and uv.</li>
<li>Copy the backed-up folders back to <code>~/ai/</code> and <code>~/.claude/</code>, without deleting anything.</li>
<li>Check that every git repo answers and still has its history.</li>
<li>Do a dry run of the backup to see what it would delete, and stop if the list is long.</li>
<li>Turn the backup timer back on last, so it never mirrors a half-restored computer over the backup.</li>
</ol>
<h2 id="python-with-uv">Python with uv</h2>
<p>Every script runs with <code>uv run</code> and declares its Python version and packages at its top. There are no virtual environments and no <code>pip</code>. Why: a script carries what it needs, nothing is installed system-wide, there is nothing to set up or clean up, and an agent can write and run a one-off script safely.</p>
<pre><code style="white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere"># /// script
# requires-python = &quot;&gt;=3.12&quot;
# dependencies = [&quot;requests&quot;]
# ///
</code></pre>
<p><strong>Works with:</strong> <a href="/ai-setup/apps/#brega">Brega</a>, <a href="/ai-setup/skills/close-shop/">Close shop</a>, <a href="/ai-setup/apps/#corillo">Corillo</a>, <a href="/ai-setup/agents/financial-advisor/">Financial advisor</a>, <a href="/ai-setup/skills/heartbeat/">Heartbeat</a>, <a href="/ai-setup/skills/process-feedback/">Process feedback</a>, <a href="/ai-setup/skills/rex/">Rex</a>, <a href="/ai-setup/skills/save-session/">Save session</a>, <a href="/ai-setup/agents/trainer/">Trainer</a>, <a href="/ai-setup/skills/tune-setup/">Tune setup</a>, and <a href="/ai-setup/agents/writer/">Writer</a>.</p>
<p>The same rules appear as text on the <a href="/ai-setup/rules/global/">Global rules</a> and <a href="/ai-setup/rules/workspace/">Workspace rules</a> pages.</p>
]]></content:encoded></item><item><title>Settings and hooks: how Orlando's Claude Code is set up</title><link>https://oneillo.com/ai-setup/settings/</link><pubDate>Sun, 22 Nov 2026 00:00:00 +0000</pubDate><guid>https://oneillo.com/ai-setup/settings/</guid><description>AI-written: the settings and hooks in Orlando&amp;rsquo;s AI setup, described by kind.</description><content:encoded><![CDATA[<div class="post-description">The settings and hooks in Orlando's AI setup, described by kind.</div>
<blockquote>
<p><strong>Written by AI.</strong> This page was generated from Orlando&rsquo;s own setup by an automated run, and checked for private details before it was published. <a href="/ai-setup/#how-this-section-is-made">How this section is made</a>. Last updated 2026-11-23.</p>
</blockquote>
<p>Sets up hooks, a plugin, a status line, and permissions so Claude Code sessions start and run the way the setup expects.</p>
<p>Two hooks run before tools are used and when a session starts. The frontend-design plugin is turned on.</p>
<h2 id="permissions">Permissions</h2>
<p>There is a default mode setting left open, and no list of things sessions must refuse.</p>
<h2 id="plugins-and-the-status-line">Plugins and the status line</h2>
<p>One plugin is turned on: frontend-design. The status line shows the model, the folder, and how much of the context window is used.</p>
<h2 id="hooks">Hooks</h2>
<p>The settings set up 2 hooks: commands Claude Code runs at set points in a session.</p>
<h3 id="no-em-dash">No em dash</h3>
<ul>
<li><strong>Where the file goes:</strong> <code>~/.claude/hooks/no-em-dash.sh</code>, set up in <code>~/.claude/settings.json</code></li>
</ul>
<p>Blocks file writes and edits that add em dashes, while leaving em dashes already in the text alone.</p>
<p><strong>Works with:</strong> <a href="/ai-setup/apps/#corillo">Corillo</a>.</p>
<h2 id="no-em-dash-sh">The hook script (<code>no-em-dash.sh</code>)</h2>
<p><a href="#no-em-dash-sh">Link to this file</a></p>
<p>A hook script that runs before a write or edit tool call and blocks it if the new text has more em dashes than the text it replaces. It tells Claude to rewrite with other punctuation.</p>
<pre><code style="white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere">#!/bin/bash
# PreToolUse hook: block a Write or Edit that adds em dashes.
# Compares the new text with the text it replaces, so em dashes already in a file
# (e.g. Orlando&#x27;s own writing) never trigger it; only newly added ones do.
# Exit 2 blocks the tool call and shows stderr to Claude.
# It also covers Corillo&#x27;s create, replace and edit tools, where Orlando reads
# what agents write. It names those tools: if Corillo renames them, it stops
# checking them silently (update the matcher in settings.json too).

input=$(cat)
tool=$(echo &quot;$input&quot; | jq -r &#x27;.tool_name // empty&#x27;)
path=$(echo &quot;$input&quot; | jq -r &#x27;.tool_input.file_path // empty&#x27;)

case &quot;$path&quot; in
  &quot;$HOME&quot;/.claude/skills/synced/*|&quot;$HOME&quot;/.claude/hooks/*) exit 0 ;;
esac

count() &#123; jq -r &quot;($1 // \&quot;\&quot;) | [scan(\&quot;—\&quot;)] | length&quot; &lt;&lt;&lt;&quot;$input&quot;; &#125;

case &quot;$tool&quot; in
  Write)
    new=$(count .tool_input.content)
    old=0
    [ -f &quot;$path&quot; ] &amp;&amp; old=$(grep -o &#x27;—&#x27; &quot;$path&quot; | wc -l | tr -d &#x27; &#x27;)
    ;;
  Edit)
    new=$(count .tool_input.new_string)
    old=$(count .tool_input.old_string)
    ;;
  mcp__corillo__create_document|mcp__corillo__replace_document)
    path=$(echo &quot;$input&quot; | jq -r &#x27;.tool_input.path // empty&#x27;)
    new=$(count .tool_input.text)
    old=0
    [ -f &quot;$path&quot; ] &amp;&amp; old=$(grep -o &#x27;—&#x27; &quot;$path&quot; | wc -l | tr -d &#x27; &#x27;)
    ;;
  mcp__corillo__edit_document)
    new=$(count &#x27;([.tool_input.edits[]?.replace // &quot;&quot;] | join(&quot; &quot;))&#x27;)
    old=$(count &#x27;([.tool_input.edits[]?.find // &quot;&quot;] | join(&quot; &quot;))&#x27;)
    ;;
  *) exit 0 ;;
esac

[ &quot;$&#123;new:-0&#125;&quot; -gt &quot;$&#123;old:-0&#125;&quot; ] || exit 0

echo &quot;Blocked: this adds $((new - old)) em dash(es). Rewrite with commas, periods, colons, or parentheses, then retry. Em dashes already in the text you&#x27;re replacing can stay.&quot; &gt;&amp;2
exit 2
</code></pre>
<h2 id="connectors">Connectors</h2>
<p><a href="/ai-setup/apps/#corillo">Corillo</a> and <a href="/ai-setup/apps/#brega">Brega</a> connect to Claude Code, so a session can use them. Each one has its section on the <a href="/ai-setup/apps/">Apps</a> page.</p>
]]></content:encoded></item></channel></rss>