Member-only story
Adding Permanent Context to Amazon Q CLI chat
Well…I tried… #awswishlist
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
⚙️ Security Automation (Pre-AI). The Code.
⚙️ AI Automation. The Code.
🔒 Related Stories: Cybersecurity | Penetration Tests
💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I have some rules I want Amazon Q to follow every time I open it. After asking Q how to add my global context I wasn’t getting good answers.
NOTE: I think I figured out how to do this in a post linked at the bottom. I also published my script to deploy that agent in GitHub.
First Q told me I could use the expiramental knowledge feature. But after adding my context files they were not showing up when I ran:
/context showQ also said I could add an agent and add context to my agent. However, I just want my context to be used all the time.
After asking a few different ways Q says there is nothing in the documentation that can help me.
When I run the above command this is what I see:

