aws / aws/amazon-q-developer-cli
Feature Request: Make chat conversation history available in context hooks
- 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.4.1 (24E263)
### Expected behaviour
Context hooks should have access to the current conversation history, allowing scripts to process or utilize the ongoing chat content.
### Actual behaviour
Currently, context hooks don't have access to the conversation history, limiting their ability to be context-aware.
Example use case: a context hook that runs to extract information about the current conversation, such as user's input, documenting discussion and decisions made by user for future reference.
### Steps to reproduce
This is a feature request for new functionality rather than a bug. The requested feature would allow commands run from hooks to access and utilize the current conversation context.
### Environment
```yaml
[q-details]
version = "1.9.1"
hash = "5d2c2807cab9bc6c9dc5fcd05f92c7a979e8a4f7"
date = "2025-04-29T06:22:42.917989Z (4d ago)"
variant = "full"
[system-info]
os = "macOS 15.4.1 (24E263)"
chip = "Apple M1 Pro"
total-cores = 10
memory = "32.00 GB"
[environment]
cwd = "/Users/USER/Documents/personal"
cli-path = "/Users/USER/Documents/personal"
os = "Mac"
shell-path = "/bin/zsh"
shell-version = "5.9"
terminal = "macOS"
install-method = "unknown"
[env-vars]
PATH = "/Users/USER/.local/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/bin:/Users/USER/opt/anaconda3/bin:/Users/USER/opt/anaconda3/condabin:/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:/Users/USER/.local/bin:/Users/USER/.toolbox/bin:/usr/local/mysql/bin"
QTERM_SESSION_ID = "a095d8969d2b425f9f22ed9cc1254253"
Q_SET_PARENT_CHECK = "1"
Q_TERM = "1.9.1"
SHELL = "/bin/zsh"
TERM = "xterm-256color"
__CFBundleIdentifier = "com.apple.Terminal"
[chat-settings]
interactive=true
[chat-trusted_tools]
[chat-failed_request_ids]
none
[chat-context]
current_profile=default
profiles=
default
cli-tutorial
code-reviewer
code_reviewer
code_sup
coding_architect
creative
developer
editor
living_docs
living_docs_tester
mcp_developer
mcp_reviewer
mcp_sup
multiq-create
plan
researcher
reviewer
supervisor
tech-writer
van
writer
global_context=none
profile_context=none
files=none
```
Contributor guide
Assessment
This issue has not been assessed yet.