Urgent.News

What's breaking now, across thousands of outlets.

Tech

A Makefile Is the Best Agent Doc: 10 Targets Every Repo Needs Before an Agent Touches It

Book: Database Playbook Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub Hand a coding agent a failing test in a repo it has never seen, and watch where the first turns go. It reads package.json . It reads…

A Makefile is a valuable tool for any repository, especially when an AI coding agent is interacting with it for the first time. By including specific targets in the Makefile, the agent can interact with the codebase in a controlled and predictable manner, avoiding potential issues that may arise from the agent's guesses.

The Makefile includes ten essential targets that cover various aspects of the development process: help, setup, test, test-one, lint, fmt, typecheck, dev, db-reset, and check. Each target serves a specific purpose, providing a clear and concise way for the agent to navigate the codebase and perform necessary actions.

For instance, the help target lists all available targets, making it easy for the agent to understand the range of options available. The setup target ensures that dependencies are installed exactly as locked in the package manager's lockfile. The test target runs the entire test suite once, while the test-one target allows running tests for a specific file.

The lint and fmt targets ensure code quality by linting and formatting the code, respectively. The typecheck target performs type checking without producing any output files, and the dev target starts a development server.

The db-reset target is particularly important, as it resets the database to a safe state, allowing the agent to work with a known configuration. This target is marked as local only, preventing unintended data loss when the agent is run in a different environment. The check target ensures that all other targets have passed before proceeding, serving as a final gate for the agent.

By including these ten targets in the Makefile, developers can provide the AI coding agent with a well-defined set of actions, reducing the risk of unexpected behavior and ensuring a smooth interaction with the codebase.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Google Cloud Spend Caps Reach General Availability With an API and Live Costs

TL;DR A spend cap is a Google Cloud budget rule that pauses eligible services in a project once usage cost passes the budget's target amount, and it leaves the resources themselves in place.

  • Google Cloud adds spend caps feature to Cloud Billing Budgets API on 30 October 2026
  • Caps pause service usage when costs exceed 50%, 80%, or 100% of current spend
  • Live cost reports provide forecasts for enforcement triggers

I built a Tinder-style Website for finding coding project ideas

Hey everyone! I'm Enrique, a student who enjoys building web apps, and I recently launched a little side project called SwipeShip .

  • Enrique creates Tinder-inspired platform SwipeShip for coding project ideas
  • Users swipe through curated project ideas, save favorites, and connect GitHub
  • Platform emphasizes fun, progress tracking, and milestone rewards

Scrape LinkedIn job postings without logging in (Python + Google Sheets)

LinkedIn shows job postings to anyone, even without an account. In this tutorial we'll collect job postings — with full descriptions, salary when shown, applicant count, seniority and Easy Apply flag…

  • LinkedIn job postings accessible without login
  • Apify Actor scrapes job details for free
  • Python script retrieves daily new postings

Turn a 2-Hour YouTube Tutorial Into Text You Can Ctrl+F

Disclosure: I am connected to the team that runs these bots. Every developer has done this. You remember a tutorial had the exact flag you need.

  • YouTube tutorial converted to searchable text in minutes
  • Telegram bots @YoutubeTranscriptFreeBot and @TubeToTextBot used
  • Text search tools like grep locate specific phrases or sections

More from Monday 2 November →