<?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: Federico La Terra</title>
    <description>The latest articles on DEV Community by Federico La Terra (@federicolaterra).</description>
    <link>https://dev.to/federicolaterra</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%2F4184852%2F03792dae-f3b0-4621-9b1c-c8b86e1a860e.png</url>
      <title>DEV Community: Federico La Terra</title>
      <link>https://dev.to/federicolaterra</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/federicolaterra"/>
    <language>en</language>
    <item>
      <title>I kept rebooting my machine to run local LLMs, so I built canfit</title>
      <dc:creator>Federico La Terra</dc:creator>
      <pubDate>Tue, 17 Nov 2026 17:09:22 +0000</pubDate>
      <link>https://dev.to/federicolaterra/i-kept-rebooting-my-machine-to-run-local-llms-so-i-built-canfit-13n0</link>
      <guid>https://dev.to/federicolaterra/i-kept-rebooting-my-machine-to-run-local-llms-so-i-built-canfit-13n0</guid>
      <description>&lt;h2&gt;
  
  
  The frustration
&lt;/h2&gt;

&lt;p&gt;While building my previous open-source project, &lt;a href="https://github.com/federicolaterra/knemora" rel="noopener noreferrer"&gt;Knemora&lt;/a&gt;, I was running local LLMs on my Mac alongside Docker, a browser with too many tabs and everything else a developer keeps open. Memory kept running out.&lt;/p&gt;

&lt;p&gt;Every time, the same question: &lt;strong&gt;what can I close safely, without killing something macOS needs?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The classic &lt;code&gt;top&lt;/code&gt; shows you numbers, not answers. &lt;br&gt;
It doesn't tell you whether the model you're about to load will fit, and it doesn't tell you which of those hundreds of processes are safe to close. More than once I just gave up and &lt;strong&gt;rebooted&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So I built the tool I wanted.&lt;/p&gt;
&lt;h2&gt;
  
  
  Meet canfit
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;canfit is the top command for people running local LLMs and apps.&lt;/strong&gt; &lt;br&gt;
It tells you if a model or an app can launch right now and, if it can't, what you can safely close to make room. System processes are never touched.&lt;/p&gt;

&lt;p&gt;It's a single Rust binary for macOS, Windows and Linux, MIT licensed, with no telemetry: all data stays on your machine.&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%2Frfgevp6dya7reac1etwd.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%2Frfgevp6dya7reac1etwd.png" alt="Your terminal, Your theme" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  What it does
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Can I launch it?
&lt;/h3&gt;

&lt;p&gt;Point canfit at a GGUF model or an app and it checks it against the memory you have &lt;strong&gt;right now&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;canfit model.gguf                    &lt;span class="c"&gt;# can I launch this model?&lt;/span&gt;
canfit model.gguf --ctx 32768        &lt;span class="c"&gt;# ...with a 32k context&lt;/span&gt;
canfit &lt;span class="s2"&gt;"Docker Desktop"&lt;/span&gt; model.gguf   &lt;span class="c"&gt;# both together?&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For GGUF files it reads the header (parameters, quantization, layers, tensor sizes) and estimates weights + context cache + overhead. On Apple Silicon it also checks the GPU wired limit, because the GPU can only use part of unified memory.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should I close?
&lt;/h3&gt;

&lt;p&gt;If it doesn't fit, canfit suggests the smallest set of apps to close:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;canfit free model.gguf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every process is classified as &lt;strong&gt;safe&lt;/strong&gt;, &lt;strong&gt;caution&lt;/strong&gt; or &lt;strong&gt;never&lt;/strong&gt;. System processes are never suggested, unknown processes default to caution, and nothing is closed without your confirmation.&lt;/p&gt;

&lt;h3&gt;
  
  
  A friendlier top
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;canfit&lt;/code&gt; with no arguments and you get a live monitor that starts with a sentence instead of a table ("Memory under pressure: Chrome is using 9 GB"), with processes grouped by app.&lt;/p&gt;

&lt;h3&gt;
  
  
  Watch
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;canfit watch -- llama-server -m model.gguf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Launch a command through canfit and it measures its real memory usage, so the next estimate is based on what actually happened.&lt;/p&gt;

