mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 13:53:18 +08:00
新增目录列举、文件/目录操作、内容搜索、cwd/env 管理与进程管理工具,并在本地适配层统一实现与测试覆盖,保持风险门控策略一致。 Made-with: Cursor
1 KiB
1 KiB
Local Public Tools
This project exposes local atomic capabilities as shared public tools for all agents.
Included P0 tools
local_run_commandlocal_read_filelocal_write_filelocal_edit_file
Included P1/P2/P3 tools
list_directorymove_filedelete_filemkdirsearch_filesget_cwdcdget_envset_envlist_processeskill_process
Loading path
- Files live under
runtime/tools/public/. - They are auto-discovered by
runtime/tools/public_registry.py(*_toolfactory naming). - Final exposure is controlled in
runtime/tools/catalog.py.
Risk gating
local_read_fileisrisk_level=lowand visible by default.local_run_command,local_write_file,local_edit_filearerisk_level=high.- High-risk public tools are hidden unless
AIA_PUBLIC_TOOLS_ALLOW_HIGH=1.
Local backend adapter
- Adapter path:
runtime/tools/local_sdk/adapter.py. - Uses a self-implemented local backend (cross-platform) with a stable tool contract.