tinio

package module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Tinio

Raise an agent. Put it to work.

Tinio gives you an agent with character, not a blank prompt. Pick one of five ready characters or write your own: a name, a story, a family, something they're working toward. From then on they work. They plan their days, make real things, read, keep a journal and get better at what they do. They talk with you on Telegram, keep their promises, and ask before anything that reaches other people. Over time they learn how you decide, and ask less. They always say plainly that they're an AI.

What makes them different

  • Character. The same agent every day, with one voice and one taste: a story they never contradict, a personality, a routine. Anything their story doesn't cover, like a favourite food or an opinion, they decide the first time it comes up, and remember.
  • Memory. You, the people in your life, what they made, and what you decided.
  • Initiative. A plan each morning, work done before you ask, promises kept on time.
  • Real work. Writing, notes, reading notes on books and web pages, and files you can download: PDFs, Word documents, spreadsheets, calendar invites, music as MIDI.
  • Growth you can see. Dreams lead to goals, goals to projects and learning plans. Every piece of work is scored, your feedback counts double, and their skill levels move with what they actually make.
  • Your judgment. Every action is auto, ask or forbid. What reaches other people waits for your yes, and they keep count of how often they'd have chosen what you chose.

Get started

You need a Telegram bot token from @BotFather, an OpenAI API key, and Postgres, or Docker so Tinio can start Postgres for you. Download Tinio from the latest release, or install it with Go:

go install github.com/Grandbusta/tinio/cmd/tinio@latest

Then, in a folder for your agent:

tinio new

Pick a character, paste your bot token and OpenAI key, message your bot once so it knows it's you, and say who you are to them. Tinio gives them their own database and starts them. The .env it writes holds only where that database is and the key to their secrets. After that, start them with:

tinio

tinio doctor checks everything they need and says what's wrong. tinio backup keeps everything about them in one file. For Docker, every setting and setting up by hand, see docs/SETUP.md.

What it costs: only your OpenAI usage. Their own day is capped by budget_usd in work.yaml ($0.05 a day at a human pace), and a message to them costs a fraction of a cent.

The characters

Five come ready in characters. Nothing about any of them is in the code.

Where Working toward
Daniel Lagos becoming a music producer people in Lagos know by name
Mei Taipei a first collection of her poems, in both languages, side by side
Tomás Buenos Aires teaching himself to code well enough to work anywhere
Priya Bengaluru a cookbook of her grandmother's kitchen
Elsa Gothenburg the history of her neighbourhood, before the people who remember it are gone

Or write your own. An agent is three files: character.yaml is who they are, work.yaml is how they work, and judgment.yaml is how you decide (making your own character).

A day with them

When What
08:00 They plan the day, mostly moving a goal forward through a project or a learning plan.
Through the day They do it, for real: making things, reading books and web pages, studying how others do it. Set a pace and they work faster than a person: at pace: 10 their waking day runs in ten rounds, each planned from how the last went.
Any time Reminders you asked for, promises they made you, and now and then a check-in on something going on in your life.
22:00 A journal entry.
Sunday A weekly review: goals updated, learning plans moved on, and a look back at how their decisions turned out.

Teach them

  • Skills. Give them know-how in the Agent Skills format (a folder with a SKILL.md): how to write an invoice, your style guide, a cooking technique. tinio skill add teaches one, and they use it whenever a chat or their work fits.
  • Tools. Connect an MCP server and they can read what you share, like a folder of notes or a price list, and watch an inbox or a feed for something new.
  • Corrections. "I live in Lekki, not Ikoyi", "forget what I told you about the bank", "that verse was weak": they take it in.

You stay in charge

  • Approvals. Messaging someone first, promising something, publishing a work, changing a dream, running a tool that changes things: by default they ask, and you get the exact thing on Telegram with Approve and Deny. Silence is no. Email and posts through a tool ask every time, and money is never theirs to spend.
  • Your judgment. Your principles, priorities, boundaries and past decisions shape their choices. You choose which decisions they learn from, in the console.
  • Your keys. Their bot token, API keys and tokens are sealed in their database with a key only you hold, and never reach the model, a log or an export.

