אודות
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.
עיקרי הדברים
- 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
מה בפנים
- 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
התקנה ידנית
- Habits is on by default. You can check it under Settings › Habits.
- Keep working with the agent. Reject edits you do not want.
- When Habits suggests a rule, click Make it a rule. Run Ingot: Show Habits (⌘⇧A) to see everything it learned.