<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rodrigo Pena</title>
    <description>The latest articles on DEV Community by Rodrigo Pena (@rodrigospena).</description>
    <link>https://dev.to/rodrigospena</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4110574%2F7730f17c-cec6-45f0-ab76-8e92b3a0ee0a.jpeg</url>
      <title>DEV Community: Rodrigo Pena</title>
      <link>https://dev.to/rodrigospena</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rodrigospena"/>
    <language>en</language>
    <item>
      <title>I built a simple Markdown system that helped me waste way fewer tokens</title>
      <dc:creator>Rodrigo Pena</dc:creator>
      <pubDate>Sat, 05 Sep 2026 03:30:22 +0000</pubDate>
      <link>https://dev.to/rodrigospena/i-built-a-simple-markdown-system-that-helped-me-waste-way-fewer-tokens-f46</link>
      <guid>https://dev.to/rodrigospena/i-built-a-simple-markdown-system-that-helped-me-waste-way-fewer-tokens-f46</guid>
      <description>&lt;p&gt;A while ago, I started noticing the same thing happening in almost every AI coding session.&lt;/p&gt;

&lt;p&gt;At first, everything felt great.&lt;/p&gt;

&lt;p&gt;I’d open Cursor, Claude, or Windsurf, explain what I wanted to build, and within minutes the AI would be helping with endpoints, components, utilities, bugs… the usual magic.&lt;/p&gt;

&lt;p&gt;But after a while, things would start getting really messy.&lt;/p&gt;

&lt;p&gt;My agent would forget decisions we had just made. It would bring back a library I had already decided not to use. It would rewrite something that was working. Or worse: I’d spend a few prompts fixing a bug, only for that same bug to quietly come back later.&lt;/p&gt;

&lt;p&gt;And every time that happened, I had to explain the project all over again.&lt;/p&gt;

&lt;p&gt;The architecture. The stack. The conventions. What was off-limits. What we had already tried.&lt;/p&gt;

&lt;p&gt;That meant more tokens, more vague responses, more rework, and a lot more frustration than I expected.&lt;/p&gt;

&lt;p&gt;So I started thinking: maybe the problem isn’t that AI coding tools can’t generate code fast enough.&lt;/p&gt;

&lt;p&gt;Maybe the real problem is that they don’t have a reliable way to stay grounded in the project.&lt;/p&gt;

&lt;p&gt;That idea eventually became &lt;strong&gt;&lt;a href="https://pxos.madebypx.com" rel="noopener noreferrer"&gt;PXOS&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  The problems I kept running into
&lt;/h2&gt;

&lt;p&gt;These were the patterns that kept showing up for me:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The AI would forget important architectural decisions halfway through a task.&lt;/li&gt;
&lt;li&gt;It would touch files that had nothing to do with the request.&lt;/li&gt;
&lt;li&gt;It would start writing a lot of code before really understanding the problem.&lt;/li&gt;
&lt;li&gt;I’d waste a huge amount of context re-explaining the same project details.&lt;/li&gt;
&lt;li&gt;If I opened multiple agent sessions, they could end up stepping on each other’s work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;None of this means the models are bad. They’re incredibly useful.&lt;/p&gt;

&lt;p&gt;But I realized that, if I wanted AI agents to be genuinely helpful on larger or longer-running projects, I needed a better workflow around them.&lt;/p&gt;




&lt;h2&gt;
  
  
  My first instinct was to overcomplicate it
&lt;/h2&gt;

&lt;p&gt;Like a lot of people, I initially thought I needed a smarter orchestration layer.&lt;/p&gt;

&lt;p&gt;I experimented with local RAG setups, Python services running in the background, vector databases, multi-agent frameworks, containers… all the things that sound exciting until you’re the person maintaining them.&lt;/p&gt;

&lt;p&gt;It quickly became too much.&lt;/p&gt;

&lt;p&gt;Background processes crashed. Config got messy. API keys and environments became another thing to worry about. I was spending more time managing the AI tooling than actually building the product.&lt;/p&gt;

&lt;p&gt;So I stepped back and asked a much simpler question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if the AI doesn’t need another complicated system around it?&lt;br&gt;&lt;br&gt;
What if it just needs clear instructions, project context, and decisions that live inside the repository?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That’s the idea behind PXOS.&lt;/p&gt;




&lt;h2&gt;
  
  
  What PXOS actually is
&lt;/h2&gt;

&lt;p&gt;PXOS is a lightweight, Markdown-based operating system for AI-assisted development.&lt;/p&gt;

&lt;p&gt;There are no background servers, no vector database, and no heavy runtime dependencies. It lives directly inside your repository in an &lt;code&gt;.ai/&lt;/code&gt; folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;your-project/
├── .ai/
│   ├── AI_BASE.md          # Rules, boundaries, and autonomy levels
│   ├── PROJECT_CONTEXT.md  # Stack, architecture, conventions, and invariants
│   ├── CURRENT_SPEC.md     # Current task, requirements, and acceptance criteria
│   └── DECISION_LOG.md     # Important decisions made along the way
└── ... your actual codebase
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Instead of hoping the model remembers everything from a long conversation, the important context becomes part of the project itself.&lt;/p&gt;

&lt;p&gt;It is readable by humans, easy to version with Git, and available whenever you start a new AI session.&lt;/p&gt;




&lt;h2&gt;
  
  
  How I use it
&lt;/h2&gt;

