<?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: David Pereira</title>
    <description>The latest articles on DEV Community by David Pereira (@bolt04).</description>
    <link>https://dev.to/bolt04</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%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg</url>
      <title>DEV Community: David Pereira</title>
      <link>https://dev.to/bolt04</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bolt04"/>
    <language>en</language>
    <item>
      <title>How we use agentic coding tools in our favor - Copilot</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Mon, 15 Jun 2026 20:02:59 +0000</pubDate>
      <link>https://dev.to/bolt04/how-we-use-agentic-coding-tools-in-our-favor-copilot-509f</link>
      <guid>https://dev.to/bolt04/how-we-use-agentic-coding-tools-in-our-favor-copilot-509f</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;
Planning the experiment

&lt;ul&gt;
&lt;li&gt;Cost considerations&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
Testing Copilot coding agent

&lt;ul&gt;
&lt;li&gt;Code review comments&lt;/li&gt;
&lt;li&gt;Improvements mid-way&lt;/li&gt;
&lt;li&gt;Our pain points&lt;/li&gt;
&lt;li&gt;Performance considerations&lt;/li&gt;
&lt;li&gt;Main takeaways&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Resources&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;This blog post is part of a series where I share how AI is augmenting my work, and what I'm learning from it. If you're interested, you can read the second post here: &lt;a href="https://blogit.create.pt/davidpereira/2026/01/09/lessons-learned-improving-code-reviews-with-ai/" rel="noopener noreferrer"&gt;Lessons learned improving code reviews with AI&lt;/a&gt;.&lt;br&gt;
In that post, I reference how we are adopting AI for code reviews. This one is a deep dive into how we experimented with GitHub Copilot coding agent, to see how it could fit our team's needs. Truth be told, we are using Claude Code a lot more, it's the tool we are focused on and have adopted, but that will be a separate blog post in this series 😆.&lt;/p&gt;

&lt;p&gt;Our approach was simple: experiment in order to learn what works. We are still learning and improving, but the more we use and optimize these tools, the more leverage we gain as a team. Let's get into the details.&lt;/p&gt;
&lt;h2&gt;
  
  
  Planning the experiment
&lt;/h2&gt;

&lt;p&gt;Okay... we all have heard of Copilot coding agent by now. You probably have heard that at GitHub, this agent is the number 1 contributor in their code base at the &lt;a href="https://youtu.be/P6Va0_KILi4?t=410" rel="noopener noreferrer"&gt;keynote&lt;/a&gt; and &lt;a href="https://github.com/resources/events/github-roadmap-webinar-q1" rel="noopener noreferrer"&gt;their roadmap webinar Q1 2026&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vx0jsl9g4t9p28131us.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vx0jsl9g4t9p28131us.png" alt="copilot-nr1" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Well... to me this is the same &lt;a href="https://www.linkedin.com/posts/gergelyorosz_exactly-one-year-ago-10-mar-2025-dario-activity-7437104256219959296-nsS2" rel="noopener noreferrer"&gt;statement that Dario&lt;/a&gt;, CEO of Anthropic, made of "in 3-6 months AI is writing 90% of the code". I'm glad it works for them, and they can spend their marketing budget and strategy on these slides and statements. But it's not the metric I care about. I'm fine not having to type in a keyboard to write 90% of the code, but measuring LOC just doesn't make sense to me. That says nothing about the quality of the merged code, bugs introduced, etc. They are hype-driven statements in my opinion 🤣. &lt;br&gt;
Nevertheless, it leaves this question in my mind: could coding agents work effectively and produce high-quality PRs?&lt;/p&gt;

&lt;p&gt;We have been doing quite a bit of experimenting with GitHub Copilot coding agent and Claude Code, to try to answer this question. Maybe we can replace most of our typing on a keyboard to prompting. Our goal is nothing like GitHub, we have nothing to sell... they do 😅. Our motivation is to keep improving the way we work and bring value to real customers. So I'll share what we have done and experimented with GitHub Copilot coding agent 🙂. &lt;/p&gt;

