Skip to content

Conversation

brianignacio5
Copy link
Collaborator

@brianignacio5 brianignacio5 commented Jul 17, 2025

Description

Allow AI Chat to run common extension commands with natural language for example
build the project, idf.py build or explicitly calling the tool with #espIdfCommands build

This allow the LLM to consume the extension commands as tool to perform common ESP-IDF tasks.

Screenshot 2025-07-17 at 15 19 08

Type of change

  • New feature (non-breaking change which adds functionality)

Steps to test this pull request

Provide a list of steps to test changes in this PR and required output

  1. Click on "View". Open Chat.
  2. Execute action. Write a prompt like "build the project"
  3. Observe results. You should see a Run ESP-IDF Command prompt asking you for permission to run the the tool. The vscode esp-idf extension command would be executed.
  • Expected behaviour:

The vscode esp-idf extension command would be executed based on the given prompt.

  • Expected output:

You should see a Run ESP-IDF Command prompt asking you for permission to run the the tool. The vscode esp-idf extension command would be executed.

How has this been tested?

Manual testing as described above.

Test Configuration:

  • ESP-IDF Version: 5.2.0
  • OS (Windows,Linux and macOS): MacOS

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

Copy link

github-actions bot commented Jul 17, 2025

Download the artifacts for this pull request:
You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension.

@brianignacio5 brianignacio5 requested a review from igrr July 17, 2025 07:43
@Fabricio-ESP Fabricio-ESP changed the title Run idf command from IDE AI Chat (VSC-1684) [VSC-1684] Run idf command from IDE AI Chat Jul 22, 2025
Copy link

github-actions bot commented Aug 8, 2025

Pull request has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Aug 8, 2025
@brianignacio5 brianignacio5 added ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot and removed stale Stale PR or Issue labels Aug 11, 2025
@brianignacio5 brianignacio5 force-pushed the feature/language-tools branch from f1b5485 to 056811e Compare August 20, 2025 06:34
@brianignacio5 brianignacio5 force-pushed the feature/language-tools branch from c1e14df to f62277d Compare August 28, 2025 08:03
radurentea

This comment was marked as duplicate.

Copy link
Collaborator

@radurentea radurentea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, LGTM.
There is some commented code, PTAL before merging.

Copy link
Collaborator

@Fabricio-ESP Fabricio-ESP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed commands are working, and the AI agent has access to the results of running the commands to decide next steps and perform tasks that requires more than one command.
The AI chat itself has issues to chose a command or use a terminal command, but on the prompt request it can be asked to use the extension commands instead.

Copy link
Collaborator

@kolipakakondal kolipakakondal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

However, when I installed the extension and restarted, it wasn't able to identify the correct commands - it was pointing to the idf.py commands instead.

When I opened a new chat window, it started working fine - able to build and flash successfully.

@brianignacio5 brianignacio5 force-pushed the feature/language-tools branch from d4691b3 to 235549a Compare October 16, 2025 04:56
@brianignacio5 brianignacio5 added this to the v1.11.0 milestone Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ongoing Ongoing Issue or PR, this label will be used for issue or PR which is to be excluded by stale bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants