Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bcefghj/miniClaudeCode
/ functions
Functions
95 in github.com/bcefghj/miniClaudeCode
⨍
Functions
95
◇
Types & classes
27
↓ 17 callers
Method
get
(self, name: str)
miniclaudecode/tools/base.py:65
↓ 14 callers
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/base.py:46
↓ 7 callers
Method
default
(cls)
miniclaudecode/tools/base.py:75
↓ 4 callers
Method
check
Run the permission gauntlet. Returns a ToolResult if denied, None if allowed.
miniclaudecode/permissions.py:35
↓ 4 callers
Method
run
Process a user message through the agent loop, returning the final text response.
miniclaudecode/agent_loop.py:60
↓ 3 callers
Method
_truncate_if_needed
Drop oldest messages when exceeding the limit, keeping the first user message.
miniclaudecode/context.py:69
↓ 3 callers
Method
add_assistant_message
(self, content: Any)
miniclaudecode/context.py:50
↓ 3 callers
Method
add_user_message
(self, content: str)
miniclaudecode/context.py:46
↓ 3 callers
Method
all_tools
(self)
miniclaudecode/tools/base.py:68
↓ 3 callers
Function
build_system_prompt
( registry: ToolRegistry, permission_mode: str = "ask", project_dir: str | None = None, )
miniclaudecode/system_prompt.py:40
↓ 3 callers
Method
check_permissions
Return None if allowed, or a denial reason string.
miniclaudecode/tools/base.py:41
↓ 3 callers
Method
get_api_messages
(self)
miniclaudecode/context.py:66
↓ 2 callers
Method
api_schemas
(self)
miniclaudecode/tools/base.py:71
↓ 2 callers
Function
main
(argv: list[str] | None = None)
miniclaudecode/cli.py:105
↓ 2 callers
Method
set_system_prompt
(self, prompt: str)
miniclaudecode/context.py:39
↓ 1 callers
Method
__init__
(self, config: Config)
miniclaudecode/permissions.py:32
↓ 1 callers
Method
_ask_user
(tool_name: str, params: dict[str, Any])
miniclaudecode/permissions.py:69
↓ 1 callers
Method
_call_api
Call the Anthropic API with current context.
miniclaudecode/agent_loop.py:86
↓ 1 callers
Method
_execute_tool_calls
Execute each tool call through the permission gate, append results.
miniclaudecode/agent_loop.py:121
↓ 1 callers
Method
_is_safe_command
(self, command: str)
miniclaudecode/permissions.py:64
↓ 1 callers
Method
_parse_response
Extract tool_use blocks and text blocks from the API response.
miniclaudecode/agent_loop.py:96
↓ 1 callers
Method
_python_search
(self, pattern: str, path: Path, include: str | None)
miniclaudecode/tools/grep_tool.py:66
↓ 1 callers
Method
_rg_search
(self, pattern: str, path: Path, include: str | None)
miniclaudecode/tools/grep_tool.py:49
↓ 1 callers
Function
build_parser
()
miniclaudecode/cli.py:33
↓ 1 callers
Function
load_project_instructions
Load CLAUDE.md from the project root, similar to how Claude Code does it.
miniclaudecode/context.py:78
↓ 1 callers
Method
register
(self, tool: Tool)
miniclaudecode/tools/base.py:62
↓ 1 callers
Function
run_interactive
Interactive REPL loop.
miniclaudecode/cli.py:56
↓ 1 callers
Method
to_api_schema
(self)
miniclaudecode/tools/base.py:48
Method
__init__
( self, config: Config | None = None, registry: ToolRegistry | None = None, )
miniclaudecode/agent_loop.py:43
Method
__init__
(self, reason: str)
miniclaudecode/permissions.py:24
Method
__init__
(self)
miniclaudecode/tools/base.py:59
Method
add_tool_result
(self, tool_use_id: str, content: str, is_error: bool = False)
miniclaudecode/context.py:54
Method
check_permissions
(self, params: dict[str, Any])
miniclaudecode/tools/bash_tool.py:53
Method
description
(self)
miniclaudecode/tools/bash_tool.py:34
Method
description
(self)
miniclaudecode/tools/file_edit.py:25
Method
description
(self)
miniclaudecode/tools/glob_tool.py:22
Method
description
(self)
miniclaudecode/tools/grep_tool.py:25
Method
description
(self)
miniclaudecode/tools/file_read.py:27
Method
description
(self)
miniclaudecode/tools/base.py:35
Method
description
(self)
miniclaudecode/tools/file_write.py:20
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/bash_tool.py:60
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/file_edit.py:43
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/glob_tool.py:42
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/grep_tool.py:40
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/file_read.py:42
Method
execute
(self, params: dict[str, Any])
miniclaudecode/tools/file_write.py:34
Method
input_schema
(self)
miniclaudecode/tools/bash_tool.py:41
Method
input_schema
(self)
miniclaudecode/tools/file_edit.py:32
Method
input_schema
(self)
miniclaudecode/tools/glob_tool.py:26
Method
input_schema
(self)
miniclaudecode/tools/grep_tool.py:29
Method
input_schema
(self)
miniclaudecode/tools/file_read.py:31
Method
input_schema
(self)
miniclaudecode/tools/base.py:39
Method
input_schema
(self)
miniclaudecode/tools/file_write.py:24
Method
name
(self)
miniclaudecode/tools/bash_tool.py:30
Method
name
(self)
miniclaudecode/tools/file_edit.py:21
Method
name
(self)
miniclaudecode/tools/glob_tool.py:18
Method
name
(self)
miniclaudecode/tools/grep_tool.py:21
Method
name
(self)
miniclaudecode/tools/file_read.py:23
Method
name
(self)
miniclaudecode/tools/base.py:31
Method
name
(self)
miniclaudecode/tools/file_write.py:16
Method
setUp
(self)
tests/test_tools.py:42
Method
setUp
(self)
tests/test_tools.py:64
Method
setUp
(self)
tests/test_tools.py:94
Method
setUp
(self)
tests/test_tools.py:113
Method
setUp
(self)
tests/test_tools.py:156
Method
setUp
(self)
tests/test_tools.py:170
Method
system_prompt
(self)
miniclaudecode/context.py:43
Method
test_add_messages
(self)
tests/test_agent_loop.py:45
Method
test_api_schemas_valid
(self)
tests/test_tools.py:26
Method
test_auto_mode_allows_all
(self)
tests/test_agent_loop.py:20
Method
test_build_includes_tools
(self)
tests/test_agent_loop.py:72
Method
test_default_not_error
(self)
tests/test_agent_loop.py:86
Method
test_default_registry_has_six_tools
(self)
tests/test_tools.py:19
Method
test_empty_command
(self)
tests/test_tools.py:58
Method
test_error_flag
(self)
tests/test_agent_loop.py:90
Method
test_execute_echo
(self)
tests/test_tools.py:45
Method
test_find_python_files
(self)
tests/test_tools.py:159
Method
test_get_tool
(self)
tests/test_tools.py:35
Method
test_no_matches
(self)
tests/test_tools.py:182
Method
test_permission_allows_safe
(self)
tests/test_tools.py:54
Method
test_permission_blocks_dangerous
(self)
tests/test_tools.py:50
Method
test_plan_mode_blocks_writes
(self)
tests/test_agent_loop.py:27
Method
test_plan_mode_description
(self)
tests/test_agent_loop.py:79
Method
test_read_existing_file
(self)
tests/test_tools.py:67
Method
test_read_nonexistent
(self)
tests/test_tools.py:77
Method
test_read_with_offset_and_limit
(self)
tests/test_tools.py:81
Method
test_reject_non_unique
(self)
tests/test_tools.py:129
Method
test_reject_not_found
(self)
tests/test_tools.py:142
Method
test_replace_unique_string
(self)
tests/test_tools.py:116
Method
test_search_in_file
(self)
tests/test_tools.py:173
Method
test_system_prompt
(self)
tests/test_agent_loop.py:65
Method
test_tool_level_denial_takes_priority
(self)
tests/test_agent_loop.py:35
Method
test_truncation
(self)
tests/test_agent_loop.py:55
Method
test_write_creates_directories
(self)
tests/test_tools.py:104
Method
test_write_new_file
(self)
tests/test_tools.py:97