Skip to main content
ClaudeWave

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

ToolsRegistry oficial0 estrellas0 forksTypeScriptMITActualizado 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.
Casos de uso

Resumen de Tools

# 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).

Lo que la gente pregunta sobre shield-kya

¿Qué es The-Pixel-Boys/shield-kya?

+

The-Pixel-Boys/shield-kya es tools para el ecosistema de Claude AI. Know Your Agent — fail-closed policy for agent tools (npx @shield-agent/kya) Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-08-22.

¿Cómo se instala shield-kya?

+

Puedes instalar shield-kya clonando el repositorio (https://github.com/The-Pixel-Boys/shield-kya) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar The-Pixel-Boys/shield-kya?

+

Nuestro agente de seguridad ha analizado The-Pixel-Boys/shield-kya y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene The-Pixel-Boys/shield-kya?

+

The-Pixel-Boys/shield-kya es mantenido por The-Pixel-Boys. La última actividad registrada en GitHub es del 2026-08-22, con 1 issues abiertos.

¿Hay alternativas a shield-kya?

+

Sí. En ClaudeWave puedes explorar tools similares en /categories/tools, ordenados por popularidad o actividad reciente.

Despliega shield-kya en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

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>

Más Tools

Alternativas a shield-kya