<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="">
  <title>Joe Cuevas Blog</title>
  <subtitle>Latest posts</subtitle>
  <link href="https://joecuevas.com/feed.xml" rel="self" />
  <link href="https://joecuevas.com/" />
  <updated>2026-07-13T00:00:00Z</updated>
  <id>https://joecuevas.com/</id>
  <author>
    <name>Joe Cuevas</name>
  </author>
  <entry>
    <title>First Post: The Tech That Powers This Blog</title>
    <link href="https://joecuevas.com/posts/hello-world/" />
    <updated>2025-07-27T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/hello-world/</id>
    <content type="html">&lt;p&gt;I bought this domain in April because my deep-dive notes never seem to stick. I&#39;ll obsess over a topic, document every detail, feel sure I will remember, and six months later draw a blank. Too many evenings vanish rebuilding knowledge I already earned.&lt;/p&gt;
&lt;p&gt;Everything clicked in June while I was preparing for a guest slot on the &lt;a href=&quot;https://azuredevopspodcast.clear-measure.com/&quot;&gt;Azure &amp;amp; DevOps Podcast&lt;/a&gt;. I spun up a simple &lt;a href=&quot;https://azure.microsoft.com/products/app-service/static/&quot;&gt;Azure Static Web App&lt;/a&gt;, let the portal scaffold a GitHub Actions workflow, and tried the preview of &lt;a href=&quot;https://openai.com/index/introducing-codex/&quot;&gt;OpenAI Codex&lt;/a&gt;. One prompt, one build, and a blank page suddenly displayed a smooth CSS animation. The rush felt like my first ChatGPT session. From that moment this site became my public tech diary, a single place to keep my research and, if my notes save you a few hours, even better.&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;img src=&quot;https://joecuevas.com/img/hello-world/codex_first_task_loop.gif&quot; alt=&quot;Codex adds a CSS animation&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; style=&quot;--image-width: 952px&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;952&quot; height=&quot;416&quot;&gt;
  &lt;figcaption&gt;My very first Codex task: one prompt, one pull request, instant animation&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;hr&gt;
&lt;h3&gt;What I built, step by step&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Hello World&lt;/strong&gt;&lt;br&gt;
Installed &lt;a href=&quot;https://www.11ty.dev/&quot;&gt;Eleventy&lt;/a&gt; locally and confirmed a static page could build in under half a second.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Templates and collections&lt;/strong&gt;&lt;br&gt;
Added a clean post layout and a posts collection so new articles surface automatically.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Azure hookup&lt;/strong&gt;&lt;br&gt;
Used the Azure portal to create the Static Web App. During that process Azure&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;authenticated with GitHub&lt;/li&gt;
&lt;li&gt;pushed a ready-made workflow file that calls &lt;code&gt;Azure/static-web-apps-deploy@v1&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;added the deployment secret (&lt;code&gt;AZURE_STATIC_WEB_APPS_API_TOKEN_...&lt;/code&gt;) in Actions secrets&lt;br&gt;
No manual tokens required.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Pull request preview, then production&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First pull request against &lt;code&gt;main&lt;/code&gt; triggered the workflow and Azure spun up a preview site at a temporary URL.&lt;/li&gt;
&lt;li&gt;After reviewing the preview I merged the pull request, which ran the same workflow on &lt;code&gt;main&lt;/code&gt; and published to the primary domain.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Codex polish&lt;/strong&gt;&lt;br&gt;
Asked Codex for quick CSS fixes, sample posts, and layout refactors. Each task finished in about five minutes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Open Graph basics&lt;/strong&gt;&lt;br&gt;
Added Open Graph and Twitter meta tags plus a default preview image so every shared link shows at least one clean thumbnail.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h3&gt;Why I chose Eleventy&lt;/h3&gt;
&lt;p&gt;I briefly considered building my own engine in .NET, but that would have delayed writing for weeks. I needed something that let me stay in Markdown, version content in Git, and ship plain HTML. Eleventy met those goals with zero framework overhead. Markdown plus Nunjucks templates give me full control, the output works perfectly on Azure Static Web Apps, and there is no lock-in if I ever migrate. In Domain-Driven Design terms, my Markdown files are the domain layer and Eleventy is just an implementation detail.&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;Initial commit on &lt;strong&gt;July 15&lt;/strong&gt;, live site on &lt;strong&gt;July 27&lt;/strong&gt;. Twelve days of evening work and my GitHub contribution graph has never looked greener.&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 78px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/hello-world/DhEn4vHs7u-78.webp 78w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/hello-world/DhEn4vHs7u-78.png&quot; alt=&quot;GitHub contribution graph for July 15–27&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;78&quot; height=&quot;132&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;One sprint, lots of green squares&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;hr&gt;
&lt;h3&gt;Why link previews were tricky&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Issue&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Preview URLs are temporary&lt;/td&gt;
&lt;td&gt;Pull-request builds served HTML that still pointed meta tags to &lt;code&gt;https://example.com/...&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validators saw a mismatch&lt;/td&gt;
&lt;td&gt;Twitter tried to fetch images from production that were not live yet and failed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;Quick fix&lt;/strong&gt; – ship one default OG image that already lives on production.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Next steps&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Detect preview builds with the environment variable Azure supplies&lt;/li&gt;
&lt;li&gt;Rewrite &lt;code&gt;og:image&lt;/code&gt; and &lt;code&gt;og:url&lt;/code&gt; to use the preview hostname during build&lt;/li&gt;
&lt;li&gt;Generate unique post images automatically&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;How Codex fits into the loop&lt;/h3&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 1200px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/hello-world/79HxweVdXG-400.webp 400w, https://joecuevas.com/img/hello-world/79HxweVdXG-800.webp 800w, https://joecuevas.com/img/hello-world/79HxweVdXG-1200.webp 1200w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/hello-world/79HxweVdXG-400.jpeg&quot; alt=&quot;Codex task UI with completed PR&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;1200&quot; height=&quot;566&quot; srcset=&quot;https://joecuevas.com/img/hello-world/79HxweVdXG-400.jpeg 400w, https://joecuevas.com/img/hello-world/79HxweVdXG-800.jpeg 800w, https://joecuevas.com/img/hello-world/79HxweVdXG-1200.jpeg 1200w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;Codex task UI showing a merged pull request&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;I create a task in the Codex web UI, select the repo and branch, and describe the change. Codex spins up a container, edits the code, runs the Eleventy build, then shows file diffs and a summary. From there I click &lt;strong&gt;Create PR&lt;/strong&gt; and a pull request appears in GitHub. About a minute later the Azure workflow adds a preview link to the PR comments. If the preview looks good I merge. When I need more tweaks I avoid manual commits, use the same task, and give Codex a new instruction. It updates the branch and I hit &lt;strong&gt;Update branch&lt;/strong&gt; in the UI. Manual commits on the PR break the task, so I only edit locally if I plan to archive the task and start a fresh one.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;Working with Codex day to day&lt;/h3&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Codex helps with&lt;/th&gt;
&lt;th&gt;Where I still step in&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CSS tweaks and layout refactors&lt;/td&gt;
&lt;td&gt;Codex cannot push binary files. When it hits the &lt;strong&gt;&amp;quot;Binary files are not supported&amp;quot;&lt;/strong&gt; error the task stops. I commit PNGs manually. See the &lt;a href=&quot;https://community.openai.com/t/codex-started-failing-to-create-new-pr/1264529/21&quot;&gt;OpenAI community thread&lt;/a&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generating placeholder posts&lt;/td&gt;
&lt;td&gt;If I commit directly to the PR branch Codex loses context and the task breaks. I debug locally, then re-prompt Codex so it updates the PR.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clear, self-describing commits&lt;/td&gt;
&lt;td&gt;I always add &lt;strong&gt;run the build&lt;/strong&gt; to each instruction so the GitHub Actions pipeline passes. Tip from the Azure &amp;amp; DevOps Podcast.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Average task time is four to five minutes including container start-up.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;Real-world hurdles and lessons&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Broken preview builds&lt;/strong&gt;&lt;br&gt;
Early PR builds failed often. Instead of patching locally and breaking Codex, I reran the task with clearer instructions so the task stayed intact.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Link previews that would not load&lt;/strong&gt;&lt;br&gt;
Meta tags pointed to production, so OG images failed in preview sites. For now I test cards in production and rely on the default image until the automated preview solution is ready.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;Portable content and Domain-Driven Design&lt;/h3&gt;
&lt;p&gt;Posts live in Markdown with YAML front matter. Markdown acts as the domain layer: independent, durable, and easy to move to any future framework.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;The stack at a glance&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Hosting&lt;/strong&gt; – &lt;a href=&quot;https://azure.microsoft.com/products/app-service/static/&quot;&gt;Azure Static Web Apps&lt;/a&gt; free tier with a global CDN and three preview environments&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Generator&lt;/strong&gt; – &lt;a href=&quot;https://www.11ty.dev/&quot;&gt;Eleventy&lt;/a&gt; Markdown-first with no client JavaScript&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Repository&lt;/strong&gt; – &lt;a href=&quot;https://github.com/&quot;&gt;GitHub&lt;/a&gt; pull-request workflow I already know&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CI/CD&lt;/strong&gt; – &lt;a href=&quot;https://docs.github.com/actions&quot;&gt;GitHub Actions&lt;/a&gt; with Azure’s template handling the heavy lifting&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Cloud cost so far: only the yearly domain fee.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;What’s next&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Smarter per-post Open Graph images&lt;/li&gt;
&lt;li&gt;C# deep dives, DevOps experiments, and other research I refuse to lose again&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Call to action:&lt;/strong&gt; Share this post on &lt;a href=&quot;https://twitter.com/&quot;&gt;X&lt;/a&gt; or &lt;a href=&quot;https://www.linkedin.com/&quot;&gt;LinkedIn&lt;/a&gt; and watch the link preview appear. If the card looks odd please let me know so I can improve it.&lt;/p&gt;
&lt;p&gt;Thanks for reading and see you in the next post!&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Preview Web.config Transforms Without Publishing</title>
    <link href="https://joecuevas.com/posts/preview-webconfig-transforms/" />
    <updated>2025-08-02T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/preview-webconfig-transforms/</id>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This guide applies to legacy &lt;strong&gt;ASP.NET Framework&lt;/strong&gt; applications that use &lt;code&gt;Web.config&lt;/code&gt;. ASP.NET Core projects use &lt;code&gt;appsettings.json&lt;/code&gt; and environment-based configuration, which follow a different transformation approach.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Resource:&lt;/strong&gt; &lt;a href=&quot;https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/web-config-transformations&quot;&gt;ASP.NET Web Deployment using Visual Studio: Web.config File Transformations&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ah, the good ol Web.config. If you&#39;re like me, you&#39;re very familiar with this, it&#39;s the primary configuration source for many legacy .NET Framework web applications. This holds your connection strings to services like databases, integrated service endpoints, and even custom configurations for libraries imported via NuGet.&lt;/p&gt;
