tix

command module
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 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

tix

CI Code OpenSpec Security
CI
Release
CodeQL
Scorecard
Latest Release
codecov
Go Report Card
Go Reference
Specs
Requirements
Tasks
Open Changes
OpenSSF Scorecard
Security Policy

CLA

Task management for humans and AI agents, in one binary. People get boards, workflows and comments. Agents get an atomic queue pop, a lease that returns work when a worker dies, machine-readable output everywhere, and a durable event stream. Both work the same tasks in the same store.

Status: early. Every capability described below is built and tested, and the behaviour contract in openspec/changes/tix-v1/ is validated against it. It has not been run by anyone but its author, so expect the rough edges of a first release rather than the polish of a used one. The task list says what is done and what is not.

How it works

$ tix task add "migrate the database" -o json   # creates db, tenant and project on first run
{"ref":"infra-42","title":"migrate the database","status":"todo", ...}

$ tix claim next --project infra -o json        # an agent grabs the next unblocked task
{"task":{"ref":"infra-42", ...},"lease_token":"...","lease_expires_at":"..."}

  → agent works, renewing the lease on a ticker
  → agent crashes
  → lease expires, task returns to the queue automatically, no supervisor involved

The lease is the point. A worker that dies holding a task does not leave it stranded, and a zombie worker whose task was re-claimed cannot overwrite the new holder's work, because renew, transition and release all require the lease token minted at claim time.

Why tix?

For agent workflows

Existing trackers assume an interactive human. There is no atomic "give me the next unblocked task", no lease that expires when a process dies, and no structured way to write a result back. An agent that crashes holding a Jira ticket leaves it assigned and stalled until somebody notices.

tix starts from the assumption that a worker may be a process. Claiming is a compare-and-swap, so two agents racing for the same task resolve correctly with no lock and no server. Every operation speaks JSON and returns a meaningful exit code. Every mutation emits a durable event, so other workers can subscribe and a reconnect resumes from a cursor without gaps.

For humans

The same data, with a board, custom workflows, custom fields, dependencies, comments and history. A fresh install needs no configuration: one default workflow, no required fields, and tix task add "buy milk" works on a machine that has never seen tix.

For teams

Multi-tenant, with domains mapping to tenants. Isolation is structural rather than a WHERE clause somebody has to remember: queries are built by a scoped builder that cannot produce an unscoped statement, and a lint rule forbids raw database calls. On PostgreSQL the same scoping is enforced a second time by row-level security policies, applied to the connection when tix opens the database.

Access paths

One binary, one service layer, five ways in. The web UI is required to cover 100% of the CLI, enforced by a test that fails the build when an operation lacks a binding.

Path Notes
CLI UNIX-composable, -o table|json|yaml, documented exit codes, works with zero configuration
TUI Terminal board for interactive use, over the same service interface
HTTP API /api/v1, keyset paginated, consistent error envelope
WebSocket Subscribe to events, resume from a cursor after a reconnect
Web UI Server-rendered, no JavaScript build step, works without JavaScript

What else is in the binary

Statistics, tenant theming, an actor directory, multi-step status moves, per-browser dates, lease badges, shell completion, self-update and seedable demonstration data. docs/features.md describes each one and why it is there.

Screenshots

The same store, three ways in. More in screenshots/.

Command line Terminal
Task list on the command line Workflow board in the terminal

Task detail in the browser

Quick start

tix task add "buy milk"        # creates the database, tenant and project on first run
tix task ls
tix claim next                 # an agent grabs the next unblocked task
tix serve                      # HTTP API, WebSocket and web UI on 127.0.0.1:8080

No configuration file is required. Every setting also has a TIX_* environment variable and can come from a .env file, with precedence flags > env > .env > config > defaults.

Commands

Thirty-nine commands in three groups: working with tasks, administration, and configuration. The full table is in docs/commands.md; tix <command> --help documents every flag, and tix docs emits the whole tree as Markdown.

Install

go install github.com/heliopsy/tix@latest

Binaries are published per release, signed with cosign.

For a server, the container image is the shorter path: it carries the database path, the bind address and the subcommand, so there is nothing to configure to get a working one.

podman run -d -p 127.0.0.1:8080:8080 -v tix-data:/data ghcr.io/heliopsy/tix:0.6.0

linux/amd64 and linux/arm64 in one manifest list, on distroless as uid 65532 with no shell, and signed keyless with cosign. Tags are the patch, the minor series and latest; there is deliberately no bare :0, because before 1.0 a minor bump is where a break lands. docs/deployment.md has the cosign verify invocation, the volume ownership trap a bind mount walks into, and a Kubernetes manifest.

