You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Per-conversation history with automatic truncation (last 10 turns)
15
15
@@ -43,8 +43,9 @@ export SLACK_APP_TOKEN=""
43
43
export OPENAI_API_KEY=""
44
44
export OPENAI_MODEL="gpt-5.4"
45
45
46
-
# Shell skills (disabled by default)
47
-
# export SHELL_SKILLS_ENABLED=1
46
+
# Local shell (disabled by default)
47
+
# export SHELL_ENABLED=1
48
+
# export SHELL_SKILLS_DIR="./skills" # optional; mount skills alongside the shell
48
49
```
49
50
50
51
If you are using Azure OpenAI (v1 API) or another OpenAI-compatible endpoint:
@@ -61,6 +62,32 @@ Optional HTTP proxy for outbound requests:
61
62
export HTTP_PROXY=""
62
63
```
63
64
65
+
Optional verbose OpenAI Agents SDK logging:
66
+
67
+
```
68
+
export AGENT_VERBOSE_LOG=1
69
+
```
70
+
71
+
`AGENT_VERBOSE_LOG` is defined by this project: when set to a truthy value, the app
72
+
calls the SDK's `enable_verbose_stdout_logging()` helper during startup. Values like
73
+
`0`, `false`, `no`, `off` (case-insensitive) are treated as disabled.
74
+
75
+
The following are environment variables read directly by the OpenAI Agents SDK (not
76
+
this project). By default, the SDK does not log model or tool payloads. To include
77
+
them temporarily for debugging:
78
+
79
+
```
80
+
export OPENAI_AGENTS_DONT_LOG_MODEL_DATA=0
81
+
export OPENAI_AGENTS_DONT_LOG_TOOL_DATA=0
82
+
```
83
+
84
+
These payload logs may contain sensitive data. Re-enable the defaults after debugging:
85
+
86
+
```
87
+
export OPENAI_AGENTS_DONT_LOG_MODEL_DATA=1
88
+
export OPENAI_AGENTS_DONT_LOG_TOOL_DATA=1
89
+
```
90
+
64
91
## Agent Instructions
65
92
66
93
Create an `instructions.md` file in the project root with the agent system prompt:
@@ -122,23 +149,34 @@ For local MCP servers, use `uv --directory`:
122
149
uv run bot
123
150
```
124
151
125
-
## Shell Skills (Optional)
152
+
## Local Shell (Optional)
126
153
127
-
The bot can execute local shell commands via skills defined in a `skills/` directory. Each subdirectory containing a `SKILL.md` file is registered as a skill.
154
+
The bot can expose a local `ShellTool`. This is **disabled by default**. Enable it with:
128
155
129
-
When using the Docker image, mount `skills/` at runtime (the image build excludes this directory by default):
130
-
131
-
```bash
132
-
-v /path/to/skills:/app/skills:ro
133
156
```
157
+
export SHELL_ENABLED=1
158
+
```
159
+
160
+
With just `SHELL_ENABLED=1`, the agent gets bare local shell access with no pre-defined skills.
161
+
162
+
### Shell Skills (Optional)
134
163
135
-
This feature is **disabled by default**. To enable it, set:
164
+
You can optionally mount a skills directory alongside the shell. Each immediate subdirectory containing a `SKILL.md` file is registered as a skill and exposed to the agent as a hint (skills are advisory metadata — they do **not** sandbox command execution).
136
165
137
166
```
138
-
SHELL_SKILLS_ENABLED=1
167
+
export SHELL_ENABLED=1
168
+
export SHELL_SKILLS_DIR="./skills"
169
+
```
170
+
171
+
`SHELL_SKILLS_DIR` is ignored unless `SHELL_ENABLED` is set. If the directory is missing or contains no valid skills, the bot falls back to a bare shell and logs a warning.
172
+
173
+
When using the Docker image, mount your skills directory at runtime (the image build excludes it by default):
174
+
175
+
```bash
176
+
-v /path/to/skills:/app/skills:ro
139
177
```
140
178
141
-
Skills are auto-discovered at startup. The `SKILL.md` file should have YAML frontmatter with `name` and `description` fields:
179
+
The `SKILL.md` file should have YAML frontmatter with `name` and `description` fields:
0 commit comments