&lt;p&gt;It&#39;s not uncommon that you&#39;d want to change your configurations right before deployment to environments that aren&#39;t your own local machine. How is this done? Thankfully it&#39;s quite the easy task for CI/CD to handle, and can be dictated as part of your web application publish step. Check out the resource I have linked for further information. This doc is focused on ASP.NET Framework Web.config transforms using the standard Web.Debug.config and Web.Release.config files, and is still highly relevant in 2025 for enterprise projects.&lt;/p&gt;
&lt;p&gt;But, what if you want to preview this transformation without publishing your work first?&lt;/p&gt;
&lt;p&gt;Well that&#39;s where the following technique may be useful.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;A quick note about Visual Studio’s built-in Preview&lt;/h3&gt;
&lt;p&gt;Some project types in Visual Studio allow you to right-click a transform file (for example &lt;code&gt;Web.Release.config&lt;/code&gt;) and choose &lt;strong&gt;Preview Transform&lt;/strong&gt;. This is handy when available, but not every project type supports it. Also, this preview feature is limited to the IDE.&lt;/p&gt;
&lt;p&gt;The technique below works &lt;strong&gt;outside Visual Studio&lt;/strong&gt; as well, which makes it ideal for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Projects that do not support Preview in the IDE&lt;/li&gt;
&lt;li&gt;Running transforms from a build server or CI/CD pipeline&lt;/li&gt;
&lt;li&gt;Lightweight testing without opening Visual Studio&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2&gt;&lt;strong&gt;Setup: transform.proj&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Add the following file to your project (naming it &lt;code&gt;transform.proj&lt;/code&gt; for example):&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;XML&quot; data-title=&quot;MSBuild transform project&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;MSBuild transform project&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;XML&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy XML code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;MSBuild transform project&quot; class=&quot;language-xml&quot; data-language=&quot;XML&quot;&gt;&lt;code class=&quot;language-xml&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;Project&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;ToolsVersion&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;4.0&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;DefaultTargets&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;PreviewConfig&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;xmlns&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;http://schemas.microsoft.com/developer/msbuild/2003&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;UsingTask&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;TaskName&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;TransformXml&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;br&gt;             &lt;span class=&quot;token attr-name&quot;&gt;AssemblyFile&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;$(MSBuildExtensionsPath)&#92;Microsoft&#92;VisualStudio&#92;v17.0&#92;Web&#92;Microsoft.Web.Publishing.Tasks.dll&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;Target&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;Name&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;PreviewConfig&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;    &lt;span class=&quot;token comment&quot;&gt;&amp;lt;!-- Transform for Staging --&gt;&lt;/span&gt;&lt;br&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;TransformXml&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Web.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;                  &lt;span class=&quot;token attr-name&quot;&gt;Transform&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Web.Staging.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;                  &lt;span class=&quot;token attr-name&quot;&gt;Destination&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Preview_Staging.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;    &lt;br&gt;    &lt;span class=&quot;token comment&quot;&gt;&amp;lt;!-- Transform for Production --&gt;&lt;/span&gt;&lt;br&gt;    &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;&lt;/span&gt;TransformXml&lt;/span&gt; &lt;span class=&quot;token attr-name&quot;&gt;Source&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Web.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;                  &lt;span class=&quot;token attr-name&quot;&gt;Transform&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Web.Prod.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;                  &lt;span class=&quot;token attr-name&quot;&gt;Destination&lt;/span&gt;&lt;span class=&quot;token attr-value&quot;&gt;&lt;span class=&quot;token punctuation attr-equals&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;Preview_Prod.config&lt;span class=&quot;token punctuation&quot;&gt;&quot;&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;token punctuation&quot;&gt;/&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;  &lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;Target&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token tag&quot;&gt;&lt;span class=&quot;token punctuation&quot;&gt;&amp;lt;/&lt;/span&gt;Project&lt;/span&gt;&lt;span class=&quot;token punctuation&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; On disk, &lt;code&gt;v17.0&lt;/code&gt; is usually located under:&lt;br&gt;
&lt;code&gt;C:&#92;Program Files (x86)&#92;Microsoft Visual Studio&#92;2022&#92;&amp;lt;Edition&amp;gt;&#92;MSBuild&#92;Microsoft&#92;VisualStudio&#92;v17.0&#92;Web&#92;Microsoft.Web.Publishing.Tasks.dll&lt;/code&gt;&lt;br&gt;
Replace &lt;code&gt;&amp;lt;Edition&amp;gt;&lt;/code&gt; with &lt;code&gt;Community&lt;/code&gt;, &lt;code&gt;Professional&lt;/code&gt;, or &lt;code&gt;Enterprise&lt;/code&gt; depending on your install.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2&gt;&lt;strong&gt;Running the Preview&lt;/strong&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open a &lt;strong&gt;Developer Command Prompt&lt;/strong&gt; for Visual Studio&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to the project root where &lt;code&gt;transform.proj&lt;/code&gt; is located&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;PowerShell&quot; data-title=&quot;Run the preview target&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Run the preview target&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;PowerShell&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy PowerShell code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Run the preview target&quot; class=&quot;language-powershell&quot; data-language=&quot;PowerShell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;msbuild transform&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;proj &lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;t:PreviewConfig&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;This will output two transformed config files:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;Preview_Staging.config&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;Preview_Prod.config&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can open these files next to your base &lt;code&gt;Web.config&lt;/code&gt; to see exactly what the publish process will produce.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;&lt;strong&gt;Why This Works&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;This works because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You are calling the same transformation engine Visual Studio uses&lt;/li&gt;
&lt;li&gt;The v17.0 path points to the correct Visual Studio 2022 Web Publishing tasks&lt;/li&gt;
&lt;li&gt;The transformation runs in isolation, so there is no build, publish, or deployment required&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It is fast, predictable, and matches what CI/CD will create.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;&lt;strong&gt;Wrap Up&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Previewing transforms locally can save time and avoid unnecessary publish cycles. It is a quick win for developers working with Web.config setups in multiple environments.&lt;/p&gt;
&lt;p&gt;For more details on the transformation process, check out:
🔗 &lt;a href=&quot;https://learn.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/web-config-transformations&quot;&gt;ASP.NET Web Deployment using Visual Studio: Web.config File Transformations&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This technique is &lt;strong&gt;evergreen&lt;/strong&gt; because the &lt;code&gt;TransformXml&lt;/code&gt; MSBuild task has remained unchanged for years and continues to work with the latest Visual Studio builds.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Prepping for My Azure &amp; DevOps Podcast Debut</title>
    <link href="https://joecuevas.com/posts/azure-devops-podcast-prep/" />
    <updated>2025-08-08T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/azure-devops-podcast-prep/</id>
    <content type="html">&lt;p&gt;On June 11, I got an email from Jeffrey Palermo’s executive assistant, Miranda. The invite was simple: be a guest on the &lt;strong&gt;Azure &amp;amp; DevOps Podcast&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I have been active in the &lt;a href=&quot;https://clearmeasure.com/clear-measures-software-architect-forum/&quot;&gt;Clear Measure Architect Forums&lt;/a&gt; for about a year now. These monthly meetings are small, packed with top-level experts, and always full of relevant industry discussion. Large language models have been a hot topic almost every time, but the real value for me has been hearing what others are experiencing in their companies and getting practical guidance from brilliant guests. I have attended regularly, and I think my presence there may have put me on Jeffrey’s radar.&lt;/p&gt;
