Skip to content

Commit 0b64802

Browse files
authored
Update agent-file-locations.md (#2474)
1 parent bb232b8 commit 0b64802

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

docs/agent-file-locations.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ Agent configuration files can be placed in two different locations, allowing for
77
Local agents are stored in the current working directory under:
88

99
```
10-
.aws/amazonq/cli-agents/
10+
.amazonq/cli-agents/
1111
```
1212

1313
These agents are specific to the current workspace or project and are only available when running Q CLI from that directory or its subdirectories.
1414

1515
**Example structure:**
1616
```
1717
my-project/
18-
├── .aws/
19-
│ └── amazonq/
18+
├── .amazonq/
2019
│ └── cli-agents/
2120
│ ├── dev-agent.json
2221
│ └── aws-specialist.json
@@ -32,6 +31,8 @@ Global agents are stored in your home directory under:
3231
~/.aws/amazonq/cli-agents/
3332
```
3433

34+
Note: For globally available agents, the `amazonq` directory is in the `.aws` folder.
35+
3536
These agents are available from any directory when using Q CLI.
3637

3738
**Example structure:**
@@ -78,8 +79,8 @@ The global agent with the same name will be ignored in favor of the local versio
7879
To create a local agent for your current project:
7980

8081
```bash
81-
mkdir -p .aws/amazonq/cli-agents
82-
cat > .aws/amazonq/cli-agents/project-helper.json << 'EOF'
82+
mkdir -p .amazonq/cli-agents
83+
cat > .amazonq/cli-agents/project-helper.json << 'EOF'
8384
{
8485
"description": "Helper agent for this specific project",
8586
"tools": ["fs_read", "fs_write", "execute_bash"],
@@ -106,4 +107,4 @@ EOF
106107

107108
## Directory Creation
108109

109-
Q CLI will automatically create the global agents directory (`~/.aws/amazonq/cli-agents/`) if it doesn't exist. However, you need to manually create the local agents directory (`.aws/amazonq/cli-agents/`) in your workspace if you want to use local agents.
110+
Q CLI will automatically create the global agents directory (`~/.aws/amazonq/cli-agents/`) if it doesn't exist. However, you need to manually create the local agents directory (`.amazonq/cli-agents/`) in your workspace if you want to use local agents.

0 commit comments

Comments
 (0)