Skip to main content

Stop Babysitting your AI Coding Agent Every Single Session

 


Watched a video by DSquaredLabs on "No more re-explaining: Give your AI agent a memory graph" — here's what stuck with me and why I think this three-tool system is worth your attention


If you work on a large codebase with AI coding tools, you already know the ritual. Open a new chat, paste your file structure, explain your stack, describe how the modules connect — and repeat the whole thing tomorrow.

It is not a minor inconvenience. It is a compounding productivity tax that gets worse as your project grows.

This article breaks down a three-tool system designed to fix exactly that. If you want the full walkthrough with a live demo on a real monorepo, the video at the bottom covers everything in depth — but the core concepts are worth understanding before you dive in.

The Problem With How Most Developers Use AI Today

Most AI-assisted coding workflows are missing three things that every good engineering team actually has:

  • A map of the codebase
  • A process for how work gets done
  • A way to communicate efficiently

Without these, your AI agent guesses, drifts, touches files it was never supposed to touch, and burns tokens re-learning context it already learned last session. The tools below are a direct answer to each of these gaps.

The Three-Tool System

Image credit: DsquaredLabs

1. Graphify — The Context Layer

Graphify reads your entire project — source files, docs, diagrams, schemas — and builds a queryable knowledge graph of your codebase. Instead of dumping files into context at the start of every session, your AI agent queries the graph for only what it needs.

Three things that matter practically:

  • Fewer tokens per query. The agent pulls targeted information from the graph rather than scanning files wholesale.
  • Fully local parsing. Every language is analyzed on your machine. Nothing is uploaded to a remote server.
  • Zero source code in the cloud. The graph is yours. Your code never leaves your environment.

Before running Graphify on a monorepo, you will want to create a .graphifyignore file — similar to .gitignore — to exclude build artifacts, platform folders, generated files, and test caches. Without this, the graph picks up noise and becomes less useful. This step should come before the install.

2. Superpowers — The Process Layer

This is the most important tool in the system. Superpowers gives your AI agent a structured engineering workflow: plan, implement, test, review, fix — every time, with no exceptions.

Before writing a single line of code, the agent pulls a real spec from the implementation document, breaks the work into precise tasks with exact file paths and verification steps, and only then begins execution.

The gap between having this and not having it feels small on a simple task. On a large, complex project, it is the difference between code you can maintain and code you have to rewrite from scratch.

One setup detail that is easy to overlook: inside your CLAUDE.md (or AGENT.md for Codex), explicitly instruct the agent to use Superpowers and Graphify on every task. AI agents do not retain instructions between sessions. Without this, there is a real chance the agent quietly skips the tools and falls back to reading files directly with no plan.

One more thing worth emphasising: always read the plan before execution starts. If there is a mistake in the plan, everything that follows inherits that mistake. The agent will confidently build the wrong thing, and by the time you notice, you are several tasks deep. The plan is the contract — get it right first.

3. Caveman — The Efficiency Layer

Caveman runs throughout the entire session. Its job is simple: keep the AI's output short, precise, and low on tokens. It cuts the filler, the padding, and the unnecessary explanations that accumulate across every reply.

The claimed result is a 75% reduction in token consumption and responses that are faster and cleaner to read. At the end of any session, you can run a summary command to see exactly how much was saved.

What This Actually Changes

Image credit: DsquaredLabs

Here is a concrete example from the DSquaredLabs video — implementing a welcome email feature on a Flutter and Python monorepo:

  • Starting usage: 8%
  • Ending usage: 22%
  • Actual burn: 14%
  • Expected burn for equivalent work: ~25%
  • Saving: ~11% in a single session

Eleven percent in one session may not sound dramatic. But this compounds. Session after session, feature after feature, the saving accumulates — alongside a workflow that is structured, reviewable, and safe. You are not trading quality for efficiency. You are getting both.

At the end of that same session, Caveman reported 65% token savings on communication overhead alone.

The Full Picture

Image credit: DsquaredLabs

The system works as a single pipeline:

  1. Graphify scans the repo at the start and gives the AI a map
  2. The AI starts with context — it knows where everything is before touching a file
  3. Superpowers runs the workflow — plan first, change code, run tests, review before done
  4. Caveman stays on the whole time — persistent guardrails keeping every response tight

Together they turn what DSquaredLabs aptly calls "vibe coding" from a gamble into something repeatable and reliable.

Watch the Full Walkthrough

The concepts above give you the mental model, but the real value is in watching the system run on an actual codebase.

Watch the full DSquaredLabs video here

References


graphify — An AI coding assistant skill that turns any folder of code, SQL schemas, scripts, docs, papers, images, or videos into a queryable knowledge graph, with support for Claude Code, Codex, Cursor, Gemini CLI, and more. github

superpowers — A complete software development methodology for coding agents, built on composable skills covering TDD, systematic debugging, spec-driven brainstorming, subagent-driven development, and more. github

caveman — A Claude Code skill (also supporting Codex, Gemini, Cursor, and 30+ other agents) that compresses agent output by roughly 65% by having the agent respond in stripped-down, fragment-style prose, while preserving full technical accuracy. github



Comments

Popular posts from this blog

How To Flash / Install Firmware Samsung Galaxy Mini S5570

This Tutorial is about flashing firmware on your Samsung Galaxy Mini S5570 . I posted a step by and easy tutorials , please read complete guide once and then apply , if you skip any step then you will have bricked phone. Disclaimer:  Follow this Guide on your risk and if your device gets damaged or bricked during the process, DJ-Android is not responsible. Download required things Download ODIN v4.38   – it is a tool that is used to flash firmware on your phone Drivers –  Download  and install drivers that are required to detect your phone by pc Download  Firmware for your phone Download   TASS_v1.0.ops File An Archive (.zip / .rar) file extractor, usually all pc owners have this tool . In case you don’t have any use 7zip archive extractor Instructions to Install Firmware on Galaxy Mini S5570 First extract  SAMSUNG_USB.rar  and install drivers on pc Extract Firmware files on safe place, ...

How RUN ANDROID 3.0 in your windows PC

download this two file from this link : http://code.google.com/p/live-android/downloads/list d ownload software name HI-SPLIT and create ISO ISO file for this two : now use VMware Workstation : 1 create new virtual machine : select your image ISO file: check the output on your  VMware Workstation  : if you like this then please give response. thank you.   DJ

MCP vs CLI: Which One Fits Your AI Agent's Job?

  Every AI agent that touches the outside world does it one of two ways: it runs a shell command, or it calls a tool through the Model Context Protocol. Both get the job done, but they don't cost the same or fail the same way, which is why "MCP vs CLI" keeps resurfacing without resolving. I want to answer it for the cases that matter most: plain developer tooling, data-heavy systems like banking, forecasting pipelines, and transaction automation like billing or booking. Neither wins outright. Where you draw the line is the actual skill. Key Takeaways CLI is the default for anything the model already knows cold, git, file ops, text processing, since there's no schema tax and commands chain through pipes. MCP earns its cost when a system needs per-user auth, audit trails, or access to sources the model can't otherwise reach, exactly what regulated systems like banking require. Transaction automation works best split: deterministic code drives the repeatable steps, a...