<?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>Forem: Anika Jha</title>
    <description>The latest articles on Forem by Anika Jha (@anika_jha_33ae1d9afc69178).</description>
    <link>https://forem.com/anika_jha_33ae1d9afc69178</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3383911%2F3b64e089-ee63-4710-b3fb-1c33e450d6bb.jpg</url>
      <title>Forem: Anika Jha</title>
      <link>https://forem.com/anika_jha_33ae1d9afc69178</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/anika_jha_33ae1d9afc69178"/>
    <language>en</language>
    <item>
      <title>gh-excavate: Unearthing Code with GitHub Copilot</title>
      <dc:creator>Anika Jha</dc:creator>
      <pubDate>Sat, 07 Feb 2026 17:16:59 +0000</pubDate>
      <link>https://forem.com/anika_jha_33ae1d9afc69178/gh-excavate-unearthing-code-with-github-copilot-3cml</link>
      <guid>https://forem.com/anika_jha_33ae1d9afc69178/gh-excavate-unearthing-code-with-github-copilot-3cml</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github-2026-01-21"&gt;GitHub Copilot CLI Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;&lt;em&gt;Stuck with an unknown repository at 2 AM?&lt;br&gt;
Accidentally deleted production code and trying to figure out what it even did?&lt;br&gt;
Inherited a codebase with zero documentation?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We’ve all been there.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I built &lt;strong&gt;gh-excavate — an AI-powered GitHub CLI extension&lt;/strong&gt; designed for code archaeology.&lt;/p&gt;

&lt;p&gt;It’s a &lt;strong&gt;terminal-native assistant&lt;/strong&gt; that helps you understand not just what code does, but why it exists.&lt;/p&gt;

&lt;p&gt;Instead of manually browsing commits, scanning files, and piecing together context, you run a single command and gh-excavate digs through the repository for you.&lt;/p&gt;

&lt;p&gt;It can:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Analyse a repository or folder to explain its purpose, architecture, and risks&lt;/li&gt;
&lt;li&gt;Trace the life of a file from creation to deletion&lt;/li&gt;
&lt;li&gt;Detect likely dead or forgotten code&lt;/li&gt;
&lt;li&gt;Help investigate “why does this exist?” moments&lt;/li&gt;
&lt;li&gt;Work on both local paths and remote GitHub repositories&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CLI handles the structure.&lt;br&gt;
Git handles the history.&lt;br&gt;
GitHub Copilot is the brain and soul of the operation, aka &lt;strong&gt;the reasoning engine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Copilot synthesises context, interprets intent, and transforms raw code and git history into &lt;strong&gt;human-level explanations directly in the terminal&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;gh-excavate&lt;/em&gt; &lt;strong&gt;doesn’t just read code.It interprets it&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Repository:&lt;br&gt;
&lt;strong&gt;[gh-excavate]&lt;/strong&gt;(&lt;a href="https://github.com/Anika-Jha/gh-excavate" rel="noopener noreferrer"&gt;https://github.com/Anika-Jha/gh-excavate&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;gh-excavate is a GitHub CLI extension. Once installed, it runs directly inside your terminal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Installation&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.amazonaws.com%2Fuploads%2Farticles%2Fe4916ca8rzc5iq89yj7f.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%2Fe4916ca8rzc5iq89yj7f.png" alt=" " width="800" height="547"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Verification&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.amazonaws.com%2Fuploads%2Farticles%2Fw62mmy1d5xqg5fblo1bf.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%2Fw62mmy1d5xqg5fblo1bf.png" alt=" " width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Commands&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.amazonaws.com%2Fuploads%2Farticles%2Fbi1nuj4zjp6ceru2i16s.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%2Fbi1nuj4zjp6ceru2i16s.png" alt=" " width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Example runs&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.amazonaws.com%2Fuploads%2Farticles%2Faisoei2eq8xj5kg80k53.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%2Faisoei2eq8xj5kg80k53.png" alt=" " width="800" height="477"&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.amazonaws.com%2Fuploads%2Farticles%2Fmnh08gckt9pd2gwrbcjt.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%2Fmnh08gckt9pd2gwrbcjt.png" alt=" " width="800" height="250"&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.amazonaws.com%2Fuploads%2Farticles%2F49cx14rgyxf5ckq9lpjv.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%2F49cx14rgyxf5ckq9lpjv.png" alt=" " width="800" height="448"&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.amazonaws.com%2Fuploads%2Farticles%2F42onvg8dhmma82292mej.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%2F42onvg8dhmma82292mej.png" alt=" " width="800" height="589"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  My Experience with GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;GitHub Copilot CLI fundamentally changed how I approached building this project.&lt;/p&gt;

&lt;p&gt;Instead of relying on brittle heuristics and heavy parsing logic alone, I focused on designing meaningful prompts, extracting the right context from Git history, and structuring the CLI intelligently — while Copilot handled deeper reasoning.&lt;/p&gt;

&lt;p&gt;Copilot became:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The interpretation engine&lt;/li&gt;
&lt;li&gt;The architectural analyst&lt;/li&gt;
&lt;li&gt;The technical historian&lt;/li&gt;
&lt;li&gt;The context synthesiser&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;gh-excavate gathers the evidence&lt;/strong&gt; — commit logs, file history, structural context. &lt;strong&gt;Copilot CLI connects the dots&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The most important realisation during development was this: the real problem isn’t accessing code — it’s understanding intent. &lt;strong&gt;Git tells you what changed. Copilot helps reason about why&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Working directly in the terminal with Copilot felt natural and developer-native. I could validate Git commands, reason about edge cases like file deletions, and refine workflows without leaving the CLI.&lt;/p&gt;

&lt;p&gt;This project isn’t just about automation.&lt;br&gt;
It’s about augmenting developer cognition.&lt;/p&gt;

&lt;p&gt;Because when you're lost in a codebase, you don’t need autocomplete.&lt;/p&gt;

&lt;p&gt;You need understanding.&lt;/p&gt;

&lt;p&gt;Code ages. Context fades.&lt;br&gt;
gh-excavate helps bring it back.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;** When the git log gets cryptic, and production is on fire — excavate. Because “Who wrote this?” is not a strategy.**&lt;br&gt;
**&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
