mukunda1729 commited on
Commit
bceead8
·
verified ·
1 Parent(s): dc7fc8e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +99 -3
README.md CHANGED
@@ -1,3 +1,99 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ tags:
6
+ - agents
7
+ - llm
8
+ - mcp
9
+ - reliability
10
+ - agent-stack
11
+ - npm
12
+ - pypi
13
+ - typescript
14
+ - python
15
+ - anthropic
16
+ - openai
17
+ - tool-use
18
+ library_name: agent-stack
19
+ ---
20
+
21
+ # agent-stack
22
+
23
+ Six small, single-concern reliability libraries for production LLM agents — published independently to **npm**, **PyPI**, and the **Model Context Protocol** registry. Each library is zero-dependency, under 500 LOC, and addresses one specific failure mode that production agent teams have to handle.
24
+
25
+ ## Paper
26
+
27
+ Backed by a peer-reviewable artifact paper with a DataCite DOI:
28
+
29
+ - **DOI:** [10.5281/zenodo.20074702](https://doi.org/10.5281/zenodo.20074702)
30
+ - **Title:** _Six Reliability Primitives for LLM Agents: An Artifact Pattern for Stackable, Single-Concern Libraries_
31
+ - **Status:** Under review at ASE 2026 Tools track.
32
+
33
+ ## The six primitives
34
+
35
+ | Library | Concern | Failure mode it addresses |
36
+ | --- | --- | --- |
37
+ | **AgentFit** | Context-window fitting | Token-aware truncation with multiple strategies. Pluggable tokenizers for OpenAI / Anthropic / open models. |
38
+ | **AgentGuard** | Network egress allowlisting | Blocks the "agent suddenly POSTs PHI / secrets to attacker.com" failure mode. |
39
+ | **AgentSnap** | Snapshot tests for tool-call traces | Catches silent regressions when a model's tool-call shape changes between deploys. |
40
+ | **AgentVet** | Tool-arg validation | Throws a `ToolArgError` carrying an LLM-friendly retry hint, so the next turn can self-correct. |
41
+ | **AgentCast** | Structured-output validate-and-retry | Bring-your-own-LLM JSON validator + retry loop. |
42
+ | **AgentBudget** | Per-run token + dollar caps | Hard cap with hook for early termination. Prevents runaway loops billing $1000 on a single query. |
43
+
44
+ Each ships in three runtime forms: **TypeScript on npm**, **Python on PyPI**, and an **MCP-server variant** callable from Claude Desktop, Cursor, Continue, or any MCP client.
45
+
46
+ ## Install
47
+
48
+ ### TypeScript (npm)
49
+
50
+ ```bash
51
+ npm i @mukundakatta/agentvet @mukundakatta/agentguard @mukundakatta/agentbudget
52
+ ```
53
+
54
+ ### Python (PyPI)
55
+
56
+ ```bash
57
+ pip install agentvet agentguard agentbudget
58
+ ```
59
+
60
+ ### MCP server (Claude Desktop config)
61
+
62
+ ```json
63
+ {
64
+ "mcpServers": {
65
+ "agentvet": { "command": "npx", "args": ["-y", "@mukundakatta/agentvet-mcp"] },
66
+ "agentguard": { "command": "npx", "args": ["-y", "@mukundakatta/agentguard-mcp"] }
67
+ }
68
+ }
69
+ ```
70
+
71
+ ## Source
72
+
73
+ Umbrella repo: [github.com/MukundaKatta/agent-stack](https://github.com/MukundaKatta/agent-stack)
74
+
75
+ Per-library repositories (TS + Python + MCP variants) — search GitHub topic [`agent-stack`](https://github.com/search?q=user%3AMukundaKatta+topic%3Aagent-stack) for the full list.
76
+
77
+ ## Why it exists
78
+
79
+ Reliability concerns for LLM agents are typically bundled into one heavy framework that asks you to adopt prompting, tool routing, and runtime governance as a single dependency. agent-stack inverts that: each concern is a separate library you can adopt à la carte without buying into a programming model.
80
+
81
+ The artifact paper documents the six primitives, the cross-cutting invariants the design enforces, the trade-offs of single-concern packaging, and the operational questions that emerge when reliability is split across many small dependencies.
82
+
83
+ ## Citation
84
+
85
+ ```bibtex
86
+ @misc{katta2026agentstack,
87
+ author = {Katta, Mukunda Rao},
88
+ title = {Six Reliability Primitives for LLM Agents:
89
+ An Artifact Pattern for Stackable, Single-Concern Libraries},
90
+ year = {2026},
91
+ publisher = {Zenodo},
92
+ doi = {10.5281/zenodo.20074702},
93
+ url = {https://doi.org/10.5281/zenodo.20074702}
94
+ }
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT.