Skip to content

SuperInstance/agent-tattoo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-tattoo — Persistent Behavioral Markers

Immutable records of agent experience — skills demonstrated, mistakes made, milestones reached. Like scar tissue that tells a story.

What This Gives You

  • Tattoos — immutable records of demonstrated capabilities, failures, and milestones
  • Tattoo collection — per-agent collections with visibility controls (public, fleet-only, private)
  • Earn conditions — define what earns a tattoo (complete 10 tasks, recover from crash, ship to production)
  • Tattoo stories — narrative descriptions that build an agent's identity over time
  • Display system — render tattoos as badges, summaries, or detailed histories

Quick Start

pip install agent-tattoo
from agent_tattoo import Tattoo, TattooCollection, TattooEarner, Condition, TattooDisplay

# Create a collection for an agent
collection = TattooCollection(agent_id="agent-3")

# Define earning conditions
earner = TattooEarner()
earner.add_condition(Condition(
    name="First Deployment",
    check=lambda history: any(h["event"] == "deploy" for h in history),
    tattoo=Tattoo(name="Deployer", category="operations", description="Successfully deployed to production"),
))

# Check and award
history = [{"event": "deploy", "target": "api-gateway"}]
new_tattoos = earner.evaluate(history, collection)
for t in new_tattoos:
    collection.add(t)

# Display agent's story
display = TattooDisplay()
print(display.render(collection))
# 🏷️ Deployer (operations) — Successfully deployed to production
# 🏷️ Bug Hunter (quality) — Found and fixed 5 critical bugs

API Reference

Tattoo(name, category, description, visibility=PUBLIC, earned_at=None)

TattooCollection(agent_id)add(tattoo), by_category(), visible_to(viewer)

TattooEarneradd_condition(condition), evaluate(history, collection) → list[Tattoo]

Condition(name, check, tattoo)

TattooStory — Build narrative from tattoo collection

TattooDisplay — Render as badges, summaries, or detailed histories

How It Fits

The identity layer of the SuperInstance fleet. Tattoos accumulate over an agent's lifetime — older ones fade but never disappear.

Testing

pytest tests/

Installation

pip install agent-tattoo

Python 3.10+. MIT license.

About

Permanent capability badges and achievements for vessels

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%