Skip to content

gritsev/agent-code-playbook-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-code-playbook-kit

A small TypeScript kit for describing agent processes as human-oriented IR and compiling them into deterministic runtime playbooks.

This repository exists because agent process authoring is a different problem from:

  • governance architecture
  • runner execution
  • MCP tool surfaces
  • rich answer rendering

It sits between those layers.

It is part of a small public code series:

  • agent-code-playbook-kit for process IR and compiled runtime playbooks
  • agent-code-runner-sandbox for bounded execution primitives
  • agent-code-observer-mcp for semantic tool surfaces and MCP bridging
  • agent-code-a2ui-contracts for structured rich-answer contracts
  • org-aware-agents for the docs-first architecture layer

What is included

  • src/types.ts — IR and runtime playbook types
  • src/compile.ts — deterministic IR -> playbook compiler
  • src/lint.ts — lightweight linting and warning surface
  • examples/ — public-safe process examples
  • test/ — focused tests for invariants

Why this exists

Many agent systems jump directly from:

  • natural-language process description
  • to prompt glue
  • to side effects

That is not enough for stable production behavior.

A stronger setup uses:

  • human-oriented process IR
  • deterministic compilation
  • explicit tool allowlists
  • field-level write policies
  • machine-checkable definition of done

Quick start

npm install
npm test
npm run build
npm run demo

Example

The included example compiles a content-draft task flow into a runtime playbook with:

  • queue entry by status
  • task context reading
  • task update field allowlist
  • comment and artifact write permissions
  • deterministic started/done recipe steps
  • delivery requirements

Design principles

  • human intent first, runtime contract second
  • deterministic compilation over prompt magic
  • fail closed where possible
  • keep invariants explicit

Related repos

About

TypeScript kit for agent process IR and deterministic runtime playbooks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors