Spaces:
Running
Running
File size: 909 Bytes
81aa0b5 873734c 81aa0b5 873734c b87f702 873734c 81aa0b5 873734c b87f702 81aa0b5 | 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 | """File system and shell tools for the agent.
Inspired by Claude Code's tool set:
- read_file / write_file / edit_file
- glob / grep
- bash (subprocess)
- list_dir
- todo_write / todo_read
- import_github_repo (clone a GitHub repo into the workspace)
"""
from code.tools.fs import (
read_file,
write_file,
edit_file,
multi_edit,
list_dir,
glob_paths,
grep_search,
)
from code.tools.bash import run_bash
from code.tools.todos import (
todo_read,
todo_write,
todo_update,
)
from code.tools.github import (
import_github_repo,
list_github_url_examples,
push_to_github,
)
__all__ = [
"read_file",
"write_file",
"edit_file",
"multi_edit",
"list_dir",
"glob_paths",
"grep_search",
"run_bash",
"todo_read",
"todo_write",
"todo_update",
"import_github_repo",
"list_github_url_examples",
"push_to_github",
]
|