forked from smallcloudai/refact
-
-
Notifications
You must be signed in to change notification settings - Fork 4
AI Toolbox Improve Code
refact-planner edited this page Jun 7, 2026
·
1 revision
Use toolbox commands to rewrite selected code for clarity.
Improvement workflows are best handled as custom toolbox commands or by the default /shorter command when the goal is concision. They operate on the selected code and return a focused rewrite.
Use this style of command for:
- Reducing unnecessary nesting.
- Simplifying conditionals.
- Removing repeated expressions.
- Making a small block easier to read.
Use Agent mode for larger refactors that must update call sites, tests, or multiple files.
Refact on GitHub: https://github.com/JegernOUTT/refact
- Agent Modes
- Agent Tools
- Task Planner & Cards
- Worktrees
- Subagents
- Memory & Knowledge
- Hidden Roles & Plans
- Context Compression
- Scheduler & Cron
- Processes & PTY
- Buddy
- MCP
- Skills, Commands & Hooks
- Marketplace
- Chat System
- Providers
- Caps & Models
- Code Completion (FIM)
- AST
- VecDB
- Exec Runtime
- HTTP API
- Checkpoints & Git
- Voice