&lt;p&gt;When Miranda reached out, I did not even think twice. There was no way I could say no to this.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;&lt;strong&gt;Getting Ready&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;I had never been on a podcast before, so I wanted to prepare properly. As a regular listener of the Azure &amp;amp; DevOps Podcast, I already knew Jeffrey’s style. It is ad-hoc, conversational, and guided by curiosity.&lt;/p&gt;
&lt;p&gt;I also knew what Jeffrey could gather from our forum interactions and my LinkedIn profile. He could tell I’ve been a professional software developer for over nine and a half years, that I work at Southwest Research Institute, and that I’ve served as a manuscript reviewer for Manning Publications as well as for Jeffrey’s own &lt;em&gt;The Five Pillars: Leadership for Effective Custom Software&lt;/em&gt; (&lt;a href=&quot;https://clearmeasure.com/the-five-pillars-leadership-for-effective-custom-software/&quot;&gt;Jeffrey Palermo’s book page&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;I have spent years reading and learning, and in the last 2.5 years, I have been using ChatGPT Plus as a kind of personal mentor. For this prep, I went a step further. I used Advanced Voice Mode to have it simulate Jeffrey’s interview style, and I practiced my responses to different topics. I hit the one-hour daily limit more than once.&lt;/p&gt;
&lt;p&gt;I also bought a Samson Q2U microphone. I did not want audio quality to distract from the conversation.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;&lt;strong&gt;The “What If” Stage&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;In the weeks before recording, I had plenty of thoughts running through my head:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What if I choke&lt;/li&gt;
&lt;li&gt;What if my thoughts race ahead and I lose my point&lt;/li&gt;
&lt;li&gt;What if I just sound robotic&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And then there was the big one: Why me&lt;/p&gt;
&lt;p&gt;Jeffrey has hosted VPs, CTOs, distinguished engineers, and pioneers in the industry. The only answer I had was to show up prepared and give my best.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;&lt;strong&gt;Recording Day&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;July 7 arrived. We had an hour booked. Ten minutes to talk before recording, the recording itself, then a quick wrap-up.&lt;/p&gt;
&lt;p&gt;Audio checks done, Jeffrey gave me a great introduction, and we were rolling. At first, I was stiff. My answers felt robotic. As we got going, I loosened up and the conversation started to feel natural.&lt;/p&gt;
&lt;p&gt;When we wrapped, I felt both relieved and tired.&lt;/p&gt;
&lt;hr&gt;
&lt;h3&gt;&lt;strong&gt;The Episode&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;🎙 &lt;strong&gt;Joe Cuevas: Your First Decade as a Software Engineer — Episode 360&lt;/strong&gt;
📅 Released: July 28, 2025
🔗 &lt;a href=&quot;https://azuredevopspodcast.clear-measure.com/joe-cuevas-your-first-decade-as-a-software-engineer-episode-360&quot;&gt;Listen here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We covered:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How I fell in love with programming after a single VB.NET class&lt;/li&gt;
&lt;li&gt;What led me to the enterprise side of .NET&lt;/li&gt;
&lt;li&gt;My favorite foundational .NET and ASP.NET Core books&lt;/li&gt;
&lt;li&gt;Learning algorithms, concurrency, and testing without a CS degree&lt;/li&gt;
&lt;li&gt;Why persistence matters more than perfection for junior developers&lt;/li&gt;
&lt;li&gt;And a lot more&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h3&gt;&lt;strong&gt;Looking Back&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;Before recording, I made sure I was in the clear to speak on my own experiences and career journey. Thankfully, Jeffrey kept the conversation high level, and we focused entirely on my path in tech.&lt;/p&gt;
&lt;p&gt;When it was over, I felt proud. It reminded me that I could hold my own in a conversation with an industry veteran whose work I respect. That experience gave me a real confidence boost and reinforced why I’m committed to continuing my growth as a software engineer and contributing to the .NET community.&lt;/p&gt;
&lt;p&gt;This blog is part of that. I have been promoting it more, networking more, and pushing myself to grow both at work and beyond. I do not know exactly where this will lead, but I know I am having fun and I am not slowing down.&lt;/p&gt;
&lt;p&gt;Stay tuned.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>Choosing the Right .NET App Type: Console, Tool, or DNX?</title>
    <link href="https://joecuevas.com/posts/dotnet-console-choices/" />
    <updated>2025-08-20T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/dotnet-console-choices/</id>
    <content type="html">&lt;p&gt;As .NET developers, we spend a lot of time with tools. EF Core’s &lt;code&gt;dotnet ef&lt;/code&gt; is one of the most familiar examples. It is a command line tool that feels natural to use, but it can also raise questions.&lt;/p&gt;
&lt;p&gt;Do I always need to make my app a console app? Should I build a .NET tool instead? And what about DNX, the new one-shot option coming in .NET 10?&lt;/p&gt;
&lt;p&gt;I asked myself these questions after writing console apps but never packaging a tool for broader use. The answer is not always obvious, and this post is my attempt to provide some guidance. The goal is not heavy code examples, but a clear way to think about the choices.&lt;/p&gt;
&lt;h2&gt;The Landscape of .NET App Types&lt;/h2&gt;
&lt;p&gt;When starting a new project in .NET, the choices go well beyond “console or web.” Here are the main categories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Console App&lt;/strong&gt; – the bread and butter, great for scripts, utilities, or ad hoc jobs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;.NET CLI Tool (&lt;code&gt;dotnet tool&lt;/code&gt;)&lt;/strong&gt; – an installable, shareable console experience, just like &lt;code&gt;dotnet ef&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;DNX&lt;/strong&gt; (coming in .NET 10) – a way to run tools without installing them, similar to &lt;code&gt;npx&lt;/code&gt; in Node.js.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Web App (MVC, Razor Pages, Blazor)&lt;/strong&gt; – full UI, built for multiple users.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Background Worker/Service&lt;/strong&gt; – runs continuously in the background.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Desktop GUI App (WPF/WinForms)&lt;/strong&gt; – a local GUI for single-user needs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For this post, the main focus is on console-style apps, but it helps to see how they fit into the bigger picture.&lt;/p&gt;
&lt;h2&gt;Intent and Audience: The Deciding Factors&lt;/h2&gt;
&lt;p&gt;The real key to choosing the right app type is not the project template. It is the intent and the audience.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Intent&lt;/strong&gt;: Is this something interactive? Automated? Long running?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Audience&lt;/strong&gt;: Is this for yourself, for your team, or for end users?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lifecycle&lt;/strong&gt;: Does it run once and exit, or should it keep running?&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Distribution&lt;/strong&gt;: Do you need to share it easily, or is it personal?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Answering these questions will point you toward the right app type. To make it even simpler, here is a flowchart you can follow.&lt;/p&gt;
&lt;h2&gt;Decision Flow Diagram&lt;/h2&gt;
&lt;figure&gt;
  &lt;img src=&quot;https://joecuevas.com/img/dotnet-console-choices/decision_flow_diagram.svg&quot; alt=&quot;Decision flow for running .NET console tools&quot; class=&quot;post-image post-image--svg&quot; data-zoomable=&quot;true&quot; style=&quot;--image-width: 1314px&quot; sizes=&quot;(min-width: 768px) 50vw, 100vw&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; width=&quot;1314&quot; height=&quot;670&quot;&gt;
  &lt;figcaption&gt;A PlantUML diagram showing the decision flow for running .NET console tools with `dotnet run`, `dotnet tool run`, or `dnx`.&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h2&gt;Command Invocation Examples&lt;/h2&gt;
&lt;p&gt;Here is what each option looks like when run from the command line:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;PowerShell&quot; data-title=&quot;Compare console, tool, DNX, and scheduled job commands&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Compare console, tool, DNX, and scheduled job commands&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;PowerShell&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy PowerShell code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Compare console, tool, DNX, and scheduled job commands&quot; class=&quot;language-powershell&quot; data-language=&quot;PowerShell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;&lt;span class=&quot;token comment&quot;&gt;# Console app (personal use)&lt;/span&gt;&lt;br&gt;cd &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&#92;MyUtility&#92;&lt;br&gt;dotnet run &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;path &lt;span class=&quot;token string&quot;&gt;&quot;C:&#92;Logs&quot;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;verbose&lt;br&gt;&lt;br&gt;&lt;span class=&quot;token comment&quot;&gt;# .NET CLI tool (shared via NuGet)&lt;/span&gt;&lt;br&gt;dotnet tool install &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;g mytool&lt;br&gt;dotnet mytool cleanup &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;days 30&lt;br&gt;&lt;br&gt;&lt;span class=&quot;token comment&quot;&gt;# DNX (one-shot, no install)&lt;/span&gt;&lt;br&gt;dnx mytool analyze &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;file report&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;csv&lt;br&gt;&lt;br&gt;&lt;span class=&quot;token comment&quot;&gt;# Automated job (scheduled with PowerShell)&lt;/span&gt;&lt;br&gt;powershell &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;File &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&#92;BackupJob&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;ps1&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Note on &lt;code&gt;dotnet run&lt;/code&gt;:&lt;/strong&gt; the &lt;code&gt;--&lt;/code&gt; is not a typo. It separates arguments meant for the &lt;code&gt;dotnet run&lt;/code&gt; command from arguments that should be passed into your console app. If you omit it, &lt;code&gt;dotnet&lt;/code&gt; will try to parse the app’s arguments as its own and you will see errors.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note on DNX:&lt;/strong&gt; unlike a CLI tool, DNX does not require installation. It lets you run the tool directly in a one-shot manner, which makes it perfect for automation, onboarding, or cases where you want to avoid cluttering your environment with global installs.&lt;/p&gt;
&lt;h2&gt;When to Pick DNX, and Why Install Free Runs Are Appealing&lt;/h2&gt;
&lt;p&gt;One of the new options in .NET is DNX, which lets you run tools without installing them. The appeal is simple: sometimes you want to try a tool, or use it once in a CI pipeline, without leaving anything behind on your machine. With DNX you can run the command directly and walk away, knowing you have not cluttered your environment with a global install.&lt;/p&gt;
&lt;p&gt;This is especially helpful when you are experimenting. If a teammate shares a utility, you can try it right away without worrying about version conflicts or setup. It also works well in automation, where a job might need a tool for a single run but does not need it available long term. Because DNX always fetches the version you ask for, it keeps environments reproducible and reduces the dreaded “works on my machine” problem.&lt;/p&gt;
&lt;p&gt;That does not mean DNX replaces CLI tools altogether. If you use a tool daily, installing it as a proper .NET CLI Tool is usually the better option. Installed tools run faster, integrate smoothly with developer workflows, and make sense when a versioning policy is already in place. By contrast, DNX shines when you want flexibility, easy onboarding, or install free use in environments where permissions are tight.&lt;/p&gt;
&lt;p&gt;A good way to think about it is this: start with DNX when you want to try something out or run it in automation, and promote it to a full .NET CLI Tool once it becomes part of your team’s daily toolkit.&lt;/p&gt;
&lt;h2&gt;Applying the Choices in Practice&lt;/h2&gt;
&lt;p&gt;Think of a small utility you run on your own machine from time to time. Maybe it formats some data or checks a configuration. In that case, a Utility Console App is more than enough. It is quick to build, easy to run, and does not require packaging.&lt;/p&gt;
&lt;p&gt;Now imagine your team finds that same utility useful. Everyone needs it regularly, and you want a single, consistent way to distribute it. That is when it makes sense to turn it into a .NET CLI Tool. Once installed, it feels like a first-class command under the dotnet umbrella and can be versioned and updated through NuGet.&lt;/p&gt;
&lt;p&gt;But not every tool deserves an install. Sometimes you only need to run it once or twice, or you want it inside an automated process without leaving a footprint on the machine. That is where DNX shines. It gives you an install free way to invoke the tool, making it ideal for CI jobs, onboarding, or one-off experiments.&lt;/p&gt;
&lt;p&gt;Other cases are less about interaction and more about persistence. If an application needs to run in the background, listening for messages or performing ongoing work, the right choice is a Background Worker Service. It is designed to stay alive and manage its workload continuously.&lt;/p&gt;
&lt;p&gt;And finally, there are jobs that run on a schedule or as part of a deployment pipeline. These are best treated as Automated Jobs. You trigger them with a script or schedule them with a task runner, and they do their work without human interaction.&lt;/p&gt;
&lt;p&gt;For anything that requires a visual interface, the decision falls outside the console space. A Web App or a Desktop App is the natural choice when users expect to click, browse, and navigate.&lt;/p&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The next time you find yourself wondering whether to start with a console app, a tool, or DNX, remember this: focus on intent and audience first. Once you know what the app is supposed to do and who it is for, the right choice usually makes itself clear.&lt;/p&gt;
&lt;p&gt;The diagram above is my cheat sheet. Walk through it step by step, and you will land on the right kind of .NET app for your situation.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How I Sandbox AI Coding Agents on Windows 11 with WSL2</title>
    <link href="https://joecuevas.com/posts/codex-wsl-sandbox/" />
    <updated>2026-02-28T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/codex-wsl-sandbox/</id>
    <content type="html">&lt;p&gt;I&#39;ve been using ChatGPT Plus for a few years now and, as of February 2026, it&#39;s become a regular part of my workflow for research, writing, and speeding up day-to-day coding. When I first heard Codex was available to me as part of that subscription, I was already leaning hard on ChatGPT Plus to prep for my Azure &amp;amp; DevOps Podcast appearance (I wrote about that prep &lt;a href=&quot;https://joecuevas.com/posts/azure-devops-podcast-prep/&quot;&gt;here&lt;/a&gt;). What grabbed my attention was the agentic workflow: give it a goal and let it act on a real codebase.&lt;/p&gt;
&lt;p&gt;My first real run was Codex Cloud in June 2025. It got me to a working Eleventy blog fast (this one), but the loop was fundamentally asynchronous: submit task, wait a few minutes, then wait again for CI to spin up a preview in Azure Static Web Apps. That workflow is great for bigger, batched changes, but it felt heavy for the tight inner loop of &amp;quot;try, run, tweak, repeat&amp;quot;.&lt;/p&gt;
&lt;p&gt;ChatGPT Plus also unlocks Codex tools like the Codex CLI and the Codex IDE extension. This post uses Codex as the concrete example, but the sandboxing approach is the point.&lt;/p&gt;
&lt;p&gt;How do you use an AI coding agent &lt;em&gt;locally&lt;/em&gt; on Windows 11 with &lt;strong&gt;Full Access&lt;/strong&gt; without taking on unnecessary risk?&lt;/p&gt;
&lt;p&gt;Answer: run the whole workflow inside a WSL2 Linux environment and treat that Linux filesystem as the sandbox boundary.&lt;/p&gt;
&lt;p&gt;I&#39;m a .NET developer, so the smoke test in this guide is a .NET 10 Web API, but you can swap in whatever stack you use day to day.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Why this guide uses the VS Code Codex extension&lt;/h2&gt;
&lt;p&gt;I still prefer the CLI for most day-to-day work, but the extension is the simplest way to demonstrate the local sandbox + Full Access workflow end-to-end.&lt;/p&gt;
&lt;p&gt;In the IDE, Codex feels like a personal pair programmer instead of a queued job:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Local code workflows (edit, run, debug in seconds)&lt;/li&gt;
&lt;li&gt;Inline diffs and quick iteration&lt;/li&gt;
&lt;li&gt;Agent logs (useful for learning and understanding decisions)&lt;/li&gt;
&lt;li&gt;Easier to explore new concepts by generating runnable examples&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you&#39;re learning or iterating quickly, that tighter feedback loop matters.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Why a sandbox matters (especially for Full Access)&lt;/h2&gt;
&lt;p&gt;Codex in VS Code has two permission modes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Default permissions&lt;/strong&gt;: Codex automatically runs commands in a sandbox.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Full Access&lt;/strong&gt;: can run arbitrary shell commands as your current user, and read/write any file that user can access.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full Access is powerful enough to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Modify files outside the folder you opened in VS Code&lt;/li&gt;
&lt;li&gt;Install packages and tools&lt;/li&gt;
&lt;li&gt;Create background processes&lt;/li&gt;
&lt;li&gt;Delete files (&lt;code&gt;rm -rf&lt;/code&gt;, &lt;code&gt;Remove-Item -Recurse&lt;/code&gt;, etc.)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Git won&#39;t save you from system-level changes. Git is set up per repo at the repo root, not as a magic &amp;quot;version control for your whole machine.&amp;quot; If an agent changes something outside your project folder (home directory files, shell profiles, random config files), you won&#39;t see it in &lt;code&gt;git status&lt;/code&gt;, and undoing it is a lot harder than reverting a commit.&lt;/p&gt;
&lt;p&gt;So the goal is not &amp;quot;trust the agent more&amp;quot;. It&#39;s &amp;quot;make the blast radius small&amp;quot;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2&gt;Why WSL2 is a good safety boundary on Windows 11&lt;/h2&gt;
&lt;p&gt;WSL2 gives you a real Linux environment with its own filesystem under:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/home/&amp;lt;user&amp;gt;/...&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If you keep your projects in the Linux filesystem and run Codex there, Full Access actions are largely contained to that environment. Under the hood, WSL2 is a lightweight VM with its own Linux kernel and its own disk image. In practice that means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Linux tools run &lt;em&gt;as Linux tools&lt;/em&gt;, not Windows shims&lt;/li&gt;
&lt;li&gt;Your repo lives on an ext4 filesystem (inside the distro), not on NTFS&lt;/li&gt;
&lt;li&gt;Most of the time, the agent is only touching Linux paths unless you explicitly point it somewhere else&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Important caveat: WSL can also access your Windows filesystem. If you open or work on a repo that lives on the Windows side, you weaken the sandbox boundary. For the cleanest separation, keep the project under your Linux home directory (&lt;code&gt;/home/&amp;lt;user&amp;gt;/...&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Beyond safety, WSL2 is also a great .NET dev target:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run and debug ASP.NET Core apps inside Linux&lt;/li&gt;
&lt;li&gt;Build/compile in a Linux environment (closer to many production targets)&lt;/li&gt;
&lt;li&gt;Use the integrated VS Code terminal inside WSL&lt;/li&gt;
&lt;li&gt;Install VS Code extensions into WSL so they run where your code runs&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2&gt;Setup: WSL2 + Ubuntu + VS Code + Codex (example: .NET 10)&lt;/h2&gt;
&lt;p&gt;This is the follow-along recipe that got me from &amp;quot;Windows machine&amp;quot; to &amp;quot;safe Codex Full Access sandbox&amp;quot;.&lt;/p&gt;
&lt;h3&gt;1) Install WSL2 + Ubuntu&lt;/h3&gt;
&lt;p&gt;From PowerShell:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;PowerShell&quot; data-title=&quot;Install Ubuntu on WSL2&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Install Ubuntu on WSL2&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;PowerShell&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy PowerShell code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Install Ubuntu on WSL2&quot; class=&quot;language-powershell&quot; data-language=&quot;PowerShell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;wsl &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;install &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;d Ubuntu-24&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;04&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;If &lt;code&gt;Ubuntu-24.04&lt;/code&gt; isn&#39;t available on your machine, run &lt;code&gt;wsl --list --online&lt;/code&gt; and pick an Ubuntu distro from the list.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Launch Ubuntu and create a Linux username + password when prompted.&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 957px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-400.webp 400w, https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-800.webp 800w, https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-957.webp 957w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-400.png&quot; alt=&quot;Ubuntu first-run prompt creating a UNIX username&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;957&quot; height=&quot;429&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-400.png 400w, https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-800.png 800w, https://joecuevas.com/img/codex-wsl-sandbox/lzk2OCAyai-957.png 957w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;Ubuntu first-run account setup&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h3&gt;2) Install Git inside WSL&lt;/h3&gt;
&lt;p&gt;Git is a baseline dependency for basically any dev workflow, so I install it immediately in a fresh WSL distro.&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Install Git in Ubuntu&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Install Git in Ubuntu&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Install Git in Ubuntu&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; update&lt;br&gt;&lt;span class=&quot;token function&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;apt&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-y&lt;/span&gt; &lt;span class=&quot;token function&quot;&gt;git&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;h3&gt;3) Install .NET 10 in Ubuntu 24.04&lt;/h3&gt;
&lt;p&gt;If &lt;code&gt;sudo apt install dotnet-sdk-10.0&lt;/code&gt; works for your setup, prefer that. I used the install script here because I could not get .NET 10 from my default Ubuntu feeds at the time.&lt;/p&gt;
&lt;p&gt;At the time of this setup, .NET 10 wasn&#39;t available to me via the default Ubuntu repos on 24.04, so I used Microsoft&#39;s &lt;code&gt;dotnet-install.sh&lt;/code&gt; script.&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Install .NET 10 with dotnet-install&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Install .NET 10 with dotnet-install&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Install .NET 10 with dotnet-install&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;wget&lt;/span&gt; https://dot.net/v1/dotnet-install.sh &lt;span class=&quot;token parameter variable&quot;&gt;-O&lt;/span&gt; dotnet-install.sh&lt;br&gt;&lt;span class=&quot;token function&quot;&gt;chmod&lt;/span&gt; +x dotnet-install.sh&lt;br&gt;./dotnet-install.sh &lt;span class=&quot;token parameter variable&quot;&gt;--channel&lt;/span&gt; &lt;span class=&quot;token number&quot;&gt;10.0&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Verify the SDK was installed:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Verify the SDK&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Verify the SDK&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Verify the SDK&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;~/.dotnet/dotnet &lt;span class=&quot;token parameter variable&quot;&gt;--version&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 957px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-400.webp 400w, https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-800.webp 800w, https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-957.webp 957w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-400.png&quot; alt=&quot;dotnet-install script output ending with dotnet SDK version&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;957&quot; height=&quot;1013&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-400.png 400w, https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-800.png 800w, https://joecuevas.com/img/codex-wsl-sandbox/1EGc7MTBGs-957.png 957w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;.NET 10 install and version output&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h3&gt;4) Add .NET to your PATH (so tools can find it)&lt;/h3&gt;
&lt;p&gt;When you install via &lt;code&gt;dotnet-install.sh&lt;/code&gt;, the SDK goes into &lt;code&gt;~/.dotnet&lt;/code&gt;, which is not on PATH by default. If you skip this, things like &lt;code&gt;dotnet new&lt;/code&gt;, &lt;code&gt;dotnet run&lt;/code&gt;, and IDE tooling won&#39;t reliably find the SDK.&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Add .NET to PATH&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Add .NET to PATH&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Add .NET to PATH&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;export PATH=&quot;$HOME/.dotnet:$PATH&quot;&#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&gt;&lt;/span&gt; ~/.bashrc&lt;br&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&#39;export DOTNET_ROOT=&quot;$HOME/.dotnet&quot;&#39;&lt;/span&gt; &lt;span class=&quot;token operator&quot;&gt;&gt;&gt;&lt;/span&gt; ~/.bashrc&lt;br&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;source&lt;/span&gt; ~/.bashrc&lt;br&gt;dotnet &lt;span class=&quot;token parameter variable&quot;&gt;--version&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you installed .NET via a system package, this step is often unnecessary because &lt;code&gt;dotnet&lt;/code&gt; is already on PATH (often under &lt;code&gt;/usr/bin&lt;/code&gt;).&lt;/p&gt;
&lt;h3&gt;5) Create a dedicated Codex sandbox folder (Linux filesystem)&lt;/h3&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Create the sandbox workspace&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Create the sandbox workspace&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Create the sandbox workspace&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;&lt;span class=&quot;token function&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;token parameter variable&quot;&gt;-p&lt;/span&gt; ~/codex-sandbox&lt;br&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; ~/codex-sandbox&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This matters. Keep AI-driven work here.&lt;/p&gt;
&lt;h3&gt;6) Open VS Code in WSL mode&lt;/h3&gt;
&lt;p&gt;From the same directory:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Open VS Code from WSL&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Open VS Code from WSL&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Open VS Code from WSL&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;code &lt;span class=&quot;token builtin class-name&quot;&gt;.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;In VS Code, confirm the status bar shows &lt;strong&gt;WSL: Ubuntu-24.04&lt;/strong&gt; (or whatever Ubuntu distro name you installed).&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 179px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/oGgNCDnogi-179.webp 179w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/oGgNCDnogi-179.png&quot; alt=&quot;VS Code status bar label showing WSL Ubuntu&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;179&quot; height=&quot;38&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;VS Code is connected to WSL&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;h3&gt;7) Install the required extensions in WSL&lt;/h3&gt;
&lt;p&gt;Install the Codex extension (OpenAI) and C# Dev Kit &lt;strong&gt;into the WSL environment&lt;/strong&gt; (VS Code will prompt you to &amp;quot;Install in WSL&amp;quot;).&lt;/p&gt;
&lt;h3&gt;8) Sign in and open the Codex chat&lt;/h3&gt;
&lt;p&gt;Open the Codex chat panel and sign in with ChatGPT.&lt;/p&gt;
&lt;h3&gt;9) Enable Full Access mode&lt;/h3&gt;
&lt;p&gt;After signing in, switch the mode to &lt;strong&gt;Full Access&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;When Full Access is enabled, Codex can run shell commands and modify files inside your WSL environment. Because your workspace lives inside Linux, that power is contained within your sandbox instead of your Windows system.&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 593px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/Zqpjz7TCJn-400.webp 400w, https://joecuevas.com/img/codex-wsl-sandbox/Zqpjz7TCJn-593.webp 593w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/Zqpjz7TCJn-400.png&quot; alt=&quot;Codex mode picker set to Full access&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;593&quot; height=&quot;175&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/Zqpjz7TCJn-400.png 400w, https://joecuevas.com/img/codex-wsl-sandbox/Zqpjz7TCJn-593.png 593w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;Enable Full Access mode&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;hr&gt;
&lt;h2&gt;Sanity check: run a .NET 10 app inside WSL&lt;/h2&gt;
&lt;p&gt;Now that Codex is installed and &lt;strong&gt;Full Access&lt;/strong&gt; is enabled, put it to work and verify your WSL environment can create and run an ASP.NET Core (.NET 10) workload end-to-end.&lt;/p&gt;
&lt;p&gt;In the Codex chat, ask it to create a new Web API and run it. For example:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Plain Text&quot; data-title=&quot;Prompt Codex to create and run a Web API&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Prompt Codex to create and run a Web API&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Plain Text&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Plain Text code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Prompt Codex to create and run a Web API&quot; class=&quot;language-text&quot; data-language=&quot;Plain Text&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;Create a new .NET 10 Web API named TestApi10 in this workspace.&lt;br&gt;Run it.&lt;br&gt;&lt;br&gt;After it starts, tell me:&lt;br&gt;- which localhost URL to open from Windows&lt;br&gt;- which endpoint should return JSON&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;If you&#39;d rather run it yourself, these are the commands it will typically use:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;Bash&quot; data-title=&quot;Run the generated Web API manually&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Run the generated Web API manually&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;Bash&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy Bash code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Run the generated Web API manually&quot; class=&quot;language-bash&quot; data-language=&quot;Bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;dotnet new webapi &lt;span class=&quot;token parameter variable&quot;&gt;-n&lt;/span&gt; TestApi10&lt;br&gt;&lt;span class=&quot;token builtin class-name&quot;&gt;cd&lt;/span&gt; TestApi10&lt;br&gt;dotnet run&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;You&#39;ll see output like:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Now listening on: http://localhost:&amp;lt;port&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Open it from Windows. On Windows 11, WSL2 typically forwards localhost ports automatically. If it opens as &lt;code&gt;127.0.0.1&lt;/code&gt; (or VS Code opens the link via its remote port-forwarding plumbing instead of using the literal hostname shown), that&#39;s normal.&lt;/p&gt;
&lt;p&gt;One gotcha: the root path &lt;code&gt;/&lt;/code&gt; may return 404 depending on the template. The default endpoint is often:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;http://localhost:&amp;lt;port&amp;gt;/weatherforecast&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;At this point, with &lt;strong&gt;Full Access&lt;/strong&gt; enabled, Codex can safely generate projects, refactor code, run commands, and fix build errors inside your sandbox.&lt;/p&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 1013px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-400.webp 400w, https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-800.webp 800w, https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-1013.webp 1013w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-400.png&quot; alt=&quot;VS Code terminal output showing dotnet run and Now listening on localhost&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;1013&quot; height=&quot;569&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-400.png 400w, https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-800.png 800w, https://joecuevas.com/img/codex-wsl-sandbox/kuOCsxkxuY-1013.png 1013w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;API starts successfully in WSL&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;figure class=&quot;screenshot&quot;&gt;
  &lt;picture class=&quot;post-image-frame&quot; style=&quot;--image-width: 541px&quot;&gt;&lt;source type=&quot;image/webp&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/UL9QAO07sT-400.webp 400w, https://joecuevas.com/img/codex-wsl-sandbox/UL9QAO07sT-541.webp 541w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;img src=&quot;https://joecuevas.com/img/codex-wsl-sandbox/UL9QAO07sT-400.png&quot; alt=&quot;Browser showing localhost weatherforecast JSON response&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot; class=&quot;post-image post-image--raster&quot; data-zoomable=&quot;true&quot; width=&quot;541&quot; height=&quot;757&quot; srcset=&quot;https://joecuevas.com/img/codex-wsl-sandbox/UL9QAO07sT-400.png 400w, https://joecuevas.com/img/codex-wsl-sandbox/UL9QAO07sT-541.png 541w&quot; sizes=&quot;(min-width: 768px) 36rem, 100vw&quot;&gt;&lt;/picture&gt;
  &lt;figcaption&gt;Weatherforecast endpoint responding&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;hr&gt;
