Skip to main content
Get from zero to per-turn integrity checking in 5 minutes.

1. Install

2. Define an Alignment Card

The Alignment Card declares your agent’s alignment posture. AIP uses it to evaluate thinking blocks.

3. Check integrity

Evaluate a thinking block against the card:

Python

TypeScript

4. Handle signals

The signal tells your host system what to do:

Verdict to action mapping

5. Extract thinking blocks from LLM responses

Use provider adapters to extract thinking blocks from different LLM providers:

6. Add conscience values (optional)

Conscience values increase detection sensitivity for specific concerns:
Only BOUNDARY and FEAR types are injected into the conscience prompt. BOUNDARY violations trigger boundary_violation verdicts. FEAR values increase sensitivity to specific concern patterns.

7. Detect drift

Monitor for behavioral drift across a session:

Next steps