# Pi Agent Embedding

> @mariozechner/pi-agent-core Agent runtime — message flow, tool execution modes, event sequence for prompt() and continue(), embedding in apps. Use when building on Agent class, wiring subscribers, or debugging tool loops beside pi-ai. Use for "pi agent events", "beforeToolCall", "agent.subscribe", even if coding-agent CLI is not involved.

- **Type:** Skill
- **Install:** `agentstack add skill-romiluz13-pi-agent-skills-pi-agent-embedding`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [romiluz13](https://agentstack.voostack.com/s/romiluz13)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [romiluz13](https://github.com/romiluz13)
- **Source:** https://github.com/romiluz13/pi-agent-skills/tree/main/pi-skills/pi-agent-embedding

## Install

```sh
agentstack add skill-romiluz13-pi-agent-skills-pi-agent-embedding
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Pi agent embedding (`@mariozechner/pi-agent-core`)

## Grounding

1. `pi-mono/packages/agent/README.md` — Agent options, event tables, tool parallel vs sequential, `convertToLlm` / `transformContext` flow diagram.
2. `pi-mono/packages/coding-agent/examples/sdk/` — integration patterns (`README.md` index + numbered examples).
3. `pi-mono/packages/coding-agent/docs/sdk.md` — higher-level SDK documentation when present.

## Invariants

- Event ordering and barrier behavior (`message_end` before tool preflight) are specified in `pi-mono/packages/agent/README.md`; cite that file instead of restating from memory.

## Workflows

- **Pick integration depth**: README Quick Start vs full `examples/sdk/` depending on user needs; always point to concrete example filenames under `pi-mono/packages/coding-agent/examples/sdk/`.

## Anti-patterns

- Do not merge pi-coding-agent session semantics with core `Agent` without reading `agent-session.ts` when the question is about the CLI harness specifically — route CLI questions to `pi-cli-workspace` after citing boundaries from READMEs.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [romiluz13](https://github.com/romiluz13)
- **Source:** [romiluz13/pi-agent-skills](https://github.com/romiluz13/pi-agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-romiluz13-pi-agent-skills-pi-agent-embedding
- Seller: https://agentstack.voostack.com/s/romiluz13
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