&lt;h2&gt;Daily workflow: open VS Code directly in your sandbox&lt;/h2&gt;
&lt;p&gt;From your Windows host machine, you can open VS Code directly into your WSL sandbox with this one-liner:&lt;/p&gt;

&lt;div class=&quot;code-block&quot; data-language=&quot;PowerShell&quot; data-title=&quot;Open the WSL sandbox from Windows&quot;&gt;
  &lt;div class=&quot;code-block__bar&quot;&gt;
    &lt;span class=&quot;code-block__label&quot;&gt;Open the WSL sandbox from Windows&lt;/span&gt;
    &lt;span class=&quot;code-block__language&quot;&gt;PowerShell&lt;/span&gt;
    &lt;button class=&quot;copy-code&quot; type=&quot;button&quot; aria-label=&quot;Copy PowerShell code&quot;&gt;
      &lt;svg class=&quot;copy-code__icon&quot; viewBox=&quot;0 0 20 20&quot; fill=&quot;none&quot; aria-hidden=&quot;true&quot; focusable=&quot;false&quot;&gt;
        &lt;rect x=&quot;6.25&quot; y=&quot;3.75&quot; width=&quot;9&quot; height=&quot;11&quot; rx=&quot;1.75&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot;/&gt;
        &lt;path d=&quot;M4.75 6.25H4A1.75 1.75 0 0 0 2.25 8v8A1.75 1.75 0 0 0 4 17.75h6.5&quot; stroke=&quot;currentColor&quot; stroke-width=&quot;1.35&quot; stroke-linecap=&quot;round&quot;/&gt;
      &lt;/svg&gt;
    &lt;/button&gt;
  &lt;/div&gt;
  &lt;div class=&quot;code-block__viewport&quot;&gt;
    &lt;pre data-code-title=&quot;Open the WSL sandbox from Windows&quot; class=&quot;language-powershell&quot; data-language=&quot;PowerShell&quot;&gt;&lt;code class=&quot;language-powershell&quot;&gt;wsl &lt;span class=&quot;token operator&quot;&gt;-&lt;/span&gt;d Ubuntu-24&lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;04 &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt;cd ~&lt;span class=&quot;token operator&quot;&gt;/&lt;/span&gt;codex-sandbox &lt;span class=&quot;token operator&quot;&gt;--&lt;/span&gt; code &lt;span class=&quot;token punctuation&quot;&gt;.&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;This command:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Starts the distro&lt;/li&gt;
