Pragma Input

Pragma Input is the command area where terminal commands, AI prompts, and contextual suggestions meet.

It helps users move faster without remembering every command exactly.

What It Does

Pragma Input can help with:

  • Shell completions.
  • Command suggestions.
  • Natural language command detection.
  • Fixing failed commands.
  • Sending prompts to the AI agent.
  • Adding files or context to an agent request.
  • Searching commands, files, and workflows.

Example Uses

Instead of remembering the exact command, a user can type:

Example
show all modified files

Pragma can suggest:

Terminal
git status --short

Or the user can type:

Example
run the frontend tests

Pragma can inspect the project and suggest the correct local test command.

Context-Aware Suggestions

The input can use:

  • Current directory.
  • Open project.
  • Shell type.
  • Recent commands.
  • File names.
  • Workflows.
  • Agent conversation context.

That means suggestions should be more useful than a generic command autocomplete.

Command Correction

When a command fails, Pragma can help explain the failure and suggest a corrected command. This is useful for missing flags, wrong file paths, dependency issues, or common Git mistakes.

User Control

The user should always be able to decide whether a suggested command is inserted, edited, or executed.