AWS amazonq documentation change
Summary
Restructured context integration section, replacing 'context modifiers' with 'prompt for actions' and adding documentation about granting Amazon Q permission to perform tasks like writing files, querying AWS resources, and executing code.
Security assessment
The changes introduce documentation about granting permissions for automated actions, which relates to security controls, but there's no evidence of addressing a specific security vulnerability.
Diff
diff --git a/amazonq/latest/qdeveloper-ug/command-line-chat.md index b9d8137e2..fa3fb9a81 100644 --- a/amazonq/latest/qdeveloper-ug/command-line-chat.md +++ b/amazonq/latest/qdeveloper-ug/command-line-chat.md @@ -5 +5 @@ -Context integrationContext modifiersUsage +Context integrationPrompt for actionsUsage @@ -13,12 +13 @@ The Amazon Q command-line interface (CLI) allows you to interact with Amazon Q. -Amazon Q for command line integrates contextual information from your local development environment. By using context modifiers, you can provide Amazon Q with relevant context, such as your git repository status, local shell environment variables, and shell command history. This context integration enhances the Amazon Q with understanding of your specific use case, enabling it to provide more relevant and context-aware responses. - -## Context modifiers - -Amazon Q for command line supports the following context modifiers: - - * `@git`: Allows you to pass information about your git repository status, including the current branch, staged and unstaged changes, and commit history. - - * `@env`: Allows you to provide Amazon Q with your local shell environment variables, which can be useful for understanding your development setup and configuration. - - * `@history`: Allows you to share your recent shell command history with Amazon Q, giving it insights into the actions you've taken and the context in which you're working. - +Amazon Q for command line integrates contextual information from your local development environment. Amazon Q uses with relevant context, such as your git repository status, local shell environment variables, and shell command history. This context integration enhances the Amazon Q with understanding of your specific use case, enabling it to provide more relevant and context-aware responses. @@ -25,0 +15 @@ Amazon Q for command line supports the following context modifiers: +## Prompt for actions @@ -26,0 +17 @@ Amazon Q for command line supports the following context modifiers: +Amazon Q for command line allows you to interact with Amazon Q and grant it permission to perform tasks on your behalf. You can ask Amazon Q complex questions, and it can provide feedback or potential solutions based on context of the conversation, as well as information and context outside of the conversation. It will then prompt you to perform the action and resolve issues. When granted permission, Amazon Q can write files locally, query AWS resources, and execute code for you. @@ -40,3 +31 @@ If you didn't log into Amazon Q, you will be directed to the [AWS Build ID login - 4. (Optional) Include any context modifiers (for example, `@git`, `@env`, `@history`) in your input to provide additional context to the model. For example, you can ask `@history @git how do I fix my merge conflict?`, and Amazon Q provides steps with context to address the issue. For more information, see Context modifiers. - - 5. Type your query or input, and then enter your query or input. + 4. Type your query or input, and then enter your query or input. @@ -46 +35 @@ Amazon Q processes your input, considering any provided context, and responds wi - 6. Continue the conversation by providing additional input or asking follow-up questions. + 5. Continue the conversation by providing additional input or asking follow-up questions.