Command Logging and Database Features Added | Generated by AI

Home 2026.05

Done. Here’s what was built:

New files:

Modified files:

Database schema:

command_log (
    id, timestamp, raw_command, group_name, subcmd, exit_code, cwd
)

Usage:

ww db stats      -- overall stats, top groups, error rate, busiest days
ww db recent     -- last 20 commands (use --limit N)
ww db top        -- most frequently used commands (use --limit N)
ww db errors     -- recent failed commands
ww db search <pattern>  -- grep through history

Every ww invocation is now logged — even wrong commands like ww nonexistent get captured with their exit code. The raw_command column stores the full command string for later parsing/analysis.


Back Donate