&lt;h3&gt;
  
  
  Script-friendly
&lt;/h3&gt;

&lt;p&gt;Every command supports &lt;code&gt;--json&lt;/code&gt;, and the fit check returns an exit code (0 fits, 1 tight, 2 doesn't fit):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;canfit model.gguf &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; llama-server -m model.gguf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Features overview
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0x1g2kya6a14tcoehgv1.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%2F0x1g2kya6a14tcoehgv1.png" alt="Canfit answers" width="799" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fetyhbqtpd9718zyh7hfd.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%2Fetyhbqtpd9718zyh7hfd.png" alt="Fit check works" width="799" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

&lt;p&gt;canfit is available through &lt;code&gt;Homebrew&lt;/code&gt;, &lt;code&gt;Scoop&lt;/code&gt;, &lt;code&gt;curl&lt;/code&gt;, &lt;code&gt;PowerShell&lt;/code&gt;, &lt;code&gt;.msi&lt;/code&gt;, &lt;code&gt;.deb&lt;/code&gt;, &lt;code&gt;.rpm&lt;/code&gt; and &lt;code&gt;cargo install --git&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;The exact commands for each platform are in the README:&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;&lt;a href="https://github.com/federicolaterra/canfit" rel="noopener noreferrer"&gt;https://github.com/federicolaterra/canfit&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Help me make the estimates better
&lt;/h2&gt;

&lt;p&gt;This is 1.0.0, and memory estimates are the part I care about most.&lt;/p&gt;

&lt;p&gt;And if you find it useful, a ⭐ on GitHub helps a lot. &lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>llm</category>
      <category>cli</category>
      <category>rust</category>
    </item>
    <item>
      <title>What if your AI could organise your knowledge without sending it to the cloud?</title>
      <dc:creator>Federico La Terra</dc:creator>
      <pubDate>Sat, 07 Nov 2026 17:26:40 +0000</pubDate>
      <link>https://dev.to/federicolaterra/what-if-your-ai-could-organise-your-knowledge-without-sending-it-to-the-cloud-26kf</link>
      <guid>https://dev.to/federicolaterra/what-if-your-ai-could-organise-your-knowledge-without-sending-it-to-the-cloud-26kf</guid>
      <description>&lt;p&gt;That's the idea behind &lt;strong&gt;Knemora&lt;/strong&gt;, an open-source, local-first AI Second Brain I've been building in my spare time.&lt;/p&gt;

&lt;p&gt;Imagine turning your documents into interconnected knowledge, exploring relationships, and asking an AI questions about everything you've collected.&lt;/p&gt;

&lt;p&gt;All running locally, on your own machine.&lt;/p&gt;

&lt;p&gt;A few weeks after releasing the first alpha, I realized something:&lt;/p&gt;

&lt;p&gt;Building an AI application is one thing. Making it genuinely useful every day is another.&lt;/p&gt;

&lt;p&gt;So I kept building.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Knemora v0.2.0-alpha is here!&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This update focuses on making Knemora more reliable, responsive, and easier to use.&lt;/p&gt;

&lt;p&gt;Here's what's new:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Better conversation continuity and automatic language matching.&lt;/li&gt;
&lt;li&gt;Wiki and Direct Chat Modes.&lt;/li&gt;
&lt;li&gt;Fast and Deep reasoning controls.&lt;/li&gt;
&lt;li&gt;Stronger knowledge compilation and relationships.&lt;/li&gt;
&lt;li&gt;Gemma 4 E4B joins the tested local model registry.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also ran a small benchmark comparing &lt;strong&gt;Qwen3-8B&lt;/strong&gt; and &lt;strong&gt;Gemma 4 E4B&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this particular Direct-mode test, Gemma delivered &lt;strong&gt;20.6% lower median&lt;/strong&gt; application latency and &lt;strong&gt;31.1% higher decode&lt;/strong&gt; throughput.&lt;/p&gt;

&lt;p&gt;Not a universal benchmark, just another step toward making local AI more responsive.&lt;/p&gt;

&lt;p&gt;Knemora is still in alpha, and there's plenty left to improve. I'm building it one iteration at a time, with the goal of reaching a stable &lt;code&gt;v1.0.0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Would you use a local AI to build your own connected knowledge base? What would you expect it to do?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;: &lt;a href="https://github.com/federicolaterra/knemora" rel="noopener noreferrer"&gt;https://github.com/federicolaterra/knemora&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Website&lt;/strong&gt;: &lt;a href="https://knemora.space" rel="noopener noreferrer"&gt;https://knemora.space&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch the demo&lt;/strong&gt;: &lt;a href="https://www.youtube.com/watch?v=kl5qNrWPOnY" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=kl5qNrWPOnY&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback and contributions are always welcome!&lt;/p&gt;

</description>
      <category>ai</category>
      <category>secondbrain</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Building Knemora: An Open-source, Local-first AI (SI) Second Brain</title>
      <dc:creator>Federico La Terra</dc:creator>
      <pubDate>Wed, 14 Oct 2026 14:05:42 +0000</pubDate>
      <link>https://dev.to/federicolaterra/building-knemora-an-open-source-local-first-ai-si-second-brain-322m</link>
      <guid>https://dev.to/federicolaterra/building-knemora-an-open-source-local-first-ai-si-second-brain-322m</guid>
      <description>&lt;p&gt;I’m Federico, a visual designer and full-stack developer.&lt;/p&gt;

&lt;p&gt;About six months ago, I had an idea I kept coming back to: could I turn documents and datasets into connected knowledge, explore the relationships visually, and ask questions without sending my material to a cloud inference service?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why I built Knemora?&lt;/strong&gt;&lt;br&gt;
After a lot of research, architecture decisions, late nights, and interface iterations, that idea became Knemora.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How it works?&lt;/strong&gt;&lt;br&gt;
It’s an open-source, local-first AI (SI) Second Brain. You bring your documents and datasets; Knemora compiles knowledge into a portable Markdown wiki, connects pages, and makes that knowledge available through search, a native graph, and chat with source citations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Architecture:&lt;/strong&gt;&lt;br&gt;
The diagrams below show the system architecture and the knowledge/inference workflow.&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%2Fotf53sl9uy5t24hzqppu.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%2Fotf53sl9uy5t24hzqppu.png" alt="System architecture" width="799" height="524"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fywkku40qq25ztmm3j8qx.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%2Fywkku40qq25ztmm3j8qx.png" alt="Core AI architecture" width="800" height="516"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A few choices behind the architecture:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Portable knowledge: Markdown pages with frontmatter and explicit links. The graph is a rebuildable view of those connections.&lt;/li&gt;
&lt;li&gt;Local inference: llama.cpp with Qwen3-8B Q3_K_M as the default model.&lt;/li&gt;
&lt;li&gt;Retrieval: BM25 search and bounded graph navigation, without a vector database.&lt;/li&gt;
&lt;li&gt;Traceability: original documents are preserved, and generated claims carry source references.&lt;/li&gt;
&lt;li&gt;Dataset analysis: Polars performs structured calculations, keeping numerical results grounded in computation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The stack includes Vue 3, FastAPI, Google ADK, SQLite, and Sigma.js/Graphology.&lt;/p&gt;

&lt;p&gt;The initial alpha targets &lt;strong&gt;macOS Apple Silicon&lt;/strong&gt;. Node.js 24 with npm is required; the launcher manages the remaining runtimes and model downloads. Initial setup needs internet access, while the core knowledge and inference workflow runs locally afterward. There’s also an isolated demo with interconnected sample knowledge.&lt;/p&gt;

&lt;p&gt;As a designer, I care about making the interface clear and the graph useful. As a developer, I care about keeping the underlying knowledge portable and understandable.&lt;/p&gt;

&lt;p&gt;Open-source software has helped me throughout my career, and I’m proud to contribute something of my own. This is an early alpha, with plenty left to improve.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code, documentation, and setup:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/federicolaterra/knemora" rel="noopener noreferrer"&gt;github.com/federicolaterra/knemora&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Website:&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://knemora.space" rel="noopener noreferrer"&gt;knemora.space&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>showdev</category>
      <category>softwaredevelopment</category>
    </item>
  </channel>
</rss>
