Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -286,17 +286,40 @@ def clear_repl_chat():
|
|
| 286 |
|
| 287 |
def show_cli_help():
|
| 288 |
return """
|
| 289 |
-
PygmyClaw CLI
|
| 290 |
-
|
| 291 |
-
|
|
|
|
|
|
|
|
|
|
| 292 |
start Start 4 Ollama instances (speculative mode)
|
| 293 |
stop Stop all instances
|
| 294 |
-
generate Generate text
|
| 295 |
-
queue Queue operations
|
| 296 |
-
scheduler Scheduler operations
|
| 297 |
-
repl Start REPL
|
| 298 |
-
|
| 299 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 300 |
"""
|
| 301 |
|
| 302 |
# ------------------ GRADIO UI ------------------
|
|
|
|
| 286 |
|
| 287 |
def show_cli_help():
|
| 288 |
return """
|
| 289 |
+
๐ PygmyClaw CLI โ Available Commands
|
| 290 |
+
|
| 291 |
+
Usage:
|
| 292 |
+
python3 pygmyclaw.py [-h] {start,stop,generate,queue,scheduler,repl}
|
| 293 |
+
|
| 294 |
+
Main Commands:
|
| 295 |
start Start 4 Ollama instances (speculative mode)
|
| 296 |
stop Stop all instances
|
| 297 |
+
generate Generate text using LLM
|
| 298 |
+
queue Queue operations (add/process/status)
|
| 299 |
+
scheduler Scheduler operations (start/stop/status)
|
| 300 |
+
repl Start interactive REPL (tool-driven)
|
| 301 |
+
|
| 302 |
+
๐ REPL / Command Center Commands:
|
| 303 |
+
/help Show this help message
|
| 304 |
+
/tools List all saved tools
|
| 305 |
+
/memory Show agent memory
|
| 306 |
+
/exit, /q Quit the REPL session
|
| 307 |
+
|
| 308 |
+
๐ File Operations (workspace-safe):
|
| 309 |
+
write "text" to file.txt Write content to a file
|
| 310 |
+
append "text" to file.txt Append content to an existing file
|
| 311 |
+
read file.txt Read and display a file's content
|
| 312 |
+
run file.py Execute a Python file in the workspace
|
| 313 |
+
|
| 314 |
+
๐ป System / Utility Commands:
|
| 315 |
+
list files, ls, dir List files in the workspace
|
| 316 |
+
heartbeat, system status Show CPU, memory, disk usage
|
| 317 |
+
|
| 318 |
+
โถ Tips:
|
| 319 |
+
- File paths are relative to the workspace: /workspace
|
| 320 |
+
- All commands are workspace-safe; attempts to escape (../) are blocked
|
| 321 |
+
- Saved tools can be run with `run tool <name>`
|
| 322 |
+
|
| 323 |
"""
|
| 324 |
|
| 325 |
# ------------------ GRADIO UI ------------------
|