Install
openclaw skills install @itscodejac/dgentDe-agent your code. Run dgent to check files and commit messages for AI tells before committing — flags naming patterns, catch-rethrow, AI vocabulary, emoji, trailers. Use when finishing work, before commits, or when asked to clean up agent output.
openclaw skills install @itscodejac/dgentClean AI tells from code and commit messages. Runs as git hooks automatically, or on-demand via CLI.
dgent run --json <file>
Returns JSON with clean, fixes[], flags[], and output (cleaned content). Exit codes: 0 = clean or fixes applied, 1 = flags found.
dgent run --check <file>
Silent. Exit 0 if clean or fixes applied, 1 if flags found. Use in pre-commit scripts.
dgent scan --json [dir]
Returns JSON with per-file results. Use before committing multi-file changes.
dgent run --fix <file>
Applies all deterministic fix rules (strip trailers, emoji, section headers) and writes back.
echo "your message" | dgent run --json --commit-msg -
Stdin with short non-code input auto-detects as commit-msg. Returns fixes (emoji, trailers) and flags (AI vocabulary).
dgent rules --json
Returns every rule with name, phase, type, enabled status, and complete pattern lists. Use this to know exactly what to avoid.
These trigger flags (from dgent rules --json):
Commit message words: enhance, streamline, comprehensive, utilize, leverage, facilitate, robust, optimize
Commit message phrases: "this commit", "this change", "in order to", "aims to", "is designed to"
Naming suffixes: Manager, Handler, Processor, Service, Factory, Builder, Validator, Controller, Orchestrator, Coordinator
Identifier length: over 40 characters
Catch-rethrow: catch (e) { console.error(e); throw e; } — either handle the error or let it propagate
// dgent-ignore flag-naming
class DataProcessor { ... } // not flagged
Supports // dgent-ignore, // dgent-ignore-next-line, // dgent-ignore <rule1> <rule2>.
dgent run --json <file> on each modified fileecho "commit message" | dgent run --json --commit-msg - on the message