<?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: Nicolas Fränkel</title>
    <description>The latest articles on DEV Community by Nicolas Fränkel (@nfrankel).</description>
    <link>https://dev.to/nfrankel</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%2F362557%2F479d9637-2db0-4b0a-8070-edbe538c4180.jpg</url>
      <title>DEV Community: Nicolas Fränkel</title>
      <link>https://dev.to/nfrankel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nfrankel"/>
    <language>en</language>
    <item>
      <title>Trading maintenance branches for build complexity</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 03 Dec 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/trading-maintenance-branches-for-build-complexity-3835</link>
      <guid>https://dev.to/nfrankel/trading-maintenance-branches-for-build-complexity-3835</guid>
      <description>&lt;p&gt;I spent the first 17 years of my career as a consultant, going from project to project. As a Developer Advocate, I worked on products but wasn't closely involved in releases. In mid-2025, I started to work on a product as an engineer. I created a plugin for the product and became its main developer/release manager/product owner.&lt;/p&gt;

&lt;p&gt;Like many engineers with their first product experience, I made a lot of mistakes. I probably am still doing a lot. However, I learned some lessons. In this post, I want to describe how I naïvely created too many branches, got slowed down because of organizational friction, and solved it with a complex build.&lt;/p&gt;

&lt;h2&gt;
  
  
  The context
&lt;/h2&gt;

&lt;p&gt;My company provides a Java-based platform whose development started around two decades ago and spans many (many!) versions. Along the way, someone decided to add a plugin-based architecture. Plugins have two main benefits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Customers can extend the platform’s features on their own&lt;/li&gt;
&lt;li&gt;The professional services team can meet the customers’ needs faster than the product team&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this context, I was tasked with migrating a bunch of proprietary scripts to a regular plugin project. I did that, and was happy about the result. Then I was asked to backport the code to really old versions: in essence, the oldest version run by customers. Trouble started then.&lt;/p&gt;

&lt;p&gt;Most products follow a “standard” lifecycle. They start by targeting a specific JDK version. Over time, they may upgrade the version, balancing several factors: the desire to leverage the latest and greatest, the cost of upgrading, the risk of staying on unsupported legacy versions, the push of their community, etc.&lt;/p&gt;

&lt;p&gt;However, you may bump the JDK version, and if things don’t break (they rarely do in Java), keep the same code. Hence, the JDK version and the product version are orthogonal. In general, your development capacity limits how many versions you can maintain in parallel.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;My problem was very different. I started from the most recent version running on Java 21, and had to make it compatible all the way back to Java 8. Here are the issues I had to handle:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Java construct changes, &lt;em&gt;e.g.&lt;/em&gt;, &lt;code&gt;var&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Java API changes, &lt;em&gt;e.g.&lt;/em&gt;, &lt;code&gt;LocalDate&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Platform API changes&lt;/li&gt;
&lt;li&gt;CI job configuration changes. Fortunately, the infrastructure team only needed a configuration PR.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In the end, I successfully kept it to five maintenance branches, one per supported platform version. I was happy, then reality hit in the form of Renovate PRs. I planned for a few features and bug fixes, but I got plenty of dependency upgrade PRs. I had to approve each one on &lt;code&gt;master&lt;/code&gt;, then cherry-pick it to every other branch.&lt;/p&gt;

&lt;p&gt;Cherry-picking was fine at first. We even have a bot for it on GitHub. Type &lt;code&gt;/cherry-pick &amp;lt;branch-name&amp;gt;&lt;/code&gt; on the merged PR, and your friendly neighbourhood bot creates one. Then, someone decided the cherry-picked PR had to be approved like any other regular PR. I had to bother colleagues and beg them for approvals. I didn’t want to impose it on my team.&lt;/p&gt;

&lt;h2&gt;
  
  
  The solutions
&lt;/h2&gt;

&lt;p&gt;There was no single solution, but one per problem category.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coping with Java and Java API changes
&lt;/h2&gt;

&lt;p&gt;One solution would have been to migrate the whole codebase to Java 8. Actually, one branch was already Java 8-compatible. However, it would have resulted in a project everyone would have hated to work on, me included. I thought about using &lt;a href="https://www.baeldung.com/java-multi-release-jar" rel="noopener noreferrer"&gt;Multi-Release Jar Files&lt;/a&gt;, but the feature starts from version 9 of the JDK.&lt;/p&gt;

&lt;p&gt;It was time for something radically “new”: Kotlin. Kotlin isn’t new to the company, since we already use it in Gradle build files. However, it wasn’t used for source code. I talked with my manager, and he was really supportive of the idea.&lt;/p&gt;

&lt;p&gt;Migration was quite smooth with the help of AI, which converted the Java code to Kotlin. I started with the test harness, increased the mutation score so the tests would catch regressions, then I migrated the production code. The only thing left was to configure the build to target Java 8 bytecode, which is backward-compatible.&lt;/p&gt;

&lt;p&gt;I hoped I could get one single branch, but another issue prevented me from succeeding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coping with the platform changes
&lt;/h2&gt;

&lt;p&gt;As I mentioned, the platform is quite old and has evolved a lot. Fortunately, breaking changes are rare. Yet, I had to cope with one early on. It seemed to me like I had to keep branches anyway, but then I thought about leveraging Gradle.&lt;/p&gt;

&lt;p&gt;Before I go further, I need to mention that we build one JAR for each platform version. Our CI jobs are matrix-like.&lt;/p&gt;

&lt;p&gt;I’m not a big Gradle fan (to &lt;a href="https://blog.frankel.ch/final-take-gradle/" rel="noopener noreferrer"&gt;say the least&lt;/a&gt;), because its vaunted flexibility is the opposite of what I care for in my builds: simplicity. In this case, however, flexibility was an advantage. In case you are wondering, I already mentioned it in 2013.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A more technical reason I’ve heard is that Spring must be compatible with different Java versions, and Maven cannot address that.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://blog.frankel.ch/stop-the-f-about-gradle/" rel="noopener noreferrer"&gt;Stop the f… about Gradle&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Spring’s choice is to trade off a more complex build for the ability to ship a single artifact that spans multiple Java versions. I kept the build simple by using Kotlin to address the Java API version gaps. However, I had to take the complex Gradle route to address the platform API version gaps.&lt;/p&gt;

&lt;p&gt;In essence, the idea was simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;keep the source code compatible with the current versions in the regular &lt;code&gt;src/main/kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;add a source root, &lt;code&gt;src/legacy/kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;for each breaking change:

&lt;ul&gt;
&lt;li&gt;create a facade method that hides the underlying details in a dedicated file&lt;/li&gt;
&lt;li&gt;create a file with the same name and method signature addressing the old API in a subfolder of &lt;code&gt;src/legacy/kotlin&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;at build time, if the built version targets the legacy API, copy the legacy file over the facade file in &lt;code&gt;build&lt;/code&gt; before the compilation phase&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That’s it.&lt;/p&gt;

&lt;p&gt;Gradle offers the option to put script code in a &lt;code&gt;buildSrc&lt;/code&gt; directory. It allows a kind of master/detail view and makes the build file smaller and more declarative. I moved my Kotlin build code there for this reason.&lt;/p&gt;

&lt;p&gt;I designed this system so it can accommodate more breaking changes in the future.&lt;/p&gt;

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

&lt;p&gt;Engineering is all about trade-offs, and software engineering is no exception. In this real-world use case, I accepted a more complex build and a slightly different language to get the benefits of a single branch. To this day, I don’t regret my decision. If the context changes, I’ll revisit it and perhaps make other trade-offs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blog.frankel.ch/github-agentic-workflow-renovate/" rel="noopener noreferrer"&gt;GitHub agentic workflows and Renovate&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.frankel.ch/gradle-metadata-renovate-integration/" rel="noopener noreferrer"&gt;Solving Gradle metadata and Renovate integration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.frankel.ch/final-take-gradle/" rel="noopener noreferrer"&gt;My final take on Gradle (vs. Maven)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.frankel.ch/stop-the-f-about-gradle/" rel="noopener noreferrer"&gt;Stop the f... about Gradle&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/trading-maintenance-branches-build-complexity/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on November 29&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>product</category>
      <category>build</category>
      <category>complexity</category>
    </item>
    <item>
      <title>On reviewing AI-generated code</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 26 Nov 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/on-reviewing-ai-generated-code-3olj</link>
      <guid>https://dev.to/nfrankel/on-reviewing-ai-generated-code-3olj</guid>
      <description>&lt;p&gt;I see a lot of posts from developers who insist on reviewing every single line of code that AI agents write. I understand the approach, because that's what we, including me, have been doing for years. However, it doesn't scale and most developers admit it.&lt;/p&gt;

&lt;p&gt;I don't think it's the right answer to AI-generated code. An agent produces code much faster than anybody can read it. Human review doesn't get better when there is more to read, quite the opposite. &lt;a href="https://smartbear.com/learn/code-review/best-practices-for-peer-code-review/" rel="noopener noreferrer"&gt;Research on peer code review&lt;/a&gt; found that defect detection drops sharply beyond a few hundred lines per hour. The study predates AI, but nothing has changed in our brains since then. If the agent writes a thousand lines while you grab a coffee, you'll read them badly, or more likely not at all.&lt;/p&gt;

&lt;p&gt;The usual conclusion is that one must accept a loss of control in exchange for productivity. I used to think so myself. I now tend to think that it's not the right way to look at it, because reading the code was never the goal. Reading was just the way we got guarantees about code. Focusing on the reading part is wrong.&lt;/p&gt;

&lt;h2&gt;
  
  
  We already stopped reading twice
&lt;/h2&gt;

&lt;p&gt;I started my career along with Java and the JVM. It means I've rubbed shoulders as a junior with senior developers who had experience in C. They were keen to point out that Java developers don't know when their objects are freed: garbage collection decides for them.&lt;/p&gt;

&lt;p&gt;When the JVM came out, C and C++ developers generally found it reckless. How can you run a serious system without knowing when memory is released? And yet, the last two decades have proven them wrong, especially in large-scale systems. The JVM has passed with flying colors, and languages without a GC, &lt;em&gt;e.g.&lt;/em&gt;, Rust, have chosen to enforce memory management at compile time.&lt;/p&gt;

&lt;p&gt;The objection was relevant at the time, though. However, since then, we built machinery that made the opaque part observable: GC logs, heap dumps, profilers, and a whole industry of tuning. We didn't lose control over memory. We moved it from the source code to the observation of the running system.&lt;/p&gt;

&lt;p&gt;The second time we let go of reading was the rise of Open Source dependencies. I challenge anyone to claim that they read their whole &lt;strong&gt;transitive&lt;/strong&gt; dependency tree. A Spring Boot application pulls in hundreds of JARs; a Node.js application, thousands of packages. Do you read them?&lt;/p&gt;

&lt;p&gt;Control went to lock files, Software Bills of Materials, vulnerability scanners, and &lt;a href="https://blog.frankel.ch/choosing-dependency/" rel="noopener noreferrer"&gt;a policy for choosing dependencies&lt;/a&gt;. When that machinery is missing, which often is the case, you get &lt;a href="https://www.theregister.com/2016/03/23/npm_left_pad_chaos/" rel="noopener noreferrer"&gt;left-pad&lt;/a&gt;: eleven lines of JavaScript removed from npm broke thousands of builds in 2016. The lesson is not that depending on code you haven't read is wrong; it's that you need to set up the machinery before you stop reading.&lt;/p&gt;

&lt;p&gt;I admit there's a difference with AI: GC and Maven are deterministic (to an extent). A Large Language Model isn't. However, it means that the machinery matters even more in the case of AI. It also means that the usual argument, "the compiler is smarter than me anyway", doesn't apply. The agent isn't a better compiler. It's a fast and tireless junior that you can't trust blindly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Partition, not loss
&lt;/h2&gt;

&lt;p&gt;To me, control isn't lost but partitioned.&lt;/p&gt;

&lt;p&gt;Tools own the mechanical: formatting and style, nullness, common bug patterns, whether the tests are sensitive to changes, and whether the behavior that the tests exercise still works. These are checks that a human does badly and a machine does perfectly, every time, in seconds. Spending human attention on them is a waste, with or without AI.&lt;/p&gt;

&lt;p&gt;Humans own three things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Intent&lt;/strong&gt;: What the software is supposed to do. The specification, and the tests that encode it. If the agent writes both the code and the tests that verify it, nobody has checked intent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Boundaries&lt;/strong&gt;: Public APIs, the security perimeter, the data model. Those are the parts where a mistake propagates to others, and where experience still beats current models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The irreversible&lt;/strong&gt;: Database migrations, deletions, anything with a large blast radius. There's no way to undo this category of mistakes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Tools are blind to several classes of problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;They don't catch wrong requirements; only a conversation with a human does.&lt;/li&gt;
&lt;li&gt;They don't catch concurrency bugs, except by luck.&lt;/li&gt;
&lt;li&gt;They don't catch performance regressions, unless you have performance tests in your pipeline.&lt;/li&gt;
&lt;li&gt;They don't catch architecture drift, unless you encode the architecture in tests, &lt;em&gt;e.g.&lt;/em&gt;, with ArchUnit.&lt;/li&gt;
&lt;li&gt;They don't catch injection, unless you run a dedicated scanner.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each of these blind spots requires a human to look at the right place. Knowing where to look is the whole point.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note: The next generation of senior developers&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Juniors become seniors by reading code, a lot of it, including bad code. If nobody reads code anymore, where do the next seniors come from? I don't have the answer.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  My flow
&lt;/h2&gt;

&lt;p&gt;I can't generalize, but here are the guardrails I'm using to limit potential issues.&lt;/p&gt;

