aws / aws/amazon-q-developer-cli

Feature Request: Directory-specific default agent configuration

Open
#2,951 0 comments 2 reactions 0 assignees View on GitHub
Feature request q chat
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.6.1 (24G90)

### Expected behaviour

Currently, Amazon Q Developer CLI only supports global default agent configuration via 'q settings chat.defaultAgent'. This requires users to manually switch default agents when working on different projects.

#### Requested Feature:
- Support for directory-specific default agent configuration
- Ability to set default agent per project/directory (e.g., .amazonq/config.json with defaultAgent setting)
- Automatic agent selection based on current working directory

#### Use Case:
- Different projects require different specialized agents
- GenU maintenance projects need genu-maintenance agent by default
- Other projects might need different domain-specific agents

This would improve developer workflow efficiency when working with multiple projects requiring different agents."

### Actual behaviour

- Manual agent specification with --agent flag for each command
- Frequent global default agent switching

### Steps to reproduce

_No response_

### Environment

```yaml

[q-details]
version = "1.16.1"
variant = "full"

[system-info]
os = "macOS 15.6.1 (24G90)"
chip = "Apple M1 Pro"
total-cores = 8
memory = "16.00 GB"

```

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.