devduck 0.1.1766644714__tar.gz → 0.2.0__tar.gz

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.

Potentially problematic release.


This version of devduck might be problematic. Click here for more details.

Files changed (65) hide show
  1. devduck-0.2.0/.gitignore +6 -0
  2. devduck-0.2.0/LICENSE +21 -0
  3. devduck-0.2.0/PKG-INFO +143 -0
  4. devduck-0.2.0/README.md +103 -0
  5. devduck-0.2.0/devduck/__init__.py +1454 -0
  6. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/_version.py +3 -3
  7. devduck-0.2.0/devduck/install.sh +42 -0
  8. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/test_redduck.py +1 -0
  9. devduck-0.2.0/devduck/tools/__init__.py +7 -0
  10. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/tools/install_tools.py +2 -103
  11. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/tools/mcp_server.py +6 -34
  12. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/tools/tcp.py +7 -6
  13. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/tools/websocket.py +2 -8
  14. devduck-0.2.0/devduck.egg-info/PKG-INFO +143 -0
  15. devduck-0.2.0/devduck.egg-info/SOURCES.txt +24 -0
  16. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck.egg-info/entry_points.txt +0 -1
  17. devduck-0.2.0/devduck.egg-info/requires.txt +10 -0
  18. devduck-0.2.0/install.sh +42 -0
  19. {devduck-0.1.1766644714 → devduck-0.2.0}/pyproject.toml +8 -24
  20. devduck-0.1.1766644714/.github/workflows/agent.yml +0 -163
  21. devduck-0.1.1766644714/.gitignore +0 -13
  22. devduck-0.1.1766644714/LICENSE +0 -201
  23. devduck-0.1.1766644714/PKG-INFO +0 -717
  24. devduck-0.1.1766644714/README.md +0 -668
  25. devduck-0.1.1766644714/action.yml +0 -198
  26. devduck-0.1.1766644714/agent_runner.py +0 -206
  27. devduck-0.1.1766644714/devduck/__init__.py +0 -1955
  28. devduck-0.1.1766644714/devduck/agentcore_handler.py +0 -76
  29. devduck-0.1.1766644714/devduck/tools/__init__.py +0 -47
  30. devduck-0.1.1766644714/devduck/tools/_ambient_input.py +0 -423
  31. devduck-0.1.1766644714/devduck/tools/_tray_app.py +0 -530
  32. devduck-0.1.1766644714/devduck/tools/agentcore_agents.py +0 -197
  33. devduck-0.1.1766644714/devduck/tools/agentcore_config.py +0 -441
  34. devduck-0.1.1766644714/devduck/tools/agentcore_invoke.py +0 -423
  35. devduck-0.1.1766644714/devduck/tools/agentcore_logs.py +0 -320
  36. devduck-0.1.1766644714/devduck/tools/ambient.py +0 -157
  37. devduck-0.1.1766644714/devduck/tools/create_subagent.py +0 -659
  38. devduck-0.1.1766644714/devduck/tools/fetch_github_tool.py +0 -201
  39. devduck-0.1.1766644714/devduck/tools/ipc.py +0 -546
  40. devduck-0.1.1766644714/devduck/tools/scraper.py +0 -935
  41. devduck-0.1.1766644714/devduck/tools/speech_to_speech.py +0 -850
  42. devduck-0.1.1766644714/devduck/tools/state_manager.py +0 -292
  43. devduck-0.1.1766644714/devduck/tools/store_in_kb.py +0 -187
  44. devduck-0.1.1766644714/devduck/tools/system_prompt.py +0 -608
  45. devduck-0.1.1766644714/devduck/tools/tray.py +0 -247
  46. devduck-0.1.1766644714/devduck/tools/use_github.py +0 -438
  47. devduck-0.1.1766644714/devduck.egg-info/PKG-INFO +0 -717
  48. devduck-0.1.1766644714/devduck.egg-info/SOURCES.txt +0 -52
  49. devduck-0.1.1766644714/devduck.egg-info/requires.txt +0 -21
  50. devduck-0.1.1766644714/docs/android.html +0 -1425
  51. devduck-0.1.1766644714/docs/devduck_tools_config.json +0 -671
  52. devduck-0.1.1766644714/docs/mac-os-tray.jpg +0 -0
  53. devduck-0.1.1766644714/requirements.txt +0 -1
  54. devduck-0.1.1766644714/setup-aws-oidc.sh +0 -145
  55. devduck-0.1.1766644714/tools/__init__.py +0 -0
  56. devduck-0.1.1766644714/tools/fetch_github_tool.py +0 -201
  57. devduck-0.1.1766644714/tools/gist.py +0 -708
  58. devduck-0.1.1766644714/tools/github_tools.py +0 -134
  59. {devduck-0.1.1766644714 → devduck-0.2.0}/MANIFEST.in +0 -0
  60. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck/__main__.py +0 -0
  61. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck.egg-info/dependency_links.txt +0 -0
  62. {devduck-0.1.1766644714 → devduck-0.2.0}/devduck.egg-info/top_level.txt +0 -0
  63. {devduck-0.1.1766644714 → devduck-0.2.0}/docs/index.html +0 -0
  64. {devduck-0.1.1766644714 → devduck-0.2.0}/setup.cfg +0 -0
  65. {devduck-0.1.1766644714 → devduck-0.2.0}/test.py +0 -0