Storage

Engine Use
SQLite Default. Local and single-user. Pure Go driver, so builds stay CGO_ENABLED=0
PostgreSQL Shared deployments. Adds row-level security, full-text search, partitioned retention

One schema and one migration path across both. SQLite is the default and needs nothing configured. PostgreSQL needs a connection string, passed as --db postgres://... or set through TIX_DATABASE_DSN or the config file.

The CLI runs against either engine, in one of two modes. Given a database it opens it directly and executes the service code in process. Given a server URL instead, as --server https://... or TIX_SERVER_URL, it calls a running tix serve over the HTTP API, which executes the same service code there. Nothing else changes: the commands, the output and the exit codes are identical.

Documentation

docs/README.md is the index. The pages people reach for first:

Document Contents
docs/agents.md Leases, lease tokens, tix claim exec, scopes and exit codes for agents
docs/commands.md Every command, grouped
docs/configuration.md Contexts, the five layers, TIX_* variables, discovery
docs/api.md HTTP API and the WebSocket event stream
docs/deployment.md tix serve, the container image, Kubernetes, TLS, proxies
docs/features.md Statistics, theming, completion, self-update and the rest
docs/specifications.md The normative OpenSpec contract, capability by capability
AGENTS.md Coding standards and architecture invariants
CONTRIBUTING.md Build, test and pull request process
ROADMAP.md What comes after v1, and the v1 seams that enable it
SECURITY.md Reporting a vulnerability, and deployment notes

Development

just build     # bin/tix
just test      # race detector, shuffled
just check     # fast pre-push gate set
just ci        # the entire CI suite locally, in containers

Requires Go and just; everything else runs in containers via podman, so nothing needs installing on the host. docs/development.md lists every recipe and CONTRIBUTING.md covers the process.

Licence

AGPL-3.0. Contributions are accepted under the CLA, which keeps the option of offering tix under other terms in future.

Documentation

Overview

Command tix is a multi-tenant task management system for humans and AI agents.

Directories

