deepagent-code 0.1.3__py3-none-any.whl

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.
@@ -0,0 +1,160 @@
1
+ Metadata-Version: 2.4
2
+ Name: deepagent-code
3
+ Version: 0.1.3
4
+ Summary: A Claude Code-style CLI for running LangGraph agents from the terminal
5
+ Author-email: Kedar Dabhadkar <kdabhadk@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/dkedar7/deepagent-code
8
+ Project-URL: Repository, https://github.com/dkedar7/deepagent-code
9
+ Project-URL: Issues, https://github.com/dkedar7/deepagent-code/issues
10
+ Keywords: langgraph,cli,agents,llm,ai,claude-code
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: langgraph>=0.2.0
22
+ Requires-Dist: click>=8.0.0
23
+ Requires-Dist: python-dotenv
24
+ Requires-Dist: deepagents
25
+ Provides-Extra: dev
26
+ Requires-Dist: pytest>=7.0.0; extra == "dev"
27
+ Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
28
+ Requires-Dist: black>=23.0.0; extra == "dev"
29
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
30
+ Requires-Dist: mypy>=1.0.0; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # deepagent-code
34
+
35
+ A Claude Code-style CLI for running LangGraph agents from the terminal.
36
+
37
+ ![deepagent-code](examples/image.png)
38
+
39
+ ## Installation
40
+
41
+ ```bash
42
+ pip install deepagent-code
43
+ ```
44
+
45
+ Or install directly from GitHub:
46
+ ```bash
47
+ pip install git+https://github.com/dkedar7/deepagent-code.git
48
+ ```
49
+
50
+ ## Quick Start
51
+
52
+ Run with the default agent (requires `ANTHROPIC_API_KEY`):
53
+ ```bash
54
+ export ANTHROPIC_API_KEY="your_api_key"
55
+ deepagent-code
56
+ ```
57
+
58
+ Or specify your own agent:
59
+ ```bash
60
+ deepagent-code path/to/your_agent.py:graph
61
+ ```
62
+
63
+ This launches an interactive conversation loop with your agent.
64
+
65
+ ## Usage
66
+
67
+ ```bash
68
+ # Use the default agent
69
+ deepagent-code
70
+
71
+ # Specify a custom agent file
72
+ deepagent-code my_agent.py:graph
73
+
74
+ # Use a module path
75
+ deepagent-code mypackage.agents:chatbot
76
+
77
+ # With an initial message
78
+ deepagent-code -m "Hello, agent!"
79
+
80
+ # Non-interactive mode (auto-approve tool calls)
81
+ deepagent-code --no-interactive
82
+
83
+ # Verbose output
84
+ deepagent-code -v
85
+ ```
86
+
87
+ ## Commands
88
+
89
+ In the interactive loop:
90
+ - `/q` or `/quit` - Exit
91
+ - `/c` - Clear conversation history
92
+ - `/h` or `/help` - Show help
93
+
94
+ ## Environment Variables
95
+
96
+ ```bash
97
+ # Agent location (path/to/file.py:variable_name or module:variable)
98
+ export DEEPAGENT_AGENT_SPEC="my_agent.py:graph"
99
+ deepagent-code
100
+
101
+ # Working directory
102
+ export DEEPAGENT_WORKSPACE_ROOT="/path/to/workspace"
103
+
104
+ # Configuration
105
+ export DEEPAGENT_CONFIG='{"configurable": {"thread_id": "1"}}'
106
+ ```
107
+
108
+ ## CLI Options
109
+
110
+ ```
111
+ Usage: deepagent-code [OPTIONS] [AGENT_SPEC]
112
+
113
+ Arguments:
114
+ AGENT_SPEC Agent location (path/to/file.py:graph or module:graph)
115
+
116
+ Options:
117
+ -g, --graph-name TEXT Graph variable name (default: "graph")
118
+ -m, --message TEXT Initial message
119
+ -c, --config TEXT Config JSON or file path
120
+ --interactive/--no-interactive Handle interrupts (default: interactive)
121
+ --async-mode/--sync-mode Async streaming (default: sync)
122
+ -v, --verbose Verbose output
123
+ ```
124
+
125
+ ## Creating Your Own Agent
126
+
127
+ Your agent file should export a compiled LangGraph graph:
128
+
129
+ ```python
130
+ # my_agent.py
131
+ from deepagents import create_deep_agent
132
+ from langgraph.checkpoint.memory import MemorySaver
133
+
134
+ agent = create_deep_agent(
135
+ name="My Agent",
136
+ model="anthropic:claude-sonnet-4-20250514",
137
+ checkpointer=MemorySaver(),
138
+ )
139
+ ```
140
+
141
+ Then run it:
142
+ ```bash
143
+ deepagent-code my_agent.py:agent
144
+ ```
145
+
146
+ ## Programmatic Use
147
+
148
+ ```python
149
+ from deepagent_code import stream_graph_updates, prepare_agent_input
150
+
151
+ input_data = prepare_agent_input(message="Hello!")
152
+
153
+ for chunk in stream_graph_updates(graph, input_data):
154
+ if chunk.get("chunk"):
155
+ print(chunk["chunk"], end="")
156
+ ```
157
+
158
+ ## License
159
+
160
+ MIT License - see LICENSE file for details.
@@ -0,0 +1,9 @@
1
+ deepagent_code/__init__.py,sha256=QjX0PGwIexmlgi2aNfn7GHhtdxXppbGA8JVceOSDFPY,1246
2
+ deepagent_code/cli.py,sha256=zXY8-YKEW-5ji8rmM2tnKPTZrNcuPWaNU6-CCMI6h2s,44147
3
+ deepagent_code/utils.py,sha256=J5oHI1mvcwvRh02M3aye_qCRamBjyPZu6DoCStVbA7M,21726
4
+ deepagent_code-0.1.3.dist-info/licenses/LICENSE,sha256=GwKA0dRtNI7HSOB1auOCo9ZDcv0VLa29uQeRdzEfP1M,1084
5
+ deepagent_code-0.1.3.dist-info/METADATA,sha256=-RKN1u9GMOzDrsYoq_e8AU8vzSEqszxSIE6-EKFtEDw,3950
6
+ deepagent_code-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ deepagent_code-0.1.3.dist-info/entry_points.txt,sha256=PWwiOEAJSGxXrYzQf4ZjJAvOJJu51HGjbmB9WS-YG4s,59
8
+ deepagent_code-0.1.3.dist-info/top_level.txt,sha256=pHYUFsYplb6AU9r59gIkiTIhB6TqKNF04ILoEkVw078,15
9
+ deepagent_code-0.1.3.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ deepagent-code = deepagent_code.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 deepagent-code contributors
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.
@@ -0,0 +1 @@
1
+ deepagent_code