&lt;p&gt;We planned this before the &lt;a href="https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/" rel="noopener noreferrer"&gt;change to usage-based billing&lt;/a&gt;, since I had still 70% premium tokens left in August, and they reset every month, we were like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fek5izvmnw4cov6n1veus.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fek5izvmnw4cov6n1veus.gif" alt="hehe-boi" width="640" height="496"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why not spend them all in a ton of coding agent experiments 😄 ! So we did 😆. Our approach was this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pick 1 task that is prioritized for our next release to give to the coding agent&lt;/li&gt;
&lt;li&gt;Pick 1 other backlog item or general task we would like to be done, some bugfixes, or code improvements&lt;/li&gt;
&lt;li&gt;Assign all tasks to a coding agent (most would be Copilot, others would go to &lt;a href="https://github.blog/changelog/2026-02-04-claude-and-codex-are-now-available-in-public-preview-on-github/" rel="noopener noreferrer"&gt;Claude third-party agent&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;Go do another task, then after a while, review PRs &lt;/li&gt;
&lt;li&gt;Report on the premium token usage + number of PRs + quality of the output + number of comments&lt;/li&gt;
&lt;li&gt;Start the cycle again with more tasks on the next month&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Again, our goal is to experiment in order to learn what works. We did this experiment in August 2025, some other months and again in March 2026 (mainly since there were many improvements introduced). It's important to note our focus was on Copilot, not any other &lt;a href="https://github.blog/changelog/2026-02-04-claude-and-codex-are-now-available-in-public-preview-on-github/" rel="noopener noreferrer"&gt;third-party agent&lt;/a&gt;. We did not use Codex, and only used Claude on some of the tasks for this experiment.&lt;/p&gt;
&lt;h3&gt;
  
  
  Cost considerations
&lt;/h3&gt;

&lt;p&gt;We did not analyze or think a lot about costs. The goal was to experiment and see the quality of the PRs on different tasks. But suffice to say, the &lt;a href="https://github.blog/news-insights/company-news/github-copilot-is-moving-to-usage-based-billing/" rel="noopener noreferrer"&gt;billing change&lt;/a&gt; is a necessary change. We were able to hit the 59min timeout on tasks that should not cost 1 premium request, or get a lot of tool calls for that cost, like:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Prompt&lt;/th&gt;
&lt;th&gt;Branch changes against master&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;please check all work that is done here in this branch, vs the master branch, and do a thorough code review using all skills available. Focus on bugs and then code quality too. Use multiple subagents, each with their own perspective and goal&lt;/td&gt;
&lt;td&gt;~47,300 additions and ~11,000 deletions&lt;/td&gt;
&lt;td&gt;Error hitting 59min timeout. Used 4 subagents. We hit the error &lt;code&gt;model_max_prompt_tokens_exceeded&lt;/code&gt; with the message "prompt token count of 530706 exceeds the limit of 64000"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;improve memory consumption of function X. Acceptance criteria: Memory should not exceed Y, regardless of the amount of items being processed.&lt;/td&gt;
&lt;td&gt;~900 additions and ~40 deletions&lt;/td&gt;
&lt;td&gt;Success in 53min&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I'm sure you have seen plenty of engineers using a lot of inference for 1 premium request or for 20 dollars of a Claude Code subscription 😅. Anyway, if we were to adopt Copilot Coding agent in June, we would need more controls to control GitHub actions minutes and overall token usage + re-evaluate the cost-benefit.&lt;/p&gt;
&lt;h2&gt;
  
  
  Testing Copilot coding agent
&lt;/h2&gt;

&lt;p&gt;I'll share an approximation of the results we got:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Author&lt;/th&gt;
&lt;th&gt;PRs&lt;/th&gt;
&lt;th&gt;Merged&lt;/th&gt;
&lt;th&gt;Merge rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Copilot coding agent&lt;/td&gt;
&lt;td&gt;~130&lt;/td&gt;
&lt;td&gt;~30&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~23%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Third-party Claude agent&lt;/td&gt;
&lt;td&gt;~5&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human developers&lt;/td&gt;
&lt;td&gt;~400&lt;/td&gt;
&lt;td&gt;~390&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~98%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Size (lines changed)&lt;/th&gt;
&lt;th&gt;Copilot/Claude PRs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;S (10-49)&lt;/td&gt;
&lt;td&gt;~12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;M (50-199)&lt;/td&gt;
&lt;td&gt;~48&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L (200-999)&lt;/td&gt;
&lt;td&gt;~55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;XL (1000+)&lt;/td&gt;
&lt;td&gt;~20&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Again, this is mainly an experiment so merge rate is expected to be very low. A lot of Copilot coding agent PRs were spikes/exploration or using GitHub custom agents to analyze PRDs, do security reviews, etc.&lt;/p&gt;

&lt;p&gt;Let's talk about the quality of the PR when Copilot asked me for a review. First and foremost, I don't think we have a high bar for quality PRs compared to other successful software teams. To me, a high-quality PR is expected, always, period. Second of all, many draft PRs I've created and seen other engineers create, is usually a v0. It's a version we publish to get feedback from engineers on our team, it's never actually ready to be merged. All Copilot PRs are created as drafts, to me this signals Copilot really just did a v0, even if it says it has completed everything and everything works. My current opinion is this is made on purpose, to give you a chance to steer Copilot again in its implementation, and do an initial code review to spot things that are wrong.&lt;/p&gt;

&lt;p&gt;I've not seen any docs, or official statements from GitHub supporting my claim. With that said, I'd like an option to enable Copilot to continue iterating on their PR and only ask me for a review when it's no longer a draft. But this coding agent might not evolve in that direction since their marketing and docs so far are focused on small &amp;amp; medium tasks. Cost control becomes very important too with long-running agents.&lt;/p&gt;

&lt;p&gt;To simplify things, we'll say asking me for a review is the same as another engineer asking me to review their PR. Any engineer in our team (or generally in the world) only assigns a co-worker a PR for review once the PR is ready, has finished work and they tested and reviewed their own work. From our experiment so far, Copilot was not able to have a ready and polished PR in most PRs, so I need to leave a lot of comments saying the countless wrong parts. One of the problems is the feedback loop, we didn't make the Playwright MCP work for us since we have limitations on the front-end login flow. So the agent doesn't deliver the necessary code for front-end tasks. &lt;/p&gt;
&lt;h3&gt;
  
  
  Code review comments
&lt;/h3&gt;

&lt;p&gt;In terms of the comments I made, alongside CCR and Claude Code before marking the PR as ready for review, it's around 20-30. The ones that got merged usually had under 20 comments and most discussions weren't critical or about low-quality code. Again, it appears to me these were mostly low-medium tasks that were clearly defined and the agent did well. Our closed PRs and a few of the experiments got 40+ comments, for various reasons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unnecessary test cases&lt;/li&gt;
&lt;li&gt;Re-implemention of certain modules and functions was necessary&lt;/li&gt;
&lt;li&gt;Removed existing functionality&lt;/li&gt;
&lt;li&gt;Low quality code and not adhering to coding standards and best practices (e.g. a lot of duplicated code, missing error handling)&lt;/li&gt;
&lt;li&gt;Missing front-end implementation&lt;/li&gt;
&lt;li&gt;Usage of non-existent CSS classes&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ones that got closed and were simple experiments didn't receive much review. I understand that isn't a great thing for the experiment, but we simply invested more time in some PRs rather than all, again some are just spikes or over the top on purpose.&lt;/p&gt;

&lt;p&gt;It's not the same thing as our own team PRs, of course, since these draft PRs are done in like ~15min. But the number of comments necessary to have these draft PRs ready to be reviewed by another human (and AI tools, like Copilot itself, Claude and CodeRabbit) is important. Since it's time I'm spending reviewing code. I don't want to be bothered when there are still typos and acceptance criteria is not fully met 😅.&lt;/p&gt;
&lt;h3&gt;
  
  
  Improvements mid-way
&lt;/h3&gt;

&lt;p&gt;I had features Copilot coding agent didn't do very well, which then prompted me to ask for a way to &lt;a href="https://github.com/copilot-coding-agent/user-feedback/issues/84" rel="noopener noreferrer"&gt;ask clarifying questions&lt;/a&gt;. The agent dashboard is nowadays a lot better, and we can start with this &lt;a href="https://docs.github.com/en/copilot/tutorials/cloud-agent/get-the-best-results#researching-planning-and-iterating-before-opening-a-pull-request" rel="noopener noreferrer"&gt;type of planning&lt;/a&gt; and make it ask clarifying questions too. I only experimented with this a few times, mostly because we started to add more context and details in the GitHub issues, and because steering costs more premium requests. This also matches Cursor's best practices of &lt;a href="https://cursor.com/blog/agent-best-practices" rel="noopener noreferrer"&gt;"plan before coding"&lt;/a&gt;, a best practice that is mentioned everywhere and by all AI labs for good reason.&lt;/p&gt;

&lt;p&gt;After some PRs, we would also try to tweak the &lt;code&gt;instructions.md&lt;/code&gt; to see if it improves anything. It's a bit hard to know for sure if some changes to our prompts/instructions really improve the LLM's quality. Just by experimenting and tweaking, can we really see if in the future PRs it works better. We also didn't configure &lt;code&gt;copilot-setup-steps.yml&lt;/code&gt;. We know the &lt;a href="https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment#customizing-copilots-development-environment-with-copilot-setup-steps" rel="noopener noreferrer"&gt;max timeout for the coding agent&lt;/a&gt; is 59 minutes currently. There weren't many options we wanted to configure in this file for our experiment.&lt;/p&gt;

&lt;p&gt;GitHub also shipped the ability for the coding agent to &lt;a href="https://github.blog/ai-and-ml/github-copilot/whats-new-with-github-copilot-coding-agent/#h-pull-requests-that-arrive-in-better-shape" rel="noopener noreferrer"&gt;use Copilot code review&lt;/a&gt; and it runs CodeQL as well. Which is great, some of our pain points were kind of addressed here since it prevents some issues from reaching a human reviewer. Still... we had issues and opinions on the PRs we experimented and saw, so let's go through them now 🙂.&lt;/p&gt;
&lt;h3&gt;
  
  
  Our pain points
&lt;/h3&gt;
&lt;h4&gt;
  
  
  Tests
&lt;/h4&gt;

&lt;p&gt;There are several times where Copilot didn't run all unit tests. Or Copilot says "tests pass", when in fact it didn't wait for all tests to finish so it can't know if tests pass...&lt;br&gt;
Here is an example of a comment I left Copilot after I reviewed the PR:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;"copilot" there are several issues and missing implementation. Please make all the following changes:

&lt;span class="gu"&gt;## Front end&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="gs"&gt;**Missing**&lt;/span&gt; the entire front-end implementation, please make the necessary changes using the design system and with the acceptance criteria in the GitHub issue

&lt;span class="gu"&gt;## Testing&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Please please follow coding standards on all methods
&lt;span class="p"&gt;-&lt;/span&gt; You should include unit tests to your implementation of X
&lt;span class="p"&gt;-&lt;/span&gt; Delete all assertions of the &lt;span class="sb"&gt;`exception.Message`&lt;/span&gt;, because it's something that can change, and that makes it a fragile test
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I read some session logs and found interesting things. Sure, I didn't specify a lot about what unit tests to run in the prompt, but I'd actually prefer running all unit tests since we can make changes that break other areas in our codebase.&lt;br&gt;
But, in the end it also didn't wait for tests to run and see if everything passes.&lt;/p&gt;

&lt;p&gt;I don't expect to see the wording "tests pass" if the agent simply didn't wait for them to finish. Honestly, this is not that bad, we can run them ourselves or later in our CI check... but again I want to refine our instructions file in order for coding agents to always follow them and produce better quality PRs. Instruction following depends on the LLM, but still there are improvements here for sure.&lt;/p&gt;
&lt;h4&gt;
  
  
  Doesn't follow our PR template
&lt;/h4&gt;

&lt;p&gt;It just doesn't follow our PR template. Sure, it's a small thing, maybe a temporary limitation. But I mean in general, whenever Copilot publishes a comment on the PR saying "Fixed! This is done....", but then I see that it's not done and the PR description is something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Definition of Done&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; [x] PR follows template format 
&lt;span class="p"&gt;-&lt;/span&gt; [x] Code review comments addressed
&lt;span class="p"&gt;-&lt;/span&gt; [x] Implementation follows C# coding standards  
&lt;span class="p"&gt;-&lt;/span&gt; [x] Build warnings fixed
&lt;span class="p"&gt;-&lt;/span&gt; [x] Core functionality implemented
&lt;span class="p"&gt;-&lt;/span&gt; [ ] Final Application compilation issues resolved
&lt;span class="p"&gt;-&lt;/span&gt; [ ] All tests passing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every time, I'm like:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sus7fmpjrdaxxdbsamf.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4sus7fmpjrdaxxdbsamf.gif" alt="michael-gif" width="374" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Lack of docs on installed tools and observability
&lt;/h4&gt;

&lt;p&gt;This is a nitpick I know, but since I was reading the session logs I found the copilot coding agent has access to python3. I didn't know this was the case from Copilot Coding agent docs, but it makes sense since our GitHub actions runner &lt;a href="https://github.com/actions/runner-images/blob/ubuntu24/20250824.1/images/ubuntu/Ubuntu2404-Readme.md" rel="noopener noreferrer"&gt;uses ubuntu&lt;/a&gt;. I mean we have the firewall on, but it would be great to know how to deny access to these tools. I'm also not about to dunk too hard on GitHub about the observability around this feature, because they rely on GitHub actions. We all know what telemetry we can get out of those... From an engineering perspective, Copilot Coding Agent lacks a lot, I mean a lot, when it comes to observability. No OpenTelemetry, no nothing. It's clearly not a priority or concern for them, I can understand that, but I don't agree with that decision. Claude Managed Agents has some stuff like tracing, but I guess not a lot of companies have observability as a priority or concern for cloud agents.&lt;/p&gt;

&lt;h4&gt;
  
  
  No reasoning around a simpler solution
&lt;/h4&gt;

&lt;p&gt;We saw a few PRs where the agent simply jumps and fixates on the first solution, without reasoning about the trade-offs and alternatives there are. We'll dive deeper about one scenario concerning performance considerations, but for now I'll keep it light. In one task where we assigned Claude agent, the bug we wanted to fix is dead simple. It's one function, a &lt;code&gt;string&lt;/code&gt; extension method, that is not handling edge cases correctly when parsing class names. The solution in the PR was using &lt;code&gt;StringBuilder&lt;/code&gt; and a &lt;code&gt;for&lt;/code&gt; loop with some logic to decide how to parse and handle the edge case. It's not wrong, but I prefer simpler code. Sure, with an initial prompt that says something like "don't forget to code review your solution at the end", perhaps it would have caught and reasoned about if there were simpler solutions, using Regex for example. Maybe the Claude third-party agent can't do that, only Copilot coding agent can, no idea though.&lt;/p&gt;

&lt;h4&gt;
  
  
  Reliability problems
&lt;/h4&gt;

&lt;p&gt;We experienced errors sometimes, or hit unfortunate limitations or bugs. Of the ~130 Copilot PRs, we got around 30 failed GitHub actions runs. Due to various errors but sometimes I can't even know why, for example, when the session fails I can't always see the full logs in that job run. The GitHub actions UI only shows "This job failed" with the annotation "Unhandled exception. System.IO.IOException: No space left on device". Well... great, thanks for the info. Couldn't you truncate or do something to reliably show me some verbose logs? What contributed most to disk space? Is the agent getting too much output in tool calls that is saved in files on disk? What tools produced the most output tokens? Did the agent make tool calls that are inefficient and wrong? What happened exactly? Not the best UX... Sure, there are larger GitHub actions runners. But I don't want to throw money at a problem I don't know the root cause to...&lt;/p&gt;

&lt;p&gt;Some sessions we hit the 59min timeout, but I feel like we shouldn't. One copilot coding agent session was about code review on a branch with this prompt: "please check all work that is done here in this branch, vs the master branch and do a thorough code review using all skills available. Focus on bugs and then code quality too. Use multiple subagents each with their own perspective and goal". I wasn't expecting a 59min run even with 5 subagents, then I saw this on the logs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;20:25:43.4654572Z Start flushing callbacks
20:53:35.0823201Z ::***::
&lt;/span&gt;&lt;span class="gp"&gt;20:53:40.0920377Z #&lt;/span&gt;&lt;span class="c"&gt;#[error]The operation was canceled.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What is this? Why did the actions runner take ~30min to flush callbacks 😅. The code review was done already, I don't understand why it failed the whole job, so it's a bit frustrating to spend these Actions minutes...&lt;/p&gt;

&lt;p&gt;Also, we assigned Copilot to an issue and immediately got a comment saying &lt;em&gt;"The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists. (Request id: X)."&lt;/em&gt; Well... no, i know for a fact it's not a ruleset violation or permissions related. I assigned the Claude agent next to this issue and it worked.&lt;br&gt;
Just to test it again, I assigned Copilot again after some days to this issue. It started working and made a WIP PR, until it failed with this error:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhk1y45oyrbnwlm66e2j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjhk1y45oyrbnwlm66e2j.png" alt="copilot-error" width="800" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then I see the agent session logs and find these type of errors:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;stderr: "fatal: path 'Tests/SuperCoolTests.cs' exists on disk, but not in 'X'\n"
(...)
[cca-engine] Failed to disconnect session X cleanly: Error: Connection is disposed.
[cca-engine] Fatal: Error: Execution failed: CAPIError: 422 422 Unprocessable Entity
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The fatal error "exists on disk" happened 6 times during the code review step with CodeQL. I mean, is it the root cause of the 422 error... maybe not, I don't know.&lt;br&gt;
Sure, these might be "nitpicks" but in a way, it says something about the reliability of this feature. Reliability is something that users can cancel subscriptions for, if they find alternatives that are reliable and fit their needs, for example. &lt;/p&gt;
&lt;h3&gt;
  
  
  Performance considerations
&lt;/h3&gt;

&lt;p&gt;One of the more interesting things the Copilot coding agent did, that I didn't like, was on one PR to refactor this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;tasks&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;Select&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="p"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;ProcessItemAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;Task&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;WhenAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tasks&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Into this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;item&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;items&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;ProcessItemAsync&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;item&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I read the session log to understand why it did this, because in this case, this is not the best solution. For context, this PR is supposed to fix a concurrency issue due to how we use &lt;code&gt;OpenConnectionAsync&lt;/code&gt; in the DbContext. The code throws the exception &lt;code&gt;System.InvalidOperationException: The connection was not closed. The connection's current state is connecting&lt;/code&gt;. Also, a single DbContext isn't thread-safe, so concurrent calls through &lt;code&gt;Task.WhenAll&lt;/code&gt; will &lt;a href="https://learn.microsoft.com/en-us/ef/core/dbcontext-configuration/#avoiding-dbcontext-threading-issues" rel="noopener noreferrer"&gt;throw this exception&lt;/a&gt;.&lt;br&gt;
I don't want sequential processing just to fix this concurrency issue. So here is the snippet of the agent's internal reasoning in the session logs:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"The real problem surfaces in X.cs, where multiple concurrent calls to Y are fired simultaneously for different IDs. Since they all share the same DbContext and connection, this concurrent access causes contention on a single connection that's never properly closed. The fix requires addressing both the connection lifecycle and the concurrency issue. While adding try/finally blocks to close connections in the repository methods would help, the underlying problem is that a single DbContext isn't thread-safe, so concurrent calls through Task.WhenAll are fundamentally problematic. The most practical immediate solution is to ensure connections are properly closed after each repository method completes, which should at least prevent the connection exhaustion that's currently happening. that open connections&lt;/em&gt; \&lt;br&gt;
&lt;em&gt;2. In X.cs, change from concurrent Task.WhenAll to sequential processing to avoid concurrent use of the same DbContext"&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It just seems it was focused on fixing the concurrency issue, not considering the performance trade-off of this solution. Actually, it does seem some other PRs the coding agent creates has this behaviour as well. Jumping and fixating on a solution, without reasoning about the trade-offs and alternatives there are (this was a Claude Opus 4.6 copilot coding agent session by the way 😅). I mean... should we have given the context of how big this &lt;code&gt;items&lt;/code&gt; list can be in production? Should we ask explicitly to consider the performance of its code? Well, maybe, but I was hoping Opus 4.6 could think like an engineer 😅. Either way, maybe a better feedback loop would help the agent as well, like performance tests that the agent can run after making this fix. That way, the agent could measure the cost of the code it's making. I guess that is what we should all do anyway. Improve these feedback loops since they help agents and humans do better work. Sounds obvious, but it could probably really have improved this PR 😅.&lt;/p&gt;

&lt;p&gt;We ended up refactoring this code in this PR because it doesn't even make sense to process this list with a &lt;code&gt;Task.WhenAll(tasks)&lt;/code&gt; when we can make a better DB query that is more performant and cleaner.&lt;/p&gt;
&lt;h3&gt;
  
  
  Main takeaways
&lt;/h3&gt;

&lt;p&gt;So did Copilot coding agent do a good job? Well, I'd argue it could have been better, so I'm curious to see if we can give even better instructions and provide more context. Including some context that can be useful for Copilot directly in the issue description is always a good idea, like relevant files to skip some of the searching and grepping. Also, I acknowledge our feedback loop could be better and something that would help the coding agent for sure.&lt;br&gt;
Also... mister LLM was not running all tests and waiting for them to finish. So they could be failing, but it was all good for the coding agent... well, not good enough for me 😅. What I really don't want is for the coding agent to say in the end "All tests pass", and then I check the full logs and see "(...) ok tests are taking too long to build and run. I'll proceed with the other tasks."&lt;/p&gt;

&lt;p&gt;The workflow of giving work to the agent, then go do something else entirely, and comeback to review worked well. Especially since the copilot sessions take like ~15min, so I enjoy having the agent work in the background instead of having it on my VS Code, waiting for me to approve commands or provide feedback. If I can steer it in the right direction from the start, it tends to do a decent job for the initial PR. The challenge is reducing the number of iterations in a PR until it's considered done. Having them work in the background can increase the feedback loop of: getting code -&amp;gt; reviewing code -&amp;gt; asking for revisions.&lt;/p&gt;

&lt;p&gt;However, delegating a task to an &lt;strong&gt;autonomous cloud agent&lt;/strong&gt; and reviewing big PRs at the end is a fundamentally different workflow from iterative, step-by-step collaboration (e.g. VS Code Agent mode, or CLI). Sure, it's cool to delegate some PRs at the end of the day, and then come back tomorrow to review that code. But it's not very practical unless the quality of that PR is high or the task is very small in scope. I see a lot of engineers in the industry enjoying cloud agents a lot, but for me, I still prefer coding agents running locally with an iterative back-and-forth collaboration, then create a PR from that (plus I can gather more telemetry locally 🙂). Like Stephen Toub said &lt;a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/#iteration-is-expected" rel="noopener noreferrer"&gt;in his blog post&lt;/a&gt;, iteration is expected:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you expect CCA to get it right the first time with zero human involvement, you’ll be disappointed a non-trivial percentage of the time. Expect multiple rounds of review feedback with you providing clear, specific, and actionable feedback.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I just prefer to do it locally.&lt;br&gt;
The one scenario I truly prefer autonomous cloud coding agents is when I'm on-call doing monitoring and SRE type work. Handling support tickets, checking logs, dashboards, exceptions and possible improvements to our runbooks and overall codebase. I can assign tasks like bug fixing or test coverage gaps to the cloud agent, go back to Grafana. An hour later I come back and assign Copilot Code review and Claude, then go back to monitoring. When reviews are done I tell the cloud agent to fix all bugs or issues. The next day before my SRE type work I can do some code review on a PR that is in a better state, test it myself and go on from there. Cloud coding agents fit the workflow of delegating these tasks and it works well for me.&lt;/p&gt;

&lt;p&gt;So in short, for the clear well-defined tasks the agent produced a good quality PR that got merged sometimes. For the complex features and bug fixes, that require searching and understanding many files in the codebase, it does a worse job. If the task is complex, it will require more thinking, reading multiple projects and just raw domain knowledge. It still provided value in the PRs we experimented on, since a lot of the tasks we experimented on were indeed medium complexity.&lt;br&gt;
Honestly, we have other tools that produce good quality PRs for clear well-defined tasks.&lt;/p&gt;
&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/" rel="noopener noreferrer"&gt;Ten Months with Copilot Coding Agent in dotnet/runtime&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://visualstudiomagazine.com/articles/2025/07/15/copilot-is-rising-all-time-contributor-to-net-maui-repo.aspx" rel="noopener noreferrer"&gt;.NET MAUI team's experience with Copilot coding agent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://devblogs.microsoft.com/dotnet/maui-team-copilot-tips/" rel="noopener noreferrer"&gt;How the .NET MAUI Team uses GitHub Copilot for Productivity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://simonw.substack.com/p/agentic-engineering-patterns" rel="noopener noreferrer"&gt;Simon Willison - Agentic Engineering Patterns&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/blog/agent-best-practices" rel="noopener noreferrer"&gt;Best practices for coding with agents&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;We will keep experimenting a little with GitHub Copilot coding agent or other agentic tools the Copilot subscription supports (e.g. OpenCode, Codex). But it's fair to say we'll be doubling down on our adoption of Claude Code as our agentic coding tool. Like I've said in the posts of this series, the Jagged Frontier keeps moving and knowing where the task you give these tools falls inside the frontier or not, defines how much you are augmented. If we can get more of the low-medium complexity tasks done right, reliably and ensure quality along the way. I'm certain we will be very happy and continue working on more complex tasks that provide value to our customers. Since I have seen LLMs lacking the judgement, trade-off analysis and decision making engineers have, I prefer the collaboration I can have from local sessions and not a cloud agent session.&lt;/p&gt;

&lt;p&gt;Don't forget to stay critical and don't let yourself be swayed by all this hype. Test things yourself, don't over-trust outputs from a tool, come up with your own solutions and adopt what works.&lt;/p&gt;

&lt;p&gt;My next blog post in this series will also be about agentic coding tools, in this case, Claude Code!&lt;br&gt;
Are you using AI coding agents? I'd love to hear from you what your experience has been. Leave a comment and let's chat 🙂 .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/bolt04/how-we-use-agentic-coding-tools-in-our-favor-copilot-40b5-temp-slug-8740310#comments" class="crayons-btn crayons-btn--primary"&gt;Have you used GitHub Copilot coding agent on complex tasks? Was it a high-quality PR?&lt;/a&gt;
&lt;/p&gt;

</description>
      <category>ai</category>
      <category>githubcopilot</category>
    </item>
    <item>
      <title>Lessons learned improving code reviews with AI</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 14 Jun 2026 17:09:35 +0000</pubDate>
      <link>https://dev.to/bolt04/lessons-learned-improving-code-reviews-with-ai-1c00</link>
      <guid>https://dev.to/bolt04/lessons-learned-improving-code-reviews-with-ai-1c00</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;Why we started experimenting&lt;/li&gt;
&lt;li&gt;
Our AI code review journey

&lt;ul&gt;
&lt;li&gt;Claude Code&lt;/li&gt;
&lt;li&gt;Saving learnings in memory&lt;/li&gt;
&lt;li&gt;GitHub Copilot&lt;/li&gt;
&lt;li&gt;CodeRabbit and Qodo&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
Tool of choice

&lt;ul&gt;
&lt;li&gt;Improving multi-agent collaboration&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Resources&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I have loved code reviews for years now, and still to this day, I love seeing good open source PRs! When I say good, I mean really great! We have access to tons of open source code, and the greatest PRs are the ones where you can learn a lot from on &lt;strong&gt;how to do it right&lt;/strong&gt;. In a sense, this blog post is about just that.&lt;br&gt;
This blog post is part of a series where I share how AI is augmenting my work, and what I'm learning from it. If you're interested, you can read the first post here: &lt;a href="https://blogit.create.pt/davidpereira/2025/09/10/becoming-augmented-by-ai/" rel="noopener noreferrer"&gt;Becoming augmented by AI&lt;/a&gt;. In that post, I reference how AI has augmented me with an "initial code review" so in this post, I'll go deeper in this topic. I'll share our hands-on experience: what works, what doesn't, and a healthy dose of my opinions along the way 😄. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick disclaimer&lt;/strong&gt;: what works for us might not work for you. Your team and coding guidelines are different, and that's fine. These are just our honest experiences.&lt;/p&gt;

&lt;p&gt;With that said, let's dive into why we started incorporating AI tools in our code review process.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why we started experimenting
&lt;/h2&gt;

&lt;p&gt;I recently watched this amazing video by CodeRabbit:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/glfB3KLQR7E"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;In our team, code review isn't really the bottleneck (yet), but it's funny because we are also using AI heavily for feature development and trying to improve... hummm "velocity" 🤣.&lt;/p&gt;

&lt;p&gt;Anyway, I understand many teams nowadays have increased the number of PRs created. That some PRs simply get a blind LGTM.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbzhjZ3Nhd296bTMzMWtnMGI2bTJ6azh3dHN3enJkaGNvc2UyOHd1YyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fpjq7Q1oFxF07C%2Fgiphy.gif" class="article-body-image-wrapper"&gt;&lt;img width="300" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExbzhjZ3Nhd296bTMzMWtnMGI2bTJ6azh3dHN3enJkaGNvc2UyOHd1YyZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2Fpjq7Q1oFxF07C%2Fgiphy.gif" height="168"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maybe some PRs just have increasingly more AI slop... which wears down senior engineers tasked to do code review 😅.&lt;br&gt;
Not all professionals would &lt;strong&gt;want to do it right&lt;/strong&gt; or maybe they just want to ship because their company's "productivity metrics" incentivize merging more and more PRs 😅. Honestly, it's &lt;a href="https://simonwillison.net/2025/Dec/18/code-proven-to-work/" rel="noopener noreferrer"&gt;our job to deliver code we have proven to work&lt;/a&gt;, I fully agree with Simon Willison. Throwing slop over to the engineers that do code review is unprofessional, just as much as throwing untested features over to QA 😐.&lt;br&gt;
In our case, we changed to having a dedicated dev responsible for all code reviews, and we don’t have that many per day. We simply wanted to improve code quality and reduce bugs, while keeping code review as an educational process for junior engineers.&lt;/p&gt;

&lt;p&gt;About five months ago, our team started experimenting with AI tools, GitHub Copilot, Claude Code, Codacy, Qodo, and CodeRabbit to see how they could help us improve our review process without adding a ton of noise. There are more tools we didn't try, like Augment Code and Greptile (has some cool &lt;a href="https://www.greptile.com/benchmarks" rel="noopener noreferrer"&gt;benchmarks&lt;/a&gt;), but hopefully the lessons we learned will be useful to you either way.&lt;/p&gt;
&lt;h2&gt;
  
  
  Our AI code review journey
&lt;/h2&gt;

&lt;p&gt;We already talked in the last post about our &lt;a href="https://github.com/BOLT04/Blog-Posts/blob/master/2025/becoming-augmented-by-genai.md#custom-instructions" rel="noopener noreferrer"&gt;custom instructions&lt;/a&gt;, to some extent. Specifically for code review we took a phased approach and started comparing different tools:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Started with &lt;a href="https://docs.github.com/en/copilot/concepts/agents/code-review" rel="noopener noreferrer"&gt;GitHub Copilot Code Review&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Integrated Claude Code with GitHub and started comparing code reviews from both tools&lt;/li&gt;
&lt;li&gt;Added CodeRabbit, Qodo and Codacy to spot differences between them&lt;/li&gt;
&lt;li&gt;Refined prompts/instructions/configs for some tools&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We didn't invest equal time in all of them, though. Copilot and Claude ended up getting most of our attention, especially since we started using Copilot Code Review (CCR) when it was in public preview.&lt;br&gt;
Overall, we experimented with these tools in 30+ PRs, and made 20+ PRs to refine our prompts/instructions/agents.&lt;/p&gt;
&lt;h3&gt;
  
  
  Claude Code
&lt;/h3&gt;

&lt;p&gt;Let's go through Claude Code first. Here is a snippet of our &lt;code&gt;code-review&lt;/code&gt; Claude Code custom slash command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;allowed-tools&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Bash(dotnet test), Read, Glob, Grep, LS, Task, Explore, mcp.....&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Perform&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;comprehensive&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;review&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;of&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;the&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;requested&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;PR&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;or&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;changes,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;taking&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;into&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;consideration&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;code&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;standards"&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="c1"&gt;## Role&lt;/span&gt;

&lt;span class="s"&gt;You are a world-class autonomous code review agent. You operate within a secure GitHub Actions environment.&lt;/span&gt;
&lt;span class="s"&gt;Your analysis is precise, your feedback is constructive, and your adherence to instructions is absolute.&lt;/span&gt;
&lt;span class="s"&gt;You do not deviate from your programming. You are tasked with reviewing a GitHub Pull Request.&lt;/span&gt;

&lt;span class="c1"&gt;## Primary Directive&lt;/span&gt;

&lt;span class="s"&gt;Your sole purpose is to perform a comprehensive and constructive code review of this PR, and post all feedback and suggestions using the **GitHub review system** and provided tools.&lt;/span&gt;
&lt;span class="s"&gt;All output must be directed through these tools. Any analysis not submitted as a review comment or summary is lost and constitutes a task failure.&lt;/span&gt;

&lt;span class="c1"&gt;## Input data&lt;/span&gt;
&lt;span class="na"&gt;PR NUMBER&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;$ARGUMENTS&lt;/span&gt;

&lt;span class="na"&gt;You MUST follow these steps to review the PR&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
&lt;span class="na"&gt;1. **Start a review**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use `mcp__github__create_pending_pull_request_review` to begin a pending review&lt;/span&gt;
&lt;span class="na"&gt;2. **Get diff information**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use `mcp__github__get_pull_request_diff` to understand the code changes and line numbers&lt;/span&gt;
&lt;span class="na"&gt;3. **Get list of files**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;If you can't get diff information, use `mcp__github__get_pull_request_files` to get the list of files that were added, removed, and changed in the pull request&lt;/span&gt;
&lt;span class="na"&gt;4. **Add comments**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use `mcp__github__add_comment_to_pending_review` for each specific piece of feedback on particular lines&lt;/span&gt;
&lt;span class="na"&gt;5. **Submit the review**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Use `mcp__github__submit_pending_pull_request_review` with event type "COMMENT" (not "REQUEST_CHANGES") to publish all comments as a non-blocking review&lt;/span&gt;

&lt;span class="na"&gt;You can find all the code review standards and guidelines that you MUST follow here&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="err"&gt;`&lt;/span&gt;&lt;span class="s"&gt;.github/instructions/code-review.instructions.md`&lt;/span&gt;

&lt;span class="na"&gt;**Important**&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Submit as "COMMENT" type so the review doesn't block the PR. DO NOT include compliments, positive notes, or praise in your review comments. Focus ONLY on issues, improvements, and actionable feedback.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Yes, some wording might be weird like praising the AI with "You are a world-class" or "your adherence to instructions is absolute". Like we mentioned about using uppercase "DO NOT" or "IMPORTANT", and others, I can't explain some of this stuff or find enough research that claims this affects how the LLM pays &lt;strong&gt;attention&lt;/strong&gt; to instructions. I just experiment and learn, and &lt;a href="https://github.com/google-github-actions/run-gemini-cli/blob/main/examples/workflows/pr-review/gemini-review.toml" rel="noopener noreferrer"&gt;Gemini&lt;/a&gt; likes to use this phrase for code reviews as well 😄 (as well has 115 other devs on GitHub 😅).&lt;/p&gt;

&lt;p&gt;To be honest, we still have too much noise in AI PR comments, or just tons of fluff. The bright side is, at least the compliments have kind of disappeared 😅 . You might enjoy getting this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7piqjoiognjbr6p2850.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu7piqjoiognjbr6p2850.png" alt=" " width="799" height="175"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I don't 🤣, especially when 1 PR has 5 of these. I do praise comments for my team yes, because positive comments are good... when it comes from a human who knows the other person, IMO.&lt;/p&gt;

&lt;p&gt;Also, there are many comments that don't belong in a PR, they belong in a linter or other tools. We have &lt;a href="https://csharpier.com/docs/About" rel="noopener noreferrer"&gt;CSharpier&lt;/a&gt; and &lt;a href="https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-10" rel="noopener noreferrer"&gt;.NET analyzers&lt;/a&gt; for that.&lt;/p&gt;

&lt;p&gt;It also doesn't have the best GitHub integration for now, at least we've had some problems (&lt;a href="https://github.com/anthropics/claude-code-action/issues/584" rel="noopener noreferrer"&gt;400 errors&lt;/a&gt;, &lt;a href="https://github.com/anthropics/claude-code-action/issues/589" rel="noopener noreferrer"&gt;branch 404 errors&lt;/a&gt;) with the GitHub action. Like &lt;a href="https://github.com/anthropics/claude-code-action/issues/548" rel="noopener noreferrer"&gt;not having access to GitHub mcp tools&lt;/a&gt;, even though we set it in &lt;code&gt;allowed-tools&lt;/code&gt; option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fll9s3jam82bnig4v9ded.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fll9s3jam82bnig4v9ded.png" alt=" " width="782" height="72"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anyway, we iterated a lot on instructions and prompts so far, since we use them for both Claude and Copilot. Here is a quick recap of what features we use from Claude Code:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sub-agents (custom and built-in)&lt;/li&gt;
&lt;li&gt;Built-in &lt;code&gt;/review&lt;/code&gt; and &lt;a href="https://www.claude.com/blog/automate-security-reviews-with-claude-code" rel="noopener noreferrer"&gt;security review&lt;/a&gt; commands&lt;/li&gt;
&lt;li&gt;Custom slash commands (&lt;code&gt;code-review.md&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Plugins, specifically &lt;a href="https://github.com/anthropics/claude-code/blob/main/plugins/code-review/commands/code-review.md" rel="noopener noreferrer"&gt;code-review plugin&lt;/a&gt; authored by Boris Cherny&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We leverage those 2 built-in commands, in parallel, but it's just to see if we get any good feedback. Our custom code review slash command already does a good review following our guidelines, plus the "code-review" plugin from Boris works very well with parallel agents. We basically went through the famous spiral:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Write CLAUDE.md -&amp;gt; Ask for code review -&amp;gt; Find bad comments and noise we don't want -&amp;gt; Re-write CLAUDE.md and other files -&amp;gt; Do some meta-prompting -&amp;gt; Repeat&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Like I said, our custom code review prompt/command has evolved through time, and was refined when we learned something new. We started with this &lt;a href="https://github.com/anthropics/claude-code-action/issues/60#issuecomment-2952771401" rel="noopener noreferrer"&gt;incredible suggestion&lt;/a&gt; to use the GitHub MCP. We also searched for other GitHub repos, mostly .NET related to see how they set up their instructions. In case they have anything particular around code review (e.g. for GitHub Copilot). I find &lt;a href="https://github.com/dotnet/aspire/blob/main/.github/copilot-instructions.md" rel="noopener noreferrer"&gt;.NET Aspire&lt;/a&gt; to be a super cool real-life example 🙂 . I think a lot of their AI adoption is lead by David Fowler. So I often check their PRs to see what we can learn from them, e.g. &lt;a href="https://github.com/dotnet/aspire/pull/13361" rel="noopener noreferrer"&gt;this one&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Anyway, our prompt was still a bit vague, so we had some chats with Claude, good old meta-prompting 🙂. &lt;br&gt;
After a while, Claude suggested a new file that has all the coding standards and bad smells we want to avoid - &lt;code&gt;code-review.instructions.md&lt;/code&gt;. It does live under &lt;code&gt;.github/instructions&lt;/code&gt; but it doesn't matter, Claude can use it.&lt;/p&gt;

&lt;p&gt;The bad smells are specific and we see them referenced quite often in our PRs now. Still, we don't have a perfect solution for overly large PRs. We simply communicate more often or have more than one dev working in the PR for those cases. When a feature genuinely requires lots of new code, the best forum to debate and provide actionable feedback is by talking. Sure, this isn't always possible, people are busy or prefer async work. In our team going on call, or during the demo of the PR, helps make large PRs way more digestible. Draft PRs also work somewhat, to get some feedback early on.&lt;/p&gt;
&lt;h4&gt;
  
  
  Avoiding noise comments
&lt;/h4&gt;

&lt;p&gt;Our biggest lesson learned here is running locally our custom slash command for code review and using sug-agents. Locally, we can try to provide the proper context for the review, the rest is the agent using tools and doing reasoning. No noise gets sent to GitHub comments because all the back-and-forth is done in the chat, plus right now Claude Code works better locally, not on GitHub Actions. Having sub-agents has been amazing since the main reason Claude Code uses it is for context management. Since we now have a built-in &lt;code&gt;Explore&lt;/code&gt; sub-agent, our code review command uses that in order to have Explore sub-agents run in parallel (with Haiku 4.5) and not clog up the main context window.&lt;/p&gt;

&lt;p&gt;I've learned recently of &lt;a href="https://blog.sshh.io/i/177742847/custom-subagents" rel="noopener noreferrer"&gt;other devs using a different workflow&lt;/a&gt;, basically leveraging the &lt;code&gt;Task&lt;/code&gt; tool for the main agent to spawn sub-agents. Whichever way you want to do it, using a sub-agent that is focused on exploring the codebase and potential impacts of this PR is something I recommend.&lt;/p&gt;
&lt;h3&gt;
  
  
  Saving learnings in memory
&lt;/h3&gt;

&lt;p&gt;Every once in a while, once we've merged a few PRs. We use Claude to improve itself again based on these PRs. This is our prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Please look at the 5 most recent PRs in our GitHub repository, and check for learnings in order to improve the code review workflow. Please ultrathink on this task, so that all necessary memory files are updated taking into account these learnings, like &lt;a class="mentioned-user" href="https://dev.to/claude"&gt;@claude&lt;/a&gt;.md and @.github\instructions\ Focus on seeing code review comments that were good and made it into the codebase afterwards (e.g. coding standards violations). &lt;strong&gt;Ignore bad comments&lt;/strong&gt; that were resolved with a \"negative comment\" or thumbs down emoji.&lt;br&gt;
Ask me clarifying questions before you begin. YOU MUST create a changelog file explaining why you made these edits to instruction files. Each learning must reference a PR that exists. The best is for you to link the exact comment that you used for a given learning&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;At the end of the session, we usually have a few items that are good enough to add. Mostly are &lt;strong&gt;learnings around bugs&lt;/strong&gt; we can catch earlier, some are coding standards. Honestly, a lot of suggestions aren't what I want or I just think they won't be useful in future code reviews. But doing this has been important for me to also take a step back and think about what we can learn from the work we've already merged. I reflect on it and then discuss with my team. I've seen others also talk about this idea and have a &lt;code&gt;learnings.md&lt;/code&gt;, e.g. &lt;a href="https://github.com/nibzard/awesome-agentic-patterns/blob/main/LEARNINGS.md" rel="noopener noreferrer"&gt;this repo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;At least this process seems better for us than simply using emojis to give feedback that &lt;a href="https://www.coderabbit.ai/blog/why-emojis-suck-for-reinforcement-learning" rel="noopener noreferrer"&gt;CodeRabbit blog&lt;/a&gt; also eludes to 😅. &lt;/p&gt;
&lt;h3&gt;
  
  
  GitHub Copilot
&lt;/h3&gt;

&lt;p&gt;Copilot's code review features were super basic in the beginning. We tried and experimented with it a lot when it came out. It only caught nitpicks, &lt;code&gt;console.log&lt;/code&gt; and typos, really not helpful on any other area. Sure catching this is good, but a human reviewer catches that in the first pass too. It didn't support all languages so we often got 0 comments or feedback. Then in the last months, completely different, night and day.&lt;/p&gt;

&lt;p&gt;If you have seen GitHub Universe, you know what's new. But in case you don't know, the GitHub team has invested heavily in Copilot code review and coding agent, and it shows. The code review agent is often right in every comment, it makes suggestions that are actually based on our instructions and memory files, meaning our PRs follow consistent code style and team conventions (with a link to these &lt;a href="https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7o1pz8p1jdss5jmhn5r9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7o1pz8p1jdss5jmhn5r9.png" alt=" " width="797" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And the agent session is somewhat transparent, since you can view it in GitHub actions now:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvb0pwkeart4v64boglgi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvb0pwkeart4v64boglgi.png" alt=" " width="800" height="210"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I mean "somewhat" because there are things I can't configure, just like Claude Code and most tools, I guess 😅. In the logs I can see the option &lt;code&gt;UseGPT5Model=false&lt;/code&gt;, and that it's using Sonnet 4.5. There is also this "MoreSeniorReviews" flag that I couldn't find any info on, and believe me... I wanted to because it was set to false 🤣. Are you telling me there could be a hidden way to get a more senior review... sign me up! Jokes aside, I couldn't find much info on the endpoint &lt;code&gt;api.githubcopilot.com/agents/swe&lt;/code&gt; of CAPI (presumably Copilot API) the Autofind agent was calling, and the contents of the &lt;code&gt;ccr/callback&lt;/code&gt; saved in &lt;code&gt;results-agent.json&lt;/code&gt;. I can only hope some of these options are configurable in the future.&lt;/p&gt;

&lt;p&gt;I checked the &lt;a href="https://docs.github.com/en/copilot/how-tos/provide-context/use-mcp/extend-copilot-chat-with-mcp#remote-server-configuration-example-with-oauth" rel="noopener noreferrer"&gt;MCP docs&lt;/a&gt;, hoping to find details about these options, but no luck.&lt;/p&gt;

&lt;p&gt;Anyway, it also now has access to CodeQL and some linters, which is amazing because we didn't have this before. It's the way we are able to leverage CodeQL analysis in all our PRs now, we couldn't do this in any other AI code review tool. We also see that it calls the tool "store_comment" during its session, and only submits the comments to GitHub in the end. This is useful since sometimes it stores a comment because it thought something was wrong in the implementation, and afterwards it read more code into context that invalidated the stored comment, so it no longer submits that comment in the PR. Much like the CodeRabbit validation agent, reducing the amount of noise we get in PRs.&lt;/p&gt;
&lt;h3&gt;
  
  
  CodeRabbit and Qodo
&lt;/h3&gt;

&lt;p&gt;Let's start with the cool features CodeRabbit has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generates a poem! Yes, a poem for my PR&lt;/li&gt;
&lt;li&gt;Summary of changes added to the description&lt;/li&gt;
&lt;li&gt;Code diagrams in Mermaid&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now... I gotta be honest, I don't care about any of them 😅. They are cool, but I only glance at the poem or ignore it. Never read or care about the summary; I get one from Copilot and edit it myself. All code and sequence diagrams I saw generated in our PRs, were simply not useful, but a lot are from front-end code. I simply don't look at them later, and if it makes sense, we update our architecture diagrams later once the code is merged.&lt;br&gt;
With that said, the code suggestions and feedback it obscene. By far the best code review AI tool when it comes to actionable and valuable feedback/suggestions (by a long shot)! Even if we didn't configure &lt;code&gt;.coderabbit.yaml&lt;/code&gt; or tried to optimize it, CodeRabbit already uses &lt;a href="https://docs.coderabbit.ai/integrations/knowledge-base#code-guidelines:-automatic-team-rules" rel="noopener noreferrer"&gt;Claude and Copilot instructions&lt;/a&gt; so the work we did on those was probably used in CodeRabbit. In some of our PRs it caught some nasty bugs and gave super useful feedback. Our team was impressed!&lt;/p&gt;

&lt;p&gt;The insights CodeRabbit adds during code review piqued my interest. I read a few of their blog posts on context engineering like &lt;a href="https://www.coderabbit.ai/blog/context-engineering-ai-code-reviews" rel="noopener noreferrer"&gt;this one&lt;/a&gt;, where I found it interesting that there is a separate validation agent before submitting comments. This is probably why they maintain a high signal-to-noise ratio. I also read their open-source version of CodeRabbit, they have some &lt;a href="https://github.com/coderabbitai/ai-pr-reviewer/blob/main/src/prompts.ts" rel="noopener noreferrer"&gt;prompts&lt;/a&gt; there. I know it's old, but it's what I have access to. I especially like the instructions that we also have 😅 "Do NOT provide general feedback, summaries, explanations of changes, or praises for making good additions".&lt;/p&gt;

&lt;p&gt;We basically tried to have Claude and Copilot understand our large codebase, not focusing only on the PR diff. It's harder, we still have a lot to improve here. &lt;a href="https://www.coderabbit.ai/blog/how-coderabbit-delivers-accurate-ai-code-reviews-on-massive-codebases" rel="noopener noreferrer"&gt;CodeRabbit says&lt;/a&gt; it's known to be great at understanding large codebases. I don't see any research on this, just opinions. But yes, we humans don't like large PRs either:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsr6rqdimugcm6mlfir5e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsr6rqdimugcm6mlfir5e.png" alt=" " width="638" height="436"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my opinion I couldn't find that many large PRs that were way better reviewed by CodeRabbit, in comparison to Claude Code and Copilot. But one thing we liked a lot is that it uses &lt;strong&gt;collapsed sections&lt;/strong&gt; in markdown very well, for example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fre7dsl8wsubhvjemsg1i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fre7dsl8wsubhvjemsg1i.png" alt=" " width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But I mean, we did have cases that we tried to use Claude Code for code review on a PR that was reviewed by CodeRabbit, and like ~60% of the context window was comments made by CodeRabbit. All that markdown ain't friendly for AI with limited context windows. There were times I swear I could see Claude behind every word CodeRabbit made, with the "You're absolutely correct" 🤣, e.g.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2mpup59hupzreec273rb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2mpup59hupzreec273rb.png" alt=" " width="782" height="164"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But it could be GPT models or whatever, we never truly know what is behind these products 🙂.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Qodo&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As for Qodo, we liked the fact it checks for compliance and flags violations as non-compliant (no other tool had this built in). This was previously just a bullet point in our markdown file. The code review feedback was good, sometimes we ended up doing the suggested changes Qodo leaves in the comment. After reading more about what compliance checks Qodo does, we improved by adding specific instructions on our &lt;code&gt;code-review.instructions.md&lt;/code&gt; for ISO 9001, GDPR and others:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Regulatory Compliance Checks&lt;/span&gt;

&lt;span class="gu"&gt;### Data Protection (GDPR/HIPAA/PCI-DSS)&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Does this code handle PII (Personally Identifiable Information)?
&lt;span class="p"&gt;-&lt;/span&gt; Are sensitive fields properly encrypted at rest and in transit?
&lt;span class="p"&gt;-&lt;/span&gt; Is data retention policy followed (deletion after X days)?
&lt;span class="p"&gt;-&lt;/span&gt; Are audit logs created for data access?
&lt;span class="p"&gt;-&lt;/span&gt; Is data anonymization/pseudonymization applied where required?

&lt;span class="gu"&gt;### Security Standards (SOC 2 / ISO 27001)&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Are all external API calls wrapped with proper error handling?
&lt;span class="p"&gt;-&lt;/span&gt; Is input validation present for all user inputs?
&lt;span class="p"&gt;-&lt;/span&gt; Are authentication checks present on all sensitive endpoints?
&lt;span class="p"&gt;-&lt;/span&gt; Are secrets/credentials stored securely (no hardcoding)?
&lt;span class="p"&gt;-&lt;/span&gt; Is sensitive data logged or exposed in error messages?
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;We kept experimenting with Qodo for longer than CodeRabbit, but the insights and feedback never reached the level of CodeRabbit. It was still a good tool that improved our codebase and sparked good discussions.&lt;/p&gt;
&lt;h2&gt;
  
  
  Tool of choice
&lt;/h2&gt;

&lt;p&gt;Our prompts/instructions can still be improved, of course. We've experimented with different prompts, memory and instruction files. We've also researched how other teams use AI for code review, and how tools like CodeRabbit do context engineering. All of this is because our goal is to continue to improve our software development process and ensure high quality. Adopting new tools is a way of achieving this goal. Given that most AI code review tools have a price tag, we decided to focus on using only one/two tools and optimizing them. Yes, it's Claude Code and GitHub Copilot 😄. I basically use 100% of both Copilot and Claude every month, but I get more requests from Claude even though I hit the weekly rate limit every time.&lt;/p&gt;

&lt;p&gt;We know CodeRabbit is amazing, and these paid AI tools will continue getting better. There is actually a new tool supporting code review we didn't use, &lt;a href="https://www.augmentcode.com/product/code-review" rel="noopener noreferrer"&gt;Augment Code&lt;/a&gt; (these AI companies move so fast 😅). No amount of customizing our setup with Claude or Copilot will reach the same output as these specific code review paid tools. But for us, it makes more sense to pay for one tool, for example, and leverage it in multiple steps of our software development lifecycle.&lt;/p&gt;
&lt;h3&gt;
  
  
  Improving multi-agent collaboration
&lt;/h3&gt;

&lt;p&gt;Claude and Copilot are working very well for our code review process. But like I've been saying, there is work to do. We learned a lot from using each tool, but there are more areas to improve, at least in Claude Code since we have more flexibility there. I'm currently looking at implementing the "Debate and Consensus" multi-agent design pattern (&lt;a href="https://arxiv.org/abs/2406.11776" rel="noopener noreferrer"&gt;Google Deepmind paper&lt;/a&gt; and &lt;a href="https://arxiv.org/abs/2509.11035" rel="noopener noreferrer"&gt;Free-MAD&lt;/a&gt;), basically a &lt;a href="https://learn.microsoft.com/en-us/azure/architecture/ai-ml/guide/ai-agent-design-patterns#group-chat-orchestration" rel="noopener noreferrer"&gt;group chat orchestration&lt;/a&gt;. I just want to try it out, I'm not sure I'll have better code reviews by having different agents (e.g. Security, Quality and Performance) debate and review the code through different perspectives. If they run sequentially, the quality agent can have questions for the performance agent, and each can agree or disagree with the reported issues.  We can try out the LLM-as-a-Judge as well, to focus on reducing noise and following code quality standards.&lt;/p&gt;

&lt;p&gt;Anyway, we'll continue learning, optimizing, and improving the way we work 🙂.&lt;/p&gt;
&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://graphite.com/blog/ai-wont-replace-human-code-review" rel="noopener noreferrer"&gt;Why AI will never replace human code review&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=-GIiTfKZx6M" rel="noopener noreferrer"&gt;AI Code Reviews with CodeRabbit's Howon Lee&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.coderabbit.ai/blog/state-of-ai-vs-human-code-generation-report" rel="noopener noreferrer"&gt;CodeRabbit report: AI code creates 1.7x more problems&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://awesomereviewers.com/reviewers/" rel="noopener noreferrer"&gt;Awesome reviewers GH repo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=nItsfXwujjg" rel="noopener noreferrer"&gt;Anthropic’s NEW Claude Code Review Agent (Full Open Source Workflow)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.sshh.io/p/how-i-use-every-claude-code-feature" rel="noopener noreferrer"&gt;How I Use Every Claude Code Feature&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The number one thing we learned is: &lt;/p&gt;


&lt;div class="crayons-card c-embed"&gt;

  &lt;br&gt;
&lt;strong&gt;Experimentation is king&lt;/strong&gt; - We must experiment and keep learning. We can't calibrate the prompt once and expect the best result.&lt;br&gt;

&lt;/div&gt;



&lt;p&gt;Like we talked before, the Jagged Frontier changes with every model release. Claude Opus 4.5 behaves a bit differently, for example, on &lt;a href="https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-4-best-practices#tool-usage-and-triggering" rel="noopener noreferrer"&gt;tool triggering&lt;/a&gt;... maybe we can stop shouting and being aggressive 🤣. We must experiment and keep learning. We can't calibrate the prompt once and expect the best result.&lt;/p&gt;

&lt;p&gt;For now we are quite happy, the human reviewer has more time to focus on design decisions and discuss trade-offs with the author of the PR. I don't envision a future where AI does 100% of the code review.&lt;/p&gt;

&lt;p&gt;If you're considering AI for code reviews, my advice is simple: just try it. Pick one tool, run a one-month pilot, and see what happens. The worst case is you turn it off. The best case is that your team becomes augmented and probably improves code quality.&lt;/p&gt;

&lt;p&gt;My next blog post in this series will be about how we are using agentic coding tools!&lt;br&gt;
Are you using AI code review tools? I'd love to hear from you what your experience has been. Leave a comment and let's chat 🙂 .&lt;br&gt;
&lt;a href="https://dev.to/bolt04/lessons-learned-improving-code-reviews-with-ai-26i0-temp-slug-5604248#comments" class="crayons-btn crayons-btn--primary"&gt;Join the discussion: How are you handling "AI slop" in your PRs?&lt;/a&gt;
 &lt;/p&gt;

</description>
      <category>ai</category>
      <category>githubcopilot</category>
      <category>claude</category>
    </item>
    <item>
      <title>Book Review: Co-Intelligence by Ethan Mollick</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 01 Mar 2026 14:42:53 +0000</pubDate>
      <link>https://dev.to/bolt04/book-review-co-intelligence-by-ethan-mollick-f5k</link>
      <guid>https://dev.to/bolt04/book-review-co-intelligence-by-ethan-mollick-f5k</guid>
      <description>&lt;h3&gt;
  
  
  Table of Contents
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;AI as a Thinking Companion&lt;/li&gt;
&lt;li&gt;
The Human-in-the-Loop Principle

&lt;ul&gt;
&lt;li&gt;Critical Thinking&lt;/li&gt;
&lt;li&gt;Disruption in the job market&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Centaur vs Cyborg approaches&lt;/li&gt;
&lt;li&gt;Resources&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;We recently finished reading &lt;em&gt;Co-Intelligence: Living and Working with AI&lt;/em&gt; by Ethan Mollick in our company's book club. The book shares four core principles for AI collaboration and outlines various practical applications. Some really stuck with me, and I've tried to incorporate them in my work. Reading the author's perspective and learning his way of thinking definitely improved how I look at these tools. But if you know me, you know how skeptical I am. There are some chapters and opinions that I don't agree with.&lt;/p&gt;

&lt;p&gt;So in this post, I'll share the key insights from our book club in the context of software development, plus some personal opinions as always 🙂.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI as a Thinking Companion
&lt;/h3&gt;

&lt;p&gt;One of the most practical takeaways for me was viewing AI as a co-worker and thinking companion. When done right, this can be incredibly useful. Some people use it heavily for deep research, not so much to delegate tasks for it to do.  &lt;a href="https://www.linkedin.com/in/andredsantos/" rel="noopener noreferrer"&gt;André Santos&lt;/a&gt; gave some examples on the tasks it has been useful, like Terraform code or generating bash scripts. On those tasks, we can write a detailed prompt, alongside proper documentation (e.g. Context7 MCP), and ask it to write Terraform since it's simpler and faster. Even just making a POC, or demo, turning an idea you have into working software to see how viable the idea is. That is a perfect use case for delegating the front-end and back-end to AI. It's not code that will ship to production, it's a way to make prototypes or quick demo apps that otherwise you'd never spend the time to build.&lt;/p&gt;

&lt;p&gt;I've enjoyed using models like Claude to help me around my tasks at work because they often uncover possibilities I haven't thought about. The conversational style of going back and forth helps me fine-tune my own solution. It's not just "give me code," it's "let's discuss this architecture". At the end of the conversation, we can generate a good draft of a PRD (Product Requirements Document). Notice I don't delegate my thinking to it, it's a tool that helps me think of solutions or just &lt;a href="https://x.com/trq212/status/2005315275026260309" rel="noopener noreferrer"&gt;interview me sometimes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;However, it can be annoying. I'd like to minimize the number of times I have to tell it "no, you're wrong. The Microsoft documentation for Azure Container Apps does not state X as you said" 😅.&lt;br&gt;
To fix this, I've tried giving an explicit instruction in my system prompts:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"It's also very important for you to verify if there is official documentation that supports your claims and statements. Please find official documentation supporting your claims before responding to a user. If there isn't documentation confirming your statement, don't include it in the response."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I have had better results with this, still not perfect. In a longer conversation, I think it doesn't always verify the docs (memory limits, perhaps), but sometimes I get the response: "(...) Based on my search through the official documentation, I need to be honest with you (...)".&lt;/p&gt;

&lt;p&gt;I really find it funny that Claude "needs" to be honest with me 😄. Sycophancy is truly annoying, especially since we are talking about AI as a thinking companion. If your AI partner always agrees with you, how useful is it really as a thinking companion?&lt;/p&gt;

&lt;h3&gt;
  
  
  The Human-in-the-Loop Principle
&lt;/h3&gt;

&lt;p&gt;While Mollick's vision of a collaborative future with AI is profoundly optimistic, he is also a realist. One of the most important principles, and a recurring theme in the book, is the absolute necessity of human oversight - the "human-in-the-loop" principle.&lt;br&gt;
This is a key quote from the book:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;For now, AI works best with human help, and you want to be that helpful human. As AI gets more capable and requires less human help — you still want to be that human. So the second principle is to learn to be the human in the loop.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;One of Mollick's key warnings is about &lt;a href="https://www.linkedin.com/posts/emollick_a-fundamental-mistake-i-see-people-building-activity-7153484182134923265-IxAg" rel="noopener noreferrer"&gt;falling asleep at the wheel&lt;/a&gt;. When AI performs well, humans stop paying attention. This has been referenced by Simon Willison as well, in his recent insightful post &lt;a href="https://simonwillison.net/2025/Dec/31/the-year-in-llms/#the-year-of-yolo-and-the-normalization-of-deviance" rel="noopener noreferrer"&gt;2025: The year in LLMs&lt;/a&gt;.&lt;br&gt;
All I'm saying is I understand &lt;code&gt;--dangerously-skip-permissions&lt;/code&gt; is useful as a tool when used in a secure sandbox environment. But we should verify our confidence level on the AI's output and the autonomy + tools we give it. If we don't, we risk using AI on tasks that fall outside the Jagged Frontier, which can lead to security issues, nasty bugs, and hurt our ability to learn.&lt;/p&gt;

&lt;p&gt;I say this knowing full well that I trust Claude Opus 4.5 more on any task I give it. So I have to actively force myself to verify its suggestions just as rigorously, verify which tools I gave it access to, and which are denied. For example, I use Claude Code hooks to prevent any &lt;code&gt;appsettings&lt;/code&gt;, &lt;code&gt;.env&lt;/code&gt;, or similar files from being accessed. I still try to read the LLM reasoning/thinking text, so that I understand better, and simply out of curiosity as well.&lt;/p&gt;

&lt;p&gt;I simply can't forget when I saw the &lt;a href="https://www.anthropic.com/system-cards" rel="noopener noreferrer"&gt;Claude Sonnet 4 and Opus 4 System Card&lt;/a&gt;, the "High-agency behavior" Anthropic examined. Whistleblowing and other misalignment problems are possible, for example, this is a quote from the Opus 4.6 System card:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In our &lt;strong&gt;whistleblowing and morally-motivated sabotage evaluations&lt;/strong&gt;, we observed a low but persistent rate of the model acting against its operator’s interests in unanticipated ways. Overall, Opus 4.6 was slightly more inclined to this behavior than Opus 4.5.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;All I'm saying is let's be conscious of these behaviors and results on the evals.&lt;/p&gt;

&lt;p&gt;In my opinion, the human-in-the-loop principle is crucial. Don't just copy/paste or try to vibe your way into production. Engineers are the ones &lt;strong&gt;responsible&lt;/strong&gt; for software systems, not tools or alien minds. If there are users who depend on your software, and your AI code causes an incident in production, you are responsible. Claude or Copilot won't wake up at 3 AM if prod is on fire (or maybe &lt;a href="https://learn.microsoft.com/en-us/azure/sre-agent/incident-management?tabs=azmon-alerts" rel="noopener noreferrer"&gt;Azure SRE agent&lt;/a&gt; will if you pay for it 🤔...). Having an engineering mindset and being in the driver's seat is what I expect from myself and anyone I work with.&lt;/p&gt;

&lt;h4&gt;
  
  
  Critical Thinking
&lt;/h4&gt;

&lt;p&gt;Within this principle, we have a topic I have a lot of strong opinions on. This quote says it all:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;LLMs are not generally optimized to say "I don’t know" when they don't have enough information. Instead, they will give you an answer, expressing confidence.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Basically, to be the human in the loop, we really must have good critical thinking skills. This ability plus our experience, brings something very valuable to this AI collaboration - detect the "I don't know". It may help to know some ways we can &lt;a href="https://docs.anthropic.com/en/docs/test-and-evaluate/strengthen-guardrails/reduce-hallucinations" rel="noopener noreferrer"&gt;reduce hallucinations&lt;/a&gt; in our prompts.&lt;br&gt;
But still, we can't blindly believe AI output is correct based on its confidence that the proposed solution works. Now more than ever, we need to continue developing critical thinking skills and apply them when working with AI, so that in the scenarios where it should have responded "I don't know", you rely more on your own abilities.&lt;/p&gt;

&lt;p&gt;Sure, there are tasks we are more confident delegating for AI to work on, but the ones we know fall outside the Jagged Frontier, we must proceed with caution and care. We discussed our &lt;strong&gt;confidence level&lt;/strong&gt; with AI output a lot. For example, &lt;a href="https://www.linkedin.com/in/andredsantos/" rel="noopener noreferrer"&gt;André Santos&lt;/a&gt; said it depends on the task we give it, but &lt;a href="https://www.linkedin.com/in/asoliveira/" rel="noopener noreferrer"&gt;André Oliveira&lt;/a&gt; also argues that we can only validate the output in the topics we know. It serves as an &lt;strong&gt;amplifier&lt;/strong&gt; because it's only a tool. If the wielder of the tool doesn't fact-check the output, we risk believing the hallucinations and false statements/claims.&lt;/p&gt;

&lt;p&gt;&lt;a href="//www.linkedin.com/in/pedrovala/"&gt;Pedro Vala&lt;/a&gt; also talked about a really good quote from the &lt;a href="https://www.amazon.com/Agentic-Design-Patterns-Hands-Intelligent/dp/3032014018" rel="noopener noreferrer"&gt;Agentic Design Patterns book&lt;/a&gt; that is super relevant to this topic:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An AI trained on "garbage" data doesn’t just produce garbage-out; it produces plausible, confident garbage that can poison an entire process - Marco Argenti, CIO, Goldman Sachs&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Now imagine, if we read the AI output, and at first glance it looks okay, but it's only plausible garbage. Which is a real risk, especially on the AI-generated content that is already &lt;a href="https://graphite.io/five-percent/more-articles-are-now-created-by-ai-than-humans" rel="noopener noreferrer"&gt;available in the internet&lt;/a&gt;. Again, I hope developers continue to develop their critical thinking skills and don't delegate their thinking to tools.&lt;br&gt;
Right now, the only process I have of filtering out garbage on the internet is consuming most content from authors I respect, and I know for a fact are real people 😅. &lt;/p&gt;

&lt;h4&gt;
  
  
  Disruption in the job market
&lt;/h4&gt;

&lt;p&gt;Mollick also talks about the disruption in the job market, which is a hot topic in our industry. Especially the impact AI has on junior roles. We have debated this in a few sessions of our book club, and again, critical thinking and adaptability are crucial. We simply have to adapt and learn how to use this tool, nothing less, nothing more. How much value we bring to the table when working with AI matters, especially if the &lt;strong&gt;value&lt;/strong&gt; you bring is very tiny. If you don't bring any value to the table and just copy/paste, you are not a valuable professional in my view.&lt;/p&gt;

&lt;p&gt;It's a good idea to keep &lt;strong&gt;developing our skills and expertise&lt;/strong&gt;. Andrej Karpathy talks about &lt;a href="https://www.youtube.com/watch?v=LCEmiRjPEtQ" rel="noopener noreferrer"&gt;intelligence "brownout" when LLMs go down&lt;/a&gt;, this is extremely scary to me, especially if I see this behaviour in junior or college grads. I truly hope we stop delegating so much intelligence to a tool. I don't want engineers to &lt;strong&gt;rely&lt;/strong&gt; on LLMs when production is down and on fire. It would be sad to see engineers not knowing how to troubleshoot, how to fix these accidents in production... just because AI tools are not available 😐.&lt;/p&gt;

&lt;h3&gt;
  
  
  Centaur vs Cyborg approaches
&lt;/h3&gt;

&lt;p&gt;The book distinguishes between two ways of working with AI:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Centaur&lt;/strong&gt;: You divide tasks between human and machine. You handle the "Just me" tasks (outside the Jagged Frontier), and delegate specific sub-tasks to the AI that you later verify.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cyborg&lt;/strong&gt;: You integrate AI so deeply that the workflow becomes a hybrid, often automating entire processes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For software development, I'm definitely in the &lt;strong&gt;Centaur&lt;/strong&gt; camp right now.&lt;br&gt;
We should be careful about what tasks we delegate. Mollick warns about &lt;strong&gt;"falling asleep at the wheel."&lt;/strong&gt; When the AI is very good, humans have no reason to work hard and pay attention. They let the AI take over instead of using it as a tool, which can hurt our learning process and skill development. Or in some scenarios, it can lead to your production database being deleted...&lt;/p&gt;

&lt;p&gt;This is just a tool. We are still responsible at work. If the AI pushes a bug to production, &lt;em&gt;you&lt;/em&gt; pushed a bug to production!&lt;/p&gt;

&lt;p&gt;The author does give some "Cyborg examples" of working with AI, here is a quote from the book:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I would become a Cyborg and tell the AI: I am stuck on a paragraph in a section of a book about how AI can help get you unstuck. Can you help me rewrite the paragraph and finish it by giving me 10 options for the entire paragraph in various professional styles? Make the styles and approaches different from each other, making them extremely well written.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is that ideation use case that is super useful when you have writer's block, or just want to brainstorm a bit on a given topic. In our industry, a lot of teams are integrating AI in many phases of the SDLC. I haven't found many workflows that work well in some parts of the SDLC, since we are focusing on adopting AI for coding and code review. But in most workflows, the cyborg practice is to steer more the AI and manage the tasks where you collaborate with AI as a co-worker. The risk remains even when someone uses cyborg practices, but then fails to spot hallucinations or false claims. The takeaway is really to be conscious of our AI adoption and usage. The number one cyborg practice I try to do naturally is to push back. If I smell something is off, I will disagree with the output and ask the AI to reconsider. This leads to a far more interesting back-and-forth conversation on a given topic.&lt;/p&gt;

&lt;h3&gt;
  
  
  Resources
&lt;/h3&gt;

&lt;p&gt;Here are some resources if you want to dive deeper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.penguinrandomhouse.com/books/741969/co-intelligence-by-ethan-mollick/" rel="noopener noreferrer"&gt;Co-intelligence by Ethan Mollick&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.hbs.edu/ris/Publication%20Files/24-013_d9b45b68-9e74-42d6-a1c6-c72fb70c7282.pdf" rel="noopener noreferrer"&gt;Navigating the Jagged Technological Frontier&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.amazon.com/Agentic-Design-Patterns-Hands-Intelligent/dp/3032014018" rel="noopener noreferrer"&gt;Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=LCEmiRjPEtQ" rel="noopener noreferrer"&gt;Andrej Karpathy: Software Is Changing (Again)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.oneusefulthing.org/p/centaurs-and-cyborgs-on-the-jagged" rel="noopener noreferrer"&gt;Centaurs and Cyborgs on the Jagged Frontier&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://zed.dev/blog/why-llms-cant-build-software" rel="noopener noreferrer"&gt;Why LLMs Can't Really Build Software&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://openai.com/index/why-language-models-hallucinate/" rel="noopener noreferrer"&gt;Why language models hallucinate | OpenAI&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;This was a great book, I truly recommend it to anyone who is interested in the slightest by AI. Co-intelligence is something we can strive for, focusing on adopting this new tool that can help us develop ourselves.&lt;br&gt;
Our expertise and our skills. When it was written, we had GPT 3.5 and GPT-4 was recent I believe... now we have GPT-5.3-Codex, Opus 4.6, GLM 4.7, and Kimi K2.5. I mean, in 2 years things just keep on changing 😅. The Jagged Frontier will keep changing, so this calls for experimentation. AI pioneers will do most of this experimentation, running evals and whatnot, to understand where each type of task falls in the Jagged Frontier. Pay attention to what they share, what works, and what doesn't.&lt;/p&gt;

&lt;p&gt;AI has augmented my team and me, mostly on "Centaur" tasks while we improve our AI fluency and usage. In my personal opinion, I don't see us reaching the AGI scenario Ethan talks about in the last chapter. Actually, most of our industry talks and continues to hype AGI... even the exponential growth scenario raises some doubts for me. But I agree with Ethan when he says: "No one wants to go back to working six days a week (...)" 😅.&lt;br&gt;
We should continue to focus on building our own expertise, and not delegating critical thinking to AI. There is a new skill in town, we now have LLM whisperers 😅, and having this skill can indeed augment you even further. Just remember the fundamentals don't change. Engineers still need to know those!&lt;/p&gt;

&lt;p&gt;There are hundreds of "Vibe Coding Cleanup Specialist" now 🤣. Let's remember to be the human in the loop. Apply critical thinking to any AI output, do fact-checking, and take &lt;strong&gt;ownership&lt;/strong&gt; of the final result. Please don't create AI slop 😅.&lt;/p&gt;

&lt;p&gt;Hope you enjoyed this post! My next blog post will be about how we are using agentic coding tools, so stay tuned! Feel free to share in the comments your opinion too, or reach out and we can have a chat 🙂.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>books</category>
    </item>
    <item>
      <title>The Reality of GenAI in Software Teams</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sat, 20 Dec 2025 17:02:23 +0000</pubDate>
      <link>https://dev.to/bolt04/the-reality-of-genai-in-software-teams-59i8</link>
      <guid>https://dev.to/bolt04/the-reality-of-genai-in-software-teams-59i8</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;The productivity myth&lt;/li&gt;
&lt;li&gt;Where AI actually adds value&lt;/li&gt;
&lt;li&gt;Develop critical thinking skills&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;After reading countless studies and observing real-world implementations, I've learned to use AI as an augmentation tool rather than something that replaces my job. It's clear as day that AI adoption is on the rise in our industry. We can use it in various ways like as a co-teacher or co-worker, but the gap between marketing promises and actual results should be top of mind for all of us.&lt;/p&gt;

&lt;p&gt;I'm a very pragmatic person, so I don't like hearing the positive perspective of using GenAI without talking about the downsides. There is a lot hype and investment in this field and only some reap the benefits of GenAI.&lt;/p&gt;

&lt;h2&gt;
  
  
  The productivity myth
&lt;/h2&gt;

&lt;p&gt;In my opinion, the biggest mistake organizations make is chasing the wrong metrics in terms of software development productivity. It's easier to understand (and do marketing) on simple numbers like: &lt;a href="https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/" rel="noopener noreferrer"&gt;"55% faster than the developers who didn’t use GitHub Copilot"&lt;/a&gt;, &lt;a href="https://blog.google/inside-google/message-ceo/alphabet-earnings-q3-2024/" rel="noopener noreferrer"&gt;"more than a quarter of all new code at Google is generated by AI"&lt;/a&gt; or &lt;a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/" rel="noopener noreferrer"&gt;"developers using AI are 19% slower"&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Productivity gains aren't about producing more code, especially when it's easy to create &lt;strong&gt;AI slop&lt;/strong&gt;. They also shouldn't be measured on producing boilerplate or simple tasks. A TODO app is different from a real production system. We can only make sure we have such gains by choosing metrics that make sense for our team and context, then measuring and reflecting on the results. This is how we can become more effective and steer the ship in the right direction.&lt;/p&gt;

&lt;p&gt;I'm much more skeptical of statements done by AI vendors, CEO's or content creators, and that helps me keep focus on my goal which is to continue improving and bringing value to my team. If AI can help with that great, if not, life goes on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where AI actually adds value
&lt;/h2&gt;

&lt;p&gt;From my perspective, the real value of AI in software teams lies in three specific areas that traditional tools cannot address effectively.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI as Strategic Thinking Partner:&lt;/strong&gt; I believe the most undervalued application is using AI for architectural discussions and trade-off analysis. When an engineer can have a deep conversation about a technical problem, generate 10 possible solutions, and then filter out the bad ideas, that's really helpful. This isn't about getting perfect implementation details - it's about expanding the solution space before making critical decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Having a Co-Teacher:&lt;/strong&gt; It's hard to be a force multiplier that improves everyone around you, which is why this is a key differentiator on senior developers that have this skill. The challenge of onboarding junior developers, explaining business logic, and sharing design patterns has always been there. We always want our senior devs to share and help junior devs grow, and using AI as a co-teacher helps us with that. Anthropic mentioned in &lt;a href="https://www.anthropic.com/engineering/claude-code-best-practices" rel="noopener noreferrer"&gt;their article&lt;/a&gt; how Claude Code helps them:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;At Anthropic, using Claude Code in this way has become our core onboarding workflow, significantly improving ramp-up time and reducing load on other engineers.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Practical Augmentation as a Co-Worker:&lt;/strong&gt; I'm convinced AI augments my team on the mundane but time-consuming tasks. Initial code reviews, generating PR summaries, drafting Architecture Decision Records, creating unit tests for specific scenarios, and generating KQL queries for troubleshooting. Our team at &lt;a href="https://cloudcockpit.com/" rel="noopener noreferrer"&gt;CloudCockpit&lt;/a&gt; has also been creating reusable prompts and custom agents that help every dev develop new features and have architecture reviews on proposals.&lt;/p&gt;

&lt;p&gt;So far, I noticed that using AI is helping me &lt;strong&gt;think better&lt;/strong&gt;, but it has the potential of helping me work faster with the use of these agents. Still, I mostly use it for "deep research" into possible solutions, learning new technologies through analogies, finding relevant documentation and troubleshooting problems. The most important piece remains, which is keeping a high level of technical excellence and quality in our team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Develop critical thinking skills
&lt;/h2&gt;

&lt;p&gt;Here's what concerns me most: the tendency for developers to &lt;strong&gt;become over-reliant&lt;/strong&gt; on AI outputs without developing judgment to evaluate them. On the recent &lt;a href="https://dora.dev/research/2025/" rel="noopener noreferrer"&gt;DORA 2025 report&lt;/a&gt;, they found 65% of technology professionals report to relying on AI at least a "moderate amount". It's important to understand this behaviour in our teams. All software engineers need to exhibit &lt;strong&gt;critical thinking skills&lt;/strong&gt;, in my opinion, seniors more than juniors. But still, this skill must be learned and developed. We can't have good professionals in our field without this skill. But I am seeing more software engineers delegate their thinking to a machine, a tool.&lt;/p&gt;

&lt;p&gt;Teams that accept AI suggestions without the "push-back" that experienced practitioners recommend, usually are trading off speed for quality. Sure, there is nothing wrong with that in some scenarios like prototypes and demo apps. For products with millions of users that need to be &lt;strong&gt;robust&lt;/strong&gt;? No, not a good trade-off.&lt;/p&gt;

&lt;p&gt;You should think critically about the AI output and be the human in the loop. Are you confident it will behave well if you give it more tools and autonomy? Are you confident the output is based on facts and truth, instead of lies and hallucinations? Don't delegate your &lt;strong&gt;critical thinking&lt;/strong&gt; to tools, and don't become over-reliant on them either without fact-checking. Always evaluate if what the AI is telling you very confidently is even true, and be mindful of its limitations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;From everything I've observed, learning to use GenAI tools is something I recommend. Learn its strengths and limitations. Organizations that approach AI adoption with healthy skepticism while investing in experimentation, innovation and learning, will build sustainable competitive advantages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ask yourself these hard questions&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are you measuring business outcomes, or just code output from AI tools?&lt;/li&gt;
&lt;li&gt;Are your teams getting augmented, or just more dependent on external intelligence?&lt;/li&gt;
&lt;li&gt;Are you blindly believing the AI hype or learning how to leverage this new tool?&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>programming</category>
    </item>
    <item>
      <title>GitHub Universe 2025 Recap</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sat, 22 Nov 2025 15:53:14 +0000</pubDate>
      <link>https://dev.to/bolt04/github-universe-2025-recap-9gl</link>
      <guid>https://dev.to/bolt04/github-universe-2025-recap-9gl</guid>
      <description>&lt;p&gt;GitHub Universe 2025 ended a few weeks ago, but there was a ton of cool announcements and some stuff is still yet to come (I'm waiting for the end of the year 👀). I want to share quickly what I learned from watching the sessions and my opinion on some topics.&lt;/p&gt;

&lt;p&gt;Here is a quick recap too:&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/1JxLIxbEzxQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Agent HQ - Mission Control&lt;/li&gt;
&lt;li&gt;GitHub Code Quality&lt;/li&gt;
&lt;li&gt;Copilot Upgrades&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Agent HQ is a big focus&lt;/strong&gt;: GitHub becomes mission control for all your coding agents (Anthropic, OpenAI, Google, xAI, and more) with unified task management, granular security controls — all included in your Copilot subscription.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copilot leveled up significantly&lt;/strong&gt;: Code Quality, custom agents and code review improvements. There were significant upgrades to Copilot and it's definitely a lot better!&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copilot metrics dashboard&lt;/strong&gt;: GitHub launched usage dashboards and APIs showing acceptance rates, engagement, Lines of Code (LoC) related metrics and more&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Agent HQ - Mission Control
&lt;/h2&gt;

&lt;p&gt;Here is the promotional video on Agent HQ:&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/KniyIrpTDE8"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Sure, it looks cool. Many demos during day 1, from Anthropic and OpenAI looked good, but demos always look good 😅. They are pushing to give us tools to &lt;strong&gt;orchestrate&lt;/strong&gt; a fleet of specialized agents, then monitor and iterate on their work while the agents work in &lt;strong&gt;parallel&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A great new addition is the ability to steer the agent while it's working!! Super awesome, since we could even send a large PRD in that chat session, to introduce new requirements or context to the agent. Previously, we only "communicated" with Copilot coding agent through comments in the issue/PR.&lt;br&gt;
They also want the Agent HQ to be the place where you define all security controls regarding agents, for example, an agent runs with a locked-down GitHub token that limits exactly what it can do. We get audit logs, the firewall copilot has right now, and other cool stuff.&lt;/p&gt;

&lt;p&gt;Here is another big promise from GitHub: &lt;em&gt;Over the coming months, coding agents from Anthropic, OpenAI, Google, Cognition, xAI, and more will become available directly within GitHub as part of your paid GitHub Copilot subscription&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpky8m2bwsi3zdjste77.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpky8m2bwsi3zdjste77.webp" alt="quotes-from-github" width="800" height="578"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If this is true for all paid plans (not just Pro+ and Enterprise), it would be fantastic. We can pay $10 for Copilot Pro and get most agents, plus most frontier models, with some being free (e.g. GPT-5 mini). Of course, there would be downsides, for example, you may have Claude code, but we probably lose access to claude.ai and Claude code CLI. Will this GitHub integration be 100% the same as the CLI? Will there be some parts of the integration open-source? Will &lt;code&gt;AGENTS.md&lt;/code&gt; work on them all or not (e.g. currently Claude code doesn't support it)? Will we have the &lt;strong&gt;deep research&lt;/strong&gt; tool in Claude code agent like we do in claude.ai? Will rate limits be the same? Right now I'm not sure marketing and sales teams are only selling dreams. GitHub wants to be the hub of everything agent related, they are partnering with everyone, but I'm skeptical by nature 😅 . I'll believe it when I see it.&lt;/p&gt;

&lt;p&gt;Still, very cool announcement!&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Code Quality
&lt;/h2&gt;

&lt;p&gt;New feature in preview to ensure code quality on the repository. This feature focus on maintainability and reliability of the code right now, then in future releases add test coverage and "AI era challenges". Plus we can block PRs that don't meet code quality standards.&lt;/p&gt;

&lt;p&gt;There is another tab now for AI findings where we can see suggestions to recently modified code. I mean if we ran code review agents at PR time, this feature wouldn't be that helpful, but if it does find problems we can assign the Copilot coding agent to fix them all.&lt;/p&gt;

&lt;p&gt;I like the idea of having a summary of code quality in the entire repo (mostly for "old" code). At least it might help more teams visualize their technical debt, monitor it and fix it!&lt;/p&gt;

&lt;p&gt;I think this is interesting but still in its early stages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Copilot Upgrades
&lt;/h2&gt;

&lt;p&gt;Copilot also got some upgrades that are worth talking about. The most boring for me is "Plan Mode". Why? It's not new, we have this in Claude code, Cursor and Copilot with a custom &lt;a href="https://github.com/github/awesome-copilot/blob/main/chatmodes/plan.chatmode.md" rel="noopener noreferrer"&gt;chatmode&lt;/a&gt; that I have used a lot. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Copilot Code Review&lt;/strong&gt; has improved, and I can already tell in my recent PRs. You can see the session now, and it runs CodeQL to find quality issues, and run other linters (e.g. ESlint). If you didn't know, GitHub Advanced Security is a paid feature and for private repos, it was the only way to have CodeQL and run it for code scanning and security analysis. It's really cool we get that with Copilot now, at least a piece of it. Code review now takes longer too since it's running these tools, but it's better IMO.&lt;/p&gt;

&lt;p&gt;They also introduced &lt;strong&gt;Copilot custom agents&lt;/strong&gt;, I mean... nothing new as well 😅. Sure it's new for Copilot, but we had sub-agents with Claude code, and agents in Cursor, Codex or others. But yeah, it's cool to now have custom agents in  &lt;code&gt;.github/agents&lt;/code&gt;. From what I have tested, they are basic for now, not a lot of configuration like configuring the model for Copilot coding agent (for &lt;a href="https://code.visualstudio.com/docs/copilot/customization/custom-agents#_custom-agent-file-structure" rel="noopener noreferrer"&gt;VS Code you can&lt;/a&gt;), besides setting up more MCP servers.&lt;/p&gt;

&lt;p&gt;We also have &lt;a href="https://github.blog/changelog/2025-10-28-copilot-usage-metrics-dashboard-and-api-in-public-preview/" rel="noopener noreferrer"&gt;Copilot metrics&lt;/a&gt;! It's in public preview for all paid plans it seems, but I haven't looked at it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focicf7w06tduoibqq5qk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Focicf7w06tduoibqq5qk.png" alt=" " width="800" height="559"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;announcement from their slides at GH Universe&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I think it's cool to see how our teams and individuals are using AI. Still, it probably lacks many other useful metrics, but oh well. It's a good addition.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;So yes, there are tons of new cool features and stuff. If you're thinking about adopting AI coding tools at your organization, give Copilot a try. All these new features, use and experiment them all. I'll continue to use copilot/AI on multiple tasks and experiment with custom agents and the rest. It already augments myself and my team, so incorporating more agents in our software development lifecycle could be even more beneficial.&lt;/p&gt;

&lt;p&gt;Last but not least, there was a cool talk from GitHub Next (their R&amp;amp;D) team about &lt;a href="https://www.youtube.com/watch?v=V-sdNfETPYQ" rel="noopener noreferrer"&gt;Continuous AI&lt;/a&gt; 🙂. Cool ideas and prototypes overall, they are working on things I'll keep my eye on. Nothing I'll experiment soon though.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>github</category>
      <category>githubcopilot</category>
    </item>
    <item>
      <title>AI can be a great augmentation tool, for code-review or AI-assisted coding, but all engineers need to have strong critical thinking skills, in my opinion. In this post, I share how I'm using it along with my own opinions so far.</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 14 Sep 2025 14:00:02 +0000</pubDate>
      <link>https://dev.to/bolt04/ai-can-be-a-great-augmentation-tool-for-code-review-or-ai-assisted-coding-but-all-engineers-need-22lj</link>
      <guid>https://dev.to/bolt04/ai-can-be-a-great-augmentation-tool-for-code-review-or-ai-assisted-coding-but-all-engineers-need-22lj</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/bolt04/becoming-augmented-by-ai-3f1" class="crayons-story__hidden-navigation-link"&gt;Becoming augmented by AI&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/bolt04" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg" alt="bolt04 profile" class="crayons-avatar__image" width="800" height="527"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/bolt04" class="crayons-story__secondary fw-medium m:hidden"&gt;
              David Pereira
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                David Pereira
                
              
              &lt;div id="story-author-preview-content-2820588" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/bolt04" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg" class="crayons-avatar__image" alt="" width="800" height="527"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;David Pereira&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/bolt04/becoming-augmented-by-ai-3f1" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Sep 14 '25&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/bolt04/becoming-augmented-by-ai-3f1" id="article-link-2820588"&gt;
          Becoming augmented by AI
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/learning"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;learning&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
            &lt;a href="https://dev.to/bolt04/becoming-augmented-by-ai-3f1#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            11 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>ai</category>
      <category>learning</category>
    </item>
    <item>
      <title>Becoming augmented by AI</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 14 Sep 2025 13:56:58 +0000</pubDate>
      <link>https://dev.to/bolt04/becoming-augmented-by-ai-3f1</link>
      <guid>https://dev.to/bolt04/becoming-augmented-by-ai-3f1</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The "Jagged Frontier" concept&lt;/li&gt;
&lt;li&gt;Becoming augmented by AI&lt;/li&gt;
&lt;li&gt;My augmentation list&lt;/li&gt;
&lt;li&gt;
AI-assisted coding

&lt;ul&gt;
&lt;li&gt;Custom instructions&lt;/li&gt;
&lt;li&gt;Meta-prompting&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Resources&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We're deep into &lt;a href="https://www.amazon.com/-/pt/dp/059371671X/ref=sr_1_1" rel="noopener noreferrer"&gt;Co-Intelligence&lt;/a&gt; in Create IT's book club — definitely worth your time! Between that and the endless stream of LLM content online, I've been in full research mode. Still, I can't just watch and hear others talk about these tools, I must experiment myself and learn how to use them for my use cases.&lt;/p&gt;

&lt;p&gt;Software development is complex. My job isn't just churning out code, but there are many concepts in this book that we've internalized and started adopting.&lt;br&gt;
In this post, I'll share my opinions and some of the practical guidelines our team has been following to be augmented by AI.&lt;/p&gt;
&lt;h2&gt;
  
  
  The "Jagged Frontier" concept
&lt;/h2&gt;

&lt;p&gt;The Jagged Frontier described by the author Ethan Mollick is an amazing concept in my opinion. It's where tasks that appear to be of similar difficulty may either be performed better or worse by humans using AI. Due to the “jagged” nature of the frontier, the same knowledge workflow of tasks can have tasks on both sides of the frontier according to a &lt;a href="https://www.hbs.edu/ris/Publication%20Files/24-013_d9b45b68-9e74-42d6-a1c6-c72fb70c7282.pdf" rel="noopener noreferrer"&gt;publication where the author took part&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This leads to the &lt;strong&gt;Centaur vs. Cyborg&lt;/strong&gt; distinction which is really interesting. Using both approaches (deeply integrated collaboration and separation of tasks) seems to be the goal to achieve co-intelligence. One very important Cyborg practice seen in that publication is "push-back" and "demanding logic explanation", meaning we disagree with the AI output, give it feedback, and ask it to reconsider and explain better. Or as I often do, ask it to double-check with official documentation that what it's telling me is correct.&lt;br&gt;
It's also important to understand that this frontier can change as these models improve. Hence, the focus on experimentation to understand where the Jagged Frontier lies in each LLM. It's definitely knowledge that everyone in the industry right now wants to acquire (maybe share it afterwards 😅).&lt;/p&gt;
&lt;h2&gt;
  
  
  Becoming augmented by AI
&lt;/h2&gt;

&lt;p&gt;I'm aware of the marketed productivity gains, where &lt;a href="https://github.blog/news-insights/research/research-quantifying-github-copilots-impact-on-developer-productivity-and-happiness/" rel="noopener noreferrer"&gt;GitHub Copilot usage makes devs 55% faster&lt;/a&gt;, and other studies that have been posted about GenAI increasing productivity. I'm also aware of the studies claiming the opposite 😄 like the &lt;a href="https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/" rel="noopener noreferrer"&gt;METR study&lt;/a&gt; showing AI makes devs &lt;strong&gt;19% slower&lt;/strong&gt;. However, I don't see 55% productivity gains for myself, and I don't think it makes me slower either.&lt;/p&gt;

&lt;p&gt;In my opinion, productivity gains aren't measured by producing more code. Number of PRs? Nope. Acceptance rate for AI suggestions? Definitely not! I firmly believe the less code, the better. The less slop the better too 😄. I'm currently focused on assessing &lt;strong&gt;DORA metrics&lt;/strong&gt; and others for my team, because we want to measure how AI-assisted coding and the other ways we use it as an augmentation tool, actually improves those metrics, or make them worse. The rest of marketing and hype doesn't matter.&lt;/p&gt;
&lt;h3&gt;
  
  
  AI as a co-worker
&lt;/h3&gt;

&lt;p&gt;For a tech lead that works with Azure services, an important skill is to know how to leverage the correct Azure services to build, deploy, and manage a scalable solution. So it becomes very useful to have an AI partner that can have a conversation about this, for example about Azure Durable Functions. This conversation can be shallow, and not get all the implementation details 100% correct. That's okay, because the tech lead (and any dev 😅) also needs to exhibit &lt;strong&gt;critical thinking&lt;/strong&gt; and evaluate the AI responses. &lt;strong&gt;This is not a skill we want to delegate&lt;/strong&gt; to these models, at least in my opinion and in the &lt;a href="https://www.oneusefulthing.org/p/against-brain-damage" rel="noopener noreferrer"&gt;author's opinion&lt;/a&gt;. There is a relevant &lt;a href="https://www.microsoft.com/en-us/research/wp-content/uploads/2025/01/lee_2025_ai_critical_thinking_survey.pdf" rel="noopener noreferrer"&gt;research paper&lt;/a&gt; about this by Microsoft as well.&lt;/p&gt;

&lt;p&gt;The goal can simply be to have a conversation with a co-worker to spark some new ideas or possible solutions that we haven't thought of. Using AI for ideation is a great use case, not just for engineering, but for product features too like UI/UX, important metrics to capture, etc. If it generates 20 ideas, there is a higher chance you find the bad ones, filter them out, and clear your mind or steer it into better ideas. Here is an example to get some ideas on fixing a recurring exception:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcsff9y3mvhiensk7mg34.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcsff9y3mvhiensk7mg34.png" alt="claude-to-get-ideas" width="800" height="633"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It asks clarifying questions so that I can give it more useful context. Then I can see the response, iterate, or ask for more ideas, etc. I usually always set these instructions for any LLM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Ask clarifying questions before giving an answer. Keep explanations not too long. Try to be as insightful as possible, and remember to verify if a solution can be implemented when answering about Azure and architecture in general.
It's also very important for you to verify if there is official documentation that supports your claims and statements. Please find official documentation supporting your claims, before responding to a user. If there isn't documentation confirming your statement, don't include it in the response.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That is also why it searches for docs. I've gotten way too many statements in the LLM's response that when I follow-up on, it realizes it made an error, or assumption, etc. When I ask it further about that sentence that it just gave me, I just get "You're right - I was wrong about that"... Don't become too over-reliant on these tools 😅.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI as a co-teacher
&lt;/h3&gt;

&lt;p&gt;With that said, the tech lead and senior devs are also responsible for upskilling their team by sharing knowledge, best practices, challenging juniors with more complex tasks, etc. And this part of the job isn't that simple; it's hard to be a force multiplier that improves everyone around you. So, what if the tech lead could use AI in this way, by creating &lt;a href="https://code.visualstudio.com/docs/copilot/customization/prompt-files" rel="noopener noreferrer"&gt;reusable prompts&lt;/a&gt;, documentation, and custom agents? How about the tech lead uses AI as a co-teacher, and then shares how to do it with the rest of the team? All of these are then able to help juniors be onboarded, help them understand our codebase and our domain. &lt;a href="https://www.anthropic.com/engineering/claude-code-best-practices" rel="noopener noreferrer"&gt;Claude Code Best practices post&lt;/a&gt; also reference onboarding as a good use case that helps Anthropic engineers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;At Anthropic, using Claude Code in this way has become our core onboarding workflow, significantly improving ramp-up time and reducing load on other engineers.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A lot of onboarding time is spent on understanding the business logic and then how it's implemented. For juniors, it's also about the design patterns or codebase structure. So I really think this is a net-positive for the whole team.&lt;/p&gt;

&lt;h3&gt;
  
  
  My augmentation list
&lt;/h3&gt;

&lt;p&gt;It might not be much, but these are essentially the tasks I'm augmented by AI:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Technical&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Initial&lt;/strong&gt; code review (e.g. nitpicks, typos), some stuff I should really just automate 😅&lt;/li&gt;
&lt;li&gt;Generate summaries for the PR description&lt;/li&gt;
&lt;li&gt;Architectural discussions, including trade-off and risk analysis

&lt;ul&gt;
&lt;li&gt;Draft an ADR (Architecture decision record) based on my analysis and arguments&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Co-Teacher and Co-Worker

&lt;ul&gt;
&lt;li&gt;"Deep Research" and discussion about possible solutions&lt;/li&gt;
&lt;li&gt;Learn new tech with analogies or specific Azure features&lt;/li&gt;
&lt;li&gt;Find new sources of information (e.g. blog posts, official docs, conference talks)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Troubleshooting for specific infrastructure problems

&lt;ul&gt;
&lt;li&gt;Generating KQL queries (e.g. rendering charts, analyzing traces &amp;amp; exceptions &amp;amp; dependencies)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Refactoring and documentation suggestions&lt;/li&gt;
&lt;li&gt;Generation of new unit tests given X scenarios&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Non-technical&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Summarizing book chapters/blog posts or videos (e.g. NotebookLM)&lt;/li&gt;
&lt;li&gt;Role play in various scenarios (e.g. book discussions)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Of course, we also need to talk about the tasks that fall outside the Jagged Frontier. Again, these can vary from person to person. From my usage and experiments so far, these are the tasks that currently fall outside the frontier:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Being responsible for technical support tickets, where a customer encountered an error or has a question about our product. This involves answering the ticket, asking clarifying questions when necessary, opening up tickets on a 3rd party that are related to this issue, and then resolving the issue.&lt;/li&gt;
&lt;li&gt;Deep valuable code review. This includes good insights, suggestions, and knowledge sharing to improve the PR author's skills. &lt;a href="https://www.coderabbit.ai/" rel="noopener noreferrer"&gt;CodeRabbit&lt;/a&gt; does often give valuable code reviews, way better than any other solution. Still not the same as human review 🙂&lt;/li&gt;
&lt;li&gt;Development of a v0 (or draft) for new complex features&lt;/li&gt;
&lt;li&gt;Fixing bugs that require business domain knowledge&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Delegating some of those tasks would be cool, at least 50% 😄, while our engineering team focuses on other tasks. But oh well, maybe that day will come. &lt;/p&gt;

&lt;h2&gt;
  
  
  AI-assisted coding
&lt;/h2&gt;

&lt;p&gt;AI-assisted coding can be very helpful on some tasks, and lately my goal is to increase the number of tasks AI can assist me. In our team, we've read &lt;a href="https://www.anthropic.com/engineering/claude-code-best-practices" rel="noopener noreferrer"&gt;Claude Code Best practices&lt;/a&gt; in order to learn and see what fits best for our use case. Then we dive deeper in some topics that post references, for example &lt;a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/extended-thinking-tips" rel="noopener noreferrer"&gt;these docs&lt;/a&gt; were very useful to learn about Claude's extended thinking feature, complementing the usage of "think" &amp;lt; "think hard" &amp;lt; "think harder" &amp;lt; "ultrathink". We also found &lt;a href="https://simonwillison.net/2025/Apr/19/claude-code-best-practices/" rel="noopener noreferrer"&gt;this post by Simon&lt;/a&gt; about this entire feature that was interesting.&lt;br&gt;
In most tasks, using an iterative approach, just like normal software development, is indeed way better than one-shot with the perfect prompt. Still, if it takes too many iterations, like some bugfixes were too complex because it's hard to pinpoint the location of the bug, then it loses performance and overall becomes bad (infinite load spinner of death 🤣).&lt;/p&gt;

&lt;p&gt;Before we can use AI-assisted coding on more complex tasks, we need to improve the output quality. So we've invested a lot of time in fine-tuning custom instructions and meta-prompting. Let's talk about these two.&lt;/p&gt;
&lt;h3&gt;
  
  
  Custom instructions
&lt;/h3&gt;

&lt;p&gt;According to Copilot docs, instructions should be short, self-contained statements. Most principles in &lt;a href="https://learn.microsoft.com/en-us/training/modules/introduction-prompt-engineering-with-github-copilot/2-prompt-engineering-foundations-best-practices" rel="noopener noreferrer"&gt;prompt engineering&lt;/a&gt; are about being short, specific, and making sure our critical instructions is something the model takes special attention to.&lt;br&gt;
Like everyone talks about, the context window is very important, so it's really good if we can just have an instruction file of 200 lines. The longer our instructions are, the greater the risk that the LLM won't follow them, since it can pay more attention to other tokens or forget relevant instructions. With that said, keeping instructions short is also a challenge when we use the few-shot prompting technique and add more examples.&lt;/p&gt;

&lt;p&gt;To build our custom instructions, we used C# and Blazor files from &lt;a href="https://github.com/github/awesome-copilot/tree/main" rel="noopener noreferrer"&gt;the awesome-copilot repo&lt;/a&gt; and other sources of inspiration like &lt;a href="https://parahelp.com/blog/prompt-design" rel="noopener noreferrer"&gt;parahelp prompt design&lt;/a&gt; to get a first version. We wanted to know what techniques other teams use. Then we made specific edits to follow our own guidelines and removed rules specific to explaining concepts, etc.&lt;br&gt;
We also added some &lt;strong&gt;capitalized words&lt;/strong&gt; that are common in system prompts or commands, like IMPORTANT, NEVER, ALWAYS, MUST. The IMPORTANT word is also at the end of the instruction, to try and &lt;strong&gt;refocus&lt;/strong&gt; the attention to coding standards:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;IMPORTANT: Follow our coding standards when implementing features or fixing bugs. If you are unsure about a specific coding standard, ask for clarification.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I'm not 100% sure how this capitalization works, or why it works... and I have not found docs/evidence/research on this. All I know is that capitalized words have different tokens than lowercase. It's probably something the model pays more attention to, since in the training data, when we use these words, it means it's important. I do wish Microsoft, OpenAI, and Anthropic included this topic on capitalization in their prompt engineering docs/tutorials.&lt;/p&gt;

&lt;p&gt;It's at the end of our file since it's also &lt;a href="https://huggingface.co/papers/2307.03172" rel="noopener noreferrer"&gt;being researched that the beginning and end of a prompt&lt;/a&gt; are what the LLM pays more attention to and finds more relevant. Some middle parts are "meh" and can be forgotten. &lt;a href="https://learn.microsoft.com/en-us/azure/ai-foundry/openai/concepts/prompt-engineering?tabs=chat#repeat-instructions-at-the-end" rel="noopener noreferrer"&gt;Microsoft docs&lt;/a&gt; say the same essentially, it's known as "&lt;strong&gt;recency bias&lt;/strong&gt;". In most prompts we see, this section exists at the end to refocus the LLM's attention.&lt;/p&gt;

&lt;h3&gt;
  
  
  Meta-prompting
&lt;/h3&gt;

&lt;p&gt;Our goal also isn't to have the perfect custom instructions and prompt, since refining it later with an iterative/conversational approach works well. But we came across the concept of &lt;a href="https://cookbook.openai.com/examples/enhance_your_prompts_with_meta_prompting" rel="noopener noreferrer"&gt;meta-prompting&lt;/a&gt;, a term that is becoming more popular. Basically, we asked Claude how to improve our prompt, and it gave us some cool ideas to improve our instructions/reusable prompts.&lt;/p&gt;

&lt;p&gt;But don't forget to use LLMs with caution... I keep getting "You're absolutely right..." and it's annoying how sycophantic it is oftentimes 😅&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l0h642hdv82vo59m3iu.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5l0h642hdv82vo59m3iu.PNG" alt="llm-trust-but-verify" width="580" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The quality of the output is most likely affected by the complexity of the task I'm working on too. Prompting skills only go so far, from what I've researched and learned so far, I can say there is a learning curve for understanding LLMs. So we need to continue experimenting and learning the layers between our prompt and the output we see.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;p&gt;This is not an exhaustive list by any means, just some resources I find very useful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=EWvNQjAaOHw&amp;amp;t=7238s" rel="noopener noreferrer"&gt;Andrej Karpathy - How I use LLMs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.youtube.com/watch?v=LCEmiRjPEtQ" rel="noopener noreferrer"&gt;Andrej Karpathy: Software Is Changing (Again)&lt;/a&gt;

&lt;ul&gt;
&lt;li&gt;Related to this is &lt;a href="https://natesnewsletter.substack.com/p/software-30-vs-ai-agentic-mesh-why" rel="noopener noreferrer"&gt;this post from Nate Jones&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=tbDDYKRFjhk" rel="noopener noreferrer"&gt;Does AI Actually Boost Developer Productivity? (100k Devs Study) - Yegor Denisov-Blanch, Stanford&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/claude-code-best-practices" rel="noopener noreferrer"&gt;Claude Code: Best practices for agentic coding&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://zed.dev/blog/why-llms-cant-build-software" rel="noopener noreferrer"&gt;Why LLMs Can't Really Build Software&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=-1yH_BTKgXs" rel="noopener noreferrer"&gt;Is AI the Future of Software Development, or Just a new Abstraction? Insights from Kelsey Hightower&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cookbook.openai.com/examples/gpt-5/gpt-5_prompting_guide" rel="noopener noreferrer"&gt;GPT-5 prompting guide&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I've enjoyed learning and improving myself over the years. But with GenAI I now feel like I could learn a lot more and improve myself even further since I'm choosing them as &lt;strong&gt;augmentation tools&lt;/strong&gt;.&lt;br&gt;
Hopefully, this article motivates you to pursue AI augmentation for yourself. It's okay to be skeptical about all the hype you watch and hear around these tools. It's a good mechanism to not fall for all the sales pitches and fluff CEO's and others in the industry talk about. Just don't let your skepticism prevent you from learning, experimenting, building your own opinion, and finding ways of improving your work 🙂.&lt;/p&gt;

&lt;p&gt;Still... I can't deny my curiosity to know more about how these systems work underneath. How is fine-tuning done exactly? How does post-training work? Can these models emit telemetry (logs, traces, metrics) that we can observe? Why does capitalization (e.g. IMPORTANT, MUST) or setting a &lt;a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/system-prompts" rel="noopener noreferrer"&gt;role/persona&lt;/a&gt; improve prompts? Can we really not have access to a high-level tree with the weights the LLM uses to correlate tokens, and use it to justify why a given output was produced? Or why an instruction given as input was not followed?&lt;br&gt;
It's okay to just have a basic understanding and know about the new abstractions we have with these LLMs. But knowing how that abstraction works leads to knowing how to transition to automation.&lt;/p&gt;

&lt;p&gt;I will keep searching and learning more in order to answer these questions or find engineers in the industry who have answered them. Especially around &lt;strong&gt;interpretability research&lt;/strong&gt;, which is amazing!!! I recommend reading this research, for example - &lt;a href="https://www.anthropic.com/research/tracing-thoughts-language-model" rel="noopener noreferrer"&gt;Tracing the thoughts of a large language model&lt;/a&gt;.&lt;br&gt;
Hope you enjoyed reading, feel free to share in the comments below how you use AI to augment yourself 🙂.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>learning</category>
    </item>
    <item>
      <title>Learning: Observability</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 30 Mar 2025 09:00:00 +0000</pubDate>
      <link>https://dev.to/bolt04/learning-observability-3i37</link>
      <guid>https://dev.to/bolt04/learning-observability-3i37</guid>
      <description>&lt;h2&gt;
  
  
  Table of Contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;Get Started&lt;/li&gt;
&lt;li&gt;
Logs

&lt;ul&gt;
&lt;li&gt;Canonical logs&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Traces&lt;/li&gt;
&lt;li&gt;Metrics&lt;/li&gt;
&lt;li&gt;General Best Practices&lt;/li&gt;
&lt;li&gt;
Resources

&lt;ul&gt;
&lt;li&gt;GitHub demo repo&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;In this small post, I'll share some resources, notes I've taken while learning, and best practices for making our systems observable. I've always had a knowledge gap regarding observability, and recently I've truly enjoyed learning more about this area in our software industry.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick note&lt;/strong&gt;: In this post I'll only share about 3 telemetry &lt;a href="https://opentelemetry.io/docs/concepts/signals/" rel="noopener noreferrer"&gt;signals&lt;/a&gt;. &lt;strong&gt;Profile&lt;/strong&gt; is another signal that I will research in the future.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get Started
&lt;/h2&gt;

&lt;p&gt;Follow these steps to get started with auto-instrumentation in your application using OpenTelemetry: &lt;a href="https://opentelemetry.io/docs/languages/net/getting-started/#instrumentation" rel="noopener noreferrer"&gt;https://opentelemetry.io/docs/languages/net/getting-started/#instrumentation&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For OpenTelemetry in a front-end app you can check these useful resources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://grafana.com/oss/faro/" rel="noopener noreferrer"&gt;Grafana faro&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nextjs.org/docs/app/building-your-application/optimizing/open-telemetry#using-vercelotel" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.checklyhq.com/blog/in-depth-guide-to-monitoring-next-js-apps-with-opentelemetry/" rel="noopener noreferrer"&gt;Guide for OpenTelemetry in Next.js&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://opentelemetry.io/docs/languages/js/getting-started/browser/" rel="noopener noreferrer"&gt;Browser OpenTelemetry getting started&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Client-side instrumentation in OpenTelemetry is part of &lt;a href="https://opentelemetry.io/community/roadmap/#p2-client-instrumentation-rum" rel="noopener noreferrer"&gt;their roadmap&lt;/a&gt; which is great to see, since I've only seen vendor-specific solutions and products for front-end apps (e.g. New Relic, Datadog). For browser instrumentation otel doesn't seem to be super mature yet, but a lot of effort is being put into this area by the OpenTelemetry team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Logs
&lt;/h2&gt;

&lt;p&gt;We all know about logs 😄. It's data that we all need in order to troubleshoot and know what is happening in our applications. We shouldn't overdo it, creating tons and tons of logs since that will probably create noise and make it harder to troubleshoot problems.&lt;/p&gt;

&lt;p&gt;For logs, we can use &lt;a href="https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/docs/logs/README.md#best-practices" rel="noopener noreferrer"&gt;these best practices&lt;/a&gt;. From this list, these are an absolute must to follow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Avoid string interpolation&lt;/li&gt;
&lt;li&gt;Use structured logging&lt;/li&gt;
&lt;li&gt;Log redaction for sensitive information&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In addition to the list above, we should also include the &lt;code&gt;TraceId&lt;/code&gt; and &lt;code&gt;SpanId&lt;/code&gt; in our log records, to correlate logs with traces. If you are using the Serilog console sink, &lt;a href="https://github.com/serilog/serilog-sinks-console/blob/4c9a7b6946dfd2d7f07a792c40bb3d46af835ee9/src/Serilog.Sinks.Console/ConsoleLoggerConfigurationExtensions.cs#L32" rel="noopener noreferrer"&gt;by default the message template&lt;/a&gt; won't have those fields so if you want them, consider using &lt;a href="https://github.com/serilog/serilog/wiki/Formatting-Output#formatting-json" rel="noopener noreferrer"&gt;JsonFormatter&lt;/a&gt; or &lt;code&gt;CompactJsonFormatter&lt;/code&gt;. Here is an example Serilog configuration in &lt;code&gt;appsettings.json&lt;/code&gt; (setup to remove unnecessary/noisy logs):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"Serilog"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Using"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Serilog.Sinks.Console"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"MinimumLevel"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Default"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Information"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Override"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Microsoft.AspNetCore"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Warning"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Microsoft.Extensions.Diagnostics.HealthChecks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Warning"&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"WriteTo"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Console"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"Args"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="nl"&gt;"formatter"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Serilog.Formatting.Json.JsonFormatter, Serilog"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"renderMessage"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Enrich"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"FromLogContext"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithMachineName"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithThreadId"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithProcessId"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithProcessName"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithExceptionDetails"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithExceptionStackTraceHash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"WithEnvironmentName"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"Properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"Application"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GrafanaDemoOtelApp"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Below are some documentation links for logging in .NET. The &lt;code&gt;ILogger&lt;/code&gt; extension methods are not always the best choice (e.g. &lt;code&gt;logger.LogInformation&lt;/code&gt;), especially in high-performance scenarios or if your logs are in a hot path:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/dotnet/core/extensions/high-performance-logging" rel="noopener noreferrer"&gt;High-performance logging in .NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/dotnet/core/extensions/logger-message-generator" rel="noopener noreferrer"&gt;Compile-time logging source generation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Canonical logs
&lt;/h3&gt;

&lt;p&gt;There is also a different way of logging, based on having more attributes in one single log line. I've seen this in Stripe where they call it &lt;a href="https://stripe.com/blog/canonical-log-lines" rel="noopener noreferrer"&gt;canonical log lines&lt;/a&gt;. Charity Majors also references this &lt;strong&gt;canonical logs&lt;/strong&gt; term in her blog post about Observability 2.0 (that I reference in the Resources section).&lt;/p&gt;

&lt;p&gt;This idea is very interesting, but might lack awareness. At least in .NET land, I didn't find many references to this style of logging or example code that we could follow when there are many &lt;code&gt;ILogger&lt;/code&gt; instances involved.&lt;/p&gt;
&lt;h2&gt;
  
  
  Traces
&lt;/h2&gt;

&lt;p&gt;For traces in .NET we have &lt;a href="https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs#best-practices-1" rel="noopener noreferrer"&gt;these best practices&lt;/a&gt;. So far I've seen four common solutions for adding &lt;a href="https://microsoft.github.io/code-with-engineering-playbook/observability/correlation-id/" rel="noopener noreferrer"&gt;correlation ids&lt;/a&gt; in traces (not all are standards):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.w3.org/TR/trace-context/" rel="noopener noreferrer"&gt;W3C trace context&lt;/a&gt; - current standard in the HTTP protocol for tracing&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Common_non-standard_request_fields" rel="noopener noreferrer"&gt;X-Correlation-Id&lt;/a&gt; - a non-standard HTTP header for RESTful APIs (also known as &lt;a href="https://http.dev/x-request-id" rel="noopener noreferrer"&gt;X-Request-Id&lt;/a&gt;). I thought this was a standard since it's widely used, but I didn't find a RFC from IETF or any other organization.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/dotnet/runtime/blob/main/src/libraries/System.Diagnostics.DiagnosticSource/src/HttpCorrelationProtocol.md" rel="noopener noreferrer"&gt;Request-Id&lt;/a&gt; - this is a known header in the .NET ecosystem&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/openzipkin/b3-propagation" rel="noopener noreferrer"&gt;B3 Zipkin propagation&lt;/a&gt; - Zipkin format standard&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader" rel="noopener noreferrer"&gt;AWS X-Ray Trace Id&lt;/a&gt; - proprietary solution for AWS that adds headers for tracing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Not every company/project uses W3C trace context, you have some options above to pick from. I prefer the standard W3C trace context 😄 (maybe the industry will widely adopt this in the future) and using OpenTelemetry to manage these headers (HTTP, AMQP, etc) and correlation with logs automatically. The code you don't write can't have bugs 😆.&lt;/p&gt;

&lt;p&gt;With that said, in some situations, you might have integrations with 3rd party software and need to use their custom headers or project limitations and need to use a particular format. At the end of the day what's important is that you have distributed tracing working E2E.&lt;/p&gt;

&lt;p&gt;There is also a relevant spec for distributed tracing called &lt;a href="https://www.w3.org/TR/baggage/" rel="noopener noreferrer"&gt;Baggage&lt;/a&gt; which OpenTelemetry implements and we can use in our apps. The most important part here is trace propagation to get the full trace from the publisher to the consumer.&lt;/p&gt;
&lt;h2&gt;
  
  
  Metrics
&lt;/h2&gt;

&lt;p&gt;For metrics, it's important to follow naming conventions for custom metrics. Especially if your organization has a platform team, setting conventions helps everyone. I do know some otel semantic conventions aren't stable, and that also leads to some nuget packages being pre-release.&lt;/p&gt;

&lt;p&gt;But anyhow, set conventions for your team or read and follow &lt;a href="https://opentelemetry.io/docs/specs/semconv/general/metrics/" rel="noopener noreferrer"&gt;OpenTelemetry semantic conventions&lt;/a&gt;.&lt;br&gt;
An important resource I found is the comments on &lt;a href="https://prometheus.io/docs/practices/instrumentation/#do-not-overuse-labels" rel="noopener noreferrer"&gt;Prometheus best practices&lt;/a&gt; related to high cardinality metrics.&lt;/p&gt;

&lt;p&gt;When I started trying out custom metrics instrumentation I discovered that OpenTelemetry is not always used (the SDK + OTLP). We have the Prometheus SDK which is mature and widely used. Then for Java there are other solutions like Micrometer and others that integrate very well with Spring. In regards to the Java ecosystem, I read &lt;a href="https://opentelemetry.io/blog/2024/java-metric-systems-compared/#benchmark-opentelemetry-java-vs-micrometer-vs-prometheus-java" rel="noopener noreferrer"&gt;this otel Java benchmarks&lt;/a&gt; and &lt;a href="https://spring.io/blog/2024/10/28/lets-use-opentelemetry-with-spring" rel="noopener noreferrer"&gt;this Spring post&lt;/a&gt; just because I was interested in knowing what the industry is adopting and why.&lt;/p&gt;
&lt;h2&gt;
  
  
  General Best Practices
&lt;/h2&gt;

&lt;p&gt;There is a ton to be learned with SRE principles and practices. But one in particular was very useful for me and my team: &lt;strong&gt;always categorize our custom metrics according to the 4 Golden Signals&lt;/strong&gt;. Any metric we can't categorize is probably not useful for us.&lt;/p&gt;


  &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdeniseyu.io%2Fart%2Fsketchnotes%2Ftopic-based%2Fmonitoring.png" alt="Image Credit to - Denise Yu" width="800" height="800"&gt;Image Credit to - Denise Yu
  


&lt;p&gt;&lt;a href="https://deniseyu.io/art/" rel="noopener noreferrer"&gt;Source of Denise Yu's art&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://sre.google/sre-book/monitoring-distributed-systems/" rel="noopener noreferrer"&gt;Google's SRE book&lt;/a&gt; is amazing to learn more about the 4 Golden signals and creating SLO-based alerts. All our alerts should be actionable (or the support team will not be happy), so it helps if they are based on SLOs that are defined as a team.&lt;/p&gt;

&lt;p&gt;They also have &lt;a href="https://sre.google/sre-book/service-best-practices/" rel="noopener noreferrer"&gt;some best practices for production services&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Resources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Glossary of many observability terms in case you’re not familiar with them: &lt;a href="https://github.com/prathamesh-sonpatki/o11y-wiki" rel="noopener noreferrer"&gt;https://github.com/prathamesh-sonpatki/o11y-wiki&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/magsther/awesome-opentelemetry" rel="noopener noreferrer"&gt;Awesome Observability GitHub repo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;If dashboards make you happy &lt;a href="https://play.grafana.org/d/feg4yc4qw3wn4b/third-annual-observability-survey?pg=survey-2025&amp;amp;plcmt=toc-cta-2&amp;amp;orgId=1&amp;amp;from=2025-03-13T02:49:20.476Z&amp;amp;to=2025-03-14T02:49:20.476Z&amp;amp;timezone=utc&amp;amp;var-region=$__all&amp;amp;var-role=$__all&amp;amp;var-size=$__all&amp;amp;var-industry=$__all&amp;amp;var-filters=%60Region%60%20in%20%28%27Europe%27,%27Asia%27,%27North%20America%27,%27Africa%27,%27South%20America%27,%27Oceania%27,%27Middle%20East%27%29%20AND%20%60Role%60%20IN%20%28%27Platform%20team%27,%27SRE%27,%27CTO%27,%27Engineering%20manager%27,%27Developer%27,%27Director%20of%20engineering%27,%27Other%27%29%20AND%20%60Size_of_organization%60%20IN%20%28%2710%20or%20fewer%20employees%27,%2711%20-%20100%20employees%27,%27101%20-%20500%20employees%27,%27501%20-%201,000%20employees%27,%271,001%20-%202,500%20employees%27,%272,501%20-%205,000%20employees%27,%275,001%2B%20employees%27%29%20AND%20%60Industry%60%20IN%20%28%27Telecommunications%27,%27Healthcare%27,%27IoT%27,%27Financial%20services%27,%27Education%27,%27Government%27,%27Applied%20Sciences%27,%27Software%20%26%20Technology%27,%27Media%20%26%20Entertainment%27,%27Travel%20%26%20Transportation%27,%27Retail%2FE-commerce%27,%27Energy%20%26%20Utilities%27,%27Automotive%20%26%20Manufacturing%27,%27Other%27%29" rel="noopener noreferrer"&gt;check the Grafana observability report dashboard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="https://aws-observability.github.io/observability-best-practices/guides/" rel="noopener noreferrer"&gt;AWS observability best practices guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://grafana.com/blog/2018/08/02/the-red-method-how-to-instrument-your-services/" rel="noopener noreferrer"&gt;About RED and USE method&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/dotnet/core/diagnostics/distributed-tracing-instrumentation-walkthroughs#best-practices-1" rel="noopener noreferrer"&gt;Traces Instrumentation best practices in .NET&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://signoz.io/guides/what-are-the-limitations-of-prometheus-labels/#what-are-the-limitations-of-prometheus-labels" rel="noopener noreferrer"&gt;What are the Limitations of Prometheus Labels?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.cncf.io/training/certification/otca/" rel="noopener noreferrer"&gt;CNCF OpenTelemetry certification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/cncf/tag-observability/blob/main/whitepaper.md" rel="noopener noreferrer"&gt;TAG Observability whitepaper&lt;/a&gt; - this is an amazing resource with tons of information! I also recommend checking out the other resources they have in the tag-observability repo and community&lt;/li&gt;
&lt;li&gt;Resources specifically about &lt;strong&gt;Observability 2.0&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://charity.wtf/tag/observability-2-0/" rel="noopener noreferrer"&gt;Observability 2.0 by Charity Majors&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aparker.io/post/3leq2g72z7r2t" rel="noopener noreferrer"&gt;Re-Redefining Observability&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=ag2ykPO805M" rel="noopener noreferrer"&gt;Is It Time To Version Observability? (Signs Point To Yes) - Charity Majors&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Talks

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=hhZrOHKIxLw" rel="noopener noreferrer"&gt;How Prometheus Revolutionized Monitoring at SoundCloud - Björn Rabenstein&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=X99X-VDzxnw" rel="noopener noreferrer"&gt;How to Include Latency in SLO-based Alerting - Björn Rabenstein, Grafana Labs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=pLPMAAOSxSE" rel="noopener noreferrer"&gt;Myths and Historical Accidents: OpenTelemetry and the Future of Observability Part 1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://youtu.be/3tBj3ZCPGJY?t=687" rel="noopener noreferrer"&gt;Modern Platform Engineering: 9 Secrets of Generative Teams - Liz Fong-Jones&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=gviWKCXwyvY" rel="noopener noreferrer"&gt;Context Propagation makes OpenTelemetry awesome&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  GitHub demo repo
&lt;/h3&gt;

&lt;p&gt;I've been developing a demo app (it has fewer features than the &lt;a href="https://github.com/open-telemetry/opentelemetry-demo" rel="noopener noreferrer"&gt;otel demo&lt;/a&gt;) to demonstrate how to build an app with OpenTelemetry, Grafana and Prometheus. It's primarily focused on a small app I can showcase in my talks.&lt;/p&gt;

&lt;p&gt;If you're interested take a look:&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/BOLT04" rel="noopener noreferrer"&gt;
        BOLT04
      &lt;/a&gt; / &lt;a href="https://github.com/BOLT04/grafana-observability-demo" rel="noopener noreferrer"&gt;
        grafana-observability-demo
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Repo with grafana and observability related demo app
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Observability - Grafana Demo for Talks&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;This is a simple demo showcasing how we can instrument our applications with OpenTelemetry, using Azure Monitoring + Grafana + Prometheus
It's intended to be used as the demo of a specific talk about observability.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Demo app instructions&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Read the instructions in &lt;code&gt;src/README.md&lt;/code&gt;.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Session Abstracts&lt;/h2&gt;

&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Observability with Azure Managed Grafana&lt;/h3&gt;

&lt;/div&gt;
&lt;p&gt;Nowadays, OpenTelemetry is used extensively to collect telemetry data from our applications, and serves as an industry standard. But we need a way to visualize this data in a clear way, and that is where Azure Managed Grafana comes in.&lt;/p&gt;
&lt;p&gt;In this session we'll go through the core concepts of observability and demonstrate how we can use Azure Managed Grafana, integrated with Prometheus Grafana Tempo and Loki to gather insights from our telemetry data
We will cover topics such as the basics about logs, metrics and traces, manual instrumentation, OTLP, and others. We'll…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/BOLT04/grafana-observability-demo" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F14piw6dnmu0v0vh6b51t.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F14piw6dnmu0v0vh6b51t.gif" alt="happy gif" width="500" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hopefully, some of these resources I've shared are useful to you 😄. I still have a ton to learn and explore, but I'm happy with the knowledge I've acquired so far.&lt;/p&gt;

&lt;p&gt;There are some specific standards + projects that I'll dive in and explore more, like: eBPF; OpenMetrics. OpenMetrics is something I'd like to spend some quality time reading about, but I know &lt;a href="https://www.cncf.io/blog/2024/09/18/openmetrics-is-archived-merged-into-prometheus/" rel="noopener noreferrer"&gt;it's archived&lt;/a&gt; and &lt;a href="https://www.reddit.com/r/devops/comments/1f5ttdx/openmetrics_is_archived_merged_into_prometheus/?rdt=47070" rel="noopener noreferrer"&gt;reddit says the same&lt;/a&gt;. Just want to read and watch some talks about it to feed my curiosity 😃.&lt;/p&gt;

&lt;p&gt;Last but not least, I want to follow the work that some industry leaders are doing like &lt;a href="https://charity.wtf/" rel="noopener noreferrer"&gt;Charity Majors&lt;/a&gt;, specifically about Observability 2.0 😄. I discovered this term in the &lt;a href="https://www.thoughtworks.com/radar/techniques/summary/observability-2-0" rel="noopener noreferrer"&gt;Thouthworks tech radar&lt;/a&gt;, and the part "high-cardinality event data in a single data store" caught my interest.&lt;br&gt;
I'm still learning, researching, and listening to the opinions of industry leaders about this term to then develop my own opinions. Maybe I'll make a blog post about this in the future 😁.&lt;/p&gt;

</description>
      <category>o11y</category>
      <category>observability</category>
      <category>learning</category>
    </item>
    <item>
      <title>Taking a look at what influenced me as I grow</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Mon, 26 Jun 2023 12:00:00 +0000</pubDate>
      <link>https://dev.to/bolt04/taking-a-look-at-what-influenced-me-as-i-grow-1jhd</link>
      <guid>https://dev.to/bolt04/taking-a-look-at-what-influenced-me-as-i-grow-1jhd</guid>
      <description>&lt;p&gt;I've wanted to write down what/who has helped me grow as a developer for quite some time. Well... here it is 😄.&lt;/p&gt;

&lt;p&gt;Here is a tweet where I shared talks that I enjoyed a ton, and helped me grow:&lt;/p&gt;

&lt;p&gt;&lt;iframe class="tweet-embed" id="tweet-1540783019862024194-941" src="https://platform.twitter.com/embed/Tweet.html?id=1540783019862024194"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-1540783019862024194-941');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=1540783019862024194&amp;amp;theme=dark"
  }



&lt;/p&gt;

&lt;p&gt;In this post, I'll share my retrospective about what has influenced me. I'll mention a few videos on that tweet that really molded who I am 😄&lt;/p&gt;

&lt;h2&gt;
  
  
  Communication and Leadership
&lt;/h2&gt;

&lt;p&gt;The person that taught me the most about communication and leadership was &lt;a href="https://paulonetocoach.pt/Blog.html" rel="noopener noreferrer"&gt;Paulo Neto&lt;/a&gt;. I'd had the privilege of participating in many group or 1-1 sessions with Paulo, with other colleagues from Create IT.&lt;/p&gt;

&lt;p&gt;You don't need to be the Tech Lead to be a leader on your team. Give feedback to your colleagues on what they did great, or what they can improve. This doesn't mean "always give specific instructions on how to get from point A to point B". The strategy we use to give feedback depends on the other person, but sometimes it's just better to ask questions, not give solutions. This challenges the other person to come up with a solution and think critically about the problem.&lt;/p&gt;

&lt;p&gt;I used to help by giving all the answers to the problems people asked me. By giving my opinion even if nobody asked for it. If I give away the solution right away, let's say to a junior dev, it means I just stole an opportunity for that person to grow.&lt;br&gt;
Now of course, it depends on the scenario (PRD bugs can have some nasty consequences), but I believe stepping aside and asking more questions, to make the other person think for themselves and get to the solution, is way better.&lt;/p&gt;

&lt;p&gt;When you give feedback, the focus is on the other person's growth, not your own.&lt;/p&gt;

&lt;p&gt;I'm still getting better at being a human, but Paulo helped me a lot in being on the right path.&lt;/p&gt;
&lt;h2&gt;
  
  
  Learning to learn
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/ujxvy5NjeRQ"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;This video really taught me what meant &lt;strong&gt;to learn&lt;/strong&gt;. Re-learning is a part of the process! This completely changed how I look at certain topics.&lt;/p&gt;

&lt;p&gt;One more thing that is crucial, is to &lt;strong&gt;reserve time to learn&lt;/strong&gt;! Saying "I don't have time to learn k8s" is the equivalent of saying "Learning k8s is not my priority right now". We have time for everything in this world, it's all a matter of priorities 😂. I've sacrificed my learning/growing time to deliver user stories on the sprint, for several occasions. If you are saying &lt;strong&gt;yes&lt;/strong&gt; to every request someone asks you, it usually ends up with you prioritizing those requests, and not your own time to learn k8s, for example.&lt;/p&gt;

&lt;h2&gt;
  
  
  Learning to teach
&lt;/h2&gt;

&lt;p&gt;Sharing knowledge is a key differentiator for a software developer. Have you ever tried teaching something to your colleagues, then get follow-up questions? Are you able to answer all of them 😅 ?&lt;/p&gt;

&lt;p&gt;Teaching helps you discover gaps in your knowledge, and it's something I'm still improving. To feel like an expert in a subject, you need to first explain it to someone that has no knowledge about it. If you try and you fail to get the other person to understand the subject, it means you have work to do. I've used many meetings with colleagues as a means to know if I deeply understand a subject like idempotency, microservices, BFF, CQRS, etc.&lt;/p&gt;

&lt;p&gt;Imagine you're onboarding a new teammate and you are the senior dev. Your capability to teach about the codebase, business domain, and other subjects is important. It can be the difference between having a new dev that is productive after one week, instead of one month.&lt;/p&gt;

&lt;p&gt;I've talked mostly in this post about my own growth... but that doesn't mean all I need to do is develop my own skills.&lt;br&gt;
IMO, &lt;strong&gt;the hardest challenge in this industry is making other people more productive&lt;/strong&gt;! Not just making myself more productive and better at engineering 😅. Some people do this amazingly well, but I'm still growing in this regard 😄&lt;/p&gt;

&lt;p&gt;Like &lt;a href="https://www.goodreads.com/quotes/19421-if-you-can-t-explain-it-to-a-six-year-old" rel="noopener noreferrer"&gt;Einstein said&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;If you can't explain it to a six year old, you don't understand it yourself.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  People I've followed
&lt;/h2&gt;

&lt;p&gt;In retrospect, I follow just a few key people. As time passed, I focused on other interesting topics, instead of "simple tutorials" (the amount of content I consume didn't exactly decrease). Here is a list of the people I follow the most nowadays:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/@ThePrimeTimeagen" rel="noopener noreferrer"&gt;ThePrimeTimeagen&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/codeopinion" rel="noopener noreferrer"&gt;Derek Comartin&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/@shanselman" rel="noopener noreferrer"&gt;Scott Hanselman&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/@ContinuousDelivery" rel="noopener noreferrer"&gt;Dave Farley&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One of the videos I loved the most from Scott was this one:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/8HE5LJwAv1k"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;What he shared really resonated with me. I felt powered up inside to keep learning and sharing, perhaps make more blog posts in Portuguese... but I never did that 😅.&lt;br&gt;
It has some really good gems of advice inside, I do recommend you watch it.&lt;/p&gt;

&lt;p&gt;Also someone I have learned a ton is &lt;a href="https://twitter.com/editingemily" rel="noopener noreferrer"&gt;Emily Freeman&lt;/a&gt;. I absolutely loved this talk she made at GitHub Universe!&lt;br&gt;
  &lt;iframe src="https://www.youtube.com/embed/Z66-us_VDu8"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;Recently I shared another list of more front-end people I follow and recommend:&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__comment crayons-card my-2 p-0 overflow-hidden"&gt;
    &lt;a href="https://dev.to/codenewbieteam/senior-front-end-developers-share-advice-for-juniors-what-would-you-add-4bd8" class="flex items-center gap-2 p-3 fs-s color-base-60 hover:color-base-90"&gt;
      

      &lt;span&gt;Comment on &lt;strong class="fw-medium color-base-90"&gt;Senior Front-End Developers Share Advice for Juniors: What Would You Add?&lt;/strong&gt;&lt;/span&gt;
    &lt;/a&gt;
  &lt;div class="p-4"&gt;
    &lt;div class="flex items-center gap-2 mb-3"&gt;
      &lt;a href="/bolt04" class="crayons-avatar crayons-avatar--l"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg" alt="bolt04" class="crayons-avatar__image" width="800" height="527"&gt;
      &lt;/a&gt;
      &lt;div&gt;
        &lt;a href="/bolt04" class="crayons-link fw-medium"&gt;David Pereira&lt;/a&gt;
        &lt;span class="fs-xs color-base-60 ml-1"&gt;May 7 '23&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="text-styles"&gt;
      &lt;p&gt;I'd add some people to that list:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://kentcdodds.com/" rel="nofollow noopener noreferrer"&gt;Kent C. Dodds&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/dan_abramov" rel="nofollow noopener noreferrer"&gt;Dan Abramov&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/@t3dotgg" rel="nofollow noopener noreferrer"&gt;Theo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://twitter.com/rauchg" rel="nofollow noopener noreferrer"&gt;Guillermo Rauch&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They have either awesome blogs or videos that you can learn a lot from!&lt;/p&gt;

&lt;p&gt;I'd also recommend to follow and learn from Kelsey Hightower, for example &lt;a href="https://www.youtube.com/watch?v=cl0zMen43E4" rel="nofollow noopener noreferrer"&gt;this video&lt;/a&gt;. It's not particular about front end, but you can learn many valuable lessons from him :)&lt;/p&gt;


    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;





&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I'm way more confident now, and all those people I mentioned made and shared content that helped me grow.&lt;br&gt;
I still have ambitious goals, so I'll just have to keep growing!&lt;/p&gt;

&lt;p&gt;If you're interested in AsyncAPI and CloudEvents, take a look at my post: &lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db" class="crayons-story__hidden-navigation-link"&gt;Getting Started with CloudEvents and AsyncAPI&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/bolt04" class="crayons-avatar  crayons-avatar--l  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg" alt="bolt04 profile" class="crayons-avatar__image" width="800" height="527"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/bolt04" class="crayons-story__secondary fw-medium m:hidden"&gt;
              David Pereira
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                David Pereira
                
              
              &lt;div id="story-author-preview-content-828515" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/bolt04" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F192676%2Fcb99d336-4580-47c0-becb-ee381d71b4e8.jpg" class="crayons-avatar__image" alt="" width="800" height="527"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;David Pereira&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Sep 16 '21&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db" id="article-link-828515"&gt;
          Getting Started with CloudEvents and AsyncAPI
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/eventdriven"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;eventdriven&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/cloudevents"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;cloudevents&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/asyncapi"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;asyncapi&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/architecture"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;architecture&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;3&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            7 min read
          &lt;/small&gt;
            
              &lt;span class="bm-initial crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
              &lt;span class="bm-success crayons-icon c-btn__icon"&gt;
                

              &lt;/span&gt;
            
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
      <category>career</category>
    </item>
    <item>
      <title>How to use the SEO meta tag rules module for Page Designer in SFCC</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sat, 05 Nov 2022 15:21:00 +0000</pubDate>
      <link>https://dev.to/bolt04/how-to-use-the-seo-meta-tag-rules-module-for-page-designer-in-sfcc-20i8</link>
      <guid>https://dev.to/bolt04/how-to-use-the-seo-meta-tag-rules-module-for-page-designer-in-sfcc-20i8</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;The problem&lt;/li&gt;
&lt;li&gt;The solution&lt;/li&gt;
&lt;li&gt;Alternative solutions to SEO meta tag rules&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;li&gt;Additional Links&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;We have a great feature available to us in Salesforce Commerce Cloud (SFCC) called &lt;a href="https://trailhead.salesforce.com/en/content/learn/modules/b2c-seo-meta-tags/b2c-seo-meta-tag-explore-rules" rel="noopener noreferrer"&gt;SEO meta tag rules&lt;/a&gt;. This is a module inside of SEO in Business Manager (BM).&lt;br&gt;
However, currently there is &lt;strong&gt;only support for &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/page_designer/b2c_use_page_meta_tag_rules_for_pd.html" rel="noopener noreferrer"&gt;PDP/PLP pages made in page designer&lt;/a&gt;&lt;/strong&gt; that support these meta tag rules.&lt;/p&gt;

&lt;p&gt;In this blog post we'll see how to support SEO meta tag rules for &lt;strong&gt;all pages made in page designer&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;Before going any further, I want to mention some disclaimers. At the time of writing this, not all pages in page designer support this. This could be added to SFCC and be directly supported without custom development. I posted this idea as a &lt;a href="https://ideas.salesforce.com/s/idea/a0B8W00000JJF4rUAH/support-all-page-designer-pages-for-seo-meta-tag-rules" rel="noopener noreferrer"&gt;feature enhancement for Salesforce in IdeaExchange&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;With that said, let's take a step back and understand the problem.&lt;/p&gt;

&lt;p&gt;The SEO experts on a business operate mostly on the SEO meta tag rules BM module. If they need more granular level of SEO customization, most System Objects (e.g. Products, Content Assets, Categories) of SFCC support SEO fields like &lt;code&gt;pageUrl&lt;/code&gt;, &lt;code&gt;pageTitle&lt;/code&gt;, &lt;code&gt;pageDescription&lt;/code&gt;. SEO experts can define rules that act as fallbacks, and then if some merchants don't define these fields for particular categories or pieces of content. You still have some meta tags being added to the page by these rules.&lt;/p&gt;

&lt;p&gt;Now, even though this feature supports many types of pages, like home page, product pages or product listing pages. It doesn't support all types of Page Designer (PD) pages.&lt;br&gt;
You can also take a look at the &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FDWAPI%2Fscriptapi%2Fhtml%2Fapi%2Fclass_dw_experience_Page.html" rel="noopener noreferrer"&gt;Page class&lt;/a&gt;, and check that it doesn't have the &lt;code&gt;pageMetaTags&lt;/code&gt; field like the &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FDWAPI%2Fscriptapi%2Fhtml%2Fapi%2Fclass_dw_content_Content.html" rel="noopener noreferrer"&gt;Content class&lt;/a&gt; does.&lt;/p&gt;

&lt;p&gt;Page Designer pages are very similar to Content Assets, in the sense that underneath, &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/content/b2c_commerce/topics/page_designer/b2c_pg_comp_types_content_assets.htm" rel="noopener noreferrer"&gt;these pages are persisted as the same content objects on the SFCC's database&lt;/a&gt;. But there are still differences, the support for meta tag rules feature is one of them.&lt;/p&gt;

&lt;p&gt;Ultimately, these differences makes it harder for merchants or SEO experts that want to leverage the same functionality available on the rest of the site.&lt;/p&gt;

&lt;p&gt;Now that you have a better understanding about the problem, let's shift our focus into a solution.&lt;/p&gt;
&lt;h2&gt;
  
  
  The solution
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Content Assets
&lt;/h3&gt;

&lt;p&gt;The whole premise of this solution is that it's supported by the SEO meta tag rules module of BM. In this module we have support for the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Homepage&lt;/li&gt;
&lt;li&gt;Product pages&lt;/li&gt;
&lt;li&gt;Content Detail pages&lt;/li&gt;
&lt;li&gt;Content Listing pages&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The only one that fits well with a page designer page is &lt;strong&gt;Content Detail page&lt;/strong&gt;. Meaning we'll create content assets as a way to support these SEO rules for Page Designer.&lt;br&gt;
Each page can have it's corresponding content asset, where the content ID follows a naming convention like "-seo". This way in &lt;code&gt;Page.js&lt;/code&gt; you can get the meta tags for that page, through that content asset. Here is an example of the &lt;code&gt;Page-Show&lt;/code&gt; extension:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;server&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;prepend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Show&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;function &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;PageMgr&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;dw/experience/PageMgr&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
   &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;ContentModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;*/cartridge/models/content&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
   &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;pageMetaHelper&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;*/cartridge/scripts/helpers/pageMetaHelper&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;PageMgr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getPage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querystring&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;cid&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isVisible&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;pageContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;ContentMgr&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ID&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;-seo&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;pageContent&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ContentModel&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;pageContent&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;content/content&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

            &lt;span class="nx"&gt;pageMetaHelper&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setPageMetaData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pageMetaData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="nx"&gt;pageMetaHelper&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setPageMetaTags&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pageMetaData&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you don't need to create a content asset for every since page from PD. For example, if you business doesn't use the syntax &lt;code&gt;${Content.pageTitle}&lt;/code&gt; in your meta tag rules, or any expression regarding the object &lt;code&gt;Content&lt;/code&gt;. Then in that case you could simply create one content asset for each folder the business wants to have.&lt;br&gt;
You might be wondering why I'm mentioning folders and how they fit in the solution, so let's take a deeper look.&lt;/p&gt;
&lt;h3&gt;
  
  
  Folders
&lt;/h3&gt;

&lt;p&gt;Folders are the way you can group multiple pages, and make all of them inherit the same meta tag rules. Once a folder is created, the business can use it in the SEO meta tag rules module inside BM.&lt;br&gt;
Imagine you have a group of pages that are part of the same marketing campaign. As an SEO expert, of course you'd like to have page titles, descriptions, open graph and other meta tags for all of them.&lt;br&gt;
But maybe the content team hasn't reached the maturity level to configure this for every since page. So you create a meta tag rule, acting as a fallback in case the content team doesn't configure some pages.&lt;/p&gt;

&lt;p&gt;So far the solution revolves around the business creating manually folders, assigning them to pages and creating content assets for every page (in case they want to leverage page properties) or every folder.&lt;br&gt;
I believe we can improve on this solution, so let's jump in to some automation.&lt;/p&gt;
&lt;h3&gt;
  
  
  Automation
&lt;/h3&gt;

&lt;p&gt;This is a critical step, since having all this manual work doesn't make sense for business people. As engineers we can do better and automate the creation of these content assets. We can develop two different pieces that play together:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a &lt;strong&gt;job&lt;/strong&gt; to ensure every page from Page Designer, has it's associated content asset and all the rest&lt;/li&gt;
&lt;li&gt;a &lt;strong&gt;new BM module&lt;/strong&gt; to automate folder creation, specifically creating multiple folders&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let's go through the job first, its responsible to update the content assets associated with each page. This means creating that content asset if it doesn't already exist, and then assign it to the same folders as the page. To implement this job you need:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Get the list of all Page Designer pages&lt;/li&gt;
&lt;li&gt;Iterate through all pages&lt;/li&gt;
&lt;li&gt;For each page, create the content asset and assign the appropriate folders&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Here is a code snippet (in ES6) representing a possible implementation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;libraryGateway&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;*/cartridge/scripts/gateways/libraryGateway&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pagesList&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;getAllPageDesignerPages&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nx"&gt;pagesList&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;contentId&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ID&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;-seo`&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;libraryGateway&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createContentAsset&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
        &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;contentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="na"&gt;pageTitle&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pageTitle&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Error creating content asset&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;folders&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;forEach&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;folder&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;result&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;libraryGateway&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;assignContentAssetToFolder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;contentId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;folder&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ID&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;})&lt;/span&gt;
&lt;span class="p"&gt;})&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;getAllPageDesignerPages&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ContentSearchModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;dw/content/ContentSearchModel&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;ContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;libraryID&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;someId&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;

    &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setRecursiveFolderSearch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setFilteredByFolder&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setFolderID&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;libraryID&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

    &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;contentSearchResultIterator&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getContent&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;apiContentSearchModel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getCount&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;pages&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;contentSearchResultIterator&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;count&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;contentSearchResultIterator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;hasNext&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;contentResult&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;contentSearchResultIterator&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
            &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;contentResult&lt;/span&gt;&lt;span class="p"&gt;?.&lt;/span&gt;&lt;span class="nx"&gt;page&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="c1"&gt;// transform some contentResult fields to other types...&lt;/span&gt;
                &lt;span class="nx"&gt;pages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;contentResult&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;pages&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the implementation above, getting all pages from Page Designer is done through the &lt;code&gt;ContentSearchModel&lt;/code&gt; API. Although this works, it's not ideal in my opinion since these pages are required to be &lt;strong&gt;searchable&lt;/strong&gt; (a setting on all pages) and &lt;strong&gt;online&lt;/strong&gt;. If they aren't, then they won't be on the &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC2/topic/com.demandware.dochelp/content/b2c_commerce/topics/search_and_navigation/b2c_index_creation.html" rel="noopener noreferrer"&gt;Content index&lt;/a&gt;, which seems to be the only way to get all page designer pages on a given site.&lt;br&gt;
