tix

command module
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: AGPL-3.0 Imports: 4 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. The task list says what is done and what is not.

How it works

$ tix task add "migrate the database" -o json   # after tix init: creates db, tenant and project
{"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

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, history, and a personal star that keeps the tasks you are watching at the top of your own listings. The columns and lanes are yours to arrange too: hide, star, collapse or move any of them from the three dots on its heading, kept with your account so it follows you everywhere (tix view). A filter you use every day is saved under a name in the sidebar, for you or the whole team (tix filter), My work lists what is yours by deadline (assignee:me), and the sidebar remembers the last tasks you opened. A task copies into any project, subtasks and comments included when you ask, instead of being typed twice, and a task you make again and again is saved once as a template and created from it in one step (tix template). Tick rows on the task list to move, retag, assign, star, copy or delete them in one go, and export any filtered list as CSV for a spreadsheet. Your due dates show up in Google Calendar, Apple Calendar or Outlook through a private feed address you subscribe to once (tix calendar, or Settings in the browser). A task you cannot move until later snoozes out of every listing until then and comes back by itself. 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. A task can be typed in one line, Fix login !high #auth @raj due:fri, in the browser, the terminal or tix task add --parse.

For teams

Multi-tenant, with domains mapping to tenants, and global admins who create tenants with their first admins and manage every tenant from the CLI, the API or the browser. Isolation does not depend on somebody remembering a WHERE clause: 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, six 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|ndjson, -o csv for task listings, 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
MCP tix mcp serves every JSON operation of the API as a tool, generated from its OpenAPI document

What else is in the binary

An inbox of mentions, assignments, comments and status changes, statistics, tenant theming, a ctrl+k command palette in the browser, an actor directory, multi-step status moves, bulk actions, CSV export, tasks that repeat when they are done, quick-add syntax, Markdown descriptions with checklists you tick in place, 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
Browser, one lane per project Browser, a task
Lanes view in the browser Task detail in the browser

Quick start

tix init                       # a local database on this machine; or connect to a server:
# tix ctx add work --server https://tix.example.com --token "$TOKEN" --use
tix whoami                     # where commands go: the server, or the local database path
tix task add "buy milk"
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

With nothing configured, tix asks on a terminal and refuses elsewhere rather than creating a local database by itself; an existing database at the default path keeps working as before (docs/configuration.md). 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.8.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/mcp.md tix mcp: the API as MCP tools, the overlay, scopes and destructive tools
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 api embeds the generated OpenAPI document of the HTTP API, so the server describes exactly the binary it is.
Package api embeds the generated OpenAPI document of the HTTP API, so the server describes exactly the binary it is.
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.
changelog
Package changelog reads the release-please changelog this binary was built with.
Package changelog reads the release-please changelog this binary was built with.
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.
handoff
Package handoff writes the text that hands one task to a coding agent: a prompt for an agent driving the tix CLI, the same prompt for one holding the tix MCP tools, and the command that starts each documented client on it.
Package handoff writes the text that hands one task to a coding agent: a prompt for an agent driving the tix CLI, the same prompt for one holding the tix MCP tools, and the command that starts each documented client on it.
httpapi
Package httpapi serves the tix REST API and event stream.
Package httpapi serves the tix REST API and event stream.
i18n
Package i18n holds the browser interface's message catalogs and picks the language a request is answered in.
Package i18n holds the browser interface's message catalogs and picks the language a request is answered in.
ical
Package ical renders a calendar feed as an RFC 5545 VCALENDAR.
Package ical renders a calendar feed as an RFC 5545 VCALENDAR.
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.
markdown
Package markdown turns task descriptions and comments into safe HTML and reads and ticks the checklist a description carries.
Package markdown turns task descriptions and comments into safe HTML and reads and ticks the checklist a description carries.
mcp
Package mcp serves the tix HTTP API to Model Context Protocol clients as tools generated from the OpenAPI document, so an agent's tools are the API and cannot drift from it.
Package mcp serves the tix HTTP API to Model Context Protocol clients as tools generated from the OpenAPI document, so an agent's tools are the API and cannot drift from it.
onboard
Package onboard builds the commands and configuration snippets that connect a CLI, an MCP client or an agent to one tix server.
Package onboard builds the commands and configuration snippets that connect a CLI, an MCP client or an agent to one tix server.
openapi
Package openapi generates the OpenAPI 3.1 document of the HTTP API from the capability registry, so the document cannot describe a route the server does not register or miss one it does.
Package openapi generates the OpenAPI 3.1 document of the HTTP API from the capability registry, so the document cannot describe a route the server does not register or miss one it does.
openapi/gen command
Command gen writes api/openapi.yaml and the routes table of docs/api.md from the capability registry.
Command gen writes api/openapi.yaml and the routes table of docs/api.md from the capability registry.
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.
presence
Package presence keeps a running server's row in the installation's registry of server processes fresh, so a reader anywhere can tell how many servers are up.
Package presence keeps a running server's row in the installation's registry of server processes fresh, so a reader anywhere can tell how many servers are up.
proxyproto
Package proxyproto parses the PROXY protocol headers an L4 proxy prepends to a connection to name the client it is relaying.
Package proxyproto parses the PROXY protocol headers an L4 proxy prepends to a connection to name the client it is relaying.
qr
Package qr encodes a short string as a QR symbol.
Package qr encodes a short string as a QR symbol.
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.
quickadd
Package quickadd reads one line such as "Fix login !high #auth @raj due:fri" into a task title and the attributes it names.
Package quickadd reads one line such as "Fix login !high #auth @raj due:fri" into a task title and the attributes it names.
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.
sshlogin
Package sshlogin is the client half of signing in with an SSH key: finding the keys a person holds, signing the server's challenge with each in turn, and stopping at the first one the server accepts.
Package sshlogin is the client half of signing in with an SSH key: finding the keys a person holds, signing the server's challenge with each in turn, and stopping at the first one the server accepts.
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