Path Synopsis
Package cmd contains all Cobra CLI commands for tix.
Package cmd contains all Cobra CLI commands for tix.
internal
architecture
Package architecture carries no code.
Package architecture carries no code.
auth
Package auth hashes credentials, mints tokens and resolves actors from requests.
Package auth hashes credentials, mints tokens and resolves actors from requests.
authz
Package authz is the single place where tix decides whether an actor may act.
Package authz is the single place where tix decides whether an actor may act.
bench
Package bench builds large task fixtures and measures the operations that decide whether tix holds up at a million tasks.
Package bench builds large task fixtures and measures the operations that decide whether tix holds up at a million tasks.
bundle
Package bundle encodes and decodes shareable component bundles.
Package bundle encodes and decodes shareable component bundles.
capability
Package capability declares every tix operation once, with the bindings that expose it, so parity between the CLI, the HTTP API and the web UI is checked by tests rather than asserted in documentation.
Package capability declares every tix operation once, with the bindings that expose it, so parity between the CLI, the HTTP API and the web UI is checked by tests rather than asserted in documentation.
client
Package client implements core.Service over the tix HTTP API.
Package client implements core.Service over the tix HTTP API.
clock
Package clock provides an injectable time source.
Package clock provides an injectable time source.
config
Package config resolves tix configuration from flags, environment variables, a .env file, configuration files and built-in defaults.
Package config resolves tix configuration from flags, environment variables, a .env file, configuration files and built-in defaults.
connect
Package connect resolves the single target every tix command talks to.
Package connect resolves the single target every tix command talks to.
connections
Package connections tracks the live connections one server process holds.
Package connections tracks the live connections one server process holds.
core
Package core holds the tix domain model and the Service contract.
Package core holds the tix domain model and the Service contract.
demo
Package demo fills a database with backdated, realistic work so that every interface can be shown against a product in use rather than an empty shell.
Package demo fills a database with backdated, realistic work so that every interface can be shown against a product in use rather than an empty shell.
docsmd
Package docsmd reads the enumerable parts of the Markdown under docs/, so a test can assert one named table rather than grepping a whole page.
Package docsmd reads the enumerable parts of the Markdown under docs/, so a test can assert one named table rather than grepping a whole page.
httpapi
Package httpapi serves the tix REST API and event stream.
Package httpapi serves the tix REST API and event stream.
id
Package id generates sortable unique identifiers.
Package id generates sortable unique identifiers.
integration
Package integration exercises tix across transports.
Package integration exercises tix across transports.
lease
Package lease resolves lease lifetimes, mints lease tokens and materializes lease expiry.
Package lease resolves lease lifetimes, mints lease tokens and materializes lease expiry.
logging
Package logging builds the process logger from resolved configuration: the level it filters at, the handler it formats with, and the destination it writes to, which may be a rotating file.
Package logging builds the process logger from resolved configuration: the level it filters at, the handler it formats with, and the destination it writes to, which may be a rotating file.
outbox
Package outbox appends domain events and replays them to subscribers.
Package outbox appends domain events and replays them to subscribers.
output
Package output renders domain values as tables, JSON or YAML for tix commands.
Package output renders domain values as tables, JSON or YAML for tix commands.
query
Package query parses the tix filter expression into a core.TaskFilter, and answers the same expression against a task in memory.
Package query parses the tix filter expression into a core.TaskFilter, and answers the same expression against a task in memory.
retention
Package retention decides what has expired and prunes it on a schedule.
Package retention decides what has expired and prunes it on a schedule.
selfupdate
Package selfupdate replaces this binary with a published release.
Package selfupdate replaces this binary with a published release.
server
Package server runs the tix HTTP surface and its background workers.
Package server runs the tix HTTP surface and its background workers.
service
Package service implements the tix domain rules.
Package service implements the tix domain rules.
smoke
Package smoke drives the compiled tix binary end to end.
Package smoke drives the compiled tix binary end to end.
sshd
Package sshd serves the terminal interface over SSH, giving every key fingerprint its own ephemeral tenant.
Package sshd serves the terminal interface over SSH, giving every key fingerprint its own ephemeral tenant.
store
Package store defines the persistence boundary.
Package store defines the persistence boundary.
store/migrations
Package migrations holds the embedded schema and the forward-only runner.
Package migrations holds the embedded schema and the forward-only runner.
store/postgres
Package postgres implements the store on PostgreSQL through pgx.
Package postgres implements the store on PostgreSQL through pgx.
store/sql
Package sql builds tenant-scoped statements shared by every engine.
Package sql builds tenant-scoped statements shared by every engine.
store/sqlite
Package sqlite implements the store on SQLite through a pure Go driver.
Package sqlite implements the store on SQLite through a pure Go driver.
store/sqltest
Package sqltest holds the filter conformance corpus both storage engines are measured against.
Package sqltest holds the filter conformance corpus both storage engines are measured against.
storeloc
Package storeloc decides whether a database file's location on disk is safe to write to: whether it sits on a network filesystem SQLite corrupts on, and whether it sits inside a directory a sync tool manages, which silently loses writes rather than corrupting them outright.
Package storeloc decides whether a database file's location on disk is safe to write to: whether it sits on a network filesystem SQLite corrupts on, and whether it sits inside a directory a sync tool manages, which silently loses writes rather than corrupting them outright.
sync
Package sync imports records from external systems into tix.
Package sync imports records from external systems into tix.
sync/generic
Package generic imports records from a CSV or JSON file, so a system with no adapter of its own is imported by shaping a file and writing a mapping.
Package generic imports records from a CSV or JSON file, so a system with no adapter of its own is imported by shaping a file and writing a mapping.
sync/jira
Package jira imports issues from a Jira instance.
Package jira imports issues from a Jira instance.
sync/openproject
Package openproject imports work packages from an OpenProject instance.
Package openproject imports work packages from an OpenProject instance.
testenv
Package testenv reports the optional capabilities a test run could not use, so a green suite says what it actually proved and not merely that it passed.
Package testenv reports the optional capabilities a test run could not use, so a green suite says what it actually proved and not merely that it passed.
transfer
Package transfer encodes and decodes streamed tenant snapshots.
Package transfer encodes and decodes streamed tenant snapshots.
tui
Package tui implements the tix terminal interface over the core service.
Package tui implements the tix terminal interface over the core service.
version
Package version holds build-time version information injected via ldflags, falling back to what the Go toolchain recorded when they were not.
Package version holds build-time version information injected via ldflags, falling back to what the Go toolchain recorded when they were not.
web
Package web serves the tix browser interface from the single binary.
Package web serves the tix browser interface from the single binary.
webhook
Package webhook signs, queues and delivers outgoing event notifications.
Package webhook signs, queues and delivers outgoing event notifications.
wire
Package wire holds the tix HTTP wire contract: route patterns, header and content-type names, and the envelope types both the server and the client marshal.
Package wire holds the tix HTTP wire contract: route patterns, header and content-type names, and the envelope types both the server and the client marshal.

Jump to

Keyboard shortcuts

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