File size: 2,314 Bytes
d086025 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | # Gothic — Cleanroom Usage Documentation
Gothic is a CLI automation tool for agentic IDEs (Cursor, Trae, Kiro, Codex, etc.).
It launches the IDE, connects through CDP, submits tasks, tracks task state, and
handles human-in-the-loop (HITL) actions automatically.
## Build
```powershell
cargo build --release
```
## Configuration
Generate a config file in the working directory:
```powershell
cargo run -- config init --path .\config.jsonc
```
Validate it:
```powershell
cargo run -- config check --path .\config.jsonc
```
Example configuration (JSONC):
```json
{
"$schema": "assets/config-schema.json",
"trae_executable_path": "C:\\Program Files\\Trae\\Trae.exe",
"command_strategy": "allow",
"question_strategy": "auto",
"max_concurrent_task": 5,
"max_task_action_retry": 3,
"task_poll_interval_ms": 2000,
"logging": {
"directory": "logs",
"level": "info"
},
"model": {
"api_key": "",
"base_url": "",
"model_name": "gpt-5-mini"
}
}
```
## Usage
Run tasks and listen for incoming events:
```powershell
gothic run trae --task "Task A" --task "Task B"
```
## Config Fields
| Field | Description |
| --- | --- |
| `trae_executable_path` | absolute path to `Trae.exe` |
| `command_strategy` | `allow`, `deny`, or `llm` |
| `question_strategy` | `skip`, `auto`, or `llm` |
| `max_concurrent_task` | reserved for future scheduling |
| `max_task_action_retry` | retry limit for automated task actions |
| `task_poll_interval_ms` | task polling interval |
| `logging.directory` | log directory |
| `logging.level` | default tracing filter |
| `model.api_key` | API key for OpenAI-compatible endpoints |
| `model.base_url` | base URL for OpenAI-compatible endpoints |
| `model.model_name` | model used for `question_strategy = "llm"` |
## CLI Subcommands
- `config init --path <file>` — generate a starter config file.
- `config check --path <file>` — validate a config file.
- `run trae --task "<text>" [--task "<text>" ...]` — submit one or more tasks to a
launched Trae IDE instance and track them.
## Input / Output
- Input: JSONC configuration file (schema in `assets/config-schema.json`); tasks are
passed as `--task` string flags.
- Output: task execution logs written to the configured `logging.directory`
(default `logs`).
## License
MIT
|