aws / aws/amazon-q-developer-cli

Context files not read as part of the CLI chat

Open
#2,508 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

### Checks

- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again

### Operating system

MacOS 15.5

### Expected behaviour

Expect generated CDK lambda code to use the NodejsFunction CDK construct and have a runtime of Node 20.

### Actual behaviour

aws_lambda.Function construct used and a runtime of lambda.Runtime.NODEJS_18_X

### Steps to reproduce

Create a file from the root of the project called .amazonq/rules/cdk-rules.md with the following content:

`
Node version 20 must be used.
All Amazon lambda functions must use the NodejsFunction CDK construct.
All Amazon lambda functions must use a runtime of node version 20.
The stacks should contain a tag with the application name to be associated with all the created resources.
`

Add the file to the context in a custom agent:

` "resources": [
"file://AmazonQ.md",
"file://README.md",
"file://.amazonq/rules/**/*.md"
],`

### Environment

```yaml
[q-details]
version = "1.13.1"
hash = "beb1c6a87d7ac299ab3105a377d7d36e6c7dc1a2"
date = "2025-08-01T22:27:18.15451Z (4d ago)"
variant = "full"

[system-info]
os = "macOS 15.5.0 (24F74)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "16.00 GB"

[environment]
cwd = "/Users/USER/Development/Mydev/devops-assessment"
cli-path = "/Users/USER/Development/Mydev/devops-assessment"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "VSCode"
install-method = "unknown"

[env-vars]
PATH = "/Users/USER/Development/pyvenv/bin:/Users/USER/.nvm/versions/node/v20.18.2/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/USER/.ebcli-virtual-env/executables:/Users/USER/.codeium/windsurf/bin:/Users/USER/.rbenv/shims:/Users/USER/.pyenv/shims:/Users/USER/Library/pnpm:/Users/USER/Documents/Development/pyvenv/bin:/Users/USER/.nvm/versions/node/v20.18.2/bin:/Users/USER/.local/bin:/Users/USER/Development/flutter/bin:/Users/USER/Development/Dazza/apache-maven-3.9.6/bin:/Users/USER/.rvm/bin:/Users/USER/.local/bin"
QTERM_SESSION_ID = "6adea5c1ca09495287f2450c8377c927"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.13.0"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
ZDOTDIR = "/Users/USER"
__CFBundleIdentifier = "com.microsoft.VSCode"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.