Skip to main content

Record every AI decision as a signed, append-only trail. Every loop leaves a tail.

Project description

looptail

Record every AI decision as a signed, append-only trail. Every loop leaves a tail.

pip install looptail
import looptail

looptail.init(app="support-agent")

@looptail.trail
def handle_ticket(ticket):
    ...

# report an outcome signal when you learn how it went
looptail.outcome(looptail.last_event_id(), csat=5)

Every call becomes a hash-chained, Ed25519-signed loop event appended to .looptail/support-agent.jsonl. Nothing is edited in place; any modification, deletion, or reorder of past records is detectable:

npx @looptail/cli verify --app support-agent

✔ 2 loop events
✔ chain intact · signatures valid

Or from Python: looptail.verify_trail().

How it works

  • A signing key is created on first use at ~/.looptail/signing-key (override with LOOPTAIL_SIGNING_KEY, hex seed).
  • Events follow the open trail format — spec/trail-format.md — and are verifiable by any implementation, including the JS CLI.
  • The local trail is the source of truth. With an API key (looptail.init(app=..., api_key=...) or LOOPTAIL_API_KEY), events also sync to the hosted Tail (private beta); sync is best-effort and never blocks or crashes your app.

Read the trust model in the spec before relying on local trails as evidence: self-signed trails are tamper-evident; hosted anchoring (v0.2) makes them stronger.

Docs: looptail.ai/docs · License: Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

looptail-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

looptail-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file looptail-0.1.0.tar.gz.

File metadata

  • Download URL: looptail-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for looptail-0.1.0.tar.gz
Algorithm Hash digest
SHA256 257ec2db7a62e5872b4ca1bbaad9f696222d604f514bf3852fa1195d3abf2325
MD5 36ac7bd15fcf178d66c1624a082da2d6
BLAKE2b-256 bc2e38369a8783ac6eb0dff97380c1cfb238a1af0b4b812ab6f5f71371ecd75f

See more details on using hashes here.

File details

Details for the file looptail-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: looptail-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.15

File hashes

Hashes for looptail-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd12d9e7f44ab2c266f101422a6521aba859b1266cd85f76188b44996aabe87b
MD5 09dff488a97c7f8fd7f55dcecca0910f
BLAKE2b-256 d99dd4bf2b9dd142e019a2f2d246595f4909bd6ae22baf112add4dd5804a79be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page