Marketplace
Habits packFree

Code style habits

by Ingot Verified publisher

Seven style patterns Habits watches for in the agent edits you reject.

Install opens Ingot and adds it.

Need the app? Download Ingot

About

Habits is built into Ingot and on by default. When you reject the same kind of agent edit again and again (three times by default), Habits notices and suggests a rule, so the agent stops doing it. These are the seven patterns it ships with. What it learns stays on your machine in .ingot/habits.json, which Ingot adds to .gitignore.

Highlights

  • On by default; change the threshold under Settings › Habits
  • Learned habits stay local in .ingot/habits.json
  • Turn a habit into a rule, a command or a hook in one click

What's inside

  • Rejected edits that add console.log calls
  • Rejected edits that use the TypeScript any type
  • Rejected edits that use default exports
  • Rejected edits that declare variables with var
  • Rejected edits that add inline styles
  • Rejected edits that leave TODO or FIXME comments
  • Rejected edits that write function declarations instead of arrow functions

Install by hand

  1. Habits is on by default. You can check it under Settings › Habits.
  2. Keep working with the agent. Reject edits you do not want.
  3. When Habits suggests a rule, click Make it a rule. Run Ingot: Show Habits (⌘⇧A) to see everything it learned.