@@ -0,0 +1,6 @@
1
+ .venv
2
+ *.egg
3
+ *.egg-info
4
+ __pycache__
5
+ *.bak
6
+ dist/
devduck-0.2.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 maxs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
devduck-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,143 @@
1
+ Metadata-Version: 2.4
2
+ Name: devduck
3
+ Version: 0.2.0
4
+ Summary: 🦆 Extreme minimalist self-adapting AI agent - one file, self-healing, runtime dependencies
5
+ Author-email: duck <hey@devduck.dev>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/cagataycali/devduck
8
+ Project-URL: Repository, https://github.com/cagataycali/devduck.git
9
+ Project-URL: Documentation, https://github.com/cagataycali/devduck#readme
10
+ Project-URL: Bug Tracker, https://github.com/cagataycali/devduck/issues
11
+ Keywords: ai,agent,minimalist,self-healing,ollama,strands-agents
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: System Administrators
16
+ Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
+ Classifier: Topic :: System :: Systems Administration
25
+ Classifier: Topic :: Utilities
26
+ Requires-Python: >=3.10
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Requires-Dist: strands-agents
30
+ Requires-Dist: strands-agents[ollama]
31
+ Requires-Dist: strands-agents[openai]
32
+ Requires-Dist: strands-agents[anthropic]
33
+ Requires-Dist: strands-agents-tools
34
+ Requires-Dist: strands-fun-tools[audio]
35
+ Requires-Dist: strands-fun-tools[vision]
36
+ Requires-Dist: strands-fun-tools[all]
37
+ Requires-Dist: websockets
38
+ Requires-Dist: prompt_toolkit
39
+ Dynamic: license-file
40
+
41
+ # 🦆 DevDuck
42
+
43
+ **One file. Self-healing. Adaptive.**
44
+
45
+ Minimalist AI agent that fixes itself when things break.
46
+
47
+ ## Install
48
+
49
+ ```bash
50
+ pipx install devduck
51
+ ```
52
+
53
+ Requires: Python 3.10+, Ollama running
54
+
55
+ ## Use
56
+
57
+ ```bash
58
+ # Start DevDuck (auto-starts TCP, WebSocket, MCP servers)
59
+ devduck
60
+
61
+ # CLI mode
62
+ devduck "what's the time?"
63
+
64
+ # Python
65
+ import devduck
66
+ devduck("calculate 2+2")
67
+ ```
68
+
69
+ ## Auto-Started Servers
70
+
71
+ When you run `devduck`, three servers start automatically:
72
+
73
+ - **🌐 Web UI**: [http://cagataycali.github.io/devduck](http://cagataycali.github.io/devduck) (auto-connects)
74
+ - **🔌 TCP**: `nc localhost 9999` (raw socket)
75
+ - **🌊 WebSocket**: `ws://localhost:8080` (structured JSON)
76
+ - **🔗 MCP**: `http://localhost:8000/mcp` (Model Context Protocol)
77
+
78
+ ### Connect via MCP
79
+
80
+ Add to your MCP client (e.g., Claude Desktop):
81
+
82
+ ```json
83
+ {
84
+ "mcpServers": {
85
+ "devduck": {
86
+ "command": "uvx",
87
+ "args": [
88
+ "strands-mcp-server",
89
+ "--upstream-url",
90
+ "http://localhost:8000/mcp/"
91
+ ],
92
+ "disabled": false
93
+ }
94
+ }
95
+ }
96
+ ```
97
+
98
+ ### Connect via Terminal
99
+
100
+ ```bash
101
+ # Direct TCP connection
102
+ nc localhost 9999
103
+ > what's the time?
104
+ ```
105
+
106
+ ## Features
107
+
108
+ - **Self-healing** - Auto-fixes deps, models, errors
109
+ - **Hot-reload** - Create tools in `./tools/*.py`, use instantly
110
+ - **Adaptive** - Picks model based on OS (macOS: 1.7b, Linux: 30b)
111
+ - **14 tools** - shell, editor, files, python, calculator, tcp, etc.
112
+ - **History aware** - Remembers shell/conversation context
113
+ - **Multi-protocol** - TCP, WebSocket, MCP, CLI, Python
114
+
115
+ ## Create Tool
116
+
117
+ ```python
118
+ # ./tools/greet.py
119
+ from strands import tool
120
+
121
+ @tool
122
+ def greet(name: str) -> str:
123
+ return f"Hello {name}!"
124
+ ```
125
+
126
+ Save. Done. Use immediately.
127
+
128
+ ## Multi-Model
129
+
130
+ ```bash
131
+ export MODEL_PROVIDER="bedrock"
132
+ export STRANDS_MODEL_ID="us.anthropic.claude-sonnet-4-5-20250929-v1:0"
133
+ export STRANDS_ADDITIONAL_REQUEST_FIELDS='{"anthropic_beta": ["interleaved-thinking-2025-05-14", "context-1m-2025-08-07"], "thinking": {"type": "enabled", "budget_tokens": 2048}}'
134
+ export STRANDS_MAX_TOKENS="64000"
135
+
136
+ devduck "analyze data"
137
+ ```
138
+
139
+ ---
140
+
141
+ **Quack.** 🦆
142
+
143
+ *Built with [Strands Agents SDK](https://github.com/strands-agents/sdk-python)*
@@ -0,0 +1,103 @@
1
+ # 🦆 DevDuck
2
+
3
+ **One file. Self-healing. Adaptive.**
4
+
5
+ Minimalist AI agent that fixes itself when things break.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pipx install devduck
11
+ ```
12
+
13
+ Requires: Python 3.10+, Ollama running
14
+
15
+ ## Use
16
+
17
+ ```bash
18
+ # Start DevDuck (auto-starts TCP, WebSocket, MCP servers)
19
+ devduck
20
+
21
+ # CLI mode
22
+ devduck "what's the time?"
23
+
24
+ # Python
25
+ import devduck
26
+ devduck("calculate 2+2")
27
+ ```
28
+
29
+ ## Auto-Started Servers
30
+
31
+ When you run `devduck`, three servers start automatically:
32
+
33
+ - **🌐 Web UI**: [http://cagataycali.github.io/devduck](http://cagataycali.github.io/devduck) (auto-connects)
34
+ - **🔌 TCP**: `nc localhost 9999` (raw socket)
35
+ - **🌊 WebSocket**: `ws://localhost:8080` (structured JSON)
36
+ - **🔗 MCP**: `http://localhost:8000/mcp` (Model Context Protocol)
37
+
38
+ ### Connect via MCP
39
+
40
+ Add to your MCP client (e.g., Claude Desktop):
41
+
42
+ ```json
43
+ {
44
+ "mcpServers": {
45
+ "devduck": {
46
+ "command": "uvx",
47
+ "args": [
48
+ "strands-mcp-server",
49
+ "--upstream-url",
50
+ "http://localhost:8000/mcp/"
51
+ ],
52
+ "disabled": false
53
+ }
54
+ }
55
+ }
56
+ ```
57
+
58
+ ### Connect via Terminal
59
+
60
+ ```bash
61
+ # Direct TCP connection
62
+ nc localhost 9999
63
+ > what's the time?
64
+ ```
65
+
66
+ ## Features
67
+
68
+ - **Self-healing** - Auto-fixes deps, models, errors
69
+ - **Hot-reload** - Create tools in `./tools/*.py`, use instantly
70
+ - **Adaptive** - Picks model based on OS (macOS: 1.7b, Linux: 30b)
71
+ - **14 tools** - shell, editor, files, python, calculator, tcp, etc.
72
+ - **History aware** - Remembers shell/conversation context
73
+ - **Multi-protocol** - TCP, WebSocket, MCP, CLI, Python
74
+
75
+ ## Create Tool
76
+
77
+ ```python
78
+ # ./tools/greet.py
79
+ from strands import tool
80
+
81
+ @tool
82
+ def greet(name: str) -> str:
83
+ return f"Hello {name}!"
84
+ ```
85
+
86
+ Save. Done. Use immediately.
87
+
88
+ ## Multi-Model
89
+
90
+ ```bash
91
+ export MODEL_PROVIDER="bedrock"
92
+ export STRANDS_MODEL_ID="us.anthropic.claude-sonnet-4-5-20250929-v1:0"
93
+ export STRANDS_ADDITIONAL_REQUEST_FIELDS='{"anthropic_beta": ["interleaved-thinking-2025-05-14", "context-1m-2025-08-07"], "thinking": {"type": "enabled", "budget_tokens": 2048}}'
94
+ export STRANDS_MAX_TOKENS="64000"
95
+
96
+ devduck "analyze data"
97
+ ```
98
+
99
+ ---
100
+
101
+ **Quack.** 🦆
102
+
103
+ *Built with [Strands Agents SDK](https://github.com/strands-agents/sdk-python)*