Skip to main content
ClaudeWave

Know Your Agent — fail-closed policy for agent tools (npx @shield-agent/kya)

ToolsOfficial Registry0 stars0 forksTypeScriptMITUpdated today
ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (MIT)
  • Actively maintained (<30d)
  • Clear description
  • Documented (README)
Last scanned: 8/23/2026
Get started
Method: Clone
Terminal
git clone https://github.com/The-Pixel-Boys/shield-kya
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

# Shield KYA

**Know Your Agent** control plane for agent tools: identity, policy, dual-plane host labels, human approval, trail, policy-gated spawn, session shrink, signed claims.

An agent that can change a real system must ask Shield first. Register the agent, wrap the tool, get Allow / Hold / Deny. Hold waits for a person. The package does not scan a network. Agents that never call evaluate stay invisible.

```bash
npx @shield-agent/kya@latest --help
```

[![npm](https://img.shields.io/npm/v/@shield-agent/kya.svg)](https://www.npmjs.com/package/@shield-agent/kya)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](./LICENSE)
[![Install](https://img.shields.io/badge/install-shield--agent.com%2Finstall-0A0A0A)](https://shield-agent.com/install)
[![GitHub](https://img.shields.io/badge/github-The--Pixel--Boys%2Fshield--kya-181717)](https://github.com/The-Pixel-Boys/shield-kya)

**Offline try (no account):**

```bash
npx @shield-agent/kya@latest eval-tool --offline --tool-id org.sample.never.event --irreversible
# → DENY
npx @shield-agent/kya@latest eval-tool --offline --tool-id org.sample.data.write --irreversible
# → REQUIRE_APPROVE

npx @shield-agent/kya@latest dash --once --offline
# → terminal dashboard (sample policy pane; not production PEP)
```

Public GitHub: https://github.com/The-Pixel-Boys/shield-kya

This directory is the MIT public surface: sample tools, LIMITATIONS, dual-plane diagram, comparison table. The monorepo may stay private.

---

## How you use it

Same four steps on a laptop or in a company:

1. Stand up a control plane (local console or [hosted](https://shield-agent.com)).
2. Register each agent as a named principal.
3. Wrap the tools that write, export, deploy, or spawn so they evaluate first.
4. When the verdict is Hold, someone works Approvals.

**Laptop:** offline eval → `init` → `register-agent` → MCP with `KYA_HOST=ide` or wrap one write → Approvals.

**Company:** one shared plane, keys per runtime, `host=ide` on laptops and `host=runtime` in production. Wrap the writes that matter. Operators live on Approvals. Unwrapped tools stay invisible. Office LAN and a vendor cloud use the same rules.

`--offline` is a sample. Until a tool calls evaluate, a console looks empty. That is expected.

Walkthrough: https://shield-agent.com/how-kya-works#using

---

## Dual plane (`host=ide` | `host=runtime`)

```text
┌─────────────────────┐         ┌──────────────────────┐
│  host=ide           │         │  host=runtime        │
│  authoring / dry-run│         │  production work     │
└──────────┬──────────┘         └──────────┬───────────┘
           │                               │
           └────────────┬──────────────────┘
                        ▼
              ┌───────────────────┐
              │  Shield KYA PEP   │
              │  sole enforcement │
              │  ALLOW | DENY |   │
              │  REQUIRE_APPROVE  │
              └─────────┬─────────┘
                        │
              human plane (approve)
                        │
              trail / observe metrics
```

Same agent identity, policy, approval, and trail on both hosts. Missing `APPROVED` means no irreversible side effect. Risk may only raise severity. It never auto-ALLOWs.

Creating an agent is a tool (`kya.agent.register`). A live session can shrink from Deploy to Build to Read without killing the agent. Hosted passports and session claims are signed (v2). This offline tree cannot mint those signatures.

---

## Sample custom tools only

No vertical packs required.

| toolId | Expected verdict | Notes |
|--------|------------------|-------|
| `org.sample.safe.read` | `ALLOW` | Read-only sample |
| `org.sample.data.write` | `REQUIRE_APPROVE` | Irreversible write |
| `org.sample.never.event` | `DENY` | Hard deny |
| `kya.agent.register` | `REQUIRE_APPROVE` | Creating an agent is a tool |

Register your own `toolId` plus metadata. No prebuilt adapter required.

---

## Commands

| Command | Purpose |
|---------|---------|
| `init` | Scaffold `.kya/` + sample tools |
| `register-agent` | Register principal on a control plane |
| `eval-tool` | Policy evaluate (`--offline` for local sample) |
| `wrap` | Evaluate + open a ticket on REQUIRE_APPROVE. Never executes. |
| `approve` / `reject` | Human decide (`kya.approve`). TUI does not decide. |
| `serve-mcp` | Local MCP gate (HTTP or `--stdio`) |
| `dash --once --offline` | Terminal dashboard (sample panes; enterprise panes licensed) |
| `orr run --path` | Read-only ORR report (evidence only) |

Package: [`@shield-agent/kya`](https://www.npmjs.com/package/@shield-agent/kya). MCP: `server.json` / `mcpName` in package.

---

## Comparison

| Capability | Shield KYA | AGT-class runtime gov | OPA / policy infra | AI SAFE²-class catalogs | agent-readiness scanners | OpenAI-style rails |
|------------|------------|----------------------|--------------------|-------------------------|--------------------------|--------------------|
| Fail-closed tool PEP for any custom `toolId` | **Yes** | Partial / runtime-specific | Policy engine only | Catalog + scanner | Readiness scores | Tripwires / needsApproval |
| Dual-plane `host=ide\|runtime` | Yes | Varies | No | No | No | Session-ish |
| Human `REQUIRE_APPROVE` as gate (not UI only) | **Yes** | Varies | DIY | DIY | No | HITL patterns |
| Sole PEP (no second ALLOW path) | **Yes** | Varies | N/A | Evidence | Evidence | App-level |
| MCP / OpenAPI first | **Yes** | Varies | N/A | Often | CLI | SDK-first |
| Multi-lang enterprise runtime | Not the focus | **Strong** | Strong | Strong | N/A | Platform |
| General-purpose policy language | No (product plane) | Limited | **OPA** | Large catalogs | Checklists | Guardrails config |
| ORR / readiness board | Observe + ORR report | — | — | Strong | **Strong** | — |

Shield is protocol-first dual-plane identity, approval, and trail. AGT covers multi-lang runtime governance. OPA is general policy infra. Dialog rails stay in a guardrails product.

---

## LIMITATIONS

- This package does not scan a network or discover agents that never call evaluate.
- Offline `--offline` evaluate / `dash` is a sample fixture for demos and tests. It is not the production PEP.
- Production enforcement needs a control plane (local free console or hosted). An empty API key against an auth plane fails closed.
- This baseline ships sample custom tools only. No vendor marketplace adapter as a core dependency.
- Unsigned v1 passport JSON is observational. Signed v2 claims need the hosted control-plane key.
- Spawn without a control plane cannot be gated. Hosts that skip wrap still walk around session shrink.
- ORR / scanners produce evidence. They never ALLOW irreversible side effects.
- Pin, private registry, multi-tenant density, ORR board ops, and support are a separate tier. They must not block day-1 `npx`.
- Growth counts are observe metrics (principals, evaluates, approvals, orphans).
- Monorepo internals may stay private. npm plus this baseline are the public surface.

---

## Good first issues

- Add a sample custom `toolId` descriptor + offline test
- MCP snippet for your editor
- Translate LIMITATIONS for a new language
- ORR probe for an additional first-party signal (read-only)

---

## Enterprise (distinct)

| Solo `npx` | Enterprise |
|----------|------------|
| `npx` + offline demo | Pin / private registry |
| Public sample tools | Curated tool packs (optional) |
| Local free console | Multi-tenant density + isolation |
| ORR CLI report | ORR board + support |

Day-1 `npx` does not wait on enterprise gates.

---

## Links

- Install: https://shield-agent.com/install
- Package source (when monorepo visible): `sdks/kya/`
- Sole PEP is Shield KYA. Dual-plane labels. Your own `toolId`s.

**License:** MIT. See [LICENSE](./LICENSE).

What people ask about shield-kya

What is The-Pixel-Boys/shield-kya?

+

The-Pixel-Boys/shield-kya is tools for the Claude AI ecosystem. Know Your Agent — fail-closed policy for agent tools (npx @shield-agent/kya) It has 0 GitHub stars and its last recorded update is dated 2026-08-22.

How do I install shield-kya?

+

You can install shield-kya by cloning the repository (https://github.com/The-Pixel-Boys/shield-kya) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is The-Pixel-Boys/shield-kya safe to use?

+

Our security agent has analyzed The-Pixel-Boys/shield-kya and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains The-Pixel-Boys/shield-kya?

+

The-Pixel-Boys/shield-kya is maintained by The-Pixel-Boys. The last recorded GitHub activity is dated 2026-08-22, with 1 open issues.

Are there alternatives to shield-kya?

+

Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.

Deploy shield-kya to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: The-Pixel-Boys/shield-kya
[![Featured on ClaudeWave](https://claudewave.com/api/badge/the-pixel-boys-shield-kya)](https://claudewave.com/repo/the-pixel-boys-shield-kya)
<a href="https://claudewave.com/repo/the-pixel-boys-shield-kya"><img src="https://claudewave.com/api/badge/the-pixel-boys-shield-kya" alt="Featured on ClaudeWave: The-Pixel-Boys/shield-kya" width="320" height="64" /></a>

More Tools

shield-kya alternatives