&lt;p&gt;Note that the order in which guardrails fire matters. The earlier a problem is caught, the cheaper it is to fix.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Instructions&lt;/strong&gt;: Before the agent writes anything, it reads my instructions: coding conventions, forbidden patterns, project layout, etc. I described how I package them &lt;a href="https://blog.frankel.ch/writing-agent-skill/" rel="noopener noreferrer"&gt;as skills&lt;/a&gt;. This is the only guardrail that fires before generation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Language and ecosystem&lt;/strong&gt;: I have favored using statically and strongly typed languages. On top of that, I add a linter. If I can, I add static analysis tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing&lt;/strong&gt;: Unit tests and &lt;a href="https://blog.frankel.ch/pr-testing-kubernetes/1/" rel="noopener noreferrer"&gt;integration tests&lt;/a&gt; check the behavior. With property-based testing, I state the property, the runtime verifies it. Mutation testing checks that &lt;a href="https://blog.frankel.ch/your-code-coverage-metric-is-not-meaningful/" rel="noopener noreferrer"&gt;the tests are sensitive to changes&lt;/a&gt;. I generally finish with a healthy dose of integration testing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Post verification&lt;/strong&gt;: I believe this one is overlooked by most developers. For plans, I use my own &lt;code&gt;/challenger&lt;/code&gt; &lt;a href="https://blog.frankel.ch/design-team-agents/" rel="noopener noreferrer"&gt;subagent&lt;/a&gt;, and for code, the regular &lt;code&gt;/code-review&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Control over the text was never the goal. Control over the outcome is. The developers who review every line are right that control matters, but wrong about where to spend it. Decide what you must read, automate what you don't, and know what the automation cannot see.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://smartbear.com/learn/code-review/best-practices-for-peer-code-review/" rel="noopener noreferrer"&gt;Best Practices for Peer Code Review&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.theregister.com/2016/03/23/npm_left_pad_chaos/" rel="noopener noreferrer"&gt;How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://errorprone.info/" rel="noopener noreferrer"&gt;Error Prone&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/uber/NullAway" rel="noopener noreferrer"&gt;NullAway&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://checkstyle.org/" rel="noopener noreferrer"&gt;Checkstyle&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pitest.org/" rel="noopener noreferrer"&gt;PIT Mutation Testing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://jqwik.net/" rel="noopener noreferrer"&gt;jqwik&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/reviewing-ai-generated-code/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on November 22&lt;sup&gt;nd&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codereview</category>
      <category>opinion</category>
      <category>codingassistants</category>
    </item>
    <item>
      <title>Porto TechHub 2026</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 19 Nov 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/porto-techhub-2026-75a</link>
      <guid>https://dev.to/nfrankel/porto-techhub-2026-75a</guid>
      <description>&lt;p&gt;My conference participation has dropped sharply since I left DevRel for a regular office engineering job. In 2023, I was proud to have had &lt;a href="https://blog.frankel.ch/speaking/2023/" rel="noopener noreferrer"&gt;70 talks&lt;/a&gt;; I'll finish this year with 4, including one online and one quickie. It has one beneficial side effect, though. Because I go to so few, I take the time to attend. On Tuesday, November 10&lt;sup&gt;th&lt;/sup&gt;, I was lucky to attend and talk at the &lt;a href="https://portotechhub.com/" rel="noopener noreferrer"&gt;Porto TechHub&lt;/a&gt; conference, for the 4th year.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqk6m3p0zcdim596u4nfo.jpg" 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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqk6m3p0zcdim596u4nfo.jpg" alt="My Porto TechHub 2026 badge" width="800" height="1067"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are the talks I attended and their respective summary. If you attended a talk or are the presenter, feel free to correct my possible misunderstandings.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stop Prompting, Start Planning: Reliable Agentic AI with Embabel by Patrick Baumgartner
&lt;/h2&gt;