To create content assets and assigning them to folders, we delegate that responsability to the &lt;code&gt;libraryGateway&lt;/code&gt; module. To implement this module we need to use OCAPI.&lt;/p&gt;

&lt;h3&gt;
  
  
  OCAPI
&lt;/h3&gt;

&lt;p&gt;We can use OCAPI Data APIs to create content assets/folders and assign content assets to folders. While researching I tried finding another way, but I didn't find anything easier. The &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/DWAPI/scriptapi/html/api/packageList.html?cp=0_20_2" rel="noopener noreferrer"&gt;Salesforce Commerce API&lt;/a&gt; (&lt;em&gt;dw&lt;/em&gt; library accessible server-side) doesn't seem to have APIs for these operations. I didn't find any pipelets or jobs steps that do this either... perhaps by &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/DWAPI/jobstepapi/html/api/jobstep.ExportContent.html" rel="noopener noreferrer"&gt;exporting the content library&lt;/a&gt;, then creating a custom job that reads that file, edits it with the new content objects, and finally runs a job step to import that edited file.&lt;/p&gt;

&lt;p&gt;Interacting with OCAPI is not an expensive development effort, so you can develop a custom cartridge for this. We won't go through the details about that cartridge, perhaps on a separate blog post :slight_smile:&lt;/p&gt;

