Features
@Mentions
Terminal Mentions

Terminal Output Integration

Bwat's terminal integration feature allows you to seamlessly incorporate command line output into your development discussions. Simply use Terminal Output (see below for output) to give Bwat direct access to your console logs, error messages, and execution results.

Using Terminal References

To include terminal output:

  1. Type @ in the chat interface
  2. Select "Terminal" from the menu or type Terminal Output (see below for output) directly

Bwat instantly gains access to your recent terminal history with:

  • Complete error stacks
  • Build process logs
  • Command execution results
  • Full formatting preserved

Practical Applications

This feature proves invaluable when:

Debugging test failures:

My unit tests are failing with: Terminal Output (see below for output)
What's causing these assertion errors?

Troubleshooting build issues:

Getting compilation errors: Terminal Output (see below for output)
How can I resolve these dependency conflicts?

Analyzing runtime problems:

Application crashes with: Terminal Output (see below for output)
Here's the relevant code: 'src/main.js' (see below for file content)
What's triggering this exception?

Enhanced Debugging Workflow

Combine terminal references with other context for comprehensive analysis:

API call failing with: Terminal Output (see below for output)
Client implementation: 'src/api/client.js' (see below for file content)
Server logs: 'server/logs/error.log' (see below for file content)
Help diagnose this 500 error

This approach provides Bwat with complete system visibility - from client code to server responses - without manual copy-paste operations.

Technical Implementation

When you reference terminal output:

  1. Bwat detects Terminal Output (see below for output) markers in your message
  2. The system accesses VS Code's terminal API via getLatestTerminalOutput()
  3. It captures the complete output buffer from your active session
  4. Content is structured and preserved with original formatting:
<terminal_output>
$ npm run build
> Building production bundle...
> ERROR in ./src/index.js
> Module not found: Error: Can't resolve 'lodash'
[Full terminal output]
</terminal_output>
  1. The enriched message is processed with full console context
  2. Bwat generates responses informed by complete execution details

This automated workflow ensures accurate debugging by maintaining all original terminal formatting and chronology, while eliminating error-prone manual transcription.