$ A=/tmp/ailx/ail-context-compressor/scripts/ail_mcp.py
$ python3 "$A" pack -f demo-notes.txt --next "review title and copy with Captain" | tee demo-snapshot.ail
--- tokens: 49 -> 66 (-34.7% saved, 0 @SIG, redactions 0) ---
!AILv1
@CTX DEMO DATA ONLY — fictional Captain WhatWeMade draft handover.
@CTX Working title: Harborlight weekend market.
@CTX Status: outline only; nothing has been published.
@CTX Next: review title and copy with Captain.
@NEXT ?review_title_and_copy_with_Captain
$ python3 "$A" unpack -f demo-snapshot.ail
DEMO DATA ONLY — fictional Captain WhatWeMade draft handover.
Working title: Harborlight weekend market.
Status: outline only; nothing has been published.
Next: review title and copy with Captain.
$
AIL Context Compressor
Portable context handovers between AI chats and agents
About
AILv1 is a free, MIT-licensed text format and small Python tool for creating structured context snapshots to pass between AI chats and agents. It includes an encoder, a parse-only decoder, a Python ast signature extractor, a CLI, an MCP server, an Agent Skill and a prompt-only option that needs no install.
Snapshots can keep recurring names as pointers, context and data flow, rejected approaches and why they failed, code signatures with state mutations, and next tasks. The Python encoder redacts secrets by default; the prompt-only version is best-effort and can miss details or secrets.
The decoder only parses and never runs anything, but that does not stop prompt injection: a snapshot can carry text written to steer a model. Treat decoded text as untrusted data, and check for secrets before sharing.

