&lt;h3&gt;
  
  
  OCAPI endpoints
&lt;/h3&gt;

&lt;p&gt;All the operations we want to do can be found on the Libraries resource from the Data API. To create a content asset we can use &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fdata%2FResources%2FLibraries.html&amp;amp;anchor=id893141162__id696504113" rel="noopener noreferrer"&gt;this endpoint&lt;/a&gt;, to assign it to a folder we can use &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2FOCAPI%2Fcurrent%2Fdata%2FResources%2FLibraries.html&amp;amp;anchor=id893141162__id-2058222274" rel="noopener noreferrer"&gt;this endpoint&lt;/a&gt;. One thing to keep in mind, creating a content asset is an &lt;strong&gt;idempotent&lt;/strong&gt; operation. This means it creates the object if it doesn't already exist, but if it does it ignores the existing object and writes a new one on top.&lt;/p&gt;

&lt;p&gt;In practice, this means if someone edits these content assets (e.g. through BM, locking the resource and updating the description field), that modification will be lost.&lt;br&gt;
If you don't want to lose those edits, you should consider using the endpoint to get the content asset, and use that data on your PUT request payload. In my case, these content assets are supposed to be "hidden", so no one should need to edit them.&lt;/p&gt;

&lt;h3&gt;
  
  
  BM extension to create folders