&lt;p&gt;PXOS gives the agent a simple workflow to follow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Discover → Plan → Execute → Validate → Review → Compact
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In practice, that means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Discover:&lt;/strong&gt; Before changing anything, the agent reads the project context and checks the relevant existing code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan:&lt;/strong&gt; It says what it wants to change and identifies whether the task is low-risk or needs approval first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Execute:&lt;/strong&gt; It makes focused changes instead of rewriting half the codebase.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Validate:&lt;/strong&gt; It checks its work with tests, linting, builds, or runtime evidence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review:&lt;/strong&gt; It looks for UX issues, missing states, and obvious gaps before calling the task done.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compact:&lt;/strong&gt; At the end, &lt;code&gt;/compact&lt;/code&gt; summarizes what happened and saves meaningful decisions into the project’s decision log.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to make AI agents rigid or slow.&lt;/p&gt;

&lt;p&gt;It’s to stop them from drifting away from the actual project.&lt;/p&gt;




&lt;h2&gt;
  
  
  Running more than one agent
&lt;/h2&gt;

&lt;p&gt;One of my favorite parts is how PXOS handles parallel work.&lt;/p&gt;

&lt;p&gt;If I want two agents working at the same time, I don’t leave both of them editing the same folder. PXOS uses native Git worktrees to isolate each task:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pxos task feature/auth-redesign
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That creates a separate workspace for that task, such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.worktrees/feature-auth-redesign
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So one agent can work on authentication while another works on a dashboard or a bug fix, without both changing the same files and creating unnecessary merge conflicts.&lt;/p&gt;

&lt;p&gt;It’s a small thing, but it has made parallel work much less stressful for me.&lt;/p&gt;




&lt;h2&gt;
  
  
  What happened when I benchmarked it
&lt;/h2&gt;

&lt;p&gt;I set up a small benchmarking environment to compare raw AI-agent sessions against PXOS-guided sessions on the same multi-step tasks.&lt;/p&gt;

&lt;p&gt;These are the results I got:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Unconstrained agents&lt;/th&gt;
&lt;th&gt;PXOS-guided agents&lt;/th&gt;
&lt;th&gt;Difference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total tokens consumed&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;421,450&lt;/td&gt;
&lt;td&gt;83,120&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-80.3%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Architectural rework&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;44.1%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0.0%&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Eliminated in this test&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Out-of-scope file changes&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;7 files&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0 files&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Eliminated in this test&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Multi-agent collisions&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;3 merge conflicts&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No collisions in this test&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The biggest improvement wasn’t just token usage.&lt;/p&gt;

&lt;p&gt;It was how much calmer the workflow felt.&lt;/p&gt;

&lt;p&gt;I spent less time correcting the AI, less time repeating context, and less time trying to understand why something unrelated had suddenly changed.&lt;/p&gt;

&lt;p&gt;PXOS is still evolving, and these are results from my own controlled tests — not a universal promise for every model, project, or workflow. That’s exactly why I want more people to try it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Try PXOS
&lt;/h2&gt;

&lt;p&gt;You can install it in a project in a few seconds.&lt;/p&gt;

&lt;h3&gt;
  
  
  Python / PyPI
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;pxos
pxos init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Windows / PowerShell
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;irm&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;https://raw.githubusercontent.com/madebypx/PXOS/main/install.ps1&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;iex&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  macOS / Linux
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/madebypx/PXOS/main/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After that, start a session in Cursor, Claude, Windsurf, or another coding agent and say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Read &lt;code&gt;.ai/AI_BASE.md&lt;/code&gt; and &lt;code&gt;.ai/PROJECT_CONTEXT.md&lt;/code&gt; before doing anything.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That alone already makes a noticeable difference.&lt;/p&gt;




&lt;h2&gt;
  
  
  A personal request
&lt;/h2&gt;

&lt;p&gt;I built PXOS because I genuinely wanted a calmer, clearer way to work with AI while building real products.&lt;/p&gt;

&lt;p&gt;A lot of late nights, experimentation, design work, and care went into it — including the website, which I’m admittedly very proud of.&lt;/p&gt;

&lt;p&gt;So, if you have a few minutes, I’d really appreciate three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Visit the website:&lt;/strong&gt; &lt;a href="https://pxos.madebypx.com" rel="noopener noreferrer"&gt;pxos.madebypx.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;
I designed and built it with a lot of care. The CRT/terminal direction, the interactions, and the live telemetry concept were all part of making the project feel like more than just another CLI tool. And, modesty aside, I think it turned out pretty beautiful.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Actually test PXOS:&lt;/strong&gt; Try it on a real task, a side project, or a feature you’re currently building. Then tell me honestly what worked, what felt confusing, what broke, and what you think is missing. Positive feedback is great, but constructive criticism is even more useful.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Run &lt;code&gt;/benchmark&lt;/code&gt; after using it for a while:&lt;/strong&gt; After one or two real sessions with PXOS, run:&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   /benchmark
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pxos benchmark
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command asks for your consent before sending anything. If you opt in, it sends only anonymous numeric metrics — such as token usage, rework ratio, and task-completion signals — to the public research dashboard.&lt;/p&gt;

&lt;p&gt;Those real-world metrics will help me understand whether PXOS is genuinely improving workflows across different projects, models, and setups.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Website:&lt;/strong&gt; &lt;a href="https://pxos.madebypx.com" rel="noopener noreferrer"&gt;pxos.madebypx.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🐙 &lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/madebypx/PXOS" rel="noopener noreferrer"&gt;madebypx/PXOS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📊 &lt;strong&gt;Benchmark report:&lt;/strong&gt; &lt;a href="https://github.com/madebypx/PXOS/blob/main/benchmarks/REPORT.md" rel="noopener noreferrer"&gt;View the empirical report&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it, I’d love to hear how it went — especially what PXOS got right and where it still gets in your way.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>devtools</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
