Skip to content

darshjme/kshetra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
क्षेत्र — kshetra by Darshankumar Joshi

⚡ क्षेत्र

kshetra

Mahabharata / Bhagavad Gita 1.1

The Sacred Field — Kurukshetra itself

Sandbox execution environment for LLM agent tools. Isolated execution, resource limits.

Python Zero Dependencies Vedic Arsenal License

Formerly agent-sandbox — Part of the Vedic Arsenal: 100 production-grade Python libraries for LLM agents, each named from the Vedas, Puranas, and Mahakavyas.


The Vedic Principle

The Bhagavad Gita opens with these words: "Dhritarashtra said: O Sanjaya, what did my sons and the sons of Pandu do when they assembled in the holy field of Kurukshetra, eager for battle?"

The Kshetra — the sacred field — is where karma plays out. Contained. Bounded. Yet infinite in its consequences.

kshetra provides the sacred sandbox for your LLM agent. A contained execution environment where experiments can run, code can execute, tools can be tested — without touching the sacred ground of production. Like Kurukshetra itself: the battle happens here, but the consequences are isolated by the dharmic boundary.


How It Works

flowchart LR
    A[Agent Code] --> B[kshetra sandbox]
    B --> C{Execute}
    C -- Safe --> D[Result]
    C -- Dangerous --> E[Block + Log]
    B --> F[Isolated Environment]
    style B fill:#f59e0b,color:#000
Loading

Installation

pip install kshetra

Or from source:

git clone https://github.com/darshjme/kshetra.git
cd kshetra && pip install -e .

Quick Start

from kshetra import *

# See examples/ for full usage

The Vedic Arsenal

kshetra is one of 100 libraries in darshjme/arsenal — each named from sacred Indian literature:

Sanskrit Name Source Technical Function
kshetra Mahabharata / Bhagavad Gita 1.1 The Sacred Field — Kurukshetra itself

Each library solves one problem. Zero external dependencies. Pure Python 3.8+.


Contributing

  1. Fork the repo
  2. Create feature branch (git checkout -b fix/your-fix)
  3. Add tests — zero dependencies only
  4. Open a PR

⚡ Built by Darshankumar Joshi · @thedarshanjoshi

"कर्मण्येवाधिकारस्ते मा फलेषु कदाचन" Your right is to action alone, never to its fruits. — Bhagavad Gita 2.47

Vedic Arsenal · GitHub · Twitter

About

Isolated execution environment for agent-generated code — restricted namespace, timeout, output limits. Zero dependencies.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages