<?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: Muaid Mughrabi</title>
    <description>The latest articles on DEV Community by Muaid Mughrabi (@muaidmughrabi).</description>
    <link>https://dev.to/muaidmughrabi</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%2F4279280%2Fe83570c4-d21f-4a14-93c9-2601035167ed.png</url>
      <title>DEV Community: Muaid Mughrabi</title>
      <link>https://dev.to/muaidmughrabi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muaidmughrabi"/>
    <language>en</language>
    <item>
      <title>Is That an Agent in Your Pocket?</title>
      <dc:creator>Muaid Mughrabi</dc:creator>
      <pubDate>Wed, 02 Dec 2026 22:39:22 +0000</pubDate>
      <link>https://dev.to/muaidmughrabi/is-that-an-agent-in-your-pocket-16ap</link>
      <guid>https://dev.to/muaidmughrabi/is-that-an-agent-in-your-pocket-16ap</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://muaid-mughrabi.github.io/blog/2026/agent-in-my-pocket/" rel="noopener noreferrer"&gt;my blog&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I turned my phone into a Linux PC that runs a full desktop and Claude Code. It needs no root, and I built it together with an AI agent. The computer I always carry can now do real work.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvy0en5gzlfw0pjb1y1w1.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%2Fvy0en5gzlfw0pjb1y1w1.jpg" alt="The phone's Linux desktop in dark theme at 2560×1440: Brave on the Dockstation GitHub page, a terminal with fastfetch showing the Adreno 740 GPU, and the file manager" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;The phone's Linux desktop on a 2560×1440 monitor: Brave, a terminal showing the phone's hardware, and the file manager.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Should I take the laptop?
&lt;/h2&gt;

&lt;p&gt;Every time I leave home I ask myself the same question: should I take the laptop? Most days I don't need it. But sometimes a run fails, a server needs a look, or someone asks me to check something, and then I need a real machine with a terminal, a browser and my tools.&lt;/p&gt;

&lt;p&gt;But I already carry a real machine. My phone has a flagship chip, 16 GB of RAM and more storage than my first laptop. Most of the day it sits idle, showing messages and maps. And I'm not unusual: most of us carry far more computing power than we ever put to work. So I wanted to find out how far I could get by treating the phone as the computer and the monitor as just a screen.&lt;/p&gt;

&lt;p&gt;This isn't a new idea. Samsung DeX does it, and I saw it working on a friend's phone. But I don't own a Samsung, and Google's own desktop mode has been coming for years. Even where these exist, you get Android apps in windows: a tablet stretched onto a monitor, not the apps I use on my laptop. I wanted a real Linux desktop, and I wanted my coding agent on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building it with an agent
&lt;/h2&gt;

&lt;p&gt;I asked for features, pinned down bugs and sometimes helped debug them. Claude Code wrote most of the code, driving the phone from my laptop over wireless debugging.&lt;/p&gt;

&lt;h3&gt;
  
  
  A real desktop, without root or a VM
&lt;/h3&gt;

&lt;p&gt;Plugging in the monitor gave me Android's hidden desktop mode: a blurry, stretched wallpaper and one app-drawer button, with no taskbar and no way to switch apps. So instead of polishing it, we put a full Debian 13 Linux on the phone. On the monitor it works like a laptop: overlapping windows, snapping, Alt+Tab, and the same desktop apps I use every day.&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%2Fnfos6xr5zkqe98talzc7.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%2Fnfos6xr5zkqe98talzc7.jpg" alt="VS Code and htop side by side on the phone's Linux desktop" width="800" height="436"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;VS Code editing the Dockstation repo on the phone's ARM CPU, snapped next to htop.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;None of this needs root or a virtual machine. Debian runs inside Termux, a Linux terminal app for Android, and shares the phone's own kernel, so it runs close to native speed. Here is how the pieces fit together:&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%2Ftc3pp4dpmg3go3nymaov.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%2Ftc3pp4dpmg3go3nymaov.png" alt="Diagram of Dockstation's parts: the phone runs Linux beside Android" width="799" height="579"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;How Dockstation's parts connect.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The agent built a GPU driver
&lt;/h3&gt;

