Repository navigation
Releases
ThinkThen 0.2.0
ThinkThen 0.2.0
Ask typed questions about records from Python, TypeScript, R, Go, Java, Kotlin, C#, C, C++, Rust, Swift, Zig and Ruby. Use the thinkthen command or query DuckDB, SQLite and PostgreSQL. Work with pandas, Polars and R data frames. Read and write CSV, TSV and Excel files. Run saved questions and steps from toolboxes with thinkthen run.
Install
Install the command on Linux or macOS with curl -fsSL https://thinkthen.dev/install.sh | sh. On Windows PowerShell, run irm https://thinkthen.dev/install.ps1 | iex.
The installers add their command folder to your user PATH for new terminals. Set THINKTHEN_NO_MODIFY_PATH=1 for print-only PATH instructions. The receipt lists any shell profile or registry changes.
Download the command, C, C++ and Zig archives from GitHub Releases. Verify SHA256SUMS before extracting an archive. The platform package archives also contain offline installation commands in INSTALL.md and package READMEs.
Package-site installation follows publication of 0.2.0 on each site. Use PyPI thinkthen for Python, npm thinkthen for TypeScript, RubyGems thinkthen for Ruby, NuGet Botassembly.ThinkThen for C#, and Maven Central io.github.botassembly:thinkthen-java or io.github.botassembly:thinkthen-kotlin for Java or Kotlin. Install the command with brew install botassembly/thinkthen/thinkthen. Install R thinkthen from https://botassembly.r-universe.dev. Use the Go module github.com/botassembly/thinkthen/sdk/go/thinkthen at v0.2.0. Select version 0.2.0 with Swift Package Manager. Rust users add the thinkthen library from crates.io with cargo add thinkthen --no-default-features and install its command with cargo install thinkthen.
Download the DuckDB and SQLite extensions from GitHub Releases. PostgreSQL ships in the platform package archives for Linux x86-64 and arm64 servers running PostgreSQL 18 with glibc 2.28 or later. PGXN installation and the DuckDB community listing are outside this release.
For 0.1 users
Version 0.2.0 changes the command and SDK APIs and provides no compatibility shims. Update scripts and callers against the current surface guides. It does not include the Ada, COBOL, Dart, Objective-C, PHP or Scala bindings.
The commands status, check, cache and transform are removed. This includes the old cache prune, cache unused and cache convert subcommands and their --max-size, --older-than, --answered-by-other-than, --used and --quote options. Rewrite those workflows with the current commands and ordinary file-processing tools.
Use --json for detailed JSON answers; the output schema changes, so update consumers of the old detailed result objects. Current --details adds status, probability, error, detail and source columns to table answers. Input paths are positional instead of --input. Replace --lines, --jsonl, --csv and --tsv with --from lines, --from jsonl, --from csv and --from tsv. Use --field with a JSON Pointer such as /text to select a value within each record.
For decision bands, --threshold LOW:HIGH becomes --low LOW --high HIGH. Ordinary commands exit 0 for answered or unsure results; add --check to decide, filter, choose or find when a script needs verdict exit codes. Replace --batch max with a numeric batch size; --batch now takes a record count. Score now returns a number from 0 to 1 rather than from 0 to the number of levels minus one.
The options --on-error, --plan, --dry-run, --timeout, --profile, --max-requests-total, --max-estimated-input-tokens-total, --facts, --context, --jobs, --max-retries, --max-request-bytes and --max-text-bytes are removed. Remove them from scripts and review request limits and error handling against the current API.
The old answer and question options --raw, --option, --options, --relation, --relation-threshold, --kind-field and --none are removed. For decide and filter, --yes-means TEXT and --no-means TEXT describe what yes and no mean. Supply choices with --choice and scale levels with --level; --label and --kind take names rather than the old NAME=DESCRIPTION syntax. For choose and tag, add --describe LABEL=TEXT after supplying that label, for example --choice billing --choice shipping --describe "billing=About charges". The per-record --options pointer has no direct replacement; construct a current question for each required option set. Use --rule SOURCE TARGET RELATION for relations. Rewrite saved question files and @FILE callers as current toolboxes and thinkthen run entries.
--quiet suppresses answers, JSON rows, notices and progress; failure diagnostics still reach standard error. Remove it when capturing answers. Use --check --quiet when a supported command should communicate only through its exit code, and handle false/none (1), unsure (3) and failures separately.
Find changes its input unit: 0.1 selected a candidate record from the whole input; 0.2 selects a line within each record. Pack each candidate set into one document and retain a Unicode-scalar span-to-ID map, including duplicate display text. Multiline or blank candidates need an explicit single-line encoding; blindly joining their original text changes the choices. None is always available and must reach the same threshold as a line. An answered null means none; unsure and failed do not. Old thresholds and model-quality results do not establish parity for the new presentation. See the candidate-set migration example.
Audit and diff are available as offline tools with new 0.2 formats and syntax. Use thinkthen audit ROWS --manifest RUN.json --key GOLD.jsonl for saved decide/filter, choose and find rows. Compare actual runs with thinkthen diff LEFT --left-manifest L.json --right RIGHT --right-manifest R.json; add --key GOLD.jsonl for correctness. Threshold-only diff uses thinkthen diff ROWS --manifest RUN.json --threshold P (or --low L --high H) and supports decide/filter only. Create manifests and labels from current typed rows; old detailed rows, keys and recordings are not accepted as current data. The old analysis options --by, --id, --seed, --target, --optimize, --write, --write-to, --match, --curve, --pooled, --table, --cases and --compare-threshold are gone; audit no longer accepts --threshold. These tools preserve missing/unsure/failed cases, make no model calls, recommend no threshold and change no settings. See the offline audit and comparison guide.
Use --usage for observed request/token accounting on stderr and --max-requests N to cap actual send attempts for one command invocation, including retries, splits and saved function steps. SDK allowances belong to an explicit client; SQL does not inherit them. Unknown tokens remain unknown, and the allowance is not a token or invoice cap. File recovery retains completed typed rows: thinkthen recover FILE exports them without a key or model call. Recovery is not automatic resume, and an ordinary rerun spends again. See the usage and recovery guide.
Intel macOS and static musl Linux builds are no longer supplied. Use Apple Silicon on macOS and glibc Linux builds with glibc 2.28 or newer; Swift has the separate floor listed below.
The service backend names are now systemone and openai. The 0.1.2 names typesafe, liquid and ollama are no longer built in. Select systemone for the default System One service and configure your client again for the selected backend.
Maven users replace io.github.botassembly:thinkthen-jvm with io.github.botassembly:thinkthen-java or io.github.botassembly:thinkthen-kotlin. Rust users use the single thinkthen crate for both the library and command. The Rust features polars, bundled-sqlite and host-sqlite are removed. Its default command feature replaces the old cli feature; the command installs with cargo install thinkthen.
Go users replace imports of github.com/botassembly/thinkthen/libraries/go with github.com/botassembly/thinkthen/sdk/go/thinkthen. Language packages now carry their matching native engine; do not mix them with the separate native library from 0.1.2.
The 0.1.2 default answer cache and old --record, --replay, --cache, --no-cache and --refresh-cache spellings are removed. 0.2 keeps no answer cache, so each run calls the service again. To reuse answers, save --json rows to a file or a table.
Results now have three states: answered, unsure and failed. Read the explicit answer in each SDK and handle no answer as its own path. State checks, printing and saving do not read the answer. Filter takes one threshold, returns only the original records kept and raises after any failed records; its former every-record JSON view and two-bar form are removed. Use decide collections when each record and its uncertainty must remain visible. Produced failed results, including a service outage, make the command exit 6; a call refused before producing a result retains its call-error exit code.
Use the current surface guides when updating callers. The command selects a backend with --backend and structured output with --json. SDKs expose typed single-record results and collection APIs; compile callers against the current API and its matching native library.
THINKTHEN_URL sets only the System One address, taking precedence over THINKTHEN_BASE_URL. OpenAI reads OPENAI_BASE_URL. An explicit --url or SDK Settings.url overrides the address for the chosen backend, including when THINKTHEN_BACKEND chooses it. THINKTHEN_MODEL applies only to commands; in an SDK, set the model on your client.
Known limits
Ba...