gitarsenal-cli 1.9.65 → 1.9.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.venv_status.json +1 -1
- package/bin/gitarsenal.js +24 -0
- package/kill_claude/.claude/settings.local.json +9 -0
- package/kill_claude/README.md +265 -0
- package/kill_claude/__pycache__/bash_output_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/bash_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/claude_code_agent.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/edit_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/exit_plan_mode_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/glob_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/grep_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/kill_bash_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/ls_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/multiedit_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/notebook_edit_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/read_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/task_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/todo_write_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/web_fetch_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/web_search_tool.cpython-313.pyc +0 -0
- package/kill_claude/__pycache__/write_tool.cpython-313.pyc +0 -0
- package/kill_claude/claude_code_agent.py +848 -0
- package/kill_claude/prompts/claude-code-agent-prompts.md +65 -0
- package/kill_claude/prompts/claude-code-environment-context.md +100 -0
- package/kill_claude/prompts/claude-code-git-workflows.md +151 -0
- package/kill_claude/prompts/claude-code-hook-system.md +94 -0
- package/kill_claude/prompts/claude-code-response-formatting.md +79 -0
- package/kill_claude/prompts/claude-code-security-constraints.md +87 -0
- package/kill_claude/prompts/claude-code-system-prompt.md +136 -0
- package/kill_claude/prompts/claude-code-system-reminders.md +50 -0
- package/kill_claude/prompts/claude-code-task-workflows.md +114 -0
- package/kill_claude/prompts/claude-code-thinking-mode-prompts.md +39 -0
- package/kill_claude/prompts/claude-code-tool-prompts.md +339 -0
- package/kill_claude/prompts/claude-code-tool-usage-policies.md +87 -0
- package/kill_claude/requirements.txt +1 -0
- package/kill_claude/tools/__init__.py +1 -0
- package/kill_claude/tools/__pycache__/bash_output_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/bash_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/edit_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/exit_plan_mode_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/glob_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/grep_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/kill_bash_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/ls_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/multiedit_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/notebook_edit_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/read_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/task_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/todo_write_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/web_fetch_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/web_search_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/__pycache__/write_tool.cpython-313.pyc +0 -0
- package/kill_claude/tools/bash_output_tool.py +47 -0
- package/kill_claude/tools/bash_tool.py +79 -0
- package/kill_claude/tools/edit_tool.py +60 -0
- package/kill_claude/tools/exit_plan_mode_tool.py +42 -0
- package/kill_claude/tools/glob_tool.py +46 -0
- package/kill_claude/tools/grep_tool.py +105 -0
- package/kill_claude/tools/kill_bash_tool.py +38 -0
- package/kill_claude/tools/ls_tool.py +44 -0
- package/kill_claude/tools/multiedit_tool.py +111 -0
- package/kill_claude/tools/notebook_edit_tool.py +64 -0
- package/kill_claude/tools/read_tool.py +61 -0
- package/kill_claude/tools/task_tool.py +67 -0
- package/kill_claude/tools/todo_write_tool.py +114 -0
- package/kill_claude/tools/web_fetch_tool.py +55 -0
- package/kill_claude/tools/web_search_tool.py +58 -0
- package/kill_claude/tools/write_tool.py +46 -0
- package/lib/sandbox.js +3 -0
- package/package.json +1 -1
- package/python/test_modalSandboxScript.py +144 -295
- package/python/gitarsenal.py +0 -488
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TodoWrite Tool Definition
|
|
3
|
+
|
|
4
|
+
Use this tool to create and manage a structured task list for your current coding session. This helps you track progress, organize complex tasks, and demonstrate thoroughness to the user.
|
|
5
|
+
It also helps the user understand the progress of the task and overall progress of their requests.
|
|
6
|
+
|
|
7
|
+
When to Use This Tool
|
|
8
|
+
Use this tool proactively in these scenarios:
|
|
9
|
+
|
|
10
|
+
1. Complex multi-step tasks - When a task requires 3 or more distinct steps or actions
|
|
11
|
+
2. Non-trivial and complex tasks - Tasks that require careful planning or multiple operations
|
|
12
|
+
3. User explicitly requests todo list - When the user directly asks you to use the todo list
|
|
13
|
+
4. User provides multiple tasks - When users provide a list of things to be done (numbered or comma-separated)
|
|
14
|
+
5. After receiving new instructions - Immediately capture user requirements as todos
|
|
15
|
+
6. When you start working on a task - Mark it as in_progress BEFORE beginning work. Ideally you should only have one todo as in_progress at a time
|
|
16
|
+
7. After completing a task - Mark it as completed and add any new follow-up tasks discovered during implementation
|
|
17
|
+
|
|
18
|
+
When NOT to Use This Tool
|
|
19
|
+
|
|
20
|
+
Skip using this tool when:
|
|
21
|
+
1. There is only a single, straightforward task
|
|
22
|
+
2. The task is trivial and tracking it provides no organizational benefit
|
|
23
|
+
3. The task can be completed in less than 3 trivial steps
|
|
24
|
+
4. The task is purely conversational or informational
|
|
25
|
+
|
|
26
|
+
NOTE that you should not use this tool if there is only one trivial task to do. In this case you are better off just doing the task directly.
|
|
27
|
+
|
|
28
|
+
Task States and Management
|
|
29
|
+
|
|
30
|
+
1. Task States: Use these states to track progress:
|
|
31
|
+
- pending: Task not yet started
|
|
32
|
+
- in_progress: Currently working on (limit to ONE task at a time)
|
|
33
|
+
- completed: Task finished successfully
|
|
34
|
+
|
|
35
|
+
2. Task Management:
|
|
36
|
+
- Update task status in real-time as you work
|
|
37
|
+
- Mark tasks complete IMMEDIATELY after finishing (don't batch completions)
|
|
38
|
+
- Only have ONE task in_progress at any time
|
|
39
|
+
- Complete current tasks before starting new ones
|
|
40
|
+
- Remove tasks that are no longer relevant from the list entirely
|
|
41
|
+
|
|
42
|
+
3. Task Completion Requirements:
|
|
43
|
+
- ONLY mark a task as completed when you have FULLY accomplished it
|
|
44
|
+
- If you encounter errors, blockers, or cannot finish, keep the task as in_progress
|
|
45
|
+
- When blocked, create a new task describing what needs to be resolved
|
|
46
|
+
- Never mark a task as completed if:
|
|
47
|
+
- Tests are failing
|
|
48
|
+
- Implementation is partial
|
|
49
|
+
- You encountered unresolved errors
|
|
50
|
+
- You couldn't find necessary files or dependencies
|
|
51
|
+
|
|
52
|
+
4. Task Breakdown:
|
|
53
|
+
- Create specific, actionable items
|
|
54
|
+
- Break complex tasks into smaller, manageable steps
|
|
55
|
+
- Use clear, descriptive task names
|
|
56
|
+
|
|
57
|
+
When in doubt, use this tool. Being proactive with task management demonstrates attentiveness and ensures you complete all requirements successfully.
|
|
58
|
+
"""
|
|
59
|
+
|
|
60
|
+
from typing import List, Literal
|
|
61
|
+
|
|
62
|
+
class TodoItem:
|
|
63
|
+
"""Represents a single todo item."""
|
|
64
|
+
def __init__(self, content: str, status: Literal["pending", "in_progress", "completed"], id: str):
|
|
65
|
+
self.content = content
|
|
66
|
+
self.status = status
|
|
67
|
+
self.id = id
|
|
68
|
+
|
|
69
|
+
class TodoWriteTool:
|
|
70
|
+
"""Tool for creating and managing a structured task list."""
|
|
71
|
+
|
|
72
|
+
name = "TodoWrite"
|
|
73
|
+
|
|
74
|
+
@staticmethod
|
|
75
|
+
def schema():
|
|
76
|
+
return {
|
|
77
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
78
|
+
"additionalProperties": False,
|
|
79
|
+
"properties": {
|
|
80
|
+
"todos": {
|
|
81
|
+
"description": "The updated todo list",
|
|
82
|
+
"items": {
|
|
83
|
+
"additionalProperties": False,
|
|
84
|
+
"properties": {
|
|
85
|
+
"content": {
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"id": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"status": {
|
|
93
|
+
"enum": ["pending", "in_progress", "completed"],
|
|
94
|
+
"type": "string"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"required": ["content", "status", "id"],
|
|
98
|
+
"type": "object"
|
|
99
|
+
},
|
|
100
|
+
"type": "array"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": ["todos"],
|
|
104
|
+
"type": "object"
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
def execute(self, todos: List[dict]):
|
|
108
|
+
"""
|
|
109
|
+
Create and manage a structured task list.
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
todos: The updated todo list, each item should contain content, status, and id
|
|
113
|
+
"""
|
|
114
|
+
pass
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"""
|
|
2
|
+
WebFetch Tool Definition
|
|
3
|
+
|
|
4
|
+
- Fetches content from a specified URL and processes it using an AI model
|
|
5
|
+
- Takes a URL and a prompt as input
|
|
6
|
+
- Fetches the URL content, converts HTML to markdown
|
|
7
|
+
- Processes the content with the prompt using a small, fast model
|
|
8
|
+
- Returns the model's response about the content
|
|
9
|
+
- Use this tool when you need to retrieve and analyze web content
|
|
10
|
+
|
|
11
|
+
Usage notes:
|
|
12
|
+
- IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions. All MCP-provided tools start with "mcp__".
|
|
13
|
+
- The URL must be a fully-formed valid URL
|
|
14
|
+
- HTTP URLs will be automatically upgraded to HTTPS
|
|
15
|
+
- The prompt should describe what information you want to extract from the page
|
|
16
|
+
- This tool is read-only and does not modify any files
|
|
17
|
+
- Results may be summarized if the content is very large
|
|
18
|
+
- Includes a self-cleaning 15-minute cache for faster responses when repeatedly accessing the same URL
|
|
19
|
+
- When a URL redirects to a different host, the tool will inform you and provide the redirect URL in a special format. You should then make a new WebFetch request with the redirect URL to fetch the content.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
class WebFetchTool:
|
|
23
|
+
"""Tool for fetching and analyzing web content."""
|
|
24
|
+
|
|
25
|
+
name = "WebFetch"
|
|
26
|
+
|
|
27
|
+
@staticmethod
|
|
28
|
+
def schema():
|
|
29
|
+
return {
|
|
30
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
31
|
+
"additionalProperties": False,
|
|
32
|
+
"properties": {
|
|
33
|
+
"prompt": {
|
|
34
|
+
"description": "The prompt to run on the fetched content",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"url": {
|
|
38
|
+
"description": "The URL to fetch content from",
|
|
39
|
+
"format": "uri",
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"required": ["url", "prompt"],
|
|
44
|
+
"type": "object"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def execute(self, url: str, prompt: str):
|
|
48
|
+
"""
|
|
49
|
+
Fetch content from a URL and process it using an AI model.
|
|
50
|
+
|
|
51
|
+
Args:
|
|
52
|
+
url: The URL to fetch content from
|
|
53
|
+
prompt: The prompt to run on the fetched content
|
|
54
|
+
"""
|
|
55
|
+
pass
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
WebSearch Tool Definition
|
|
3
|
+
|
|
4
|
+
- Allows Claude to search the web and use the results to inform responses
|
|
5
|
+
- Provides up-to-date information for current events and recent data
|
|
6
|
+
- Returns search result information formatted as search result blocks
|
|
7
|
+
- Use this tool for accessing information beyond Claude's knowledge cutoff
|
|
8
|
+
- Searches are performed automatically within a single API call
|
|
9
|
+
|
|
10
|
+
Usage notes:
|
|
11
|
+
- Domain filtering is supported to include or block specific websites
|
|
12
|
+
- Web search is only available in the US
|
|
13
|
+
- Account for "Today's date" in <env>. For example, if <env> says "Today's date: 2025-07-01", and the user wants the latest docs, do not use 2024 in the search query. Use 2025.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
from typing import List, Optional
|
|
17
|
+
|
|
18
|
+
class WebSearchTool:
|
|
19
|
+
"""Tool for searching the web and accessing up-to-date information."""
|
|
20
|
+
|
|
21
|
+
name = "WebSearch"
|
|
22
|
+
|
|
23
|
+
@staticmethod
|
|
24
|
+
def schema():
|
|
25
|
+
return {
|
|
26
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
27
|
+
"additionalProperties": False,
|
|
28
|
+
"properties": {
|
|
29
|
+
"allowed_domains": {
|
|
30
|
+
"description": "Only include search results from these domains",
|
|
31
|
+
"items": {"type": "string"},
|
|
32
|
+
"type": "array"
|
|
33
|
+
},
|
|
34
|
+
"blocked_domains": {
|
|
35
|
+
"description": "Never include search results from these domains",
|
|
36
|
+
"items": {"type": "string"},
|
|
37
|
+
"type": "array"
|
|
38
|
+
},
|
|
39
|
+
"query": {
|
|
40
|
+
"description": "The search query to use",
|
|
41
|
+
"minLength": 2,
|
|
42
|
+
"type": "string"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": ["query"],
|
|
46
|
+
"type": "object"
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def execute(self, query: str, allowed_domains: Optional[List[str]] = None, blocked_domains: Optional[List[str]] = None):
|
|
50
|
+
"""
|
|
51
|
+
Search the web for information.
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
query: The search query to use
|
|
55
|
+
allowed_domains: Only include search results from these domains
|
|
56
|
+
blocked_domains: Never include search results from these domains
|
|
57
|
+
"""
|
|
58
|
+
pass
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Write Tool Definition
|
|
3
|
+
|
|
4
|
+
Writes a file to the local filesystem.
|
|
5
|
+
|
|
6
|
+
Usage:
|
|
7
|
+
- This tool will overwrite the existing file if there is one at the provided path.
|
|
8
|
+
- If this is an existing file, you MUST use the Read tool first to read the file's contents. This tool will fail if you did not read the file first.
|
|
9
|
+
- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
|
|
10
|
+
- NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by the User.
|
|
11
|
+
- Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
class WriteTool:
|
|
15
|
+
"""Tool for writing files to the local filesystem."""
|
|
16
|
+
|
|
17
|
+
name = "Write"
|
|
18
|
+
|
|
19
|
+
@staticmethod
|
|
20
|
+
def schema():
|
|
21
|
+
return {
|
|
22
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
23
|
+
"additionalProperties": False,
|
|
24
|
+
"properties": {
|
|
25
|
+
"content": {
|
|
26
|
+
"description": "The content to write to the file",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
"file_path": {
|
|
30
|
+
"description": "The absolute path to the file to write (must be absolute, not relative)",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": ["file_path", "content"],
|
|
35
|
+
"type": "object"
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def execute(self, file_path: str, content: str):
|
|
39
|
+
"""
|
|
40
|
+
Write a file to the local filesystem.
|
|
41
|
+
|
|
42
|
+
Args:
|
|
43
|
+
file_path: The absolute path to the file to write (must be absolute, not relative)
|
|
44
|
+
content: The content to write to the file
|
|
45
|
+
"""
|
|
46
|
+
pass
|
package/lib/sandbox.js
CHANGED
|
@@ -30,6 +30,7 @@ function getPythonScriptPath() {
|
|
|
30
30
|
* @param {Object} options - Container options
|
|
31
31
|
* @param {string} options.repoUrl - GitHub repository URL
|
|
32
32
|
* @param {string} options.gpuType - GPU type
|
|
33
|
+
* @param {number} options.gpuCount - Number of GPUs (default: 1)
|
|
33
34
|
* @param {string} options.volumeName - Volume name
|
|
34
35
|
* @param {Array<string>} options.setupCommands - Setup commands
|
|
35
36
|
* @param {boolean} options.useApi - Whether to use the API to fetch setup commands
|
|
@@ -40,6 +41,7 @@ async function runContainer(options) {
|
|
|
40
41
|
const {
|
|
41
42
|
repoUrl,
|
|
42
43
|
gpuType,
|
|
44
|
+
gpuCount = 1,
|
|
43
45
|
volumeName,
|
|
44
46
|
setupCommands = [],
|
|
45
47
|
useApi = true,
|
|
@@ -94,6 +96,7 @@ async function runContainer(options) {
|
|
|
94
96
|
|
|
95
97
|
// Add normal arguments
|
|
96
98
|
if (gpuType) args.push('--gpu', gpuType);
|
|
99
|
+
if (gpuCount && gpuCount > 1) args.push('--gpu-count', gpuCount.toString());
|
|
97
100
|
if (repoUrl) args.push('--repo-url', repoUrl);
|
|
98
101
|
|
|
99
102
|
if (volumeName) {
|