deepagent-code 0.1.6__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.
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/LICENSE +21 -21
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/PKG-INFO +193 -192
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/README.md +160 -160
- deepagent_code-0.2.0/deepagent_code/__init__.py +27 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code/cli.py +1480 -1555
- deepagent_code-0.2.0/deepagent_code/config.py +113 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/PKG-INFO +193 -192
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/SOURCES.txt +2 -3
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/requires.txt +1 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/pyproject.toml +74 -73
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/setup.cfg +4 -4
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/tests/test_cli.py +67 -67
- deepagent_code-0.2.0/tests/test_codeconfig.py +76 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/tests/test_config.py +113 -113
- deepagent_code-0.1.6/deepagent_code/__init__.py +0 -46
- deepagent_code-0.1.6/deepagent_code/config.py +0 -113
- deepagent_code-0.1.6/deepagent_code/utils.py +0 -653
- deepagent_code-0.1.6/tests/test_utils.py +0 -694
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/dependency_links.txt +0 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/entry_points.txt +0 -0
- {deepagent_code-0.1.6 → deepagent_code-0.2.0}/deepagent_code.egg-info/top_level.txt +0 -0
|
@@ -1,21 +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.
|
|
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.
|
|
@@ -1,192 +1,193 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: deepagent-code
|
|
3
|
-
Version: 0.
|
|
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:
|
|
23
|
-
Requires-Dist:
|
|
24
|
-
Requires-Dist:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Requires-Dist: pytest
|
|
28
|
-
Requires-Dist:
|
|
29
|
-
Requires-Dist:
|
|
30
|
-
Requires-Dist:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
- `/
|
|
95
|
-
- `/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
--
|
|
153
|
-
--
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
from
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deepagent-code
|
|
3
|
+
Version: 0.2.0
|
|
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: langgraph-stream-parser<0.3,>=0.2
|
|
23
|
+
Requires-Dist: click>=8.0.0
|
|
24
|
+
Requires-Dist: python-dotenv
|
|
25
|
+
Requires-Dist: deepagents
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=7.0.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
|
|
29
|
+
Requires-Dist: black>=23.0.0; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
31
|
+
Requires-Dist: mypy>=1.0.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# deepagent-code
|
|
35
|
+
|
|
36
|
+
A Claude Code-style CLI for running LangGraph agents from the terminal.
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install deepagent-code
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or install directly from GitHub:
|
|
47
|
+
```bash
|
|
48
|
+
pip install git+https://github.com/dkedar7/deepagent-code.git
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Quick Start
|
|
52
|
+
|
|
53
|
+
Run with the default agent (requires `ANTHROPIC_API_KEY`):
|
|
54
|
+
```bash
|
|
55
|
+
export ANTHROPIC_API_KEY="your_api_key"
|
|
56
|
+
deepagent-code
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or specify your own agent:
|
|
60
|
+
```bash
|
|
61
|
+
deepagent-code -a path/to/your_agent.py:graph
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
This launches an interactive conversation loop with your agent.
|
|
65
|
+
|
|
66
|
+
## Usage
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
# Use the default agent
|
|
70
|
+
deepagent-code
|
|
71
|
+
|
|
72
|
+
# Send a message directly
|
|
73
|
+
deepagent-code "Hello, agent!"
|
|
74
|
+
|
|
75
|
+
# Specify a custom agent file
|
|
76
|
+
deepagent-code -a my_agent.py:graph
|
|
77
|
+
|
|
78
|
+
# Use a module path
|
|
79
|
+
deepagent-code -a mypackage.agents:chatbot
|
|
80
|
+
|
|
81
|
+
# Read message from a file
|
|
82
|
+
deepagent-code -f ./prompt.md
|
|
83
|
+
|
|
84
|
+
# Non-interactive mode (auto-approve tool calls)
|
|
85
|
+
deepagent-code --no-interactive
|
|
86
|
+
|
|
87
|
+
# Verbose output
|
|
88
|
+
deepagent-code -v
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Commands
|
|
92
|
+
|
|
93
|
+
In the interactive loop:
|
|
94
|
+
- `/q` or `/quit` - Exit
|
|
95
|
+
- `/c` - Clear conversation history
|
|
96
|
+
- `/h` or `/help` - Show help
|
|
97
|
+
|
|
98
|
+
## Environment Variables
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# Agent location (path/to/file.py:variable_name or module:variable)
|
|
102
|
+
export DEEPAGENT_SPEC="my_agent.py:graph"
|
|
103
|
+
deepagent-code
|
|
104
|
+
|
|
105
|
+
# Working directory
|
|
106
|
+
export DEEPAGENT_WORKSPACE_ROOT="/path/to/workspace"
|
|
107
|
+
|
|
108
|
+
# Stream mode (updates or values)
|
|
109
|
+
export DEEPAGENT_STREAM_MODE="updates"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
## Configuration Files
|
|
113
|
+
|
|
114
|
+
`deepagent-code` reads TOML config from two locations and merges them
|
|
115
|
+
(project overrides global):
|
|
116
|
+
|
|
117
|
+
- **Global**: `~/.deepagents/config.toml` (shared with the upstream
|
|
118
|
+
`deepagents` CLI)
|
|
119
|
+
- **Project**: `deepagents.toml` in the current directory or any ancestor
|
|
120
|
+
|
|
121
|
+
Precedence: CLI args > env vars > project TOML > global TOML > defaults.
|
|
122
|
+
|
|
123
|
+
Example `deepagents.toml`:
|
|
124
|
+
|
|
125
|
+
```toml
|
|
126
|
+
[agent]
|
|
127
|
+
spec = "my_agent.py:graph"
|
|
128
|
+
workspace_root = "."
|
|
129
|
+
|
|
130
|
+
[ui]
|
|
131
|
+
verbose = true
|
|
132
|
+
async_mode = false
|
|
133
|
+
stream_mode = "updates"
|
|
134
|
+
|
|
135
|
+
[configurable]
|
|
136
|
+
# seeds LangGraph RunnableConfig.configurable
|
|
137
|
+
thread_id = "my-thread"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## CLI Options
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
Usage: deepagent-code [OPTIONS] [MESSAGE]
|
|
144
|
+
|
|
145
|
+
Arguments:
|
|
146
|
+
MESSAGE Optional input to send to the agent immediately
|
|
147
|
+
|
|
148
|
+
Options:
|
|
149
|
+
-a, --agent TEXT Agent spec (path/to/file.py:graph or module:graph)
|
|
150
|
+
-g, --graph-name TEXT Graph variable name (default: "graph")
|
|
151
|
+
-f, --file PATH Read message from a file (any extension)
|
|
152
|
+
--interactive/--no-interactive Handle interrupts (default: interactive)
|
|
153
|
+
--async-mode/--sync-mode Async streaming (default: sync)
|
|
154
|
+
--stream-mode TEXT Stream mode (updates or values)
|
|
155
|
+
-v, --verbose Verbose output
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Creating Your Own Agent
|
|
159
|
+
|
|
160
|
+
Your agent file should export a compiled LangGraph graph:
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
# my_agent.py
|
|
164
|
+
from deepagents import create_deep_agent
|
|
165
|
+
from langgraph.checkpoint.memory import MemorySaver
|
|
166
|
+
|
|
167
|
+
agent = create_deep_agent(
|
|
168
|
+
name="My Agent",
|
|
169
|
+
model="anthropic:claude-sonnet-4-20250514",
|
|
170
|
+
checkpointer=MemorySaver(),
|
|
171
|
+
)
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Then run it:
|
|
175
|
+
```bash
|
|
176
|
+
deepagent-code -a my_agent.py:agent
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Programmatic Use
|
|
180
|
+
|
|
181
|
+
```python
|
|
182
|
+
from deepagent_code import stream_graph_updates, prepare_agent_input
|
|
183
|
+
|
|
184
|
+
input_data = prepare_agent_input(message="Hello!")
|
|
185
|
+
|
|
186
|
+
for chunk in stream_graph_updates(graph, input_data):
|
|
187
|
+
if chunk.get("chunk"):
|
|
188
|
+
print(chunk["chunk"], end="")
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## License
|
|
192
|
+
|
|
193
|
+
MIT License - see LICENSE file for details.
|