1 pointby sangress_dev3 hours ago1 comment
  • sangress_dev3 hours ago
    Hi HN,

    I built a small Bash helper called brain that turns natural language into shell commands directly in your prompt.

    You type what you want to do, press a shortcut, and the command appears in-place (not executed). Think of it like !!, but for intent instead of history.

    Example:

    show git config username

    → press Ctrl+G →

    git config user.name

    You can edit it or hit Enter — nothing runs automatically.

    Why I built it I often know what I want to do in the shell, but not the exact flags or syntax. I wanted something faster than searching docs, and safer than auto-executing AI output.

    Design choices

    Bash-only (no zsh magic)

    Uses a standalone script + readline integration

    Does NOT auto-execute commands

    Python stdlib only (no dependencies)

    Happy to hear feedback, edge cases, or suggestions.

    • sangress_dev2 hours ago
      A few people asked: this doesn’t override shell history or autocomplete. It just replaces the current line buffer via readline, similar to how !! works internally.
    • sangress_devan hour ago
      Show HN