MCPcopy Create free account

hub / github.com/bcefghj/miniClaudeCode / functions

Functions95 in github.com/bcefghj/miniClaudeCode

↓ 17 callersMethodget
(self, name: str)
miniclaudecode/tools/base.py:65
↓ 14 callersMethodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/base.py:46
↓ 7 callersMethoddefault
(cls)
miniclaudecode/tools/base.py:75
↓ 4 callersMethodcheck
Run the permission gauntlet. Returns a ToolResult if denied, None if allowed.
miniclaudecode/permissions.py:35
↓ 4 callersMethodrun
Process a user message through the agent loop, returning the final text response.
miniclaudecode/agent_loop.py:60
↓ 3 callersMethod_truncate_if_needed
Drop oldest messages when exceeding the limit, keeping the first user message.
miniclaudecode/context.py:69
↓ 3 callersMethodadd_assistant_message
(self, content: Any)
miniclaudecode/context.py:50
↓ 3 callersMethodadd_user_message
(self, content: str)
miniclaudecode/context.py:46
↓ 3 callersMethodall_tools
(self)
miniclaudecode/tools/base.py:68
↓ 3 callersFunctionbuild_system_prompt
( registry: ToolRegistry, permission_mode: str = "ask", project_dir: str | None = None, )
miniclaudecode/system_prompt.py:40
↓ 3 callersMethodcheck_permissions
Return None if allowed, or a denial reason string.
miniclaudecode/tools/base.py:41
↓ 3 callersMethodget_api_messages
(self)
miniclaudecode/context.py:66
↓ 2 callersMethodapi_schemas
(self)
miniclaudecode/tools/base.py:71
↓ 2 callersFunctionmain
(argv: list[str] | None = None)
miniclaudecode/cli.py:105
↓ 2 callersMethodset_system_prompt
(self, prompt: str)
miniclaudecode/context.py:39
↓ 1 callersMethod__init__
(self, config: Config)
miniclaudecode/permissions.py:32
↓ 1 callersMethod_ask_user
(tool_name: str, params: dict[str, Any])
miniclaudecode/permissions.py:69
↓ 1 callersMethod_call_api
Call the Anthropic API with current context.
miniclaudecode/agent_loop.py:86
↓ 1 callersMethod_execute_tool_calls
Execute each tool call through the permission gate, append results.
miniclaudecode/agent_loop.py:121
↓ 1 callersMethod_is_safe_command
(self, command: str)
miniclaudecode/permissions.py:64
↓ 1 callersMethod_parse_response
Extract tool_use blocks and text blocks from the API response.
miniclaudecode/agent_loop.py:96
↓ 1 callersMethod_python_search
(self, pattern: str, path: Path, include: str | None)
miniclaudecode/tools/grep_tool.py:66
↓ 1 callersMethod_rg_search
(self, pattern: str, path: Path, include: str | None)
miniclaudecode/tools/grep_tool.py:49
↓ 1 callersFunctionbuild_parser
()
miniclaudecode/cli.py:33
↓ 1 callersFunctionload_project_instructions
Load CLAUDE.md from the project root, similar to how Claude Code does it.
miniclaudecode/context.py:78
↓ 1 callersMethodregister
(self, tool: Tool)
miniclaudecode/tools/base.py:62
↓ 1 callersFunctionrun_interactive
Interactive REPL loop.
miniclaudecode/cli.py:56
↓ 1 callersMethodto_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
Methodadd_tool_result
(self, tool_use_id: str, content: str, is_error: bool = False)
miniclaudecode/context.py:54
Methodcheck_permissions
(self, params: dict[str, Any])
miniclaudecode/tools/bash_tool.py:53
Methoddescription
(self)
miniclaudecode/tools/bash_tool.py:34
Methoddescription
(self)
miniclaudecode/tools/file_edit.py:25
Methoddescription
(self)
miniclaudecode/tools/glob_tool.py:22
Methoddescription
(self)
miniclaudecode/tools/grep_tool.py:25
Methoddescription
(self)
miniclaudecode/tools/file_read.py:27
Methoddescription
(self)
miniclaudecode/tools/base.py:35
Methoddescription
(self)
miniclaudecode/tools/file_write.py:20
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/bash_tool.py:60
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/file_edit.py:43
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/glob_tool.py:42
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/grep_tool.py:40
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/file_read.py:42
Methodexecute
(self, params: dict[str, Any])
miniclaudecode/tools/file_write.py:34
Methodinput_schema
(self)
miniclaudecode/tools/bash_tool.py:41
Methodinput_schema
(self)
miniclaudecode/tools/file_edit.py:32
Methodinput_schema
(self)
miniclaudecode/tools/glob_tool.py:26
Methodinput_schema
(self)
miniclaudecode/tools/grep_tool.py:29
Methodinput_schema
(self)
miniclaudecode/tools/file_read.py:31
Methodinput_schema
(self)
miniclaudecode/tools/base.py:39
Methodinput_schema
(self)
miniclaudecode/tools/file_write.py:24
Methodname
(self)
miniclaudecode/tools/bash_tool.py:30
Methodname
(self)
miniclaudecode/tools/file_edit.py:21
Methodname
(self)
miniclaudecode/tools/glob_tool.py:18
Methodname
(self)
miniclaudecode/tools/grep_tool.py:21
Methodname
(self)
miniclaudecode/tools/file_read.py:23
Methodname
(self)
miniclaudecode/tools/base.py:31
Methodname
(self)
miniclaudecode/tools/file_write.py:16
MethodsetUp
(self)
tests/test_tools.py:42
MethodsetUp
(self)
tests/test_tools.py:64
MethodsetUp
(self)
tests/test_tools.py:94
MethodsetUp
(self)
tests/test_tools.py:113
MethodsetUp
(self)
tests/test_tools.py:156
MethodsetUp
(self)
tests/test_tools.py:170
Methodsystem_prompt
(self)
miniclaudecode/context.py:43
Methodtest_add_messages
(self)
tests/test_agent_loop.py:45
Methodtest_api_schemas_valid
(self)
tests/test_tools.py:26
Methodtest_auto_mode_allows_all
(self)
tests/test_agent_loop.py:20
Methodtest_build_includes_tools
(self)
tests/test_agent_loop.py:72
Methodtest_default_not_error
(self)
tests/test_agent_loop.py:86
Methodtest_default_registry_has_six_tools
(self)
tests/test_tools.py:19
Methodtest_empty_command
(self)
tests/test_tools.py:58
Methodtest_error_flag
(self)
tests/test_agent_loop.py:90
Methodtest_execute_echo
(self)
tests/test_tools.py:45
Methodtest_find_python_files
(self)
tests/test_tools.py:159
Methodtest_get_tool
(self)
tests/test_tools.py:35
Methodtest_no_matches
(self)
tests/test_tools.py:182
Methodtest_permission_allows_safe
(self)
tests/test_tools.py:54
Methodtest_permission_blocks_dangerous
(self)
tests/test_tools.py:50
Methodtest_plan_mode_blocks_writes
(self)
tests/test_agent_loop.py:27
Methodtest_plan_mode_description
(self)
tests/test_agent_loop.py:79
Methodtest_read_existing_file
(self)
tests/test_tools.py:67
Methodtest_read_nonexistent
(self)
tests/test_tools.py:77
Methodtest_read_with_offset_and_limit
(self)
tests/test_tools.py:81
Methodtest_reject_non_unique
(self)
tests/test_tools.py:129
Methodtest_reject_not_found
(self)
tests/test_tools.py:142
Methodtest_replace_unique_string
(self)
tests/test_tools.py:116
Methodtest_search_in_file
(self)
tests/test_tools.py:173
Methodtest_system_prompt
(self)
tests/test_agent_loop.py:65
Methodtest_tool_level_denial_takes_priority
(self)
tests/test_agent_loop.py:35
Methodtest_truncation
(self)
tests/test_agent_loop.py:55
Methodtest_write_creates_directories
(self)
tests/test_tools.py:104
Methodtest_write_new_file
(self)
tests/test_tools.py:97