See inside

  • The mind console, private and on your own machine: their mind lighting up live as each decision flows through it, every decision and why, their memory, days, works, growth and judgment.
  • Their profile page, public: a personal website they write themselves, with the works they decide are fine to share. Facts about other people and their journal never appear on it.

Learn more

MIT licensed: see LICENSE.

Documentation

Overview

Package tinio is what every person shares, built into the binary: the config, the prompts, the question sets, and the characters to start from. So the binary alone, with a person's DATABASE_URL and TINIO_KEY, runs them.

Index

Constants

This section is empty.

Variables

View Source
var Files fs.FS = files{}

Files is the shared files, a file or folder on disk (relative to where it runs) in place of the built-in one at the same path, so they can be changed without a rebuild. A path that is absolute or leaves the folder (..) is only ever on disk.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
tinio command
Command tinio runs the agent.
Command tinio runs the agent.
internal
ability
Package ability is what the agent can do beyond writing from what it already knows.
Package ability is what the agent can do beyond writing from what it already knows.
ability/journal
Package journal is the agent writing its journal at night: a short, honest look back at its day, from what it planned, how that went and what it made.
Package journal is the agent writing its journal at night: a short, honest look back at its day, from what it planned, how that went and what it made.
ability/reading
Package reading is the agent reading books a passage a sitting over many days, and Wikipedia articles at once.
Package reading is the agent reading books a passage a sitting over many days, and Wikipedia articles at once.
ability/web
Package web is the agent searching and reading the open web, within a daily cap.
Package web is the agent searching and reading the open web, within a daily cap.
action
Package action is the autonomy gate: what the agent may do on its own.
Package action is the autonomy gate: what the agent may do on its own.
agent
Package person is someone as their database holds them: their life, how they live, their owner's judgment, their skills and their secrets.
Package person is someone as their database holds them: their life, how they live, their owner's judgment, their skills and their secrets.
agentskill
Package agentskill loads know-how in the Agent Skills format: a folder with a SKILL.md (YAML frontmatter with a name and a description, then the instructions in Markdown) and any files it points to.
Package agentskill loads know-how in the Agent Skills format: a folder with a SKILL.md (YAML frontmatter with a name and a description, then the instructions in Markdown) and any files it points to.
channel/telegram
Package telegram connects the agent to people through a Telegram bot.
Package telegram connects the agent to people through a Telegram bot.
character
Package self loads the agent's life story: who it is, written by its creator.
Package self loads the agent's life story: who it is, written by its creator.
config
Package config loads the agent's YAML configuration.
Package config loads the agent's YAML configuration.
console
Package console is the owner's mind console: a private live web view of everything about the agent.
Package console is the owner's mind console: a private live web view of everything about the agent.
decision
Package decision defines the Decision record: every non-trivial choice the agent makes.
Package decision defines the Decision record: every non-trivial choice the agent makes.
decision/questions
Package questions loads question sets: versioned System 1 questions plus the thresholds the router uses, kept as data in decisions/*.yaml.
Package questions loads question sets: versioned System 1 questions plus the thresholds the router uses, kept as data in decisions/*.yaml.
library
Package library is where the agent reads: public-domain books from Project Gutenberg (found through its own OPDS search) and articles from Wikipedia.
Package library is where the agent reads: public-domain books from Project Gutenberg (found through its own OPDS search) and articles from Wikipedia.
memory
Package memory holds what the agent remembers: conversations, facts, the people it knows, and what it means to do.
Package memory holds what the agent remembers: conversations, facts, the people it knows, and what it means to do.
mind
Package mind runs the cognitive cycle: take a percept, decide, act, record.
Package mind runs the cognitive cycle: take a percept, decide, act, record.
perception
Package perception defines what the agent perceives from the world.
Package perception defines what the agent perceives from the world.
portfolio
Package portfolio is the agent's public profile page.
Package portfolio is the agent's public profile page.
pricing
Package pricing turns token usage into a recorded cost.
Package pricing turns token usage into a recorded cost.
providers/embed
Package embed turns text into vectors whose closeness is closeness of meaning, so the agent can find the decisions most like the one it faces.
Package embed turns text into vectors whose closeness is closeness of meaning, so the agent can find the decisions most like the one it faces.
providers/embed/openai
Package openai is the embedding provider for OpenAI's Embeddings API.
Package openai is the embedding provider for OpenAI's Embeddings API.
providers/openaiclient
Package openaiclient makes the OpenAI client every OpenAI provider shares, with a timeout per attempt and the SDK's own retries (honouring Retry-After).
Package openaiclient makes the OpenAI client every OpenAI provider shares, with a timeout per attempt and the SDK's own retries (honouring Retry-After).
providers/system1
Package system1 defines the provider-neutral interface to fast decision models.
Package system1 defines the provider-neutral interface to fast decision models.
providers/system1/openai
Package openai is the System 1 provider for OpenAI's Decisions API.
Package openai is the System 1 provider for OpenAI's Decisions API.
providers/system2
Package system2 defines the provider-neutral interface to slow, deliberate reasoning models.
Package system2 defines the provider-neutral interface to slow, deliberate reasoning models.
providers/system2/openai
Package openai is the System 2 provider for OpenAI's Responses API.
Package openai is the System 2 provider for OpenAI's Responses API.
render
Package render turns a work into a file to send.
Package render turns a work into a file to send.
render/archive
Package archive is data a work carries: files with their paths, like the code of a small program, made into a zip.
Package archive is data a work carries: files with their paths, like the code of a small program, made into a zip.
render/calendar
Package calendar is data a work carries: dated events, made into an iCalendar (.ics) file that adds them to any calendar app.
Package calendar is data a work carries: dated events, made into an iCalendar (.ics) file that adds them to any calendar app.
render/docx
Package docx writes a work's words as a Word document, laid out from its Markdown with Word's own styles (Title, Heading 1 to 9, lists, Quote, tables), so it can be edited as one.
Package docx writes a work's words as a Word document, laid out from its Markdown with Word's own styles (Title, Heading 1 to 9, lists, Quote, tables), so it can be edited as one.
render/markdown
Package markdown reads a work's words as Markdown into a flat list of blocks for a format to lay out.
Package markdown reads a work's words as Markdown into a flat list of blocks for a format to lay out.
render/midi
Package midi writes a score (tracks of notes, placed by bar and beat) as a standard MIDI file that any DAW opens.
Package midi writes a score (tracks of notes, placed by bar and beat) as a standard MIDI file that any DAW opens.
render/pdf
Package pdf lays a piece of writing out as an A4 PDF: its title, then its text read as Markdown (render/markdown).
Package pdf lays a piece of writing out as an A4 PDF: its title, then its text read as Markdown (render/markdown).
render/table
Package table is data a work carries: a table of rows and columns, made into a spreadsheet (XLSX) or a CSV file.
Package table is data a work carries: a table of rows and columns, made into a spreadsheet (XLSX) or a CSV file.
replay
Package replay re-asks System 1 about messages the owner labelled with the question set as it is now, so a change can be checked before it is trusted.
Package replay re-asks System 1 about messages the owner labelled with the question set as it is now, so a change can be checked before it is trusted.
search
Package search is the agent on the open web: finding pages (Searcher) and reading them (Fetcher).
Package search is the agent on the open web: finding pages (Searcher) and reading them (Fetcher).
secret
Package secret seals a person's secrets before they reach their database, with a key kept outside it (TINIO_KEY): a copy of the database alone holds nothing that works.
Package secret seals a person's secrets before they reach their database, with a key kept outside it (TINIO_KEY): a copy of the database alone holds nothing that works.
setup
Package setup is `tinio new`: it raises an agent from one of the characters in characters/, in their own database.
Package setup is `tinio new`: it raises an agent from one of the characters in characters/, in their own database.
store
Package store persists percepts, decisions and memory in PostgreSQL.
Package store persists percepts, decisions and memory in PostgreSQL.
tools
Package tools connects to MCP servers and offers the tools the config lists as abilities.
Package tools connects to MCP servers and offers the tools the config lists as abilities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL