tix

command module
v0.7.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

Also in the binary

Capabilities that are easy to miss from the command table above.

Statistics. tix stats, /stats in the browser and S in the terminal interface, over one window and optionally one project: completions per day, median and slowest lead time, where the work is sitting, who moved it, what has waited longest. The leaderboard prints what it counts every time it is shown, because a count of tasks moved to a terminal state is not a measure of work done and a number presented without that sentence gets read as one. docs/statistics.md.

Theming. A tenant names an accent and both the browser and the terminal render it. Palettes are configuration rather than rows, so an operator writes one for the whole deployment. Light, dark and a low-contrast scheme are a separate axis, chosen per browser, because that is a property of the person reading. State and priority colours are deliberately not themeable: blocked is red whatever a tenant brands itself. docs/theming.md.

A directory of actors. tix actor ls on the command line, /actors in the browser, and the same listing behind the assignee field, which suggests handles instead of asking for an identifier from memory. It suggests without constraining: an actor from another tenant is still assignable by identifier. Agents are in the directory alongside people, because work is assigned to them as often.

A status control that can move more than one step. The status pill on a row offers the states that row's own workflow can reach, including ones reachable only through another state. The whole route is spelled out before it is applied, and each hop is an ordinary transition, so a task that passed through a state really did pass through it and the audit trail says so.

Per-browser dates and times. Format and timezone are chosen in the settings screen and stored in a cookie, not on the tenant. Two people sharing a tenant are frequently in different zones.

Lease badges. A task list says which rows an agent is holding and which ones were claimed by somebody who never came back, how long ago that claim lapsed and how many times the task has been picked up. The second of those is read from evidence the sweeper leaves on the task rather than from the lease columns it clears, which is what makes an abandoned claim visible at all rather than for the minute before the next sweep. docs/web-ui.md covers these and the rest of the browser interface.

Shell completion. tix completion install detects the shell, writes the script where that shell looks for it and never edits a startup file. It completes task references, project keys, tags and the states your workflows actually define, not only flag names. docs/shell-completion.md.

Self-update. tix update replaces this binary with a release built for its platform, checked against the checksum published beside it, and refuses a binary the Go toolchain or a package manager owns. --check reports without writing. docs/upgrading.md.

Demonstration data. tix demo seed --db /tmp/demo.db writes a backlog with history: projects, people, agents, custom fields, tasks with bodies, tags, due dates and comments, and completions spread across the window by several actors. It is replayed through the ordinary service calls on a clock the command advances, so the statistics have real audit entries to attribute against, including two claims an agent took and never gave back so that state can be seen without arranging it by hand. It refuses a database that already holds work unless --reset is passed.

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

Working with tasks
Command Does
tix artifact Attach and read task artifacts
tix claim Take and hold leases on tasks
tix comment Manage task comments
tix dep Manage task dependencies
tix project Manage projects
tix stats Report throughput, ageing and who closed what
tix tag Manage task tags
tix task Create, list and change tasks
tix tui Browse and work on tasks in a terminal interface
tix watch Follow the event stream
Administration
Command Does
tix actor Resolve actor identifiers
tix audit Read the audit log
tix bundle Share reusable components between projects, tenants and installations
tix connection See and end the connections a server holds
tix domain Map hostnames to the current tenant
tix export Stream a tenant snapshot to standard output
tix field Manage project custom fields
tix import Apply a tenant snapshot read from standard input
tix member Manage tenant membership
tix prune Remove history past its retention window
tix retention Inspect and change the history retention policy
tix serve Serve the tix HTTP API
tix ssh Serve the terminal interface over SSH
tix sync Import from Jira, OpenProject and shaped files
tix tenant Manage tenants
tix theme Inspect the palettes a tenant may use
tix token Manage API tokens
tix update Replace this binary with a published release
tix user Manage users
tix webhook Manage outgoing webhooks
tix workflow Manage workflow state machines
Configuration and tooling
Command Does
tix completion Generate a shell completion script
tix config Inspect the resolved configuration
tix ctx Manage named connection contexts
tix demo Fill a database with demonstration data
tix docs Emit the command tree as Markdown
tix doctor Diagnose the local installation
tix login Exchange a password for a session
tix logout End a session
tix version Print version information

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

Document Contents
openspec/changes/tix-v1/ The normative behaviour contract
proposal.md Why tix exists and what it does
design.md Technical decisions and their trade-offs
tasks.md Implementation checklist by work package
specs/ 23 capabilities, 355 requirements, 1171 scenarios
docs/ User and operator guides, indexed in docs/README.md
docs/agents.md Leases, lease tokens, tix claim exec, scopes and exit codes for agents
docs/api.md HTTP API and the WebSocket event stream
docs/deployment.md Running tix serve, the published container image, Kubernetes, TLS, proxies and the bind guard
docs/web-ui.md The browser interface, and the preferences each reader keeps
docs/statistics.md What each figure means, and what the leaderboard counts
docs/theming.md Tenant accents, defining a palette, what is not themed
docs/shell-completion.md Installing completions, and what they complete
docs/upgrading.md tix update, the checksum, and what it will not replace
AGENTS.md Coding standards and architecture invariants
CONTRIBUTING.md Build, test and pull request process, and what supporting tix actually means
ROADMAP.md What comes after v1, and the v1 seams that enable it
SECURITY.md Reporting a vulnerability, and deployment notes
Capabilities

Each links to its normative specification. The first table is the v1 contract; the second is what has been specified since, which lives with the change that introduced it.

data-model multi-tenancy domains
storage-engines configuration service-layer
transports workflows task-management
claim-lease auth cli
http-api event-stream webhooks
audit-log retention import-export
external-sync web-ui tui
server component-sharing
theming stats ssh-access
live-connections v0-5-0-polish

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. Linters, scanners and PostgreSQL run in containers via podman, so nothing needs installing on the host, and every CI job invokes the same just recipe so local and CI results cannot drift apart.

Recipe Does
just build / just build-all Build for the host, or the full release matrix
just test / just cover Tests with the race detector; coverage report
just lint just sec just vuln just trivy Individual gates, in the pinned toolbox image
just spec openspec validate --strict
just pg-up / just test-postgres PostgreSQL in a container, and the suite against it
just cover-check The coverage floor, the headroom above it, and what the run skipped
just ci Everything CI runs, locally

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