惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
C
Check Point Blog
M
MIT News - Artificial intelligence
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
D
Docker
Last Week in AI
Last Week in AI
IT之家
IT之家
F
Fortinet All Blogs
A
About on SuperTechFans
P
Proofpoint News Feed
The Cloudflare Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
博客园_首页
月光博客
月光博客
博客园 - 司徒正美
Y
Y Combinator Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built a CLI that writes my commit messages and PR descr...
Elison Frank · 2026-05-13 · via DEV Community

Elison Frankowski

For several years I've been writing commit messages like "fix stuff" and PR descriptions that say nothing useful. Last week I got tired of it and built graftai — a CLI that handles the annoying parts of git workflow after you finish coding.

What it does

graft commit   # analyzes your diff, suggests a commit message
graft pr       # generates a PR title and description from your commits
graft sync     # syncs with main, resolves merge conflicts with AI
graft config   # set your provider, model, language and API key

Enter fullscreen mode Exit fullscreen mode

How it works

You run graft commit, it reads your diff, sends it to the AI model of your choice, and suggests a conventional commit message. You approve, edit, or cancel.

Analyzing diff...

Suggested commit message:
feat(auth): add JWT refresh token rotation with configurable expiry

? Use this message? (Y/n)

Enter fullscreen mode Exit fullscreen mode

Same for PRs — it reads your commit history and writes a title and description that actually explains what changed and why.

graft sync is the interesting one: when your branch has diverged from main, it decides whether to rebase or merge (based on whether your branch is published), runs it, and for each conflicted file shows you the AI's proposed resolution with an explanation before applying anything.

It works with your own API key

No SaaS, no subscription. You bring your own key. Supported providers:

Provider Models
OpenAI gpt-4o-mini, gpt-4o, gpt-4.1
Anthropic claude-haiku, claude-sonnet, claude-opus
Google gemini-2.0-flash, gemini-2.5-pro
Groq llama-3.3-70b, mixtral-8x7b (free tier available)

Config is saved locally at ~/.graft/config.json. You can also use env vars if you prefer.

Install

npm install -g graftai
graft config

Enter fullscreen mode Exit fullscreen mode

That's it. Next time you finish a feature, instead of staring at a blank commit message box:

git add .
graft commit

Enter fullscreen mode Exit fullscreen mode

The code

Open source on GitHub: github.com/elisonfrank/graft

Built with Node.js, TypeScript, and the Vercel AI SDK for provider-agnostic model switching.