&lt;li&gt;Changes to your project folder&lt;/li&gt;
&lt;li&gt;Opens VS Code in WSL mode&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2&gt;Guardrails I recommend (so Full Access stays boring)&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Keep repos in &lt;code&gt;~/codex-sandbox/...&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Before enabling Full Access, confirm VS Code shows &lt;strong&gt;WSL: Ubuntu-24.04&lt;/strong&gt; (or whatever Ubuntu distro name you installed).&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2&gt;Closing thoughts&lt;/h2&gt;
&lt;p&gt;Codex is at its best when you let it do real work: generate code, run builds, fix errors, and iterate. The trick is doing that safely. For me, WSL2 is the simplest way to safely turn on &amp;quot;Full Access&amp;quot; without putting my Windows environment at risk. Once that boundary is in place, it becomes a legitimate learning lab for .NET 10 and anything else I want to explore.&lt;/p&gt;
&lt;p&gt;Technically, what&#39;s happening is straightforward: WSL2 gives you a Linux VM with its own filesystem and process space; VS Code connects to it via Remote - WSL; and extensions like Codex run in that Linux context. By keeping your workspace in &lt;code&gt;/home/&amp;lt;user&amp;gt;/...&lt;/code&gt; (the Linux filesystem), you get the practical benefits of a sandbox without having to containerize everything.&lt;/p&gt;
&lt;p&gt;This WSL sandbox setup is the foundation that made me comfortable actually using Full Access day-to-day.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>A Token-Efficient Workflow for Coding Sub-Agents</title>
    <link href="https://joecuevas.com/posts/sub-agent-token-efficiency/" />
    <updated>2026-07-13T00:00:00Z</updated>
    <id>https://joecuevas.com/posts/sub-agent-token-efficiency/</id>
    <content type="html">&lt;p&gt;I was reading a &lt;a href=&quot;https://news.ycombinator.com/item?id=48883275&quot;&gt;Hacker News discussion about sub-agents&lt;/a&gt; where people were talking about how quickly they burn through tokens. That made me wonder why my experience has been so different.&lt;/p&gt;
