Closed (fixed)
Project:
Drush Token Killer
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2026 at 11:52 UTC
Updated:
9 Jul 2026 at 07:32 UTC
Jump to comment: Most recent
Drush DTK currently compresses 9 commands. A sweep of the Drush 13 command surface found more frequently-run, read-only commands whose native output is dominated by table chrome, unused columns, or nested YAML that AI agents rarely need:
updatedb:status (updbst): run around every module update; the type column is noise.
user:information (uinf): native table exposes 20+ fields including pass, signature, timezone, and roles.
migrate:messages (mmsg): natural companion to the already-compressed migrate:status; the destination-ids and source-ids-hash columns are noise.
field:base-info (fbi): natively prints all 13 columns (default value callbacks, selection handler…).
field:types, field:formatters, field:widgets: native default is YAML with nested settings / default_settings blobs per plugin.
deploy:hook-status: small table, chrome-only savings.
Add one INITIALIZE hook per command, reusing the existing compress() helper, with these defaults (applied only when the user hasn't chosen their own --fields/--format, and skippable via --no-ai-compress as usual):
| Command | Default applied |
|---|---|
updatedb:status |
--fields=module,update_id,description, CSV |
user:information |
--fields=uid,name,mail,user_status, CSV |
migrate:messages |
--fields=level,source_ids,message, CSV |
field:base-info |
--fields=field_name,field_type,required,cardinality, CSV |
deploy:hook-status |
CSV |
field:types |
--fields=id,label (YAML kept — see below) |
field:formatters |
--fields=id,label,field_types (YAML kept) |
field:widgets |
--fields=id,label,field_types (YAML kept) |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
gxleano commentedComment #5
gxleano commentedComment #7
gxleano commented