/ .amazonq / cli-agents / omni-agent.json
omni-agent.json
  1  {
  2    "name": "omni-agent",
  3    "description": "A comprehensive agent with access to all tools and extensive configuration examples for development, AWS operations, file management, and system administration",
  4    "prompt": "You are an omnipotent AI assistant with access to all available tools and capabilities. You excel at development tasks, AWS operations, file management, system administration, and complex multi-step workflows. You have comprehensive access to the project context through the README.md and can perform any technical task requested.",
  5    "mcpServers": {
  6      "fetch": {
  7        "command": "fetch3.1",
  8        "args": [],
  9        "timeout": 120000
 10      },
 11      "git": {
 12        "command": "git-mcp",
 13        "args": [],
 14        "env": {
 15          "GIT_CONFIG_GLOBAL": "/dev/null"
 16        },
 17        "timeout": 120000
 18      }
 19    },
 20    "tools": ["*"],
 21    "toolAliases": {
 22      "@git/git_status": "status",
 23      "@git/git_log": "log",
 24      "@git/git_diff": "diff",
 25      "@fetch/fetch_url": "get",
 26      "execute_bash": "bash",
 27      "fs_read": "read",
 28      "fs_write": "write"
 29    },
 30    "allowedTools": [
 31      "fs_read",
 32      "fs_*",
 33      "knowledge",
 34      "thinking",
 35      "todo_list",
 36      "introspect",
 37      "report_issue",
 38      "@git/git_status",
 39      "@git/git_log",
 40      "@git/git_diff",
 41      "@fetch/fetch_url",
 42      "@builtin"
 43    ],
 44    "toolsSettings": {
 45      "fs_read": {
 46        "allowedPaths": ["**/*"],
 47        "deniedPaths": ["/etc/passwd", "/etc/shadow", "~/.ssh/id_*"]
 48      },
 49      "fs_write": {
 50        "allowedPaths": ["**/*"],
 51        "deniedPaths": ["/etc/**", "/usr/**", "/bin/**", "/sbin/**"]
 52      },
 53      "execute_bash": {
 54        "allowedCommands": [
 55          "git .*",
 56          "ls .*",
 57          "cat .*",
 58          "grep .*",
 59          "find .*",
 60          "make .*",
 61          "cargo .*",
 62          "npm .*",
 63          "yarn .*",
 64          "go .*",
 65          "python .*",
 66          "node .*"
 67        ],
 68        "deniedCommands": [
 69          "rm -rf /.*",
 70          "sudo .*",
 71          "chmod 777 .*",
 72          "dd .*"
 73        ],
 74        "autoAllowReadonly": true,
 75        "denyByDefault": false
 76      },
 77      "use_aws": {
 78        "allowedServices": [
 79          "s3",
 80          "lambda",
 81          "ec2",
 82          "ecs",
 83          "eks",
 84          "cloudformation",
 85          "iam",
 86          "logs",
 87          "cloudwatch",
 88          "ssm",
 89          "secretsmanager"
 90        ],
 91        "deniedServices": [],
 92        "autoAllowReadonly": true
 93      }
 94    },
 95    "resources": [
 96      "file://README.md",
 97      "file://docs/**/*.md",
 98      "file://go/**/*.go",
 99      "file://go/**/*.mod",
100      "file://go/**/*.sum",
101      "file://kamaji.config.yml",
102      "file://go/configs/**/*.yml",
103      "file://go/configs/**/*.yaml",
104      "file://scripts/**/*.sh",
105      "file://.gitignore",
106      "file://Makefile",
107      "file://go/Makefile"
108    ],
109    "hooks": {
110      "agentSpawn": [
111        {
112          "command": "echo \"Omni-agent initialized at $(date) in $(pwd)\""
113        },
114        {
115          "command": "git status --porcelain 2>/dev/null || echo 'Not a git repository'"
116        }
117      ],
118      "userPromptSubmit": [
119        {
120          "command": "echo \"[$(date '+%H:%M:%S')] User prompt received\" >> .amazonq/agent-activity.log"
121        }
122      ],
123      "preToolUse": [
124        {
125          "matcher": "execute_bash",
126          "command": "echo \"[$(date '+%H:%M:%S')] Executing bash command\" >> .amazonq/bash-audit.log && cat >> .amazonq/bash-audit.log"
127        },
128        {
129          "matcher": "use_aws",
130          "command": "echo \"[$(date '+%H:%M:%S')] AWS CLI operation\" >> .amazonq/aws-audit.log && cat >> .amazonq/aws-audit.log"
131        },
132        {
133          "matcher": "fs_write",
134          "command": "echo \"[$(date '+%H:%M:%S')] File write operation\" >> .amazonq/file-audit.log && cat >> .amazonq/file-audit.log"
135        }
136      ],
137      "postToolUse": [
138        {
139          "matcher": "fs_write",
140          "command": "if [[ \"$(cat)\" == *\".go\"* ]]; then cd go && make fmt 2>/dev/null || true; fi"
141        },
142        {
143          "matcher": "fs_write",
144          "command": "if [[ \"$(cat)\" == *\".md\"* ]]; then echo \"Documentation updated\" >> .amazonq/docs-changes.log; fi"
145        }
146      ],
147      "stop": [
148        {
149          "command": "echo \"[$(date '+%H:%M:%S')] Agent response completed\" >> .amazonq/agent-activity.log"
150        }
151      ]
152    },
153    "useLegacyMcpJson": true,
154    "model": "claude-sonnet-4"
155  }