sonicoder / code /tools /__init__.py
R-Kentaren's picture
fix: agent_run param mismatch (send agent_name) + add GitHub push-update (3 inputs: repo name, token, username; --force-with-lease)
b87f702 verified
Raw
History Blame Contribute Delete
909 Bytes
"""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",
]