&lt;p&gt;Out of the box, every Linux app on the phone drew everything on the CPU, and nobody ships a GPU driver for this setup. So the agent built one. It compiled Mesa's open-source Turnip driver against Android's own GPU interface, without root, and wired it into Brave and Blender. Now Brave plays a 1080p YouTube video full screen on the 2560×1440 monitor at about 45 frames per second. Blender's EEVEE renders a 1920×1080 test scene on the phone's Adreno 740 in 16.5 seconds.&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%2Fiayr0ba7lwr8s857860u.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%2Fiayr0ba7lwr8s857860u.jpg" alt="Blender rendering 48 monkey heads in gold, glass, red plastic and steel with EEVEE on the phone's GPU, render time 16.63 seconds" width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Blender on the phone: EEVEE renders the 1920×1080 test scene on the Adreno 740 in 16.6 seconds (top left).&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude Code, always with me
&lt;/h2&gt;

&lt;p&gt;The part that excites me most isn't the monitor. It's that the phone is the one computer I always have on me, so it's the natural home for a coding agent. I've always wanted Claude Code living in my pocket. In the video game Watch Dogs, the main character is a hacker whose phone can take over almost anything nearby: traffic lights, security cameras, other people's phones. That's the feeling I was after: an agent that goes everywhere I go and can reach the devices around me.&lt;/p&gt;

&lt;p&gt;Claude Code now runs in the phone's Debian, the same way it would on a laptop. The model is hosted in the cloud, but everything the agent does happens on the phone: the commands it runs, the files it edits, the builds and tests it starts. Debian keeps running with the screen off and nothing plugged in, so I can hand the agent a task and put the phone back in my pocket.&lt;/p&gt;

&lt;p&gt;This barely touches the battery, because the phone keeps itself awake only while the agent is busy. Over three hours, Linux and everything running in it used 29 mAh. The screen used 480 mAh in the same period.&lt;/p&gt;

&lt;p&gt;It has already earned its place. I've used it to debug many different devices: as long as a device can connect to the phone, the agent can reach it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Should you try it?
&lt;/h2&gt;

&lt;p&gt;If your phone runs Android 14 or newer and can output video over USB-C, probably yes. Coding, terminals, SSH, git and documents all run comfortably. The one catch for now: setup needs a computer with adb, Android's debugging tool.&lt;/p&gt;

&lt;p&gt;The installation is agent-friendly. &lt;a href="https://github.com/muaid-mughrabi/dockstation" rel="noopener noreferrer"&gt;The repo&lt;/a&gt; ships an &lt;a href="https://github.com/muaid-mughrabi/dockstation/blob/main/AGENTS.md" rel="noopener noreferrer"&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/a&gt; with step-by-step instructions written for agents, so you can set up Dockstation on your own phone by asking your agent to do it.&lt;/p&gt;

&lt;p&gt;The code is on &lt;a href="https://github.com/muaid-mughrabi/dockstation" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; under a non-commercial license. I still take the laptop sometimes. But the compute was in my pocket all along, and more and more, the laptop stays home.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P.S. No cable needed.&lt;/strong&gt; Dockstation can now cast the Linux desktop to a TV over Wi-Fi. Long-press the Dockstation icon, tap &lt;strong&gt;Cast to TV&lt;/strong&gt;, and the desktop plays on a Chromecast at 1920×1080 and 30 frames per second, with sound, only about 90 milliseconds behind the phone. That's close enough to real time to work in, and the phone becomes the touchpad and keyboard. Nothing is installed on the TV. The agent took Google's open-source Open Screen sender, patched it to stream a live desktop, and runs it inside Linux on the phone, where it talks to the mirroring receiver every Chromecast already has. Casting doesn't use the phone's USB-C video output at all.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Cite this post:&lt;/em&gt; Mughrabi, M. (2026). &lt;em&gt;Is That an Agent in Your Pocket?&lt;/em&gt; &lt;a href="https://doi.org/10.5281/zenodo.24761583" rel="noopener noreferrer"&gt;https://doi.org/10.5281/zenodo.24761583&lt;/a&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>linux</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