&lt;/h3&gt;

&lt;p&gt;Now let's discuss the custom BM module to create folders. If business people want to create multiple filters in one go, instead of doing it through the BM UI and then going to Page Designer to assign pages to folders, they input the filter names in an input box and click a button. We can simply develop a web page that has this input box and a button (and some instructions on how to use it). This is possible by &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/site_development/b2c_customize_business_manager.html" rel="noopener noreferrer"&gt;extending BM&lt;/a&gt; and building a custom cartridge, with this UI and the controller that executes the creation of folders.&lt;/p&gt;

&lt;p&gt;We won't go to much into detail about this custom cartridge, I've added additional links at the bottom to help you building this cartridge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Alternative solutions to SEO meta tag rules
&lt;/h2&gt;

&lt;p&gt;In the case where the content object quotas are hit, we can consider building something entirely custom. What I mean is we would not use the SEO meta tag rules module from BM anymore. We would build our piece of software to handle this scenario - &lt;strong&gt;all page designer page types&lt;/strong&gt;. Of course that means building software that does the same as Salesforce's built-in module of BM, considering:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Storage to store these rules, meta tag definitions, and others&lt;/li&gt;
&lt;li&gt;An API that at least exposes a way to get meta tags for a given page, taking into account API design, SLA (important if you'll call this in a middleware of the Page.js controller), etc&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is a discussion you must have with your business/client, explaining the trade-offs of each scenario.&lt;/p&gt;

&lt;p&gt;In my opinion, it's generally often better to reuse existing functionality or an off-the-shelf solution like a plugin cartridge.&lt;br&gt;
Something that either is standardized and known in the community, instead of your own solution... but as always, this depends on the context we're in.&lt;br&gt;
For SEO meta tag rules of SFCC in particular, we &lt;a href="https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000Hk216SAB" rel="noopener noreferrer"&gt;can't extend this module&lt;/a&gt;. So if we really needed to support this feature and we hit the API quotas of the SFCC platform, we would consider building a cost-effective solution outside SFCC, considering the need of a custom parser for &lt;code&gt;if&lt;/code&gt; statements, context variables... again a discussion to be made with the business and architects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Improvements to this solution
&lt;/h2&gt;

&lt;p&gt;One important note about this solution is that pages would &lt;strong&gt;only inherit meta tags assigned to the default folder&lt;/strong&gt; (primary folder). From my research, a content asset can only have one default folder, and that is the folder the meta tags come from.&lt;br&gt;
In my use case the ideal was to setup some hierarchy, where a page could have 3 folders, and you could get all meta tags assigned to those folders. Now you kind of have this &lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/search_engine_optimization/b2c_meta_tag_rules.html" rel="noopener noreferrer"&gt;hierarchy&lt;/a&gt; (primary folder, then parent folders, up to root), but it's not the exact behavior I needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;In conclusion, you can develop a custom cartridge with this functionality, and support this for your business or clients. In the future, this might be supported out of the box by SFCC. The greatest challenges were: analyzing ways to extend the SEO meta tag rules module; an API to get all page designer pages and understanding the limitations of our solution.&lt;/p&gt;

&lt;p&gt;Let us know in the comments if this feature is something you'd like to have, or vote and comment on the &lt;a href="https://ideas.salesforce.com/s/idea/a0B8W00000JJF4rUAH/support-all-page-designer-pages-for-seo-meta-tag-rules" rel="noopener noreferrer"&gt;IdeaExchange's post&lt;/a&gt;. I hope this has been helpful 👍.&lt;/p&gt;

&lt;p&gt;Check out my other blog post on &lt;a href="https://blogit.create.pt/davidpereira/2022/06/06/session-management-in-salesforce-b2c-commerce-cloud/" rel="noopener noreferrer"&gt;session management for SFCC&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Links
&lt;/h2&gt;

&lt;p&gt;Here are some links to documentation and other resources, that you may find useful if you're interested in building this feature for your business:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ideas.salesforce.com/s/idea/a0B8W00000JJF4rUAH/support-all-page-designer-pages-for-seo-meta-tag-rules" rel="noopener noreferrer"&gt;IdeaExchange's post&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://trailhead.salesforce.com/trailblazer-community/feed/0D54S00000IRNXRSA5" rel="noopener noreferrer"&gt;How to get a list of pages of Page Designer using code?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/OCAPI/current/data/Resources/Libraries.html" rel="noopener noreferrer"&gt;OCAPI Data Libraries resource&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/content/b2c_commerce/topics/admin/b2c_configuring_a_business_manager_site.html" rel="noopener noreferrer"&gt;Configuring the Business Manager Site&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>commercecloud</category>
      <category>salesforce</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Reactathon 2022 - A Short Summary</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Sun, 03 Jul 2022 19:07:00 +0000</pubDate>
      <link>https://dev.to/bolt04/reactathon-2022-a-short-summary-140b</link>
      <guid>https://dev.to/bolt04/reactathon-2022-a-short-summary-140b</guid>
      <description>&lt;p&gt;Lately we've been filled with cool stuff in the React community. In case you missed it, &lt;a href="https://www.reactathon.com/" rel="noopener noreferrer"&gt;Reactathon&lt;/a&gt; happened at the beginning of May, and with it came a lot of interesting talks and discussions between people in the community.&lt;br&gt;
In this post I'll reference what I consider to be the most interesting and hot topics on the React community… and try to make it short 😅.&lt;/p&gt;

&lt;p&gt;If you haven't seen the conference, you can take a look at this &lt;a href="https://www.youtube.com/playlist?list=PLRvKvw42Rc7O0eWo2m_guXdZsGTEQM_jj" rel="noopener noreferrer"&gt;YT playlist for all sessions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The state of React 2022
&lt;/h2&gt;

&lt;p&gt;So first of all, what is the state of React currently? With &lt;a href="https://reactjs.org/blog/2022/03/29/react-v18.html" rel="noopener noreferrer"&gt;React 18&lt;/a&gt;, what was once called concurrent mode is now concurrent features. This changes the approach into an &lt;strong&gt;incremental adoption&lt;/strong&gt;, so that you could use &lt;strong&gt;concurrent features&lt;/strong&gt; in specific places of your React app.&lt;/p&gt;

&lt;p&gt;In this talk, Lee also announces Next.js new routing system which resembles Remix a lot. They want to take advantage of &lt;strong&gt;nested routes&lt;/strong&gt; which is great! This allows us to provide a better user experience on pages that have one component that blocks rendering.&lt;/p&gt;

&lt;p&gt;Last but not least, there are new developments when it comes to &lt;strong&gt;server-side rendering&lt;/strong&gt;, and new &lt;strong&gt;client-side rendering APIs&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Edge computing
&lt;/h2&gt;

&lt;p&gt;If you are unaware of this type of compute, Edge computing allows a better user experience, because it reduces the time you get a response with the content you want to visualize. The time is reduced because to process your request you don't need to "talk" to a distant server on the oasis.&lt;/p&gt;

&lt;p&gt;CDN providers like Cloudflare, are building new runtimes to allow you to run code closer to your customers – on the edge. Cloudflare workers for example, don't use Node.js or Deno under the hood, it's their own JS runtime. Of course, an effort is being done to &lt;a href="https://blog.cloudflare.com/introducing-the-wintercg/" rel="noopener noreferrer"&gt;standardize these runtimes&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In this talk, Kent talks about how Remix improves the developer experience for edge computing. First they use the &lt;a href="https://developer.mozilla.org/pt-BR/docs/Web/API/Fetch_API" rel="noopener noreferrer"&gt;Web Fetch API&lt;/a&gt;, and depending on where you want to deploy your function. Remix then translates the request/response objects to the respective platform's API. They also support &lt;strong&gt;streaming in the edge&lt;/strong&gt;, in order to send some content to the user quickly, and then send the rest.&lt;/p&gt;

&lt;p&gt;With that said, this is all in JS/TS or WASM land. At least I haven't seen a lot of support for other languages and runtimes (e.g. C#) on services that provide edge computing.&lt;/p&gt;

&lt;h2&gt;
  
  
  Streaming server components
&lt;/h2&gt;

&lt;p&gt;With React 18 it's now possible to stream changes to the browser, with new APIs like Suspense that allows for asynchronous processing.&lt;/p&gt;

&lt;p&gt;Why is this cool? Because we &lt;strong&gt;don't want to block rendering with data fetching&lt;/strong&gt;. When our component needs to fetch data before rendering what the user wants to see, we need to render a loading spinner... which ain't cool.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How about we initiate fetches before we render. This way the requests are in parallel and don't block rendering&lt;/strong&gt;. Using streaming server rendering fixes this, which is why it's so awesome! Ryan Florence goes more in detail how this is done in this talk: &lt;a href="https://www.youtube.com/watch?v=95B8mnhzoCM" rel="noopener noreferrer"&gt;When to fetch: Remixing React Router&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Bear in mind, this is just one way of rendering. Last year at React Conf 2021 there was an intro session about this topic as well: &lt;a href="https://www.youtube.com/watch?v=pj5N-Khihgc&amp;amp;list=PLNG_1j3cPCaZZ7etkzWA7JfdmKWT0pMsa" rel="noopener noreferrer"&gt;Streaming Server Rendering with Suspense&lt;/a&gt;. Another great session that talks about the different rendering patterns: &lt;a href="https://www.youtube.com/watch?v=PN1HgvAOmi8" rel="noopener noreferrer"&gt;Advanced Rendering Patterns: Lydia Hallie&lt;/a&gt;. It's an amazing session to help you visualize the impacts on performance, and what are the trade-offs of each pattern.&lt;/p&gt;

</description>
      <category>react</category>
    </item>
    <item>
      <title>Getting Started with CloudEvents and AsyncAPI</title>
      <dc:creator>David Pereira</dc:creator>
      <pubDate>Thu, 16 Sep 2021 18:30:48 +0000</pubDate>
      <link>https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db</link>
      <guid>https://dev.to/bolt04/getting-started-with-cloudevents-and-asyncapi-8db</guid>
      <description>&lt;h2&gt;
  
  
  Table of contents
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;CloudEvents&lt;/li&gt;
&lt;li&gt;AsyncAPI&lt;/li&gt;
&lt;li&gt;Conclusion&lt;/li&gt;
&lt;li&gt;Additional Links&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the previous blog post we went over a &lt;a href="https://dev.to/bolt04/case-study-azure-service-bus-and-event-driven-architectures-4lh0"&gt;case study for Azure Service Bus&lt;/a&gt;. In this article we’ll look at two specs, CloudEvents and AsyncAPI, that you can use to solve some problems of your event-driven architectures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;At the moment, there are quite a few tools and products that have adopted CloudEvents or AsyncAPI. &lt;a href="https://knative.dev/docs/eventing/accessing-traces/#" rel="noopener noreferrer"&gt;Knative Eventing&lt;/a&gt; is a tool that helps developers in a serverless context, Azure Event Grid &lt;a href="https://docs.microsoft.com/en-us/azure/event-grid/cloud-event-schema" rel="noopener noreferrer"&gt;natively supports CloudEvents&lt;/a&gt;. More recently, Jenkins added &lt;a href="https://cd.foundation/blog/2021/09/02/jenkins-interoperability-with-cloudevents" rel="noopener noreferrer"&gt;integration with CloudEvents&lt;/a&gt; with a new plugin. It allows users to configure Jenkins as a source and a sink for CloudEvents.&lt;/p&gt;

&lt;p&gt;There is also interesting integrations between Kubernetes and Azure Event Grid that are compliant with the CloudEvents v1.0 spec. Checkout the &lt;a href="https://github.com/tomkerkhove/k8s-event-grid-bridge" rel="noopener noreferrer"&gt;GitHub repository&lt;/a&gt; or this &lt;a href="https://blog.tomkerkhove.be/2021/01/19/introducing-kubernetes-event-grid-bridge/" rel="noopener noreferrer"&gt;blog post&lt;/a&gt; and learn more about it. &lt;/p&gt;

&lt;p&gt;Postman has &lt;a href="https://blog.postman.com/asyncapi-joins-forces-with-postman-future-of-apis/" rel="noopener noreferrer"&gt;joined forces with AsyncAPI&lt;/a&gt; along with organizations such as Salesforce, Slack and Solace. Postman in particular is publishing &lt;a href="https://www.postman.com/postman/workspace/postman-open-technologies-asyncapi/example/12959542-7624bf1e-2e63-4e1f-a573-45598722af74" rel="noopener noreferrer"&gt;public collections&lt;/a&gt; related to AsyncAPI. For example a list of companies adopting AsyncAPI, with links to those resources (GitHub repositories, websites, etc).&lt;/p&gt;

&lt;p&gt;I hope these projects have got you excited to learn more about these specs. Let’s dive into some of their details!&lt;/p&gt;

&lt;h2&gt;
  
  
  CloudEvents
&lt;/h2&gt;

&lt;p&gt;The CloudEvents specification is under the &lt;a href="https://github.com/cncf/wg-serverless" rel="noopener noreferrer"&gt;CNCF Serverless working group&lt;/a&gt; since 2018. The spec's purpose is &lt;em&gt;describing event data in a common way&lt;/em&gt;. This is useful in many scenarios, for example, routing events to the appropriate subscribers depending on the &lt;em&gt;type&lt;/em&gt; of the event. Since applications can use a lot of different transports to send and receive events, the CloudEvents spec is protocol-agnostic so it defines &lt;strong&gt;protocol bindings&lt;/strong&gt; in order for the metadata to be correctly mapped for HTTP, AMQP, Kafka, etc.&lt;/p&gt;

&lt;p&gt;There are many use cases in using the CloudEvents spec, but perhaps the main one would be &lt;strong&gt;interoperability&lt;/strong&gt;. Imagine applications across clouds, being able to communicate in an event-driven architecture. Where there are producers of all sources, and consumers using all kinds of protocols (e.g. HTTP, AMQP, WebSockets). We can have middleware that connects these applications, adds E2E tracing and more with the use of CloudEvents. Of course we could connect the same applications without a common format, but it requires mapping between event formats (cloud providers use different schemas). Middleware would also need to parse the event data to get specific information.&lt;/p&gt;

&lt;p&gt;Another use case is SaaS (Software-as-a-service) that publishes events that clients are interested in to integrate with their own systems. For example, hooking into the checkout flow in a Shopify storefront to add extra checks. By leveraging CloudEvents these events can be &lt;strong&gt;consistent&lt;/strong&gt;, opening the door for numerous integrations between 3rd party software.&lt;/p&gt;

&lt;h3&gt;
  
  
  Extensions
&lt;/h3&gt;

&lt;p&gt;There are a few extensions worth mentioning, one of them is for &lt;a href="https://github.com/cloudevents/spec/blob/v1.0/extensions/distributed-tracing.md" rel="noopener noreferrer"&gt;distributed tracing&lt;/a&gt;. However, it seems there is some discussion around removing this extension from the spec (check this &lt;a href="https://github.com/cloudevents/spec/pull/751" rel="noopener noreferrer"&gt;PR on GitHub&lt;/a&gt;). There are open issues on some SDKs to support it, and others have already made changes to remove it. The future isn't clear, but I'd argue it's interesting to follow this closely for any updates, since tracing events is very important in an event-driven architecture.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/cloudevents/spec/blob/v1.0.1/extensions/partitioning.md" rel="noopener noreferrer"&gt;Partioning extension&lt;/a&gt; is another interesting extension, it defines a field to be handled by message brokers that can separate load via a partition key. This is used for example in the Kafka protocol binding that requires implementations to map the &lt;code&gt;partitionKey&lt;/code&gt; attribute to the &lt;code&gt;key&lt;/code&gt; of the Kafka message. In Kafka the concept of a partition is well known, so this maps out really well.&lt;/p&gt;

&lt;h3&gt;
  
  
  Relation with Serverless computing
&lt;/h3&gt;

&lt;p&gt;Serverless computing has increased in popularity and use in the industry, especially for it's cost model. But many FaaS (Functions-as-a-service) providers have their own function interface. Which means developers can't write a function in JavaScript, and deploy them in two cloud providers without making changes. This specification improves portability between FaaS platforms, so that developers receive an event in the same format and can reuse libraries for handling the event.&lt;/p&gt;

&lt;h2&gt;
  
  
  AsyncAPI
&lt;/h2&gt;

&lt;p&gt;I’ll start with a description of what AsyncAPI is: a specification that describes and documents event-driven APIs in a machine-readable format. It's protocol-agnostic like CloudEvents, so it can be used for APIs that work over many protocols, including MQTT, WebSockets, and Kafka. &lt;/p&gt;

&lt;p&gt;The following is AsyncAPI's vision stated on their &lt;a href="https://www.asyncapi.com/roadmap" rel="noopener noreferrer"&gt;website&lt;/a&gt;:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyduk55ed03efp6ysv8pp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyduk55ed03efp6ysv8pp.png" alt="asyncapi description - AsyncAPI becomes the #1 API specification for defining and developing APIs. Any kind of APIs." width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I find this vision to be very interesting, mainly because of the part: &lt;strong&gt;Any kind of APIs&lt;/strong&gt;. At first, you might wonder if this means the AsyncAPI spec will define rules and more concepts for other types of APIs like GraphQL or OpenAPI. But this is not at all the case, the goal is to &lt;strong&gt;integrate with existing tools and specs&lt;/strong&gt;! &lt;/p&gt;

&lt;p&gt;This is valuable for developers because usually enterprise architectures consist of a mix of technologies, each for it's appropriate use case. Developers nowadays don't just interact with RESTful APIs in a request/response model. There are different demands and considerations for the ever increasing devices users can use, the software we build needs to match these demands and still maintain manageable. Where we can evolve and create new applications that leverage the numerous APIs that exist internally or from a 3rd party.&lt;/p&gt;
&lt;h3&gt;
  
  
  Concepts
&lt;/h3&gt;

&lt;p&gt;The spec version 2.1.0 defines a few concepts apart from the common Producer, Consumer and Message. A &lt;strong&gt;Channel&lt;/strong&gt; can be seen as a topic/exchange or queue, an application can send messages to a channel and consumers can subscribe to it to receive them. The &lt;strong&gt;Operation&lt;/strong&gt; object indicates if it's a publish or a subscribe operation and how an application can send or receive messages. A &lt;strong&gt;Binding&lt;/strong&gt; (or "protocol binding") is a mechanism to define protocol-specific information or query parameters for the channel bindings. For example, for the AMQP protocol we can specify the channel is an exclusive queue like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"bindings"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"amqp"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"is"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"queue"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"queue"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"exclusive"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each protocol has it's own JSON schema and we can have bindings for Messages, Servers, Channels, Operations and others.&lt;/p&gt;

&lt;h3&gt;
  
  
  Components
&lt;/h3&gt;

&lt;p&gt;You can define &lt;strong&gt;components&lt;/strong&gt; to reuse in multiple AsyncAPI documents and we can &lt;strong&gt;reference&lt;/strong&gt; other AsncAPI documents. Let's say you have two publishers who publish the same message, but with different values in one of the message properties. We'd have two AsyncAPI documents specifying the publishers, referencing a 3rd document specifying the common message with it's properties. &lt;/p&gt;

&lt;p&gt;The &lt;code&gt;$ref&lt;/code&gt; field is a string that can be the path to the other file, or a URL for an external file where the schema we want is defined. This reference object uses the same rules and format of JSON Reference, which opens the door for many possibilites (&lt;a href="https://www.asyncapi.com/docs/specifications/v2.1.0#referenceObject" rel="noopener noreferrer"&gt;check the docs&lt;/a&gt; to know more).&lt;/p&gt;

&lt;p&gt;When we start to have a lot of apps that depend on each other’s schemas, we can take a look at some solutions to scale ou AsyncAPI documents. Perhaps we use &lt;a href="https://docs.confluent.io/platform/current/schema-registry/index.html" rel="noopener noreferrer"&gt;Confluent's Schema Registry&lt;/a&gt; for our JSON schemas and setup a &lt;strong&gt;catalog of events&lt;/strong&gt; in our organization. This empowers new developers seeking for ways to integrate with existing systems and event producers. We can also just store these components in a GitHub repository, and reference them in our AsyncAPI documents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tooling
&lt;/h3&gt;

&lt;p&gt;There is already quite a few tools and the &lt;a href="https://www.asyncapi.com/docs/community/tooling" rel="noopener noreferrer"&gt;tooling ecosystem&lt;/a&gt; is increasing! I've recently seen a &lt;a href="https://github.com/fmvilas/asyncapi-to-postman" rel="noopener noreferrer"&gt;repository&lt;/a&gt; that enables the creation of Postman collections from an AsyncAPI spec. I've also seen &lt;a href="https://github.com/asyncapi/cupid" rel="noopener noreferrer"&gt;architecture documents being generated&lt;/a&gt; from multiple AsyncAPI specs too, having a tool that can understand relations between applications and then output a diagram is pretty cool.&lt;/p&gt;

&lt;h3&gt;
  
  
  Generators for AsyncAPI
&lt;/h3&gt;

&lt;p&gt;One piece of tooling that is often used are generators that produce documentation and code. For example gRPC tools have this capability using the protocol buffer compiler. AsyncAPI generators can take an AsyncAPI document and generate client/server code or documentation in HTML and markdown. Currently, it depends on the template we use to generate server-side code, for example the &lt;a href="https://github.com/asyncapi/nodejs-ws-template" rel="noopener noreferrer"&gt;Node.js WebSocket template&lt;/a&gt; generates both server and client code. &lt;/p&gt;

&lt;p&gt;This can be improved and extended overtime, especially because of the way the &lt;a href="https://github.com/asyncapi/generator" rel="noopener noreferrer"&gt;generator&lt;/a&gt; is designed, enabling &lt;strong&gt;extensibility&lt;/strong&gt; so we can have templates for many other languages that support more protocols, etc. For example, there is only a &lt;a href="https://github.com/asyncapi/dotnet-nats-template" rel="noopener noreferrer"&gt;NATS generator for .NET Core&lt;/a&gt;... but perhaps in the future there could be more protocols supported for .NET Core and examples built for Azure 😃.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;There is a lot of exciting stuff happening in the event-driven architectures world 😄, we have only touched the surface in this post. In the CloudEvents space there are new specs being designed and worked on: Discovery; Subscription and Schema Registry APIs. Since AsyncAPI defines a document that you can use to describe your API, it'd be interesting to see how these correlate to each other, and using them together. &lt;/p&gt;

&lt;p&gt;I encourage you to join these communities and contribute to their open source projects 😄, &lt;a href="https://github.com/cloudevents" rel="noopener noreferrer"&gt;CloudEvents&lt;/a&gt; and &lt;a href="https://github.com/asyncapi" rel="noopener noreferrer"&gt;AsyncAPI&lt;/a&gt;, both specs are very community-driven. Collaboration between everyone is the way forward, with &lt;a href="https://hacktoberfest.digitalocean.com/" rel="noopener noreferrer"&gt;Hacktoberfest&lt;/a&gt; and &lt;a href="https://www.asyncapi.com/blog/events2021" rel="noopener noreferrer"&gt;AsyncAPI's Hackathon&lt;/a&gt; coming up, searching good first issues is a great way to start and to contribute 👍!&lt;/p&gt;

&lt;p&gt;Let me know in the comments if you're using these specs and what are your thoughts on them. The next blog will be about a practical example for .NET Core, Azure and AMQP messaging using CloudEvents and AsyncAPI, so stay tuned!&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Links
&lt;/h2&gt;

&lt;p&gt;Here are some links to talks, docs and blog posts that you may find useful if you're interested to know more about CloudEvents and AsyncAPI:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.youtube.com/watch?v=TZPPjAv12KU" rel="noopener noreferrer"&gt;The Serverless and Event-Driven Future - Austen Collins, Serverless (Intermediate Skill Level)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.openfaas.com/reference/triggers/#cloudevents" rel="noopener noreferrer"&gt;OpenFaaS supports CloudEvents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.postman.com/postman-galaxy/the-future-of-api-specifications/" rel="noopener noreferrer"&gt;The Future of API Specifications talk by Fran Méndez&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tech.ebayinc.com/engineering/asyncapi-2-0-enabling-the-event-driven-world/" rel="noopener noreferrer"&gt;AsyncAPI 2.0: Enabling the Event-Driven World&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>eventdriven</category>
      <category>cloudevents</category>
      <category>asyncapi</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
