<?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: zonal</title>
    <description>The latest articles on DEV Community by zonal (@mohamed1111111m).</description>
    <link>https://dev.to/mohamed1111111m</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%2F4180449%2F42dab411-939c-42ba-9c57-f63b8616fee7.png</url>
      <title>DEV Community: zonal</title>
      <link>https://dev.to/mohamed1111111m</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mohamed1111111m"/>
    <language>en</language>
    <item>
      <title>Codebase Brief: task-focused context for AI coding chats</title>
      <dc:creator>zonal</dc:creator>
      <pubDate>Mon, 12 Oct 2026 21:41:29 +0000</pubDate>
      <link>https://dev.to/mohamed1111111m/i-built-a-local-cli-that-prepares-repository-context-for-ai-coding-tools-7c9</link>
      <guid>https://dev.to/mohamed1111111m/i-built-a-local-cli-that-prepares-repository-context-for-ai-coding-tools-7c9</guid>
      <description>&lt;p&gt;Some coding chats can connect to a local folder or GitHub repo. Others cannot, and sometimes I want to hand over only a small, reviewable slice of a project for one task. Collecting those files by hand gets tedious. That is why I built Codebase Brief.&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%2F04ybvmn2vyfibgxayh1b.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%2F04ybvmn2vyfibgxayh1b.png" alt="Codebase Brief terminal and sample context brief" width="800" height="541"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Codebase Brief is a local Python CLI. Give it a repository and a task; it suggests files and explains why, then builds a compact Markdown handoff with excerpts and paths. You can keep, remove, or add suggestions. An optional Git base ref prioritizes changed files and supported direct importers.&lt;/p&gt;

&lt;p&gt;It makes no AI calls and does not upload repository contents. File selection is heuristic: it can miss useful files or include irrelevant ones. Review the suggestions and the brief before sharing. If your assistant already reads your current working tree and that access suits you, its built-in tools may be simpler. Codebase Brief is for chats without that access, or when you want a smaller, explicit handoff. The &lt;a href="https://github.com/mohamed1111111m/codebase-brief#when-codebase-brief-fits" rel="noopener noreferrer"&gt;README explains when it fits&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To preview it with a temporary sample project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pipx &lt;span class="nb"&gt;install &lt;/span&gt;codebase-brief
brief &lt;span class="nt"&gt;--demo&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To make a brief for your own task:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;brief &lt;span class="s2"&gt;"/path/to/your/repo"&lt;/span&gt; &lt;span class="nt"&gt;--task&lt;/span&gt; &lt;span class="s2"&gt;"Trace the login flow"&lt;/span&gt; &lt;span class="nt"&gt;--copy&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the example path and task with yours. If you want Git changes prioritized, add --base main only when main is the right base ref for your repo. The brief is copied to your clipboard; paste it into your chat and check it before sharing. If you already installed it, use pipx upgrade codebase-brief.&lt;/p&gt;

&lt;p&gt;I would like feedback from developers who try it on a repository they know: Which suggested files did you remove? Which useful ones did you add? Did the brief give your assistant enough to get started? The CLI prints a summary of those changes. You can share it through the &lt;a href="https://github.com/mohamed1111111m/codebase-brief/issues/new?template=tester-feedback.yml" rel="noopener noreferrer"&gt;tester feedback form&lt;/a&gt;—please remove private paths or details first.&lt;/p&gt;

&lt;p&gt;I made Codebase Brief. The &lt;a href="https://github.com/mohamed1111111m/codebase-brief" rel="noopener noreferrer"&gt;source, screenshots, and full instructions are on GitHub&lt;/a&gt;.&lt;/p&gt;

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