&lt;p&gt;I use GitHub Copilot in a pretty intentional way. I start with a smaller model, usually &lt;a href=&quot;https://developers.openai.com/api/docs/models/gpt-5.4-mini&quot;&gt;GPT-5.4 mini&lt;/a&gt; with high reasoning or, more recently, &lt;a href=&quot;https://developers.openai.com/api/docs/models/gpt-5.6-luna&quot;&gt;GPT-5.6 Luna&lt;/a&gt; with low reasoning. I use that session to inspect the codebase, ask questions, and work out what actually needs to change before I hand the implementation to a stronger sub-agent.&lt;/p&gt;
&lt;p&gt;Calling it the smaller model is relative. It is still capable. I just use it for the messy part where I am exploring options and rejecting ideas.&lt;/p&gt;
&lt;p&gt;Once the plan feels solid, I dispatch a stronger sub-agent. That might be &lt;a href=&quot;https://developers.openai.com/api/docs/models/gpt-5.3-codex&quot;&gt;GPT-5.3-Codex&lt;/a&gt; or, more recently, &lt;a href=&quot;https://developers.openai.com/api/docs/models/gpt-5.6-terra&quot;&gt;GPT-5.6 Terra&lt;/a&gt; with high reasoning. It gets a focused plan instead of a vague request to figure everything out.&lt;/p&gt;
&lt;h2&gt;The loop is the important part&lt;/h2&gt;
&lt;p&gt;The handoff is not the end of my session. It is one step in a loop:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I plan in the main session.&lt;/li&gt;
&lt;li&gt;I dispatch that plan to one sub-agent.&lt;/li&gt;
&lt;li&gt;The sub-agent makes the changes and runs the relevant checks.&lt;/li&gt;
&lt;li&gt;I review the result, verify the repository, and continue planning from there.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If the result is wrong, I tighten the plan before sending more work. I am still the one deciding what happens next.&lt;/p&gt;
&lt;p&gt;On a full coding day, I can go through around a dozen sub-agent handoffs this way. That is not a goal or a recommendation. It is simply what I have observed in my own workflow.&lt;/p&gt;
&lt;h2&gt;Why my context stays manageable&lt;/h2&gt;
&lt;p&gt;I have also noticed that my main session does not compact as often. I cannot say exactly how GitHub Copilot packages context internally, but I can see the practical result: my main conversation receives the completed work and what I need to review it. It does not fill up with every file the sub-agent opened, every search it ran, or every intermediate step it took.&lt;/p&gt;
&lt;p&gt;That lets me keep the decisions and the larger thread of the work in one place while the implementation effort happens elsewhere.&lt;/p&gt;
&lt;p&gt;This is also where I think some of the token savings come from. GPT-5.4 mini handles the early exploration. The stronger model gets a narrower implementation job after much of the uncertainty is gone. Neither part is free, but the more capable model is focused on the work where I value it most.&lt;/p&gt;
&lt;h2&gt;Why others may see the opposite&lt;/h2&gt;
&lt;p&gt;If several sub-agents investigate the same bug, read the same files, and run the same tests, token use should climb. The same is true when every sub-agent starts with an open-ended request or an autonomous system keeps spawning more help.&lt;/p&gt;
&lt;p&gt;That is a different workflow from mine. I am not launching a swarm. I am making one deliberate handoff, reviewing it, and then deciding what comes next.&lt;/p&gt;
&lt;h2&gt;My takeaway&lt;/h2&gt;
&lt;p&gt;Sub-agents are not automatically efficient, but they are not automatically a token disaster either.&lt;/p&gt;
&lt;p&gt;For me, the useful pattern is simple: plan with a smaller model, implement with a stronger one, verify the work myself, and repeat. That is how I can use around a dozen sub-agents during a long coding day without losing control of the work or constantly compacting my main session.&lt;/p&gt;
</content>
  </entry>
</feed>