divakar-cli-agent 0.1.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.
- divakar_cli_agent-0.1.0/.gitignore +1 -0
- divakar_cli_agent-0.1.0/PKG-INFO +62 -0
- divakar_cli_agent-0.1.0/README.md +1 -0
- divakar_cli_agent-0.1.0/pyproject.toml +78 -0
- divakar_cli_agent-0.1.0/requirements.txt +54 -0
- divakar_cli_agent-0.1.0/src/cli_agent/.env.example +1 -0
- divakar_cli_agent-0.1.0/src/cli_agent/__init__.py +0 -0
- divakar_cli_agent-0.1.0/src/cli_agent/main.py +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.env
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: divakar-cli-agent
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A custom CLI terminal agent
|
|
5
|
+
Requires-Python: >=3.8
|
|
6
|
+
Requires-Dist: annotated-doc==0.0.5
|
|
7
|
+
Requires-Dist: annotated-types==0.8.0
|
|
8
|
+
Requires-Dist: anyio==4.14.2
|
|
9
|
+
Requires-Dist: certifi==2026.7.22
|
|
10
|
+
Requires-Dist: charset-normalizer==3.5.1
|
|
11
|
+
Requires-Dist: distro==1.9.0
|
|
12
|
+
Requires-Dist: dotenv==0.9.9
|
|
13
|
+
Requires-Dist: h11==0.16.0
|
|
14
|
+
Requires-Dist: httpcore2==2.12.0
|
|
15
|
+
Requires-Dist: httpcore==1.0.9
|
|
16
|
+
Requires-Dist: httpx2==2.12.0
|
|
17
|
+
Requires-Dist: httpx==0.28.1
|
|
18
|
+
Requires-Dist: idna==3.19
|
|
19
|
+
Requires-Dist: jiter==0.16.0
|
|
20
|
+
Requires-Dist: jsonpatch==1.33
|
|
21
|
+
Requires-Dist: jsonpointer==3.1.1
|
|
22
|
+
Requires-Dist: langchain-core==1.6.0
|
|
23
|
+
Requires-Dist: langchain-openai==1.6.0
|
|
24
|
+
Requires-Dist: langchain-protocol==0.0.19
|
|
25
|
+
Requires-Dist: langchain==1.3.17
|
|
26
|
+
Requires-Dist: langgraph-checkpoint==4.2.0
|
|
27
|
+
Requires-Dist: langgraph-prebuilt==1.1.0
|
|
28
|
+
Requires-Dist: langgraph-sdk==0.4.3
|
|
29
|
+
Requires-Dist: langgraph==1.2.11
|
|
30
|
+
Requires-Dist: langsmith==0.11.1
|
|
31
|
+
Requires-Dist: markdown-it-py==4.2.0
|
|
32
|
+
Requires-Dist: mdurl==0.1.2
|
|
33
|
+
Requires-Dist: openai==3.5.0
|
|
34
|
+
Requires-Dist: orjson==3.12.0
|
|
35
|
+
Requires-Dist: ormsgpack==1.12.2
|
|
36
|
+
Requires-Dist: packaging==26.3
|
|
37
|
+
Requires-Dist: pydantic-core==2.46.4
|
|
38
|
+
Requires-Dist: pydantic==2.13.4
|
|
39
|
+
Requires-Dist: pygments==2.21.0
|
|
40
|
+
Requires-Dist: python-dotenv==1.2.3
|
|
41
|
+
Requires-Dist: pyyaml==6.0.3
|
|
42
|
+
Requires-Dist: regex==2026.7.19
|
|
43
|
+
Requires-Dist: requests-toolbelt==1.0.0
|
|
44
|
+
Requires-Dist: requests==2.34.2
|
|
45
|
+
Requires-Dist: rich==15.0.0
|
|
46
|
+
Requires-Dist: shellingham==1.5.4
|
|
47
|
+
Requires-Dist: sniffio==1.3.1
|
|
48
|
+
Requires-Dist: tenacity==9.1.4
|
|
49
|
+
Requires-Dist: tiktoken==0.14.0
|
|
50
|
+
Requires-Dist: truststore==0.10.4
|
|
51
|
+
Requires-Dist: typer==0.27.1
|
|
52
|
+
Requires-Dist: typing-extensions==4.16.0
|
|
53
|
+
Requires-Dist: typing-inspection==0.4.4
|
|
54
|
+
Requires-Dist: urllib3==2.7.0
|
|
55
|
+
Requires-Dist: uuid-utils==0.17.0
|
|
56
|
+
Requires-Dist: uv==0.12.5
|
|
57
|
+
Requires-Dist: websockets==16.1.1
|
|
58
|
+
Requires-Dist: xxhash==4.0.1
|
|
59
|
+
Requires-Dist: zstandard==0.25.0
|
|
60
|
+
Description-Content-Type: text/markdown
|
|
61
|
+
|
|
62
|
+
# CLI AGENT TO BEAT CLAUDE CODE AND DEEPSEEK HARNESS
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# CLI AGENT TO BEAT CLAUDE CODE AND DEEPSEEK HARNESS
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "divakar-cli-agent"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A custom CLI terminal agent"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.8"
|
|
11
|
+
dependencies = [
|
|
12
|
+
"annotated-doc==0.0.5",
|
|
13
|
+
"annotated-types==0.8.0",
|
|
14
|
+
"anyio==4.14.2",
|
|
15
|
+
"certifi==2026.7.22",
|
|
16
|
+
"charset-normalizer==3.5.1",
|
|
17
|
+
"distro==1.9.0",
|
|
18
|
+
"dotenv==0.9.9",
|
|
19
|
+
"h11==0.16.0",
|
|
20
|
+
"httpcore==1.0.9",
|
|
21
|
+
"httpcore2==2.12.0",
|
|
22
|
+
"httpx==0.28.1",
|
|
23
|
+
"httpx2==2.12.0",
|
|
24
|
+
"idna==3.19",
|
|
25
|
+
"jiter==0.16.0",
|
|
26
|
+
"jsonpatch==1.33",
|
|
27
|
+
"jsonpointer==3.1.1",
|
|
28
|
+
"langchain==1.3.17",
|
|
29
|
+
"langchain-core==1.6.0",
|
|
30
|
+
"langchain-openai==1.6.0",
|
|
31
|
+
"langchain-protocol==0.0.19",
|
|
32
|
+
"langgraph==1.2.11",
|
|
33
|
+
"langgraph-checkpoint==4.2.0",
|
|
34
|
+
"langgraph-prebuilt==1.1.0",
|
|
35
|
+
"langgraph-sdk==0.4.3",
|
|
36
|
+
"langsmith==0.11.1",
|
|
37
|
+
"markdown-it-py==4.2.0",
|
|
38
|
+
"mdurl==0.1.2",
|
|
39
|
+
"openai==3.5.0",
|
|
40
|
+
"orjson==3.12.0",
|
|
41
|
+
"ormsgpack==1.12.2",
|
|
42
|
+
"packaging==26.3",
|
|
43
|
+
"pydantic==2.13.4",
|
|
44
|
+
"pydantic_core==2.46.4",
|
|
45
|
+
"Pygments==2.21.0",
|
|
46
|
+
"python-dotenv==1.2.3",
|
|
47
|
+
"PyYAML==6.0.3",
|
|
48
|
+
"regex==2026.7.19",
|
|
49
|
+
"requests==2.34.2",
|
|
50
|
+
"requests-toolbelt==1.0.0",
|
|
51
|
+
"rich==15.0.0",
|
|
52
|
+
"shellingham==1.5.4",
|
|
53
|
+
"sniffio==1.3.1",
|
|
54
|
+
"tenacity==9.1.4",
|
|
55
|
+
"tiktoken==0.14.0",
|
|
56
|
+
"truststore==0.10.4",
|
|
57
|
+
"typer==0.27.1",
|
|
58
|
+
"typing-inspection==0.4.4",
|
|
59
|
+
"typing_extensions==4.16.0",
|
|
60
|
+
"urllib3==2.7.0",
|
|
61
|
+
"uuid_utils==0.17.0",
|
|
62
|
+
"uv==0.12.5",
|
|
63
|
+
"websockets==16.1.1",
|
|
64
|
+
"xxhash==4.0.1",
|
|
65
|
+
"zstandard==0.25.0"
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[project.scripts]
|
|
69
|
+
cli-agent = "cli_agent.main:main"
|
|
70
|
+
|
|
71
|
+
[tool.hatch.build.targets.sdist]
|
|
72
|
+
exclude = [
|
|
73
|
+
"/venv",
|
|
74
|
+
"/.env"
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[tool.hatch.build.targets.wheel]
|
|
78
|
+
packages = ["src/cli_agent"]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
annotated-doc==0.0.5
|
|
2
|
+
annotated-types==0.8.0
|
|
3
|
+
anyio==4.14.2
|
|
4
|
+
certifi==2026.7.22
|
|
5
|
+
charset-normalizer==3.5.1
|
|
6
|
+
distro==1.9.0
|
|
7
|
+
dotenv==0.9.9
|
|
8
|
+
h11==0.16.0
|
|
9
|
+
httpcore==1.0.9
|
|
10
|
+
httpcore2==2.12.0
|
|
11
|
+
httpx==0.28.1
|
|
12
|
+
httpx2==2.12.0
|
|
13
|
+
idna==3.19
|
|
14
|
+
jiter==0.16.0
|
|
15
|
+
jsonpatch==1.33
|
|
16
|
+
jsonpointer==3.1.1
|
|
17
|
+
langchain==1.3.17
|
|
18
|
+
langchain-core==1.6.0
|
|
19
|
+
langchain-openai==1.6.0
|
|
20
|
+
langchain-protocol==0.0.19
|
|
21
|
+
langgraph==1.2.11
|
|
22
|
+
langgraph-checkpoint==4.2.0
|
|
23
|
+
langgraph-prebuilt==1.1.0
|
|
24
|
+
langgraph-sdk==0.4.3
|
|
25
|
+
langsmith==0.11.1
|
|
26
|
+
markdown-it-py==4.2.0
|
|
27
|
+
mdurl==0.1.2
|
|
28
|
+
openai==3.5.0
|
|
29
|
+
orjson==3.12.0
|
|
30
|
+
ormsgpack==1.12.2
|
|
31
|
+
packaging==26.3
|
|
32
|
+
pydantic==2.13.4
|
|
33
|
+
pydantic_core==2.46.4
|
|
34
|
+
Pygments==2.21.0
|
|
35
|
+
python-dotenv==1.2.3
|
|
36
|
+
PyYAML==6.0.3
|
|
37
|
+
regex==2026.7.19
|
|
38
|
+
requests==2.34.2
|
|
39
|
+
requests-toolbelt==1.0.0
|
|
40
|
+
rich==15.0.0
|
|
41
|
+
shellingham==1.5.4
|
|
42
|
+
sniffio==1.3.1
|
|
43
|
+
tenacity==9.1.4
|
|
44
|
+
tiktoken==0.14.0
|
|
45
|
+
truststore==0.10.4
|
|
46
|
+
typer==0.27.1
|
|
47
|
+
typing-inspection==0.4.4
|
|
48
|
+
typing_extensions==4.16.0
|
|
49
|
+
urllib3==2.7.0
|
|
50
|
+
uuid_utils==0.17.0
|
|
51
|
+
uv==0.12.5
|
|
52
|
+
websockets==16.1.1
|
|
53
|
+
xxhash==4.0.1
|
|
54
|
+
zstandard==0.25.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
OPENAI_API_KEY="your-key"
|
|
File without changes
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import typer
|
|
2
|
+
import os
|
|
3
|
+
app = typer.Typer()
|
|
4
|
+
from dotenv import load_dotenv
|
|
5
|
+
from rich import print as rprint
|
|
6
|
+
|
|
7
|
+
load_dotenv(os.path.join(os.getcwd()+".env"))
|
|
8
|
+
|
|
9
|
+
from langchain.agents import create_agent
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@app.command()
|
|
16
|
+
def hellob(commad:str):
|
|
17
|
+
|
|
18
|
+
OPENAI_API_KEY=os.environ.get("OPENAI_API_KEY")
|
|
19
|
+
|
|
20
|
+
if not OPENAI_API_KEY:
|
|
21
|
+
rprint("No Env avaialable")
|
|
22
|
+
rprint("Exiting the cli agent")
|
|
23
|
+
typer.Exit()
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
agent= create_agent(
|
|
27
|
+
model='gpt-4o-mini',
|
|
28
|
+
system_prompt="You are a personal assistant that helps with user query"
|
|
29
|
+
)
|
|
30
|
+
if commad=="cli-agent":
|
|
31
|
+
|
|
32
|
+
while True:
|
|
33
|
+
input = typer.prompt(">>>")
|
|
34
|
+
if input !="exit":
|
|
35
|
+
result = agent.invoke({"messages":[{"role":"user","content":input}]})
|
|
36
|
+
rprint(result["messages"][-1].content_blocks)
|
|
37
|
+
else:
|
|
38
|
+
break
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def main():
|
|
42
|
+
app()
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__=="__main__":
|
|
46
|
+
main()
|
|
47
|
+
# to exit mid way use typer.Exit() also havce typer.Abort( ) same but prints aborted can be done to have interuptions when the user stops
|