deepagent-code 0.2.0__tar.gz → 0.3.1__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.
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.4
2
+ Name: deepagent-code
3
+ Version: 0.3.1
4
+ Summary: RENAMED: this package is now 'langstage-cli' (LangStage family). Installing this pulls the new package.
5
+ Project-URL: Homepage, https://github.com/dkedar7/langstage-cli
6
+ Author-email: Kedar Dabhadkar <kdabhadk@gmail.com>
7
+ License: MIT
8
+ Requires-Python: >=3.10
9
+ Requires-Dist: langstage-cli>=0.4.0
10
+ Description-Content-Type: text/markdown
11
+
12
+ # deepagent-code → langstage-cli
13
+
14
+ **This package has been renamed to [langstage-cli](https://pypi.org/project/langstage-cli/)** — part of the
15
+ LangStage family rename ("every stage for your LangGraph agent").
16
+
17
+ This final `deepagent-code` release simply depends on `langstage-cli`, so existing installs keep
18
+ working: the new package ships a deprecated import-alias for the old module
19
+ name and keeps the old console command as an alias.
20
+
21
+ Please update your dependencies:
22
+
23
+ ```bash
24
+ pip install langstage-cli
25
+ ```
@@ -0,0 +1,14 @@
1
+ # deepagent-code → langstage-cli
2
+
3
+ **This package has been renamed to [langstage-cli](https://pypi.org/project/langstage-cli/)** — part of the
4
+ LangStage family rename ("every stage for your LangGraph agent").
5
+
6
+ This final `deepagent-code` release simply depends on `langstage-cli`, so existing installs keep
7
+ working: the new package ships a deprecated import-alias for the old module
8
+ name and keeps the old console command as an alias.
9
+
10
+ Please update your dependencies:
11
+
12
+ ```bash
13
+ pip install langstage-cli
14
+ ```
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "deepagent-code"
7
+ version = "0.3.1"
8
+ description = "RENAMED: this package is now 'langstage-cli' (LangStage family). Installing this pulls the new package."
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.10"
12
+ authors = [{ name = "Kedar Dabhadkar", email = "kdabhadk@gmail.com" }]
13
+ dependencies = ["langstage-cli>=0.4.0"]
14
+
15
+ [project.urls]
16
+ Homepage = "https://github.com/dkedar7/langstage-cli"
17
+
18
+ [tool.hatch.build.targets.wheel]
19
+ bypass-selection = true
@@ -1,21 +0,0 @@
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,193 +0,0 @@
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
- ![deepagent-code](examples/image.png)
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.
@@ -1,160 +0,0 @@
1
- # deepagent-code
2
-
3
- A Claude Code-style CLI for running LangGraph agents from the terminal.
4
-
5
- ![deepagent-code](examples/image.png)
6
-
7
- ## Installation
8
-
9
- ```bash
10
- pip install deepagent-code
11
- ```
12
-
13
- Or install directly from GitHub:
14
- ```bash
15
- pip install git+https://github.com/dkedar7/deepagent-code.git
16
- ```
17
-
18
- ## Quick Start
19
-
20
- Run with the default agent (requires `ANTHROPIC_API_KEY`):
21
- ```bash
22
- export ANTHROPIC_API_KEY="your_api_key"
23
- deepagent-code
24
- ```
25
-
26
- Or specify your own agent:
27
- ```bash
28
- deepagent-code -a path/to/your_agent.py:graph
29
- ```
30
-
31
- This launches an interactive conversation loop with your agent.
32
-
33
- ## Usage
34
-
35
- ```bash
36
- # Use the default agent
37
- deepagent-code
38
-
39
- # Send a message directly
40
- deepagent-code "Hello, agent!"
41
-
42
- # Specify a custom agent file
43
- deepagent-code -a my_agent.py:graph
44
-
45
- # Use a module path
46
- deepagent-code -a mypackage.agents:chatbot
47
-
48
- # Read message from a file
49
- deepagent-code -f ./prompt.md
50
-
51
- # Non-interactive mode (auto-approve tool calls)
52
- deepagent-code --no-interactive
53
-
54
- # Verbose output
55
- deepagent-code -v
56
- ```
57
-
58
- ## Commands
59
-
60
- In the interactive loop:
61
- - `/q` or `/quit` - Exit
62
- - `/c` - Clear conversation history
63
- - `/h` or `/help` - Show help
64
-
65
- ## Environment Variables
66
-
67
- ```bash
68
- # Agent location (path/to/file.py:variable_name or module:variable)
69
- export DEEPAGENT_SPEC="my_agent.py:graph"
70
- deepagent-code
71
-
72
- # Working directory
73
- export DEEPAGENT_WORKSPACE_ROOT="/path/to/workspace"
74
-
75
- # Stream mode (updates or values)
76
- export DEEPAGENT_STREAM_MODE="updates"
77
- ```
78
-
79
- ## Configuration Files
80
-
81
- `deepagent-code` reads TOML config from two locations and merges them
82
- (project overrides global):
83
-
84
- - **Global**: `~/.deepagents/config.toml` (shared with the upstream
85
- `deepagents` CLI)
86
- - **Project**: `deepagents.toml` in the current directory or any ancestor
87
-
88
- Precedence: CLI args > env vars > project TOML > global TOML > defaults.
89
-
90
- Example `deepagents.toml`:
91
-
92
- ```toml
93
- [agent]
94
- spec = "my_agent.py:graph"
95
- workspace_root = "."
96
-
97
- [ui]
98
- verbose = true
99
- async_mode = false
100
- stream_mode = "updates"
101
-
102
- [configurable]
103
- # seeds LangGraph RunnableConfig.configurable
104
- thread_id = "my-thread"
105
- ```
106
-
107
- ## CLI Options
108
-
109
- ```
110
- Usage: deepagent-code [OPTIONS] [MESSAGE]
111
-
112
- Arguments:
113
- MESSAGE Optional input to send to the agent immediately
114
-
115
- Options:
116
- -a, --agent TEXT Agent spec (path/to/file.py:graph or module:graph)
117
- -g, --graph-name TEXT Graph variable name (default: "graph")
118
- -f, --file PATH Read message from a file (any extension)
119
- --interactive/--no-interactive Handle interrupts (default: interactive)
120
- --async-mode/--sync-mode Async streaming (default: sync)
121
- --stream-mode TEXT Stream mode (updates or values)
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 -a 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.
@@ -1,27 +0,0 @@
1
- """
2
- deepagent_code - A Claude Code-style CLI for running LangGraph agents.
3
-
4
- The streaming / interrupt utilities that used to live here now come from
5
- ``langgraph-stream-parser``. This package re-exports its dict-based convenience
6
- API for backward compatibility; the lower-level helpers (interrupt parsing,
7
- tool-call serialization, content extraction) are available from
8
- ``langgraph_stream_parser.extractors`` if needed directly.
9
- """
10
-
11
- from langgraph_stream_parser import (
12
- prepare_agent_input,
13
- stream_graph_updates,
14
- resume_graph_from_interrupt,
15
- astream_graph_updates,
16
- aresume_graph_from_interrupt,
17
- )
18
-
19
- __version__ = "0.2.0"
20
-
21
- __all__ = [
22
- "prepare_agent_input",
23
- "stream_graph_updates",
24
- "resume_graph_from_interrupt",
25
- "astream_graph_updates",
26
- "aresume_graph_from_interrupt",
27
- ]