&lt;p&gt;I'm cheating with this one: I couldn't attend it, as it was running in parallel with one of the other talks. However, Patrick presented it at the Geneva JUG &lt;a href="https://genevajug.org/session/2026-10-27-stop-prompting-start-planning-embabel/" rel="noopener noreferrer"&gt;last month&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Patrick introduced the subject by mentioning the core issue with LLMs: their non-deterministic nature. Two guardrails can help with that.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The first is Goal-Oriented Action Planning. GOAP is a planner that lets an agent decide its course of action by providing it with a context, a goal, and a set of actions.&lt;/li&gt;
&lt;li&gt;The second is standard programmatic constructs, &lt;em&gt;e.g.&lt;/em&gt;, conditionals (&lt;code&gt;if&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Patrick then described Embabel, which aims to leverage both:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Embabel is an Agentic AI framework for the JVM. Python has long been the go-to for machine learning experiments, thanks to its ease, ecosystem richness, and data scientist-friendly tools. However, it often struggles when you try to move from experiment to real-world, production-scale AI.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://hub.embabel.com/" rel="noopener noreferrer"&gt;Embabel&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Embabel relies on Java code, types, annotations, and Spring so you can program steps in a workflow. The wiring from one step to the next is inferred via types. If the method &lt;code&gt;taskA()&lt;/code&gt; returns &lt;code&gt;TypeX&lt;/code&gt;, and the method &lt;code&gt;taskB()&lt;/code&gt; accepts &lt;code&gt;TypeX&lt;/code&gt; as a parameter, then A and B are steps, and B follows A.&lt;/p&gt;

&lt;p&gt;Patrick showed several demos grounded in business use cases and the relevant code to highlight his points. At the end, he also did a demo of a visualization tool for the code.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;My opinion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I like Spring and strong typing, even though I could nitpick about having a proper DSL instead of annotations. In any case, I must admit that I fail to see the value proposition in Embabel.&lt;/p&gt;

&lt;p&gt;We have plenty of workflow engines on the JVM. I started my Java career on one. Today, &lt;a href="https://camunda.com/" rel="noopener noreferrer"&gt;Camunda&lt;/a&gt; offers a modern Open Source platform fully compatible with BPMN. BPMN has the benefit of being backed by a &lt;a href="https://www.omg.org/spec/BPMN" rel="noopener noreferrer"&gt;specification&lt;/a&gt;. Icing on the cake, many software components provide visualization of any BPMN-based workflow.&lt;/p&gt;

&lt;p&gt;One could achieve the same benefits as Embabel with a workflow task calling an LLM.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Material: &lt;a href="https://github.com/patbaumgartner/talk-stop-prompting-start-planning-with-embabel/" rel="noopener noreferrer"&gt;https://github.com/patbaumgartner/talk-stop-prompting-start-planning-with-embabel/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Agentic Loops Every Developer Should Know by Rui Quintino
&lt;/h2&gt;

&lt;p&gt;I expected a talk in line with the title and the description. I missed the first 5 minutes, but the rest was mainly demos of what the speaker built with coding assistants. For example, he described how he wanted to edit a Word document in parallel with his assistant. However, Microsoft Word sets a lock so you can't do it. Thus, he used Claude Code to write his own Word clone to allow it.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;My opinion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The speaker was very enthusiastic about what he achieved, and I can't deny that it was great, but I didn't get anything actionable out of the talk.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Comparing Agentic AI Frameworks for Java by Sandra Ahlgrimm and Timo Salm
&lt;/h2&gt;

&lt;p&gt;The talk compares Spring AI, LangChain4j, and Embabel through the lens of an AI nutrition planner.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Capability&lt;/th&gt;
      &lt;th&gt;Spring AI&lt;/th&gt;
      &lt;th&gt;LangChain4j&lt;/th&gt;
      &lt;th&gt;Embabel&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;Deterministic workflows&lt;/th&gt;
      &lt;td&gt;Advisors &amp;amp; plain Java code&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Workflow agents&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;@State and planner&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Pure agents&lt;/th&gt;
      &lt;td&gt;&lt;span&gt;Tool calling loop&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Supervisor agent&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Built in&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Memory and state&lt;/th&gt;
      &lt;td&gt;&lt;span&gt;ChatMemory advisors&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;AgenticScope&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Blackboard&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Agentic patterns&lt;/th&gt;
      &lt;td&gt;Experimental&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Built in, some experimental&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Built in, some experimental&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Observability&lt;/th&gt;
      &lt;td&gt;Model level only&lt;/td&gt;
      &lt;td&gt;Agent listeners&lt;/td&gt;
      &lt;td&gt;Agent level&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Testing&lt;/th&gt;
      &lt;td&gt;Mocks, evaluators&lt;/td&gt;
      &lt;td&gt;Mostly manual&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Advanced testing support&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MCP&lt;/th&gt;
      &lt;td&gt;&lt;span&gt;Client and server&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;No HTTP server support&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Client and server&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;A2A&lt;/th&gt;
      &lt;td&gt;Experimental&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;Client only&lt;/span&gt;&lt;/td&gt;
      &lt;td&gt;Experimental&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Maturity&lt;/th&gt;
      &lt;td&gt;
        &lt;ul&gt;
          &lt;li&gt;Agentic experimental&lt;/li&gt;
          &lt;li&gt;Official Spring project&lt;/li&gt;
          &lt;li&gt;Enterprise support&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/td&gt;
      &lt;td&gt;Agentic experimental&lt;/td&gt;
      &lt;td&gt;&lt;span&gt;GA, plus some experimental features&lt;/span&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;My opinion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I found the talk to be to the point. The table above summarizes the comparison. I'm happy to have it if I need help choosing in the next 6 months.&lt;/p&gt;

&lt;p&gt;I also liked that the two speakers work for competing companies, Broadcom and Microsoft. Timo, from Broadcom, didn't push Spring AI over the other two. Sandra, from Microsoft, is a committer on LangChain4j, which Microsoft doesn't own.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Material:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/SandraAhlgrimm/ai-nutrition-planner/" rel="noopener noreferrer"&gt;https://github.com/SandraAhlgrimm/ai-nutrition-planner/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://spring.academy/courses/spring-ai-intro/" rel="noopener noreferrer"&gt;https://spring.academy/courses/spring-ai-intro/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's New in Git 3 by Rob Richardson
&lt;/h2&gt;

&lt;p&gt;The talk focuses on the 4 features that become the defaults in Git 3:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The hash moves from SHA-1 to SHA-256&lt;/li&gt;
&lt;li&gt;Reference storage moves from loose files to &lt;em&gt;reftable&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;The first branch moves from &lt;code&gt;master&lt;/code&gt; to &lt;code&gt;main&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Bare repositories are now &lt;code&gt;safe&lt;/code&gt; by default&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The speaker explained each item, its current state, and its future state. He also reiterated several times during the talk: these are the new defaults of existing options. Using Git 3 on a repo created with Git 2 defaults will work flawlessly. He also demoed how to migrate such a repo to the new defaults, one item at a time.&lt;/p&gt;

&lt;p&gt;According to Rob, the biggest obstacle to releasing Git 3 is the lack of support from Git hosting providers.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;My opinion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I wanted a non-AI talk, and I wasn't disappointed. I particularly liked the fact that it was targeted at Git users, not Git internals experts.&lt;/p&gt;

&lt;p&gt;I'm now able to understand each item and how its default changes between Git 2 and 3.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Material: &lt;a href="https://robrich.org/presentation/2026/11/10/git-3.aspx" rel="noopener noreferrer"&gt;https://robrich.org/presentation/2026/11/10/git-3.aspx&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Porto TechHub was a very enjoyable experience. I've been a regular speaker, and if the chance presents itself, I'll be happy to come again. Many thanks to the team for the flawless speaker experience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/patbaumgartner/talk-stop-prompting-start-planning-with-embabel/" rel="noopener noreferrer"&gt;Stop Prompting, Start Planning: Reliable Agentic AI with Embabel&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/SandraAhlgrimm/ai-nutrition-planner/" rel="noopener noreferrer"&gt;AI nutrition planner&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://spring.academy/courses/spring-ai-intro/" rel="noopener noreferrer"&gt;Spring AI introduction course&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://robrich.org/presentation/2026/11/10/git-3.aspx" rel="noopener noreferrer"&gt;What's New in Git 3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.spring.io/spring-ai/reference/index.html" rel="noopener noreferrer"&gt;Spring AI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.langchain4j.dev/" rel="noopener noreferrer"&gt;LangChain4j&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.embabel.com/" rel="noopener noreferrer"&gt;Embabel&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/porto-techhub-2026/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on November 15&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>conference</category>
      <category>techtalks</category>
      <category>porto</category>
    </item>
    <item>
      <title>Skills across coding assistants</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 12 Nov 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/skills-across-coding-assistants-53cb</link>
      <guid>https://dev.to/nfrankel/skills-across-coding-assistants-53cb</guid>
      <description>&lt;p&gt;I love Claude Code, but I use it so much that I regularly exhaust my weekly quota before the week ends. When that happens, I usually switch to other free-tier CLIs, &lt;em&gt;e.g.&lt;/em&gt;, Google Antigravity, GitHub Copilot, and, just last week, Mistral's Vibe. I really wanted to try Vibe to evaluate the feasibility of moving away from Claude Code in favor of a more sovereign solution.&lt;/p&gt;

&lt;p&gt;Vibe only offers a single model by default, Mistral Medium 3.5. It hallucinated results badly, and I noticed it immediately. When I tried to understand what happened, I realized it hadn't triggered any of my lovingly crafted skills. The reason is that Claude Code stores skills in custom locations, in opposition to most other assistants.&lt;/p&gt;

&lt;p&gt;I went through each assistant's documentation, so you don't get bitten the same way.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
&lt;th&gt;Assistant&lt;/th&gt;
&lt;th&gt;Personal&lt;/th&gt;
&lt;th&gt;Project&lt;/th&gt;
&lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Claude Code&lt;/td&gt;
      &lt;td&gt;&lt;code&gt;~/.claude/skills&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code&gt;./.claude/skills&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Antigravity&lt;/td&gt;
      &lt;td&gt;&lt;code&gt;~/.gemini/skills&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code&gt;./.agents/skills&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Vibe&lt;/td&gt;
      &lt;td&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;~/.vibe/skills&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;~/.agents/skills&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/td&gt;
      &lt;td&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;./.vibe/skills&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;./.agents/skills&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Copilot CLI&lt;/td&gt;
      &lt;td&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;~/.copilot/skills&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;~/.agents/skills&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/td&gt;
      &lt;td&gt;&lt;ul&gt;
&lt;li&gt;&lt;code&gt;./.github/skills&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;./.claude/skills&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;./.agents/skills&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://agentskills.io/client-implementation/adding-skills-support#where-to-scan" rel="noopener noreferrer"&gt;specification&lt;/a&gt; is pretty clear about it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scope&lt;/th&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;project&amp;gt;/.&amp;lt;your-client&amp;gt;/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your client’s native location&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;project&amp;gt;/.agents/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cross-client interoperability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.&amp;lt;your-client&amp;gt;/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Your client’s native location&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.agents/skills/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cross-client interoperability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My conclusion is straightforward. Put skills in &lt;code&gt;~/.agents/skills&lt;/code&gt; and &lt;code&gt;./.agents/skills&lt;/code&gt;, then symlink &lt;code&gt;~/.claude/skills&lt;/code&gt; and &lt;code&gt;./.claude/skills&lt;/code&gt; to them. If the &lt;code&gt;.claude/skills&lt;/code&gt; folders already exist, move their content to the &lt;code&gt;.agents/skills&lt;/code&gt; ones first.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ln -s ~/.agents/skills ~/.claude/skills
ln -s ../.agents/skills .claude/skills        &lt;span class="c"&gt;# 1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run it from the project root&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I love Claude Code, but it isn't a good citizen here. That's one more reason for me to try Vibe more seriously.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://agentskills.io/client-implementation/adding-skills-support#where-to-scan" rel="noopener noreferrer"&gt;Agent skills specification: where to scan&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://antigravity.google/docs/skills#antigravity-app-skill-locations" rel="noopener noreferrer"&gt;Google: Antigravity App skill locations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.mistral.ai/vibe/code/cli/skills#locations" rel="noopener noreferrer"&gt;Vibe: skill locations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/copilot/concepts/customizations/agent-skills#finding-and-storing-skills" rel="noopener noreferrer"&gt;Copilot: finding and storing skills&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/skills-across-coding-assistants/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on November 8&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codingassistants</category>
      <category>claude</category>
      <category>githubcopilot</category>
    </item>
    <item>
      <title>From Google Drive to Syncthing over Tailscale</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 05 Nov 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/from-google-drive-to-syncthing-over-tailscale-3bla</link>
      <guid>https://dev.to/nfrankel/from-google-drive-to-syncthing-over-tailscale-3bla</guid>
      <description>&lt;p&gt;I used Dropbox for decades, then switched to Google Drive. Both worked for most of my files. One file never fit, though: my KeePass password database. It's the file I need on every device and the file I want to keep private the most. After one annoyance too many, I moved it to Syncthing over Tailscale. The rest stays on Google Drive, for now. This post describes why and how.&lt;/p&gt;

&lt;h2&gt;
  
  
  The file that made me care
&lt;/h2&gt;

&lt;p&gt;My password manager is KeePass-based. I use &lt;a href="https://keepassxc.org/" rel="noopener noreferrer"&gt;KeePassXC&lt;/a&gt; on my laptop and &lt;a href="https://keepassium.com/" rel="noopener noreferrer"&gt;KeePassium&lt;/a&gt; on my iPhone and iPad. Both open the same &lt;code&gt;.kdbx&lt;/code&gt; file. The file is a single encrypted binary, written as a whole on every change and protected with a physical security key. I edit it on any device, sometimes offline. That's the worst case for any sync tool.&lt;/p&gt;

&lt;p&gt;In my original setting, Google Drive was the proxy between my laptop and my phone. I bought the KeePassium premium tier for its Google Drive integration. The setup was dead easy, and it worked. However, now and then, the copy on my iPhone stopped following the one on my laptop. The likely culprit is how KeePassXC saves: it writes a temporary file, deletes the original, and renames the temporary file to the original name. Google Drive tracks files by identifier, not by name, so the renamed file is new. KeePassium kept pointing to the deleted one. Either I accepted a stale database, or I pointed KeePassium to the new file. Re-adding a database means unlocking it from scratch, and mine is protected by the physical security key. Fetching the key every few weeks got old. I had to find a solution.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Switching to another save method would have fixed the annoyance. Unfortunately, I learned about KeePassXC's &lt;a href="https://keepassxc.org/docs/KeePassXC_UserGuide#_advanced_save_options" rel="noopener noreferrer"&gt;safe saves&lt;/a&gt; only while researching for this post. And I won't go back anyway, as I want to move away from Google and other US-based megacorps.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Drive also keeps every version of the file on Google's servers. For documents I edit with other people, it's a feature. For a file I'm the only one to edit, it's a history of my password database that lives on Google's servers. The underlying issue is not Google Drive per se.&lt;/p&gt;

&lt;p&gt;For the record, moving away from Google also benefits &lt;a href="https://blog.frankel.ch/pi-hole-tailscale/" rel="noopener noreferrer"&gt;my privacy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Syncthing, and why Tailscale
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://syncthing.net/" rel="noopener noreferrer"&gt;Syncthing&lt;/a&gt; is a peer-to-peer file synchronization tool. Each device runs its own instance and has a unique identifier. You pair devices by exchanging identifiers. You then share folders with specific devices, one folder at a time. No server owns the data: every device holds a full copy of the folders it subscribes to. Nodes can be both send and receive, or receive only.&lt;/p&gt;

&lt;p&gt;Syncthing works out of the box on the public Internet. To do that, it relies on infrastructure run by the Syncthing project: &lt;em&gt;global discovery&lt;/em&gt; servers, where each device announces its current IP address, and &lt;em&gt;relay&lt;/em&gt; servers, which forward encrypted traffic when two devices can't reach each other directly. &lt;strong&gt;Traffic is encrypted end-to-end in both cases.&lt;/strong&gt; Still, a third party knows my devices' addresses, and my encrypted traffic may go through its relays.&lt;/p&gt;

&lt;p&gt;I already have a private network between all my devices, thanks to Tailscale. I described the setup in &lt;a href="https://blog.frankel.ch/cloudflare-zero-trust-tailscale/" rel="noopener noreferrer"&gt;a previous post&lt;/a&gt;. Every device has a stable name and address on the mesh, wherever it is. With Tailscale, Syncthing needs neither discovery servers nor relays. I can switch them off and address the devices by name.&lt;/p&gt;

&lt;p&gt;I'm fully aware that Tailscale is a third party too. Its coordination servers distribute the devices' public keys and know which device connects to which, and from where, though they never see the traffic.&lt;/p&gt;

&lt;p&gt;However, Tailscale clients are Open Source, and &lt;a href="https://headscale.net/" rel="noopener noreferrer"&gt;Headscale&lt;/a&gt; is a self-hosted implementation of the coordination server that the official macOS, iOS, and Synology clients can log into. If I ever want out, I can move my four devices in an afternoon. It's a real exit, albeit not a completely free one: every device gets a new key, a new address, and a new name, and relayed traffic still goes through Tailscale's servers unless I run my own. For now, convenience wins.&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm3pbi8u406j19i5hlzw8.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm3pbi8u406j19i5hlzw8.png" alt="Syncthing devices connected through the Tailscale mesh" width="572" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The topology is a star. The NAS is always on, so every other device pairs with it only. The laptop, the iPhone, and the iPad never talk to each other. It makes the configuration simpler, at the cost of a single point of failure. I'll get back to it. The NAS has no special role in the protocol. It's the hub only because it never sleeps.&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The following assumes Tailscale already runs on every device and that &lt;a href="https://tailscale.com/kb/1081/magicdns" rel="noopener noreferrer"&gt;MagicDNS&lt;/a&gt; is enabled, so that each device has a name of the form &lt;code&gt;&amp;lt;device&amp;gt;.&amp;lt;tailnet&amp;gt;.ts.net&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Synology setup
&lt;/h3&gt;

&lt;p&gt;Syncthing is available for Synology via &lt;a href="https://synocommunity.com/" rel="noopener noreferrer"&gt;SynoCommunity&lt;/a&gt;. In the Package Center, add &lt;code&gt;https://packages.synocommunity.com&lt;/code&gt; as a package source, then install Syncthing. The package isn't verified by Synology, but it's expected. Once started, the web interface is at &lt;code&gt;http://nas.&amp;lt;tailnet&amp;gt;.ts.net:8384&lt;/code&gt;. It has no password by default. Set one under &lt;strong&gt;Actions &amp;gt; Settings &amp;gt; GUI&lt;/strong&gt;. The package runs under its own user; give it write access to the shared folder in Control Panel.&lt;/p&gt;

&lt;p&gt;Open it, then go to &lt;strong&gt;Actions &amp;gt; Settings &amp;gt; Connections&lt;/strong&gt;. Uncheck &lt;strong&gt;Global Discovery&lt;/strong&gt;, &lt;strong&gt;Enable Relaying&lt;/strong&gt;, and &lt;strong&gt;Enable NAT traversal&lt;/strong&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmon9apdinchrvyglkm2s.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmon9apdinchrvyglkm2s.png" alt="Syncthing connection settings on the NAS with discovery, relaying, and NAT traversal unchecked" width="800" height="513"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Local discovery is harmless, but I unchecked it too. The NAS doesn't need to find any other devices; devices find it. With NAT traversal on, Syncthing asks the router to forward port 22000 from the Internet, and queries public STUN servers to learn its public address. My router ignores the request, so no port ever opens.&lt;/p&gt;

&lt;p&gt;The phone still listed my public IP among the NAS's addresses: the discovery server fills it in from wherever the announcement came from. I unchecked the box anyway, so the NAS talks to neither the router nor the STUN servers.&lt;/p&gt;

&lt;p&gt;Syncthing connections work in both directions, so it's enough for one side of each pair to know the other's address. On a Synology, the side is forced. The Tailscale package runs in userspace mode: the NAS accepts connections from the tailnet, but can't open any. So every device holds the NAS address, and the NAS keeps every device as &lt;code&gt;dynamic&lt;/code&gt;. Without discovery, &lt;code&gt;dynamic&lt;/code&gt; means the NAS never dials anybody.&lt;/p&gt;

&lt;p&gt;Then, create the folder. Click &lt;strong&gt;Add Folder&lt;/strong&gt; and choose the path on the NAS. Leave the &lt;strong&gt;Sharing&lt;/strong&gt; tab empty for now. Devices come next, and they introduce themselves. In the &lt;strong&gt;File Versioning&lt;/strong&gt; tab, choose &lt;strong&gt;Simple File Versioning&lt;/strong&gt;. The NAS keeps the last few versions of each file in a &lt;code&gt;.stversions&lt;/code&gt; folder. It's the only device that does.&lt;/p&gt;

&lt;h3&gt;
  
  
  Mac OS setup
&lt;/h3&gt;

&lt;p&gt;On macOS, Homebrew does the job:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brew &lt;span class="nb"&gt;install &lt;/span&gt;syncthing
brew services start syncthing
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The web interface is at &lt;code&gt;http://127.0.0.1:8384&lt;/code&gt;. Apply the same connection settings as on the NAS. Open &lt;strong&gt;Actions &amp;gt; Show ID&lt;/strong&gt; on the NAS web interface, and on the laptop click &lt;strong&gt;Add Remote Device&lt;/strong&gt;. Paste the NAS identifier and set its address to &lt;code&gt;tcp://nas.&amp;lt;tailnet&amp;gt;.ts.net:22000&lt;/code&gt;. Within a minute, the NAS shows a banner: a new device wants to connect.&lt;/p&gt;

&lt;p&gt;Accept it, leave its address as &lt;code&gt;dynamic&lt;/code&gt;, and tick the folder in the &lt;strong&gt;Sharing&lt;/strong&gt; tab. The laptop then shows the folder offer. Accept it and set the path to where you want to store your files. When it works, the NAS lists the laptop as connected, and the folder reads "Up to Date" on both sides. At home, Tailscale connects the two directly on the LAN, so the same address works everywhere.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; macOS refuses background processes access to Documents, Desktop, and Downloads &lt;strong&gt;unless you grant it explicitly&lt;/strong&gt;. Syncthing runs as a background service, so a folder under Documents stops with "operation not permitted". Keep synced folders elsewhere, &lt;code&gt;~/Sync&lt;/code&gt; for example.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  iOS setup
&lt;/h3&gt;

&lt;p&gt;Syncthing has no official iOS client. I use &lt;a href="https://apps.apple.com/us/app/sync-anything/id6776331289" rel="noopener noreferrer"&gt;Sync Anything&lt;/a&gt;. It's freemium: the free version synchronizes to one single folder on one single device. If you want more, you know what to do.&lt;/p&gt;

&lt;p&gt;On the phone, add the NAS by scanning the QR code from the NAS's &lt;strong&gt;Actions &amp;gt; Show ID&lt;/strong&gt; screen. Tap &lt;strong&gt;Edit&lt;/strong&gt; on the NAS entry and replace &lt;code&gt;dynamic&lt;/code&gt; with &lt;code&gt;tcp://nas.&amp;lt;tailnet&amp;gt;.ts.net:22000&lt;/code&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6dlhz0uiy24xn28v2nu5.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6dlhz0uiy24xn28v2nu5.png" alt="Sync Anything device screen with the NAS tailnet address" width="800" height="1346"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Accept the phone on the NAS and tick the folder, as for the laptop. Accept the folder on the phone. Sync Anything doesn't expose the connection switches, so the phone still announces itself to the discovery servers and may use a relay. With the NAS address set, it connects over Tailscale first. That's the leak I couldn't close.&lt;/p&gt;

&lt;p&gt;One thing differs from the laptop: iOS doesn't allow apps to run permanently in the background. Sync happens while the app is open, and opportunistically otherwise. Note that Tailscale must be up on the phone too.&lt;/p&gt;

&lt;h3&gt;
  
  
  KeePassium and KeePassXC setup
&lt;/h3&gt;

&lt;p&gt;Nothing changes on the laptop: KeePassXC opens the &lt;code&gt;.kdbx&lt;/code&gt; file from the synced folder. On the phone, open KeePassium, add a database, and browse the Files app to the Sync Anything location. KeePassium reads and writes a local file. No cloud connector, and no reason to re-add the database, so the security key stays in the drawer.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I sync
&lt;/h3&gt;

&lt;p&gt;Syncthing shares folders, not a root. &lt;strong&gt;Any folder&lt;/strong&gt;, &lt;strong&gt;anywhere on the disk&lt;/strong&gt;, with &lt;strong&gt;any subset of devices&lt;/strong&gt;. It's a great benefit compared to Dropbox and Google Drive, as they sync a single root folder, and the most you can do is pick which subfolders a device gets.&lt;/p&gt;

&lt;p&gt;In practice, I don't use it yet. For now, I sync a single root folder with the NAS, which only contains the password database. Photos go through Synology Photos, which has its own app. Payslips are the next candidate, but I don't need them on my phone, and I seldom read them at all. That's a question of long-term storage rather than sync, and a design problem for another day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trade-offs
&lt;/h2&gt;

&lt;p&gt;The setup has trade-offs, however.&lt;/p&gt;

&lt;p&gt;Four devices, no server, and a file written as a whole on every change: conflicts are possible. If I edit the database on the phone while offline, then on the laptop, Syncthing keeps both and renames one &lt;code&gt;.sync-conflict-*&lt;/code&gt;. KeePassXC can merge two databases, so recovery is a matter of minutes. It didn't happen to me yet, but I know I'm covered in case.&lt;/p&gt;

&lt;p&gt;Because of the iOS background restriction, the phone copy can lag. I need to open Sync Anything before KeePassium when I know I changed a password. It's a habit, not a solution.&lt;/p&gt;

&lt;p&gt;Also, the star topology means that when the NAS is down, nothing syncs. The laptop and phone each keep their last copy and carry on. It's acceptable for me, since the NAS is the most reliable device in the house. Pairing the laptop directly with the phone would remove the issue, but Sync Anything's free tier allows a single remote device.&lt;/p&gt;

&lt;p&gt;Finally, I don't run a database backup. It exists on four devices, but four copies that stay identical aren't a backup: a deletion or a corrupted save would propagate to all four within seconds. That's why the NAS keeps old versions. It covers potentially bad edits. The NAS itself isn't backed up; if it dies, three current copies survive, but the history goes with it. I accept that. RAID 5 covers a dead disk, and the history is a convenience, not a necessity.&lt;/p&gt;

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

&lt;p&gt;My password database forced me to question where my files live. The answer is on my machines, and only there. Syncthing does the synchronization, and Tailscale gives it a private network with stable names. I'm happy to move away from Google Drive, even if for one file.&lt;/p&gt;

&lt;p&gt;Bit by bit, step by step. The next ones are files that I read often but don't write often, and archive files.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://syncthing.net/" rel="noopener noreferrer"&gt;Syncthing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.syncthing.net/intro/getting-started.html" rel="noopener noreferrer"&gt;Syncthing documentation: Getting Started&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.syncthing.net/users/config.html" rel="noopener noreferrer"&gt;Syncthing documentation: Configuration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://synocommunity.com/" rel="noopener noreferrer"&gt;SynoCommunity&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://apps.apple.com/us/app/sync-anything/id6776331289" rel="noopener noreferrer"&gt;Sync Anything&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tailscale.com/" rel="noopener noreferrer"&gt;Tailscale&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://headscale.net/" rel="noopener noreferrer"&gt;Headscale, a self-hosted Open Source Tailscale implementation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://keepassium.com/" rel="noopener noreferrer"&gt;KeePassium&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://keepassxc.org/" rel="noopener noreferrer"&gt;KeePassXC&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/google-drive-syncthing-tailscale/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on November 1&lt;sup&gt;st&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>synchting</category>
      <category>tailscale</category>
      <category>keepass</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Scraping websites and bot-protection</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 15 Oct 2026 18:55:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/scraping-websites-and-bot-protection-52f2</link>
      <guid>https://dev.to/nfrankel/scraping-websites-and-bot-protection-52f2</guid>
      <description>&lt;p&gt;While searching for my ancestors, I had to access data from many different websites. I noticed there were different levels of protection against automated access depending on the site. In this post, I'll list them and mention countermeasures you can take to bypass them anyway.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; As a private person using the data for my own personal use, I have no qualms about bypassing the protection. It can be considered fair use. However, I don't know about your context, and I'm not saying you should. Scrape responsibly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  The need for bot protection
&lt;/h2&gt;

&lt;p&gt;Genealogy and public records sites provide lots of data. Many actors are interested in this data: it's normal, and even expected, that providers want to protect their assets.&lt;/p&gt;

&lt;p&gt;The usual &lt;code&gt;robots.txt&lt;/code&gt; approach is a simple request to bots.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Despite the use of the terms allow and disallow, the protocol is purely advisory and relies on the compliance of the web robot; it cannot enforce any of what is stated in the file. Malicious web robots are unlikely to honor robots.txt; some may even use the robots.txt as a guide to find disallowed links and go straight to them.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://en.wikipedia.org/wiki/Robots.txt#Security" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Thus, most sites require actual anti-bot protection.&lt;/p&gt;

&lt;h2&gt;
  
  
  No protection
&lt;/h2&gt;

&lt;p&gt;The base level has little to no protection. Some sites do a surface check, but it's not serious protection. The check differs from site to site.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl&lt;/code&gt; options are enough to access the data:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;User agent: pass the &lt;code&gt;User-Agent&lt;/code&gt; via &lt;code&gt;-A&lt;/code&gt;, &lt;em&gt;e.g.&lt;/em&gt;, &lt;code&gt;-A "Mozilla/5.0"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Referer: the referer is the URL of the page from which the link was clicked. Some sites check it on image requests only, and return a 403 without it. Use the &lt;code&gt;-e&lt;/code&gt; option, &lt;em&gt;e.g.&lt;/em&gt;, &lt;code&gt;-e https://frankel.ch/&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Session cookies: this one is a bit more involved, but still easily manageable. &lt;code&gt;curl&lt;/code&gt; provides the &lt;code&gt;-c&lt;/code&gt; and &lt;code&gt;-b&lt;/code&gt; options to store and load cookies.&lt;br&gt;
&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-c&lt;/span&gt; cookies.txt https://frankel.ch                &lt;span class="c"&gt;# 1&lt;/span&gt;
curl &lt;span class="nt"&gt;-b&lt;/span&gt; cookies.txt https://frankel.ch                &lt;span class="c"&gt;# 2&lt;/span&gt;
curl &lt;span class="nt"&gt;-b&lt;/span&gt; cookies.txt &lt;span class="nt"&gt;-c&lt;/span&gt; cookies.txt https://frankel.ch &lt;span class="c"&gt;# 3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Store cookies to `cookies.txt`
2. Load cookies from `cookies.txt`
3. Load and store, thus maintaining cookie-based session state
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If a site at this level still refuses &lt;code&gt;curl&lt;/code&gt;, it's probably fingerprinting the TLS handshake. Browsers use fixed combinations of ciphers and extensions, and the digest of the combination is a fingerprint, &lt;a href="https://developers.cloudflare.com/bots/additional-configurations/ja3-ja4-fingerprint/" rel="noopener noreferrer"&gt;JA3 or JA4&lt;/a&gt;, that identifies the client, whatever the &lt;code&gt;User-Agent&lt;/code&gt; says. &lt;a href="https://curl-cffi.readthedocs.io/en/latest/impersonate/fingerprint.html" rel="noopener noreferrer"&gt;&lt;code&gt;curl_cffi&lt;/code&gt;&lt;/a&gt; can impersonate a browser's fingerprint from Python. I never needed it: by the time a site fingerprints TLS, it usually also requires JavaScript, which is the next level.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lack of JavaScript
&lt;/h2&gt;

&lt;p&gt;At this step, the site requires JavaScript. It might be either a genuine attempt at protecting against bots, or just that the developer designed a site fully JavaScript-based. The second case is more frequent than you'd think: search forms built from JavaScript widgets, image viewers that populate their cache lazily, catalogues that load their tree on click. Nothing hostile, just no HTML to &lt;code&gt;curl&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I encountered two different bot guards.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://anubis.techaro.lol/" rel="noopener noreferrer"&gt;Anubis&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Anubis is an open source software program that adds a proof of work challenge to websites before users can access them in order to deter web scraping. It has been adopted mainly by Git forges and free and open-source software projects.&lt;/p&gt;

&lt;p&gt;Anubis was created by Xe Iaso in response to Amazon's web crawler overloading their Git server, as the crawler did not respect the robots.txt exclusion protocol and would work around restrictions.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://en.wikipedia.org/wiki/Anubis_(software)" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgypx8vlrd6ap32qe7295.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgypx8vlrd6ap32qe7295.png" alt="Anubis challenge screen" width="799" height="473"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The challenge is a &lt;a href="https://lwn.net/Articles/1028558/" rel="noopener noreferrer"&gt;Hashcash-style proof of work&lt;/a&gt;: the browser appends a number to the challenge and hashes the result with SHA-256. It must find a number whose hash starts with a configurable count of zeros, in hexadecimal. A passing client gets a signed JWT cookie, valid for a while. A client without JavaScript gets nothing. For the record, Anubis' own documentation site is behind Anubis, and it blocked the fetcher I used to look up the documentation while writing this post.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Cloudflare JavaScript detection:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;JavaScript Detections is implemented on your website via a lightweight, invisible JavaScript code snippet that follows Cloudflare's privacy standards.&lt;/p&gt;

&lt;p&gt;JavaScript is injected only in response to requests for HTML pages or page views, excluding AJAX calls. API and mobile application traffic is unaffected.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://developers.cloudflare.com/cloudflare-challenges/challenge-types/javascript-detections/" rel="noopener noreferrer"&gt;Cloudflare docs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To bypass any of them, or similar bot-protection mechanisms, just use a browser. You can steer it with browser-automation software, such as &lt;a href="https://playwright.dev/" rel="noopener noreferrer"&gt;Playwright&lt;/a&gt;. On several sites, a headless browser was enough.&lt;/p&gt;

&lt;p&gt;Not on all of them, though. Cloudflare's &lt;a href="https://developers.cloudflare.com/bots/concepts/bot-score/" rel="noopener noreferrer"&gt;own documentation&lt;/a&gt; says JavaScript Detections "catches headless browsers (browsers controlled by software, with no visible window or human operator) and other automation tools". Whether a headless browser gets through a JavaScript check depends on how the site is configured.&lt;/p&gt;

&lt;h2&gt;
  
  
  Headless browser
&lt;/h2&gt;

&lt;p&gt;This is the level where the fun stuff begins. Some sites do reject headless browsers. I can only hint at some reasons, though I didn't dig deeper:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Client fingerprinting: the TLS handshake and the HTTP/2 settings differ between a browser and a Python client, as seen above. They don't differ between headed and headless mode of the same binary. However, Playwright's default headless mode runs &lt;a href="https://developer.chrome.com/docs/chromium/headless" rel="noopener noreferrer"&gt;&lt;code&gt;chrome-headless-shell&lt;/code&gt;&lt;/a&gt;, a different binary, unless you set a &lt;code&gt;channel&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Rendering environment fingerprinting: headless has no real GPU. Screen size, colour depth and device pixel ratio are canned. Fonts differ. Canvas and AudioContext fingerprints come out different.&lt;/li&gt;
&lt;li&gt;Declared identity: headless Chrome still sends a &lt;code&gt;User-Agent&lt;/code&gt; containing &lt;code&gt;HeadlessChrome&lt;/code&gt;. It also sets &lt;code&gt;navigator.webdriver&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt;. That property is a &lt;a href="https://www.w3.org/TR/webdriver2/#interface" rel="noopener noreferrer"&gt;W3C standard&lt;/a&gt;, "a standard way for co-operating user agents to inform the document that it is controlled by WebDriver". Chromium &lt;a href="https://source.chromium.org/chromium/chromium/src/+/main:content/child/runtime_features.cc" rel="noopener noreferrer"&gt;sets it&lt;/a&gt; for &lt;code&gt;--headless&lt;/code&gt;, for &lt;code&gt;--enable-automation&lt;/code&gt;, and for &lt;code&gt;--remote-debugging-pipe&lt;/code&gt;, the channel Playwright uses to talk to the browser. Note that the last two apply whether the browser is headless or not. The &lt;code&gt;--disable-blink-features=AutomationControlled&lt;/code&gt; argument hides the property, but it's no guarantee.&lt;/li&gt;
&lt;li&gt;Missing JavaScript objects: &lt;code&gt;window.chrome&lt;/code&gt; and the plugin list used to be empty in headless Chrome. Chrome unified headless and headed modes in version 112. Since version 132, the old mode only survives as the standalone &lt;code&gt;chrome-headless-shell&lt;/code&gt; binary. That's the binary Playwright's default headless mode runs on, so the old signals still apply there.&lt;/li&gt;
&lt;li&gt;Irrelevant GUI data: &lt;code&gt;outerWidth&lt;/code&gt; equals &lt;code&gt;innerWidth&lt;/code&gt; in headless, because there's no window frame around the page. In a real window, they differ.&lt;/li&gt;
&lt;li&gt;Behaviour: no mouse movement, no scroll, instant form fills, and page loads never request favicons or prefetches.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I experienced two components that implemented one or more of the above:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href="https://www.cloudflare.com/products/turnstile/" rel="noopener noreferrer"&gt;Turnstile&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Cloudflare Turnstile confirms web visitors are real and blocks unwanted bots without slowing down web experiences for real users. It's a simple snippet of free code that eliminates CAPTCHAs. With Turnstile, you can deliver better experiences and strengthen privacy for all users.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://www.cloudflare.com/products/turnstile/" rel="noopener noreferrer"&gt;Cloudflare&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.imperva.com/products/advanced-bot-protection-management/" rel="noopener noreferrer"&gt;Imperva&lt;/a&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The product doesn't decide the level; the site's configuration does. I met Turnstile on one site where a headed browser passed, and on another where it didn't.&lt;/p&gt;

&lt;p&gt;To get past most of them, use a headed browser. You can steer it with Playwright, or any other browser automation API. Unfortunately, it means you need a system with a GUI, or somehow manage to forward the display to an X server. It works perfectly for me on my personal laptop.&lt;/p&gt;

&lt;p&gt;Some sites needed two more things:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A persistent browser profile&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When a human clears the challenge once in a profile, the browser gets a clearance cookie. Cloudflare &lt;a href="https://developers.cloudflare.com/cloudflare-challenges/concepts/clearance/" rel="noopener noreferrer"&gt;documents it&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A &lt;code&gt;cf_clearance&lt;/code&gt; cookie proves to Cloudflare that the visitor is a verified human and has passed Cloudflare's client-side verifications. The cookie is securely tied to the specific visitor and device it was issued to, preventing reuse across machines.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://developers.cloudflare.com/cloudflare-challenges/concepts/clearance/" rel="noopener noreferrer"&gt;Cloudflare docs&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Copying the cookie into a fresh browser context doesn't work: the fingerprint of the browser presenting the cookie must match the one that earned it. I tested it on the same site the same day: a fresh context got an unsolvable challenge; the reused profile got no challenge at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A real branded Chrome&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Not the Chromium that Playwright bundles! Playwright's &lt;a href="https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context" rel="noopener noreferrer"&gt;&lt;code&gt;launch_persistent_context&lt;/code&gt;&lt;/a&gt; handles both:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch_persistent_context&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;user_data_dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.browser-profiles/some-site&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;             &lt;span class="c1"&gt;# 1
&lt;/span&gt;    &lt;span class="n"&gt;channel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;chrome&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                                        &lt;span class="c1"&gt;# 2
&lt;/span&gt;    &lt;span class="n"&gt;headless&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;                                          &lt;span class="c1"&gt;# 3
&lt;/span&gt;    &lt;span class="n"&gt;args&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;--disable-blink-features=AutomationControlled&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;  &lt;span class="c1"&gt;# 4
&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Persistent profile: cookies, local storage, and the clearance live here&lt;/li&gt;
&lt;li&gt;Branded Google Chrome instead of the bundled Chromium&lt;/li&gt;
&lt;li&gt;Headed&lt;/li&gt;
&lt;li&gt;Hide &lt;code&gt;navigator.webdriver&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Clear the challenge by hand once, and never close the context at the end of a script: closing it closes the session.&lt;/p&gt;

&lt;h2&gt;
  
  
  Browser automation
&lt;/h2&gt;

&lt;p&gt;Even headed browsers can't defeat advanced protections. More precisely, headed browsers &lt;em&gt;launched by the automation tool&lt;/em&gt; can't. On one site, I used an automated headed browser when in front of the computer. The website showed an "I'm a human" CAPTCHA checkbox. I clicked it. Several times. To no avail.&lt;/p&gt;

&lt;p&gt;Here's what I measured on that site, with the same stored profile in both cases:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Chrome started by&lt;/th&gt;
&lt;th&gt;HTTP status&lt;/th&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Playwright, headed, &lt;code&gt;AutomationControlled&lt;/code&gt; disabled, profile previously cleared by a human&lt;/td&gt;
&lt;td&gt;403&lt;/td&gt;
&lt;td&gt;Empty body, no challenge served at all&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The shell, with &lt;code&gt;--remote-debugging-port&lt;/code&gt;, then Playwright attached to it&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;Page content, seven cookies including the clearance&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Everything is the same, except who launched the browser. The site somehow sniffs the launch method, before even offering a challenge!&lt;/p&gt;

&lt;p&gt;I don't know which signal it uses. Playwright launches Chrome with a list of switches of its own: &lt;code&gt;--enable-automation&lt;/code&gt;, &lt;code&gt;--remote-debugging-pipe&lt;/code&gt;, &lt;code&gt;--disable-extensions&lt;/code&gt;, &lt;code&gt;--disable-field-trial-config&lt;/code&gt;, a long &lt;code&gt;--disable-features=&lt;/code&gt; list, and &lt;code&gt;--use-mock-keychain&lt;/code&gt;. One known difference: Chromium sets &lt;code&gt;navigator.webdriver&lt;/code&gt; for &lt;code&gt;--remote-debugging-pipe&lt;/code&gt;, but for &lt;code&gt;--remote-debugging-port&lt;/code&gt; only when the port is &lt;code&gt;0&lt;/code&gt;. On port 9222, the property stays &lt;code&gt;false&lt;/code&gt; without any extra flag.&lt;/p&gt;

&lt;p&gt;The conclusion is pretty straightforward: launch Chrome yourself, and let the automation tool attach to it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/Applications/Google&lt;span class="se"&gt;\ &lt;/span&gt;Chrome.app/Contents/MacOS/Google&lt;span class="se"&gt;\ &lt;/span&gt;Chrome &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--remote-debugging-port&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;9222 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--user-data-dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PWD&lt;/span&gt;&lt;span class="s2"&gt;/.browser-profiles/some-site"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--no-first-run&lt;/span&gt; &lt;span class="nt"&gt;--no-default-browser-check&lt;/span&gt; &amp;amp;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Solve the challenge once in that window, by hand. Don't navigate while the challenge runs. Then attach:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;browser&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;pw&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chromium&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;connect_over_cdp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://127.0.0.1:9222&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;context&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;browser&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;contexts&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;                                          &lt;span class="c1"&gt;# 1
&lt;/span&gt;&lt;span class="n"&gt;page&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;context&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;new_page&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;                                        &lt;span class="c1"&gt;# 2
&lt;/span&gt;&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;goto&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;evaluate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;document.body.innerText&lt;/span&gt;&lt;span class="sh"&gt;"&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;page&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;close&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;The existing context, with the cleared profile&lt;/li&gt;
&lt;li&gt;A new tab per fetch; close the tab, never the context&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Playwright &lt;a href="https://playwright.dev/python/docs/api/class-browsertype#browser-type-connect-over-cdp" rel="noopener noreferrer"&gt;documents&lt;/a&gt; &lt;code&gt;connect_over_cdp&lt;/code&gt;, and warns that it "is significantly lower fidelity than the Playwright protocol connection". Some events don't fire. I read the page text and parse it myself instead of intercepting responses.&lt;/p&gt;

&lt;p&gt;Two traps cost me time.&lt;/p&gt;

&lt;p&gt;The first one is silent. Since Chrome 136, &lt;a href="https://developer.chrome.com/blog/remote-debugging-port" rel="noopener noreferrer"&gt;the debugging port is ignored on the default profile&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;These switches will no longer be respected if attempting to debug the default Chrome data directory. These switches must now be accompanied by the &lt;code&gt;--user-data-dir&lt;/code&gt; switch to point to a non-standard directory.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://developer.chrome.com/blog/remote-debugging-port" rel="noopener noreferrer"&gt;Chrome for Developers&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;There's no warning on the console and no error in the window. Chrome starts normally, and the port just isn't there. The symptom is &lt;code&gt;curl http://127.0.0.1:9222/json/version&lt;/code&gt; failing to connect while &lt;code&gt;ps&lt;/code&gt; shows the flag on the command line.&lt;/p&gt;

&lt;p&gt;The second one is just as silent. Launching Chrome while another instance uses the same profile hands the launch over to the running instance. The debugging port never opens. Quit Chrome fully first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Human
&lt;/h2&gt;

&lt;p&gt;Not every automation-hostile site becomes reachable once a human drives the browser. One site detected my own, hand-driven, everyday Chrome. There was no CAPTCHA to solve and no clearance to earn. I gave up and found the data on a mirror.&lt;/p&gt;

&lt;p&gt;Paywalls are the same story. A site that masks fields for free-tier accounts isn't detecting bots; no browser trick reveals them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bonus: rate limiting
&lt;/h2&gt;

&lt;p&gt;Rate limiting is orthogonal to all the levels above. On one site, after half a dozen rapid requests, everything stopped working at once: &lt;code&gt;curl&lt;/code&gt;, Playwright, and my own hand-driven everyday browser got the same refusal. The site had blocked my IP, regardless of the client behind it.&lt;/p&gt;

&lt;p&gt;I tried to connect through a VPN, which gave me another client IP, and the site worked again immediately. For later runs, I self-throttled with a &lt;code&gt;sleep&lt;/code&gt; between requests and never hit the limit again.&lt;/p&gt;

&lt;p&gt;Another site caps the number of search queries per day, regardless of the client. There's no trick there either: treat a capped query as not run rather than as a negative result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Level&lt;/th&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Works, or 403 without a &lt;code&gt;User-Agent&lt;/code&gt;/&lt;code&gt;Referer&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No protection&lt;/td&gt;
&lt;td&gt;&lt;code&gt;curl -A -e -b -c&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Empty page, challenge page, or "enable JavaScript"&lt;/td&gt;
&lt;td&gt;Lack of JavaScript&lt;/td&gt;
&lt;td&gt;Headless Playwright&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Challenge that never resolves headless, content to a window&lt;/td&gt;
&lt;td&gt;Headless browser&lt;/td&gt;
&lt;td&gt;Headed Chrome, persistent profile, one manual clearance&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;403 or an unsolvable CAPTCHA to a Playwright-launched window&lt;/td&gt;
&lt;td&gt;Browser automation&lt;/td&gt;
&lt;td&gt;Shell-launched Chrome with &lt;code&gt;--remote-debugging-port&lt;/code&gt; and &lt;code&gt;--user-data-dir&lt;/code&gt;, &lt;code&gt;connect_over_cdp&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your own browser is blocked&lt;/td&gt;
&lt;td&gt;Human&lt;/td&gt;
&lt;td&gt;Hope you find another source&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Everything fails at once, whatever the client, after a burst of requests&lt;/td&gt;
&lt;td&gt;Rate limiting&lt;/td&gt;
&lt;td&gt;Self-throttle&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/bypass-bot-protection/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on October 11&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>automation</category>
      <category>security</category>
      <category>webscraping</category>
    </item>
    <item>
      <title>AI-assisted genealogy, a follow-up</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 24 Sep 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/ai-assisted-genealogy-a-follow-up-531</link>
      <guid>https://dev.to/nfrankel/ai-assisted-genealogy-a-follow-up-531</guid>
      <description>&lt;p&gt;I got a lot of feedback on my post &lt;a href="https://blog.frankel.ch/ai-assisted-genealogy/" rel="noopener noreferrer"&gt;AI-assisted genealogy&lt;/a&gt;, some good, some not so good. In any case, I felt the subject was interesting to a lot of people. Meanwhile, I continue working on my tree, and I have deepened my understanding of the subject. In this post, I want to share again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trust, but verify
&lt;/h2&gt;

&lt;p&gt;Let's address the not-so-good feedback first. The gist of it was: AI can hallucinate. It's true in theory: when you ask a question, it provides any answer. The pushback is much less valid when the answer is grounded in data.&lt;/p&gt;

&lt;p&gt;The other feedback I had was that genealogy sites weren't trustworthy sources. It's a valid point, which I already acknowledged in the initial post.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;The process is always the same.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Pick someone in the tree with unknown parents, and let the assistant do the search. It knows which genealogy sites to browse, and which archives hold the civil records for the place. When it finds the act, it transcribes it, adds the new individuals to the GEDCOM file, links them to their child, and records the source. Then it commits.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Rinse and repeat. Each loop adds one generation on one branch, until no records are found.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://blog.frankel.ch/ai-assisted-genealogy/#the_loop" rel="noopener noreferrer"&gt;The loop&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I realize that I could have been more detailed, so let me fix it.&lt;/p&gt;

&lt;p&gt;GEDCOM has the concept of quality, with the &lt;code&gt;QUAY&lt;/code&gt; directive:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The QUAY tag's value conveys the submitter's quantitative evaluation of the credibility of a piece of information, based upon its supporting evidence. Some systems use this feature to rank multiple conflicting opinions for display of most likely information first. It is not intended to eliminate the receiver's need to evaluate the evidence for themselves.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Quality&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;Unreliable evidence or estimated data&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Questionable reliability of evidence (interviews, census, oral genealogies, or potential for bias for example, an autobiography)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Secondary evidence, data officially recorded sometime after event&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Direct and primary evidence used, or by dominance of the evidence&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;/blockquote&gt;

&lt;p&gt;The table defines guidelines, not precisely defined rules, so I interpreted them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Genealogy sites are &lt;code&gt;QUAY 2&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Official acts, whether civil or parish-based, are &lt;code&gt;QUAY 3&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The process is the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mine the huge amount of data available on genealogy sites&lt;/li&gt;
&lt;li&gt;Set their &lt;code&gt;QUAY&lt;/code&gt; to 2&lt;/li&gt;
&lt;li&gt;Check the data is in an official record&lt;/li&gt;
&lt;li&gt;If yes, set the data's &lt;code&gt;QUAY&lt;/code&gt; to 3&lt;/li&gt;
&lt;li&gt;Otherwise, discard the data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hence, trust, but verify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Archives and browsing skills
&lt;/h2&gt;

&lt;p&gt;In the original post, I mentioned you should create one skill "per site". As in the previous section, I may have been a bit concise. Let me detail:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One per genealogy site (Geni, Geneanet, etc.)&lt;/li&gt;
&lt;li&gt;One skill per archive site, whether city or department archives&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Archive sites can be roughly classified along two orthogonal axes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Account: fully open access vs. required account&lt;/li&gt;
&lt;li&gt;Bot protection: I identified the 3 following levels.

&lt;ul&gt;
&lt;li&gt;At the lowest, the site is accessible with &lt;code&gt;curl&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Needs a full-fledged browser. For this, I added a small &lt;code&gt;uv&lt;/code&gt;-based Python project to steer &lt;a href="https://blog.frankel.ch/first-steps-playwright/" rel="noopener noreferrer"&gt;Playwright&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Cloudflare-protected (or similar). This is the highest protection level I faced. In some cases, even checking the "I'm a human" checkbox didn't work. To bypass it, I used Chrome in debug mode; I'll write a full-fledged post about it.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Automating account login
&lt;/h2&gt;

&lt;p&gt;I mentioned that some sites require you to be logged in. Of course, you could give your assistant access to your credentials, but that wouldn't be a smart thing to do.&lt;/p&gt;

&lt;p&gt;For the highest bot protection, there's no alternative but to start Chrome in debug mode, log in, and let the assistant steer the browser via the debug port. It's fragile: anything that closes the browser ends the run.&lt;/p&gt;

&lt;p&gt;For other sites, you should use Playwright with stored sessions. It goes like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Launch a browser with a persistent session&lt;/li&gt;
&lt;li&gt;Log in to the sites you want to use&lt;/li&gt;
&lt;li&gt;Close the browser. The profile has stored the authentication data.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Later on, the assistant can start the browser within the context of the same session: the assistant will have the same access as the user who logged in. Session length depends on the exact site, so you should do it before an unattended run.&lt;/p&gt;

&lt;p&gt;The benefit over the debug approach is that it survives closing the browser.&lt;/p&gt;

&lt;h2&gt;
  
  
  Leveraging genealogy sites
&lt;/h2&gt;

&lt;p&gt;My original advice was to mine genealogy sites with a premium subscription, then switch to official records. Since then, I have refined the approach.&lt;/p&gt;

&lt;p&gt;First, I have made it a cycle. After uncovering new ancestors in records, I went back to genealogy sites. In some cases, these ancestors were already part of others' trees, and I could jump a couple of generations again. Even if these later jumps are much smaller than the initial ones, it still means fewer tokens pinpointing the exact act in a record.&lt;/p&gt;

&lt;p&gt;These new ancestors don't automatically come into your tree. Most genealogy sites have the concept of a smart match. They run heuristics able to match (hence the name) people from unrelated trees. Some sites are better than others for this. You need to be &lt;strong&gt;very&lt;/strong&gt; careful when you accept a match, as it can corrupt a whole branch of your tree, by adding unrelated people. Hence, I tend to be very conservative. On the other hand, you can discover new spelling variants of your ancestors' names. Perhaps you missed an act because the assistant didn't search for the correct variant?&lt;/p&gt;

&lt;p&gt;Finally, most (all?) of these sites have two tiers: full data access and limited data access. Full access is unlocked during a trial period, either when you register or when you subscribe. Subscription can be expensive. Worse, some sites only offer a yearly subscription package. I had no qualms about registering email addresses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Leveraging Topola
&lt;/h2&gt;

&lt;p&gt;I still use &lt;strong&gt;and&lt;/strong&gt; love &lt;a href="https://github.com/PeWu/topola-viewer" rel="noopener noreferrer"&gt;Topola&lt;/a&gt;, the GEDCOM viewer.&lt;/p&gt;

&lt;p&gt;Among its features, it allows displaying a thumbnail for an &lt;code&gt;INDI&lt;/code&gt; in the tree. It works with the first &lt;code&gt;OBJE&lt;/code&gt; object associated with the &lt;code&gt;INDI&lt;/code&gt;. Other &lt;code&gt;OBJE&lt;/code&gt; are displayed in the right-side panel. If you have photographs of your ancestors, it's a nifty feature.&lt;/p&gt;

&lt;p&gt;I like order, so I follow these rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The profile picture must be a portrait. If I have no portrait, I crop an existing one to serve as such.&lt;/li&gt;
&lt;li&gt;All &lt;code&gt;OBJE&lt;/code&gt; that reference images are set in chronological order. Thus, the right panel displays them in the same order.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Transcriptions
&lt;/h2&gt;

&lt;p&gt;Transcriptions are essential. Acts are images, and you want their data to be easily accessible.&lt;/p&gt;

&lt;p&gt;From the beginning, I delegated the transcription process to the assistant. Your ability to decipher cursive script depends on several factors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The writing style of the clerk. The further back in time you go, the less standard the writing style is and the harder it is to decipher.&lt;/li&gt;
&lt;li&gt;Your familiarity with the language. Depending on your tree, you may have ancestors with acts in foreign languages.&lt;/li&gt;
&lt;li&gt;The act's age. The older the act, the harder it is to recognize some expressions, and the more the orthography is "fluid".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For these reasons, I started with transcriptions made by the assistant. I noticed it was quite careful sometimes: where I would have inferred a word, it decided to put a placeholder. It did the same for letters. I tried several alternatives.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;I asked for the best tool available and &lt;a href="https://app.transkribus.org/" rel="noopener noreferrer"&gt;Transkribus&lt;/a&gt;. It's a paid online tool, with lots of model choices. Some models are premium, others are free. It also gives you 50 free transcriptions a month. You just need to agree to wait in the queue, as runners for freeloaders are few.&lt;/p&gt;

&lt;p&gt;I tried 3 or 4 times after having exceeded my assistant quota. Results were abysmally bad, producing only gibberish, not even word soup. I read later that you had to train the model on your own document. It means you need to transcribe one or two pages of a record, and the results would improve over subsequent acts of the same record. Honestly, I won't use it again.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To save my assistant tokens, I also tried a local setup. I leveraged &lt;a href="https://kraken.re/main/index.html" rel="noopener noreferrer"&gt;kraken&lt;/a&gt; with dedicated models depending on the language and the era. It was much better than Transkribus, but nowhere near the assistant capabilities. Whether I missed a configuration step or assistants have made huge leaps in ability, I'll never know. In the end, I just scrapped the skill.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A very good surprise is &lt;a href="https://www.filae.com/" rel="noopener noreferrer"&gt;Filae&lt;/a&gt;. It's a small French genealogy site. However, its transcription capabilities are second to none for French handwriting. I used it a couple of times with amazing results. The only issue is that it seems that they switched off this service. A pity.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hiccups and hurdles
&lt;/h2&gt;

&lt;p&gt;Now that I've fleshed out more details about creating your family tree, here are some issues I have encountered, for fun. In no particular order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Three or even four generations of ancestors who lacked imagination and gave a child their first name. Now, you have a bunch of people in the same place with the same first name and last name.&lt;/li&gt;
&lt;li&gt;You get used to records being births, baptisms, marriages, deaths, or burials? What about a bit more variety, mixing some of them into the same one? Binary-searching for an act by date is now much more challenging.&lt;/li&gt;
&lt;li&gt;Mixed act types in a single record is just the beginning. It gets even better when dates aren't monotonic, &lt;em&gt;i.e.&lt;/em&gt;, in no order. It's the case for some notarial records I stumbled upon.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;I'm still working on the project, and now have more than 1200 people and span 13 generations on a branch. I hope this additional advice will be helpful if you choose to follow the same path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://gedcom.io/specifications/ged551.pdf" rel="noopener noreferrer"&gt;GEDCOM 5.5.1 Specification&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://playwright.dev/mcp/configuration/user-profile" rel="noopener noreferrer"&gt;Playwright: Profile &amp;amp; State&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/PeWu/topola-viewer" rel="noopener noreferrer"&gt;Topola Genealogy Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://app.transkribus.org/" rel="noopener noreferrer"&gt;Transkribus&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://kraken.re/main/index.html" rel="noopener noreferrer"&gt;kraken&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.filae.com/" rel="noopener noreferrer"&gt;Filae&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/ai-assisted-genealogy-follow-up/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on September 20&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>genealogy</category>
      <category>claude</category>
      <category>feedback</category>
    </item>
    <item>
      <title>World geography gotchas</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 17 Sep 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/world-geography-gotchas-5d9j</link>
      <guid>https://dev.to/nfrankel/world-geography-gotchas-5d9j</guid>
      <description>&lt;p&gt;Years ago, a colleague of mine told me about two pockets of foreign land surrounded by Switzerland: &lt;a href="https://osm.org/go/0Ck2o6xg-" rel="noopener noreferrer"&gt;Campione d'Italia&lt;/a&gt; and &lt;a href="https://osm.org/go/0C1ZlDk" rel="noopener noreferrer"&gt;Büsingen am Hochrhein&lt;/a&gt;, respectively Italy and Germany. Both are &lt;em&gt;enclaves&lt;/em&gt; of their respective country in Swiss territory:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An enclave is a part of the territory of a state that is enclosed within the territory of another state. To distinguish the parts of a state entirely enclosed in a single other state, they are called true enclaves. A true enclave cannot be reached without passing through the territory of a single other state that surrounds it.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://en.wikipedia.org/wiki/Enclave_and_exclave#True_enclaves" rel="noopener noreferrer"&gt;Enclave and exclave&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Enclaves can be seen from different perspectives. From a bird's-eye view, they are fun:&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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu5kkx4gyiei6kykokn4b.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.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu5kkx4gyiei6kykokn4b.png" alt="Campione d'Italia" width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the enclave and its surrounding country are at odds (or worse), the life of its inhabitants can be hell. However, this post is about software, so let's focus on that. Imagine having to design systems for one of these two towns. Take Campione, for example. This is what you could have to deal with, depending on the domain you tackle:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Domain&lt;/th&gt;
&lt;th&gt;Quirk&lt;/th&gt;
&lt;th&gt;Impact on systems&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Taxation and customs&lt;/td&gt;
&lt;td&gt;Since 2020, Campione has been part of the EU customs territory, but it stays outside the EU VAT area. A local consumption tax applies instead, with Swiss VAT rates. Before 2020, the town was de facto in the Swiss customs territory.&lt;/td&gt;
&lt;td&gt;Online shops and accounting software need one exception for customs and another for tax.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public services&lt;/td&gt;
&lt;td&gt;Italian law applies, but firefighters, ambulances, and healthcare come from Switzerland. The Carabinieri, the Italian police, provide security.&lt;/td&gt;
&lt;td&gt;Systems for the police, emergency services, and hospitals apply Italian law to services that Switzerland delivers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Currency&lt;/td&gt;
&lt;td&gt;The Swiss franc is the main operating currency, though the euro is officially legal tender. Salaries are paid in Swiss francs.&lt;/td&gt;
&lt;td&gt;Payment and banking systems handle two currencies, and payroll crosses the border.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Address and geolocation&lt;/td&gt;
&lt;td&gt;Campione uses Swiss postal codes (CH-6911) and Swiss phone numbers (+41), except for the town hall, which has an Italian +39 number. Poste Italiane processes the mail.&lt;/td&gt;
&lt;td&gt;Address validation, shipping, and phone systems see a Swiss postal code and a Swiss prefix on an Italian address.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Vehicle registration&lt;/td&gt;
&lt;td&gt;Vehicles must be registered in Italy, in Como, and carry Italian license plates. Some used to have Swiss Ticino plates, but this is no longer allowed.&lt;/td&gt;
&lt;td&gt;Plate validation fails if it derives the country from the address.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data privacy&lt;/td&gt;
&lt;td&gt;Campione falls under the GDPR and the Italian Privacy Code, but many services, such as healthcare and utilities, are Swiss. Data flows across the border.&lt;/td&gt;
&lt;td&gt;Any system that stores personal data falls under both Italian and Swiss privacy law.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Healthcare&lt;/td&gt;
&lt;td&gt;Residents can get Swiss hospital care through bilateral agreements, but insurance contracts must comply with Italian law.&lt;/td&gt;
&lt;td&gt;Health insurance systems check eligibility on the Swiss side and contracts on the Italian side.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Education&lt;/td&gt;
&lt;td&gt;Schools are Italian, but students may attend Swiss schools because they are closer.&lt;/td&gt;
&lt;td&gt;Student and scholarship systems enroll pupils in a school across the border and follow two curricula.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Enclaves are an extreme case, but gotchas are common.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://en.wikipedia.org/wiki/Livigno" rel="noopener noreferrer"&gt;Livigno&lt;/a&gt;, a few valleys east, is Italian and outside both the EU customs territory and the VAT area.&lt;/li&gt;
&lt;li&gt;The Canary Islands are Spanish and in the EU, but outside the VAT area. Currency, tax, customs, mail, phone, and law are separate attributes: none of them follows from a country code.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Wherever you work, chances are high that you'll have to deal with this kind of thing when designing software. There are &lt;a href="https://en.wikipedia.org/wiki/List_of_enclaves_and_exclaves#National_level" rel="noopener noreferrer"&gt;plenty of enclaves&lt;/a&gt; to start with. The real world is much more complex than we expect. Be sure to research first.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/List_of_enclaves_and_exclaves#National_level" rel="noopener noreferrer"&gt;National enclaves that are also exclaves&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/Campione_d'Italia" rel="noopener noreferrer"&gt;Campione d'Italia&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://en.wikipedia.org/wiki/B%C3%BCsingen_am_Hochrhein" rel="noopener noreferrer"&gt;Büsingen am Hochrhein&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.frankel.ch/date-time-gotchas/" rel="noopener noreferrer"&gt;Date and time gotchas&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/world-geography-gotchas/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on September 13&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>coding</category>
      <category>modeling</category>
      <category>geography</category>
      <category>gotchas</category>
    </item>
    <item>
      <title>Build an AI Agent (From Scratch)</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 10 Sep 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/build-an-ai-agent-from-scratch-42e6</link>
      <guid>https://dev.to/nfrankel/build-an-ai-agent-from-scratch-42e6</guid>
      <description>&lt;p&gt;This review is about &lt;a href="https://www.manning.com/books/build-an-ai-agent-from-scratch?utm_source=frankel&amp;amp;utm_medium=affiliate&amp;amp;utm_campaign=affiliate&amp;amp;a_aid=frankel" rel="noopener noreferrer"&gt;Build an AI Agent (From Scratch)&lt;/a&gt; by Jungjun Hur and Younghee Song from Manning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Facts
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;10 chapters&lt;/li&gt;
&lt;li&gt;$29.29 (at the time of this writing)&lt;/li&gt;
&lt;li&gt;315 pages&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Chapters
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Building your first LLM agent

&lt;ol&gt;
&lt;li&gt;What is an AI agent?&lt;/li&gt;
&lt;li&gt;The brain of AI agents: LLMs&lt;/li&gt;
&lt;li&gt;Enabling actions: Tool use&lt;/li&gt;
&lt;li&gt;Implementing a basic ReAct agent&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Developing advanced agent capabilities

&lt;ol&gt;
&lt;li&gt;Building knowledge bases with RAG&lt;/li&gt;
&lt;li&gt;Adding memory to your agent&lt;/li&gt;
&lt;li&gt;Planning and reflection for complex tasks&lt;/li&gt;
&lt;li&gt;Empowering agents with code execution&lt;/li&gt;
&lt;li&gt;Orchestrating multi-agent systems&lt;/li&gt;
&lt;li&gt;Evaluating agents&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Pros and cons
&lt;/h2&gt;

&lt;p&gt;At Manning, I consider the following two books to be references:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://www.manning.com/books/kubernetes-in-action-second-edition?utm_source=frankel&amp;amp;utm_medium=affiliate&amp;amp;utm_campaign=affiliate&amp;amp;a_aid=frankel" rel="noopener noreferrer"&gt;Kubernetes in Action&lt;/a&gt; by Marko Lukša. It's the book that taught me the foundations of Kubernetes. Fun fact: I got it from the author at a conference in exchange for Swiss chocolate.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.manning.com/books/api-design-patterns?utm_source=frankel&amp;amp;utm_medium=affiliate&amp;amp;utm_campaign=affiliate&amp;amp;a_aid=frankel" rel="noopener noreferrer"&gt;API Design Patterns&lt;/a&gt;. I read it while working on the Apache APISIX API gateway. At this time, I was deeply involved in (RESTful) APIs. I had read a lot on APIs; I had researched a lot; I held talks on APIs; I talked with lots of people about APIs. And yet, the book was a revelation, full of brilliant insights.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I think that Build an AI Agent is as fundamental to me as the other two were.&lt;/p&gt;

&lt;p&gt;While there are few chances that you will actually build an AI agent, this book teaches you the basics (and more) of how they operate. It starts with the agent loop, then proceeds to tools, then to MCP, etc.&lt;/p&gt;

&lt;p&gt;The only thing I would like to see for the next edition is for the developers to beef up the evaluating agents part.&lt;/p&gt;

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

&lt;p&gt;If you use AI agents and want to understand what happens when you use them, this is the book for you. I think it should belong in the library of any engineer worthy of the name.&lt;/p&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/building-ai-agent-from-scratch/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on September 6&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>books</category>
      <category>ai</category>
      <category>codingassistant</category>
      <category>learningbydoing</category>
    </item>
    <item>
      <title>AI-assisted genealogy</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 03 Sep 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/ai-assisted-genealogy-9cn</link>
      <guid>https://dev.to/nfrankel/ai-assisted-genealogy-9cn</guid>
      <description>&lt;p&gt;My son recently came to me to brag about using AI to find our ancestors. While the results were correct, I didn't learn anything new, as it stopped at my grandparents. I was never very interested in my genealogy, but I decided to see if AI would be a good tool for this. TL;DR: Yes, it is, and even more than that. In a little less than one month, I managed to gather more than 600 individuals and get back 12 generations in some branches.&lt;/p&gt;

&lt;p&gt;In this post, I want to explain how I did it so that you can do the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;I decided to handle the project like any other software project:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;git&lt;/code&gt; provider. I'm using both Codeberg and GitHub. See below for the rationale.&lt;/li&gt;
&lt;li&gt;Cloudflare Pages to visualize the tree.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I searched a bit about how to store data and found the &lt;code&gt;GEDCOM&lt;/code&gt; format specification:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The word GEDCOM is an acronym for GEnealogical Data Communication. GEDCOM was created by The Church of Jesus Christ of Latter-day Saints as the specification for exchanging genealogical data between different family tree software products. The original GEDCOM specification was released in 1984, and the last update to it was version 5.5 in 1996 with an incremental upgrade to version 5.5.1 released in 2019.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://gedcom.io/about/" rel="noopener noreferrer"&gt;About GEDCOM&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The latest 5.x specification version is 5.5.1, re-released as a standard in 2019. FamilySearch rebooted the specification in 2021 to create v7.0, which is still maintained today. Few tools are actually compatible with it. For this reason, I limited myself to using 5.5.1.&lt;/p&gt;

&lt;h2&gt;
  
  
  GEDCOM 101
&lt;/h2&gt;

&lt;p&gt;GEDCOM is a structured format, based on indentation level. The indentation is not space-based, but relies on a leading number. It looks something like this (spaces added for better readability):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0 @I1@ INDI                                   # 1
  1 NAME John Martin /Doe/                    # 2
  1 SEX M
  1 BIRT
    2 DATE 1 JAN 1970
    2 PLAC Paris, 8e, Paris, France
    2 SOUR @S1@                               # 3
      3 PAGE Birth certificate EA68410
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;The base entity is the &lt;code&gt;INDI&lt;/code&gt;, an individual&lt;/li&gt;
&lt;li&gt;Last name is defined between slashes&lt;/li&gt;
&lt;li&gt;Source with ID&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As I mentioned, I added extra spaces. The following snippet is the correct format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;0 @I1@ INDI
1 NAME John Martin /Doe/
1 SEX M
1 BIRT
2 DATE 1 JAN 1970
2 PLAC Paris, 8e, Paris, France
2 SOUR @S1@
3 PAGE Birth certificate EA68410
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The loop
&lt;/h2&gt;

&lt;p&gt;The process is always the same.&lt;/p&gt;

&lt;p&gt;Pick someone in the tree with unknown parents, and let the assistant do the search. It knows which genealogy sites to browse, and which archives hold the civil records for the place. When it finds the act, it transcribes it, adds the new individuals to the GEDCOM file, links them to their child, and records the source. Then it commits.&lt;/p&gt;

&lt;p&gt;Rinse and repeat. Each loop adds one generation on one branch, until no records are found.&lt;/p&gt;

&lt;h2&gt;
  
  
  What worked with the assistant
&lt;/h2&gt;

&lt;p&gt;Most AI-related advice also applies to professional projects.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Switch model according to the task&lt;/strong&gt;: Your token quota is limited by nature, unless you pay per token (but in this case, you're rich and tokens aren't an issue). It's not efficient to use super powerful models such as Fable 5 to send emails. However, it's equally inefficient to use a weak model for complex multi-step tasks: you will probably get wrong results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create skills&lt;/strong&gt;: When you start either repeating the same instructions or notice that the assistant does come to the same conclusion over and over, it's time to create a &lt;a href="https://agentskills.io/home" rel="noopener noreferrer"&gt;skill&lt;/a&gt;. Skills are reusable sets of instructions, scripts, assets, and references. However, the biggest benefit of skills is that they don't bloat the context by default: they are triggered if their description matches the prompt. Skills can be orthogonal.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have created several skills:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;more than a couple to know how to navigate a site&lt;/li&gt;
&lt;li&gt;one to transcribe record images into plain text (see below)&lt;/li&gt;
&lt;li&gt;two for autonomous sessions (see below)

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Transcribe records into plain text&lt;/strong&gt;: All records you will get will either be PDFs or images. PDFs are hard to parse, and images even more so. In the long run, it pays to parse and transcribe them once, so they can be reused cheaply afterwards.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The assistant can make mistakes&lt;/strong&gt;: It does the research, so its mistakes are research mistakes. It may misread a name on a scan, or pick the wrong person when two of them share a first name, a surname, and a village. However, my experience is that Claude Code is pretty good on transcriptions, and it's cautious by default.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up grammar checks&lt;/strong&gt;: The bigger the GEDCOM file, the more chances the assistant will break it at some point. If you notice it after many commits, it will be a mess to straighten it back. Make sure to check the GEDCOM structure at every commit. Either use local pre-commit hooks or a remote job on GitHub/GitLab/whatever.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long-running autonomous tasks&lt;/strong&gt;: After a while, I got frustrated waiting for my quota to reset, and treated myself to Claude Max. I now had a gazillion tokens to use. It was not long before I started to run sessions overnight or while at work. If you are in this case, you need to come up with a strong structure so you don't find out at the end of the whole session that you have drifted.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I found out that my sweet spot was:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A subagent to avoid polluting the main agent's context&lt;/li&gt;
&lt;li&gt;Serial subagents, not parallel, since I don't have a deadline, and it avoids facing the quota limit mid-month&lt;/li&gt;
&lt;li&gt;The subagent works, commits in a worktree branch, the main agent checks and merges&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I learned about genealogy
&lt;/h2&gt;

&lt;p&gt;Here are the things I learned. For genealogy experts, they may seem obvious. However, if you're a beginner, I hope they might be helpful.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Different countries have different potential&lt;/strong&gt;: Depending on the country, you may get widely different results with the same process. Results may even differ for places inside the same country.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For this reason, and depending on where your ancestors stem from, the tree will probably be unbalanced. In some cases, it may even be quite limited.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A lot of data is already there&lt;/strong&gt;: There are plenty of genealogy websites around. All of these I stumbled upon have a free tier. If you can find a common ancestor with someone who already did the work upwards for you, why not use it?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Work of others can be wrong&lt;/strong&gt;: While you will populate your tree very fast with third-party work, don't take it as proof. You need to verify the facts with a legitimate administrative certificate.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For the record, I stumbled upon a collateral family member who supposedly died in Switzerland. Since he was the only one, I spent a bit of time trying to find his death certificate, to no avail. It turns out that he died in France in a hunting accident, but next to the border. It made the news in a local Swiss newspaper, and the person inferred that he had died there. Trust, but verify.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;People are genuinely trying to help&lt;/strong&gt;: Everyone I have contacted on these sites has answered. Everyone tried to help. In the worst case, I got nothing that I could use. In the best case, actually two, I got connected to historians who wrote books on the subject.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Birth certificates help push boundaries&lt;/strong&gt;: Birth certificates mention the parents and their own birth date and place. If you can loop over several times, you will get a few generations in no time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Marriage certificates are the next best thing. You'll find the groom and bride's parents' names, but will probably miss their own birth data.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;French marriages usually happened at the bride's parish&lt;/strong&gt;: I had never heard of this tradition, but Claude Code apparently did. In the past, for marriages happening between people from different towns, the tradition was to hold it at the bride's parish.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat it as a heuristic rather than a rule. I had a couple of cases when my ancestors didn't follow the tradition.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;French civil acts are public 75 years after the event's date&lt;/strong&gt;: In France, if you want a civil act, you need to prove you're either the person in the act or a direct ancestor. But that rule is removed if the act dates back 75 years or more. You can actually access the birth certificate of public figures such as Général de Gaulle this way, and search for their ancestors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;In small hamlets, everyone had the same surname&lt;/strong&gt;: Because some of them also had the same first name, they had to add a discriminant. The discriminant was fortunately sometimes written in civil records. When it wasn't, it got extremely confusing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Savoy is a good example of such surname things. They added a second surname there. You can read more about it &lt;a href="https://www.marmottesdesavoie.fr/index.php?page=patro" rel="noopener noreferrer"&gt;here&lt;/a&gt; (in French).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GEDCOM allows defining a place format&lt;/strong&gt;: I came to know about GEDCOM by working on the project, so the TIL items are a very long list. However, I think this one takes first place.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Different countries have different location structures. GEDCOM has a powerful &lt;strong&gt;and&lt;/strong&gt; flexible scheme for locations, which allows defining the format, then the value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  2 PLAC Lyon, 7e, Rhône, France
  3 FORM Ville, Arrondissement, Département, Pays
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Visualization with Topola on Cloudflare Pages
&lt;/h2&gt;

&lt;p&gt;The more people you add to your tree, the harder it is to visualize the GEDCOM model in your head. I searched for a couple of visualization solutions and found:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://gramps-project.org/" rel="noopener noreferrer"&gt;Gramps&lt;/a&gt;: It's a desktop-based application, available for &lt;a href="https://gramps-project.org/wiki/index.php/Download" rel="noopener noreferrer"&gt;many different platforms&lt;/a&gt;. It works pretty well, but its internal storage is SQLite. Though you can import GEDCOM, you need to clear the existing data first: you can't override them.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/PeWu/topola-viewer" rel="noopener noreferrer"&gt;Topola Genealogy Viewer&lt;/a&gt;: Topola provides an &lt;a href="https://pewu.github.io/topola-viewer/" rel="noopener noreferrer"&gt;interactive website&lt;/a&gt; for you to display a GEDCOM 5.5.1 file. It's the software I chose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Topola also allows you to display the tree from one single static GEDCOM file. You can use it in a build process, &lt;em&gt;e.g.&lt;/em&gt;, a GitHub workflow, to generate the visualization website. The tree holds data about people who are still alive. I keep it private for this reason. GitHub Pages are public by default, so I didn't want to go this route.&lt;/p&gt;

&lt;p&gt;I checked for options and found &lt;a href="https://pages.cloudflare.com/" rel="noopener noreferrer"&gt;Cloudflare Pages&lt;/a&gt;. It's the first time I've used it, and it's amazing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It integrates natively with GitHub&lt;/li&gt;
&lt;li&gt;You can configure authentication. The easiest one is OTP on a list of allowed emails you configure.&lt;/li&gt;
&lt;li&gt;It creates a subdomain for each branch, so you can preview changes!&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The only downside is a limit of 500 builds a month, more than enough for a free offer and a hobby project.&lt;/p&gt;

&lt;p&gt;This is also the reason for the two &lt;code&gt;git&lt;/code&gt; providers. Codeberg hosts the repository I work on. GitHub only holds a mirror, because Cloudflare Pages builds from it.&lt;/p&gt;

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

&lt;p&gt;I never thought about genealogy before. However, it's a lot of fun, and I'm hooked on it now. In one month, the assistant got me what some people spend years searching for. I hope this post gave you ideas and set you on the path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.gedcom.org" rel="noopener noreferrer"&gt;GEDCOM The Genealogy Data Standard&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gedcom.io/specs/" rel="noopener noreferrer"&gt;Later GEDCOM specifications&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://agentskills.io/home" rel="noopener noreferrer"&gt;Agent Skills&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://gramps-project.org/" rel="noopener noreferrer"&gt;Gramps&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/PeWu/topola-viewer" rel="noopener noreferrer"&gt;Topola Genealogy Viewer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://pages.cloudflare.com/" rel="noopener noreferrer"&gt;Cloudflare Pages&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/ai-assisted-genealogy/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on August 30&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codingassistant</category>
      <category>genealogy</category>
      <category>claude</category>
    </item>
    <item>
      <title>Solving Gradle metadata and Renovate integration</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 20 Aug 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/solving-gradle-metadata-and-renovate-integration-2d4a</link>
      <guid>https://dev.to/nfrankel/solving-gradle-metadata-and-renovate-integration-2d4a</guid>
      <description>&lt;p&gt;My current company has settled on using Gradle. It doesn't make me &lt;a href="https://blog.frankel.ch/final-take-gradle/" rel="noopener noreferrer"&gt;very happy&lt;/a&gt;, but you need to learn to work with constraints. Plus, I must admit that the developers who actually implemented the build files did a pretty good job overall: they used Kotlin instead of Groovy, they moved code to regular plugins, etc.&lt;/p&gt;

&lt;p&gt;This week, I worked on improvements to a new project and set up Renovate. Renovate is similar to Dependabot in that it checks for new versions of your dependencies and automatically creates PRs for you. However, I quickly noticed that merges of new dependency versions failed the build. Here's the full story on why, and how I fixed the issue.&lt;/p&gt;

&lt;h2&gt;
  
  
  Supply chain hardening
&lt;/h2&gt;

&lt;p&gt;In the last few years, one of the big issues in the IT world has been supply chain attacks. Depending on others' work isn't a new thing:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The woolen coat, for example, which covers the day-labourer, as coarse and rough as it may appear, is the produce of the joint labour of a great multitude of workmen.&lt;/p&gt;

&lt;p&gt;—- Adam Smith, The Wealth of Nations&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The software world has increased the phenomenon a lot due to two factors:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Digitized assets make the reproduction cost-free. You can distribute as many copies as you want.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open Source has created many projects that serve as foundations for others, from full-fledged operating systems to specialized libraries, &lt;em&gt;e.g.&lt;/em&gt;, &lt;code&gt;curl&lt;/code&gt;. Mandatory illustration:&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%2Fh6a6f560xn8dvmhcpu1o.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%2Fh6a6f560xn8dvmhcpu1o.png" alt="xkcd Dependency comic: all modern digital infrastructure rests on a project some random person in Nebraska has thanklessly maintained since 2003"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For hackers, it creates an interesting attack vector:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Working with external dependencies and plugins from third-party repositories exposes your build to significant supply chain risks. Dependencies are the most commonly attacked part of the software supply chain, and every artifact you consume, including transitively pulled-in binaries, needs to be both legitimate and unchanged.&lt;/p&gt;

&lt;p&gt;To illustrate the risk, consider building an application that uses the &lt;code&gt;trusty-lib:1.0&lt;/code&gt; library from a public repository. If an attacker successfully replaces &lt;code&gt;trusty-lib&lt;/code&gt; in the repository with a malicious version having the same coordinates (&lt;code&gt;trusty-lib:1.0&lt;/code&gt;), your next build will download the compromised code without any warning.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://docs.gradle.org/current/userguide/dependency_verification.html" rel="noopener noreferrer"&gt;Verifying Dependencies&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This type of attack is known as a &lt;strong&gt;supply chain attack&lt;/strong&gt;. In recent years, there have been more than a couple of such attacks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Verifying dependencies
&lt;/h2&gt;

&lt;p&gt;The Java platform introduced dependency verification via JAR signing in early versions. It was present at the latest in &lt;a href="https://web.pa.msu.edu/reference/jdk-1.2.2-docs/tooldocs/win32/jarsigner.html" rel="noopener noreferrer"&gt;1.2&lt;/a&gt;. You can check the &lt;a href="https://docs.oracle.com/javase/tutorial/deployment/jar/signing.html" rel="noopener noreferrer"&gt;process documentation&lt;/a&gt; if you're interested. In short, a signed JAR has specific files in its &lt;code&gt;META-INF&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;JAR signing never became popular, and I can only assume the reasons why:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The process was (and still is) complicated&lt;/li&gt;
&lt;li&gt;DevOps didn't exist&lt;/li&gt;
&lt;li&gt;Certificates were expensive&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Over JARs carrying their signature files, people preferred a weaker form of verification: no signature, but a short fingerprint of the file itself. This guarantees &lt;strong&gt;integrity&lt;/strong&gt;. Integrity means you're downloading the exact file that you intend to.&lt;/p&gt;

&lt;p&gt;Integrity verification is widespread because it's simple. You first download the file. Then, you run a dedicated application on the file to generate its hash. If the generated hash and the advertised hash match, the file is the original file; if not, it has been tampered with.&lt;/p&gt;

&lt;p&gt;Maven Central provides such a hash for each artifact it offers for download. For example, here's the &lt;a href="https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-slf4j2-impl/2.26.1/" rel="noopener noreferrer"&gt;download page&lt;/a&gt; for the Log4J2 SLF4J bridge:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;log4j-slf4j2-impl-2.26.1-cyclonedx.xml            2026-06-29 07:47     26067      
log4j-slf4j2-impl-2.26.1-cyclonedx.xml.asc        2026-06-29 07:47       856      
log4j-slf4j2-impl-2.26.1-cyclonedx.xml.md5        2026-06-29 07:47        32      
log4j-slf4j2-impl-2.26.1-cyclonedx.xml.sha1       2026-06-29 07:47        40      
log4j-slf4j2-impl-2.26.1-sources.jar              2026-06-29 07:47     23459      
log4j-slf4j2-impl-2.26.1-sources.jar.asc          2026-06-29 07:47       856      
log4j-slf4j2-impl-2.26.1-sources.jar.md5          2026-06-29 07:47        32      
log4j-slf4j2-impl-2.26.1-sources.jar.sha1         2026-06-29 07:47        40      
log4j-slf4j2-impl-2.26.1.jar                      2026-06-29 07:47     30212      
log4j-slf4j2-impl-2.26.1.jar.asc                  2026-06-29 07:47       856      
log4j-slf4j2-impl-2.26.1.jar.md5                  2026-06-29 07:47        32      
log4j-slf4j2-impl-2.26.1.jar.sha1                 2026-06-29 07:47        40      
log4j-slf4j2-impl-2.26.1.module                   2026-06-29 07:47      3524      
log4j-slf4j2-impl-2.26.1.module.asc               2026-06-29 07:47       856      
log4j-slf4j2-impl-2.26.1.module.md5               2026-06-29 07:47        32      
log4j-slf4j2-impl-2.26.1.module.sha1              2026-06-29 07:47        40      
log4j-slf4j2-impl-2.26.1.pom                      2026-06-29 07:47      5141      
log4j-slf4j2-impl-2.26.1.pom.asc                  2026-06-29 07:47       856      
log4j-slf4j2-impl-2.26.1.pom.md5                  2026-06-29 07:47        32      
log4j-slf4j2-impl-2.26.1.pom.sha1                 2026-06-29 07:47        40      
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note the three associated files for each published file:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;.asc&lt;/code&gt;: a &lt;a href="https://www.gnupg.org/" rel="noopener noreferrer"&gt;GPG&lt;/a&gt; &lt;em&gt;signature&lt;/em&gt; file&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.md5&lt;/code&gt;: a MD5 hash&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.sha1&lt;/code&gt;: a SHA1 hash&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While Maven Central provides these files, it is up to consumers to verify the integrity (or authenticity) of the downloaded files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gradle verification
&lt;/h2&gt;

&lt;p&gt;Gradle does help with signature or hash verification by automating the process. During the build process, it verifies the integrity or the authenticity of dependencies. To generate the file, run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./gradlew &lt;span class="nt"&gt;--write-verification-metadata&lt;/span&gt; sha256,pgp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It creates an XML file similar to the following (sample taken from the documentation):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;verification-metadata&lt;/span&gt;
  &lt;span class="na"&gt;xmlns=&lt;/span&gt;&lt;span class="s"&gt;"https://schema.gradle.org/dependency-verification"&lt;/span&gt;
  &lt;span class="na"&gt;xmlns:xsi=&lt;/span&gt;&lt;span class="s"&gt;"http://www.w3.org/2001/XMLSchema-instance"&lt;/span&gt;
  &lt;span class="na"&gt;xsi:schemaLocation=&lt;/span&gt;&lt;span class="s"&gt;"https://schema.gradle.org/dependency-verification
                      https://schema.gradle.org/dependency-verification/dependency-verification-1.4.xsd"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;components&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- BOTH SIGNATURE AND CHECKSUM --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;component&lt;/span&gt; &lt;span class="na"&gt;group=&lt;/span&gt;&lt;span class="s"&gt;"com.google.guava"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"failureaccess"&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;"1.0.3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;artifact&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"failureaccess-1.0.3.jar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;pgp&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"BDB5FA4FE719D787FB3D3197F6D4A1D411E9D1AE"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;sha256&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"cbfc3906b19b8f55dd7cfd6dfe0aa4532e834250d7f080bd8d211a3e246b59cb"&lt;/span&gt;
            &lt;span class="na"&gt;origin=&lt;/span&gt;&lt;span class="s"&gt;"Verified"&lt;/span&gt;
            &lt;span class="na"&gt;reason=&lt;/span&gt;&lt;span class="s"&gt;"Added manually to fix CI"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/artifact&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/component&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- CHECKSUM ONLY --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;component&lt;/span&gt; &lt;span class="na"&gt;group=&lt;/span&gt;&lt;span class="s"&gt;"antlr"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"antlr"&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;"2.7.7"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;artifact&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"antlr-2.7.7.jar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;sha256&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"88fbda4b912596b9f56e8e12e580cc954bacfb51776ecfddd3e18fc1cf56dc4c"&lt;/span&gt;
            &lt;span class="na"&gt;origin=&lt;/span&gt;&lt;span class="s"&gt;"Verified"&lt;/span&gt;
            &lt;span class="na"&gt;reason=&lt;/span&gt;&lt;span class="s"&gt;"Artifact is not signed"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/artifact&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/component&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- SIGNATURE ONLY --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;component&lt;/span&gt; &lt;span class="na"&gt;group=&lt;/span&gt;&lt;span class="s"&gt;"com.beust"&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"jcommander"&lt;/span&gt; &lt;span class="na"&gt;version=&lt;/span&gt;&lt;span class="s"&gt;"1.78"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;artifact&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"jcommander-1.78.jar"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;pgp&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"C70B844F002F21F6D2B9C87522E44AC0622B91C3"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;pgp&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;"DCBA03381EF6C89096ACD985AC5EC74981F9CDA6"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/artifact&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/component&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/components&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/verification-metadata&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Gradle compares dependencies' hash or signature against data in the file above.&lt;/p&gt;

&lt;p&gt;Note that the process is not foolproof: if the library has already been compromised, the command will write the hash/signature of the compromised library. Gradle's documentation doesn't try to sugarcoat it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Gradle can automatically generate a dependency verification file by downloading all your dependencies and recording their checksums or signatures. This is called bootstrapping.&lt;/p&gt;

&lt;p&gt;However, bootstrapping has a critical security limitation: it trusts whatever is currently in your repositories. If a malicious dependency has already been introduced into your build (or into a repository you use), Gradle will record the compromised artifact's checksum or signature.&lt;/p&gt;

&lt;p&gt;This is why you must review the generated verification file. Bootstrapping is convenient for getting started or updating your verification file, but it's not a substitute for manual verification of critical dependencies.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://docs.gradle.org/current/userguide/dependency_verification.html#sec:bootstrapping-verification" rel="noopener noreferrer"&gt;Generating and Bootstrapping Verification Metadata&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;However, once you have bootstrapped the metadata file with safer dependencies, Gradle guarantees the same dependencies will be used in other environments, including CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  The issue with Renovate and its fix
&lt;/h2&gt;

&lt;p&gt;So far, I have explained how Gradle verifies dependencies and how useful it is. It's time to introduce Renovate and the issue I faced.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Renovate opened a PR.&lt;/li&gt;
&lt;li&gt;I merged it.&lt;/li&gt;
&lt;li&gt;It broke the build, and I had to manually regenerate the metadata file in a new PR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I wrongly thought that Gradle only verified artifacts listed in the metadata file, and that a new, unlisted dependency version would pass. In fact, the build breaks in case of new dependency version pairs that aren't listed in the metadata. It makes sense, as otherwise, the metadata file would soon be made irrelevant.&lt;/p&gt;

&lt;p&gt;I considered several solutions, including discarding Renovate or Gradle metadata. However, I finally settled on &lt;code&gt;postUpgradeTasks.commands&lt;/code&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A list of commands that are executed after Renovate has updated a dependency but before the commit is made.&lt;/p&gt;

&lt;p&gt;—- &lt;a href="https://docs.renovatebot.com/configuration-options/#postupgradetaskscommands" rel="noopener noreferrer"&gt;postUpgradeTasks.commands&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We can generate the metadata file again by using this directive.&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="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"$schema"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"https://docs.renovatebot.com/renovate-schema.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"postUpgradeTasks"&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;"commands"&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;"./gradlew --write-verification-metadata pgp,sha256 --refresh-keys --export-keys dependencies"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;2&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;"fileFilters"&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;"gradle/verification-metadata.xml"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;                                     &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"gradle/verification-keyring.gpg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;                                      &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="s2"&gt;"gradle/verification-keyring.keys"&lt;/span&gt;&lt;span class="w"&gt;                                      &lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;3&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;"installTools"&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;"java"&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="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;4&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;ol&gt;
&lt;li&gt;Standard JSON schema&lt;/li&gt;
&lt;li&gt;The exact command to run&lt;/li&gt;
&lt;li&gt;Renovate is only allowed to update these files&lt;/li&gt;
&lt;li&gt;Renovate runs in a dedicated container, without Java. Since Gradle relies on a JDK, you need to install it first.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now, every Renovate PR for a Gradle dependency will regenerate the metadata file. It's not a perfect solution, though. The warning about the initial bootstrap still stands: if the downloaded dependency is compromised, the metadata is generated with the wrong hash and signature. I think that's the price to pay.&lt;/p&gt;

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

&lt;p&gt;I started using Renovate on projects I didn't initiate. It allows me to learn about its issues and how to fix them. Renovate's &lt;a href="https://docs.renovatebot.com/configuration-options" rel="noopener noreferrer"&gt;configuration options&lt;/a&gt; page has become my new friend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.oracle.com/javase/tutorial/deployment/jar/signing.html" rel="noopener noreferrer"&gt;Signing JAR Files&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.gradle.org/current/userguide/dependency_verification.html" rel="noopener noreferrer"&gt;Understanding Verification Methods&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.renovatebot.com/configuration-options/#postupgradetasksinstalltools" rel="noopener noreferrer"&gt;Renovate configuration options&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/gradle-metadata-renovate-integration/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on August 16&lt;sup&gt;th&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gradle</category>
      <category>renovate</category>
      <category>devops</category>
      <category>security</category>
    </item>
    <item>
      <title>GitHub agentic workflows and Renovate</title>
      <dc:creator>Nicolas Fränkel</dc:creator>
      <pubDate>Thu, 06 Aug 2026 09:02:00 +0000</pubDate>
      <link>https://dev.to/nfrankel/github-agentic-workflows-and-renovate-40i4</link>
      <guid>https://dev.to/nfrankel/github-agentic-workflows-and-renovate-40i4</guid>
      <description>&lt;p&gt;I've been a big fan of Renovate for &lt;a href="https://blog.frankel.ch/renovate-alternative-dependabot/" rel="noopener noreferrer"&gt;a couple of years already&lt;/a&gt;. Renovate scans your repositories, detects outdated package versions, and opens pull requests to automatically bump them. It's similar to Dependabot in that it keeps your dependencies up to date. If I had to compare them in one sentence, I'd say Renovate is less integrated in the GitHub ecosystem, but handles more ecosystems and, more importantly, is extensible. My current company is a happy Renovate user, and I already started to use it in some repositories.&lt;/p&gt;

&lt;p&gt;I have previously written about &lt;a href="https://blog.frankel.ch/agentic-github-workflows/" rel="noopener noreferrer"&gt;Agentic Workflows&lt;/a&gt;. As a reminder, you first create the workflow in Markdown with a very loose syntax. Then, you "compile" it to generate a GitHub Workflow-compliant YAML file, suffixed with &lt;code&gt;.lock.yml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In this post, I want to describe the problem when combining the two, how I tried to fix it, and the correct solution.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core problem
&lt;/h2&gt;

&lt;p&gt;Renovate is very eager to please. By default, it scans all ecosystems used for dependencies: &lt;code&gt;build.gradle.kts&lt;/code&gt;, &lt;code&gt;pom.xml&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;Dockerfile&lt;/code&gt;, GitHub workflows, etc. Most "manual" GitHub workflows use GitHub actions, which are versioned dependencies.&lt;/p&gt;

&lt;p&gt;The generated lock of agentic workflows does make use of GitHub actions, in particular &lt;code&gt;gh-aw-actions/setup&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;When Renovate worked on my repository, it did what it always does. It searched for candidate files, found my documentation-review workflow’s lock file, scanned the dependencies, and opened a PR bumping the SHA to the latest, including &lt;code&gt;gh-aw-actions/setup&lt;/code&gt;. So far, so good.&lt;/p&gt;

&lt;p&gt;However, it created an interesting problem. The action SHA pointed to a new version of &lt;code&gt;gh-aw-actions&lt;/code&gt;. The script body inside the same file didn't change, but referenced a helper script that the new version didn't provide. The workflow failed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The wrong fix
&lt;/h2&gt;

&lt;p&gt;I have to admit I didn't understand the above synchronization issue at first.&lt;/p&gt;

&lt;p&gt;To fix it, I created a new non-agentic GitHub workflow. Whenever Renovate upgrades &lt;code&gt;lock.yml&lt;/code&gt;, the workflow automatically recompiles the agentic workflow. This introduced a subtler bug. The trigger fired on &lt;em&gt;any&lt;/em&gt; change to &lt;code&gt;docs-review.lock.yml&lt;/code&gt;, not just &lt;code&gt;gh-aw-actions&lt;/code&gt; version bumps.&lt;/p&gt;

&lt;p&gt;In my case, Renovate later opened a separate PR to pin the Node.js version inside the same file: the recompile workflow triggered, ran &lt;code&gt;gh aw compile&lt;/code&gt;, and overwrote the file, rolling back the node-version change Renovate had just made.&lt;/p&gt;

&lt;h2&gt;
  
  
  The actual solution
&lt;/h2&gt;

&lt;p&gt;After the second rollback, I realized something was fishy and understood the root cause. The compiler generates the whole lock file from a single &lt;code&gt;gh-aw&lt;/code&gt; release. The action pin and the inline scripts inside the file must match. Renovate bumped the former and left the latter untouched.&lt;/p&gt;

&lt;p&gt;The solution was much simpler. It consisted of two parts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exclude the lock file from Renovate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Renovate has an &lt;code&gt;ignorePaths&lt;/code&gt; entry. I added the lock file and &lt;code&gt;agentics-maintenance.yml&lt;/code&gt;, another workflow that the compilation generates:&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;"ignorePaths"&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;".github/workflows/docs-review.lock.yml"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="s2"&gt;".github/workflows/agentics-maintenance.yml"&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;&lt;strong&gt;Update the actual source, then recompile everything&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The real source of version pins is &lt;code&gt;.github/aw/actions-lock.json&lt;/code&gt;, a manifest file that &lt;code&gt;gh aw compile&lt;/code&gt; reads to resolve action SHAs. Renovate can't update this file yet. There's an open &lt;a href="https://github.com/renovatebot/renovate/issues/44753" rel="noopener noreferrer"&gt;feature request&lt;/a&gt; to support it. In the meantime, &lt;code&gt;gh aw update-actions&lt;/code&gt; refreshes the manifest. I kept my recompile workflow but narrowed its trigger to this single file. When the manifest changes, the workflow fires and runs bare &lt;code&gt;gh aw compile&lt;/code&gt;, regenerating all compiled artifacts at once.&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="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pull_request&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;branches&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;master&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s"&gt;.github/aw/actions-lock.json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;GH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="p"&gt;{ secrets.GITHUB_TOKEN &lt;/span&gt;&lt;span class="k"&gt;}&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; gh aw compile
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;a href="https://github.github.com/gh-aw/reference/compilation-process/" rel="noopener noreferrer"&gt;&lt;code&gt;gh-aw&lt;/code&gt; documentation&lt;/a&gt; warns against editing generated references by hand: you should run &lt;code&gt;gh aw compile&lt;/code&gt; to regenerate them. It boils down to the same split: the manifest owns the pins, the compiler owns the generated outputs.&lt;/p&gt;

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

&lt;p&gt;Generated files are not dependency files, even when they contain version strings. We all know we shouldn't change generated files. New tools shouldn't change this approach.&lt;/p&gt;

&lt;p&gt;In our case, Renovate should only know about the source, not the generated files, even when they are under source control. Ergo, filter out files generated by agentic workflows.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To go further:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.github.com/gh-aw/" rel="noopener noreferrer"&gt;GitHub Agentic Workflows&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.renovatebot.com/configuration-options/#ignorepaths" rel="noopener noreferrer"&gt;ignorePaths&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/renovatebot/renovate/issues/44753" rel="noopener noreferrer"&gt;Add support for the GitHub Agentic Workflows (gh-aw) lockfile&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.github.com/gh-aw/reference/compilation-process/" rel="noopener noreferrer"&gt;Compilation Process&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.github.com/gh-aw/reference/dependabot/" rel="noopener noreferrer"&gt;Dependabot Manifest Generation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;





&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://blog.frankel.ch/github-agentic-workflow-renovate/" rel="noopener noreferrer"&gt;A Java Geek&lt;/a&gt; on August 2&lt;sup&gt;nd&lt;/sup&gt;, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>agenticworkflow</category>
      <category>renovate</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
