Repository navigation
Taskix Manager
One plugin package connects Codex, Claude Code, Pi, Oh My Pi (OMP), and OpenCode to the independent taskix task board. Lifecycle configuration is bundled; do not copy it into each project's settings.
Hosts stage visible user prompts and agent replies in SQLite session drafts before a Job exists. Codex/Claude stage the current transcript turn at the first tool call and refresh it on Stop, interruption, and session end; Pi/OMP stage the prompt before execution and replies at agent_end. Agentix also stages native user items and completed turns. Stable turn/message IDs prevent duplicate capture across retries and cooperating entrypoints. Tool calls/results, reasoning, and injected host context are excluded by the standalone plugin. Codex/Claude file-transcript reads remain bounded to the current turn, using backward 64 KiB chunks. OpenCode stages delivered native users and assistant text at native execution boundaries, preserving unfinished continuation context in plugin storage.
When discussion leads to implementation, the agent selects the related pending turns and attaches them atomically on Job creation or follow-up, or explicitly to an ACTIVE Job. The generated Conversation preserves the selected original inputs and replies in order, including superseded alternatives and Codex Plan-mode questions and answers. A new Job's Prompt comes from the earliest selected request; follow-up preserves its original Prompt. Unrelated turns remain pending. Discussion alone produces no Job note. Drafts survive restart and expire after 30 days of session inactivity; recorded Job history is retained. Existing Jobs are not scanned or backfilled automatically. Upgrade Taskix, this plugin, and Agentix together. See conversation capture.
Before the lifecycle write, the packaged discussion.mjs helper classifies pending turns against the final delivery target. It uses the same opt-in decision service settings below, sends full candidate messages rather than excerpts, and never writes task state. The current turn is always included. Disabled decision service, uncertainty, errors, incomplete candidate pages, more than 24,000 bytes of context, or the eight-second deadline defer to the agent, which reads the original pending turns. The helper rechecks candidate and target revisions and returns guarded write arguments. Creation also binds the classified title, goal, and current prompt with a fingerprint. A changed target requires reassessment. Its metrics are recorded separately from prompt-time Job routing.
The built-in providers are typesafe (Jev), openai, and google (Gemini).
Gemini requires a Taskix Manager build that includes the Gemini adapter.
See Decision Providers for configuration examples and
migration instructions.
The decision service can classify each user prompt in the host before the coding agent runs. It is opt-in; the existing Agent-driven workflow remains the default. Set these variables in the environment inherited by the host and its hook subprocesses:
set -gx TASKIX_DECISION_ENABLED true
set -gx TASKIX_DECISION_PROVIDER typesafe
set -gx TASKIX_DECISION_PROTOCOL typesafe
set -gx TASKIX_DECISION_API_KEY YOUR_API_KEY
# Optional:
set -gx TASKIX_DECISION_MODEL jev-latest
set -gx TASKIX_DECISION_MIN_CONFIDENCE 0.65| Variable | Behavior |
|---|---|
TASKIX_DECISION_ENABLED |
Only true or 1 enables routing, case-insensitively. Default: disabled. |
TASKIX_DECISION_PROVIDER |
Provider identity, default typesafe. Built-ins are typesafe, openai and google; custom names match [a-z][a-z0-9_-]{0,63}. |
TASKIX_DECISION_PROTOCOL |
typesafe, openai_decisions or gemini. Defaults from the built-in provider; required for third parties. Selects serialization, independently of provider identity. |
TASKIX_DECISION_URL |
Optional full HTTP(S) endpoint override without embedded credentials. Typesafe defaults to https://api.typesafe.ai/v1/systemone. OpenAI defaults to https://api.openai.com/v1/decisions. Google defaults to https://generativelanguage.googleapis.com/v1beta/models/{model}:generateContent. Defaults apply to matching built-in pairs. |
TASKIX_DECISION_API_KEY |
Key sent as x-goog-api-key for Gemini or as a Bearer credential for the other protocols. The matching Google and OpenAI built-ins can fall back to GEMINI_API_KEY and OPENAI_API_KEY, respectively. |
TASKIX_DECISION_MODEL |
Defaults for matching built-in pairs are jev-latest, gpt-6-luna and gemini-3.8-flash, respectively. For a custom Gemini endpoint, use a URL that selects the configured model. |
TASKIX_DECISION_MIN_CONFIDENCE |
Defaults to 0.65, valid range 0.5–1. Both confidence and selected-option probability must meet it; the winning probability must also exceed the runner-up by at least 0.2. |
Disabled routing or incomplete or invalid configuration uses the original
workflow without a decision service request. Network/HTTP/JSON errors, an eight-second routing
deadline shared by prompt preparation (including hook heartbeat, context and transcript reads),
candidate lookup and HTTP/body reading, low confidence, conflicting options, missing context, or stale selected
Job revisions defer to the current Agent. They never mean “create a new Job.”
We recommend the built-in default of TASKIX_DECISION_MIN_CONFIDENCE=0.65.
An explicit environment value overrides it. The historical Typesafe/Jev calibration is in the confidence threshold guide
for the comparison table, provisional error labels, and configuration guidance.
Confidence is a provider statistic, not a measured correctness guarantee;
review representative conversations when tuning the threshold.
The host sends the current prompt, current assignment IDs, recent conversation
excerpts, current-Project unarchived ACTIVE/PENDING_REVIEW Job facts,
Task states and waiting reasons, and available Issue requirements to the configured
endpoint. It does not send task lease tokens or separately collect reasoning, tool output
or source file contents. The current prompt stays verbatim. For each Job, two distinct historical messages are sent in addition to
references to the shared recent session dialogue; old user
messages are limited to 512 UTF-8 bytes and assistant replies to 256 bytes, including
an explicit [excerpt] marker. Repeated current prompts and history already present
in the session excerpt are omitted. Completed/cancelled Task details, filesystem
paths, session identities, and revision metadata stay local. Original Job requirements
and waiting reasons remain available for matching. Missing evidence must select
uncertain; excerpts are not complete conversation records. Prompt-time transcript
reads are limited to 256 KiB; unreadable or oversized current-turn history defers
to the Agent. When only older optional turns exceed the read budget, routing
retains already parsed visible messages, even if their turn boundary is outside
the window. Incomplete JSON records are discarded.
Abort and I/O errors still defer. Stop-time conversation recording retains its existing behavior. More than
32 candidate Jobs, 256 unfinished candidate Tasks, or 32 Issue candidates, or a full serialized
request exceeding 30,000 UTF-8 bytes (including model, state, and questions),
defers to the Agent without silently dropping candidates. Taskix state remains
local and authoritative. The 30,000-byte total-request guard remains a conservative shared policy for both protocols. It is not an exact tokenizer count and does not use a characters/4 estimate. Over-budget prompts
return to the main Agent without HTTP; they are never silently cut to fit. Prompt preparation uses one taskix routing snapshot --session SESSION_ID
process to import scoped Issue edits, renew ownership, and read bounded assignment, Issue,
and candidate facts. Candidate Jobs and Tasks use two SQL queries in one read
transaction. A selected Job is checked with
taskix routing revision JOB_ID, which excludes prompt and conversation bodies.
This makes one CLI call per prompt, or two when revalidating a selected Job.
taskix routing candidates PROJECT_ID remains available for candidate diagnostics;
candidate and revision commands require exact IDs. SQL bounds Job title/prompt/goal to 300/4,000/2,000
characters, each recent message to 2,000, and Task title/reason to 300/1,000;
Truncated requirements or waiting reasons mark the snapshot incomplete and defer classification. Historical messages carry an explicit excerpt marker; long historical replies alone do not invalidate candidate coverage. DONE and CANCELLED Tasks do not consume the unfinished-task budget.
Enable decision evaluation with a matching taskix CLI; older CLIs defer to the original Agent workflow.
See the TypeSafe API for
the request and response contract.
The repository document docs/task-routing-performance.md contains repeatable
local benchmarks, process counts, and measurement boundaries.
Routes are followup, resume, new_job, discussion, approve, reject,
cancel, and task_action, with an explicit
uncertainty option. Waiting Tasks are found through ACTIVE Project Jobs even when
context.previous_job is empty. A confident result contains only the selected
Job/Tasks and the matched Issue ID. Model-visible excerpts include up to 2,000 prompt
characters, 1,000 Goal characters, the last two messages (1,000 characters each),
and up to eight unfinished Tasks with a total Task count. Truncation is explicit;
the Agent can fetch complete details with job show / task list / task show. An existing owned assignment cannot be silently
redirected. The Agent still issues guarded taskix lifecycle commands, including
job followup; the decision service never writes state, approves work, claims tasks, or starts additional execution. The original prompt, review policy and dependency rules remain in force.
Codex/Claude run this at UserPromptSubmit; Pi/OMP use before_agent_start. With
valid decision service configuration, SessionStart gives a short session notice. After prompt
routing, Codex/Claude suppress repeated workflow/Issue injection during tool calls,
including when the Agent received a fallback at prompt entry. Cancellation notices
and lease heartbeats remain active. Routed tool hooks reuse the heartbeat's live
cancellation facts and skip the additional context process. Older CLI versions
without cancellation facts retain the context check. Disabled or incomplete decision service
configuration makes UserPromptSubmit return without a taskix CLI call.
A private, expiring receipt in the OS temporary
directory coordinates separate hook processes; it contains only a turn identifier
and expiry. Session start/end, interruption, Stop, and the next prompt clear it.
A missing/unreadable receipt or a different Codex turn uses the legacy tool notice.
Hosts must load the new prompt hook; previously loaded plugin code is not hot-replaced.
The decision service remains the first routing step. When it is uncertain or fails, the hook returns
bounded summaries directly to the current main Agent; no classifier subagent or
private delegation snapshot is used. The routing fallback is capped at 12,000 UTF-16 code units, excluding host discussion
and cancellation notices, and includes assignment and candidate references.
It is not complete evidence: the Agent reads omitted facts through taskix context
and issue show / milestone show / job/task show before selecting ownership or Issue matches. Existing assignment,
claims, execution plans, dependencies and review policy still apply.
Before fallback followup, the main Agent reads the selected Job's current revision
and supplies --expect-revision. Decision service success instructions also bind the observed
revision. A conflict requires reassessment, never dropping the guard. Disabled
routing keeps the original context format. Install the updated plugin and reload
the host to replace previously loaded delegation instructions.
Collection is independent of the decision enable switch and the HTTP exporter.
Metrics v3 adds provider/protocol identity; historical v1/v2 rows map to
typesafe / typesafe. Readers support all three versions without migration;
writes migrate atomically and preserve labels. Upgrade CLI, plugin and memory
service together, because older binaries reject v3. Reports add by_provider
and by_provider_kind, shown under --details; list includes both identities.
The plugin only collects and appends observations; taskix owns reports and human labels. The versioned storage protocol defines their shared contract. Unknown or nonempty unversioned databases are rejected without migration; preserve old development statistics and choose a fresh database path for v3.
Statistics are disabled by default, independently of decision service routing. Enable them in its host process environment before starting/restarting the host:
set -gx TASKIX_DECISION_METRICS_ENABLED true
# Optional: use an absolute path to a separate statistics database.
set -gx TASKIX_DECISION_METRICS_DB "$HOME/.local/state/taskix/decision-metrics.sqlite"Only true (case insensitive) or 1 enables writes. Unset/false skips metric
collection, SQLite loading, directory creation and database access. The decision service itself must
also be enabled with valid configuration. Recording starts with subsequent prompts;
there is no historical backfill. Tool heartbeats do not
write routing statistics. The default database is
$XDG_STATE_HOME/taskix/decision-metrics.sqlite, or
~/.local/state/taskix/decision-metrics.sqlite when XDG_STATE_HOME is unset. It is separate
from the Taskix task database. Existing jev-metrics.sqlite files are not
automatically moved or selected; set TASKIX_DECISION_METRICS_DB to their path
to keep using historical observations. Newly created directories/files use 0700/0600 modes.
Each prompt records a generated request ID, timestamp, host session/turn when available, Project ID, provider, protocol, model, configured threshold, preparation duration, whether HTTP was attempted, whether the route was accepted, and fallback reason. Each route/Issue answer records its known choice, Issue ID, confidence, selected-option probability, runner-up margin, validation status and rejection issue. It stores no prompt/history/Issue bodies, API keys, endpoint URLs, leases or raw model response. Metrics stay outside injected Agent context.
Use the taskix CLI from any directory; no task database initialization is required:
taskix routing metrics report
taskix routing metrics report --details
taskix routing metrics report --json
taskix routing metrics list --limit 50
taskix routing metrics label REQUEST_ID correct
taskix routing metrics label REQUEST_ID incorrectThe default report uses a compact table for routing, discussion ownership,
recovery, outcome, review policy, completion and memory triage. A second table groups individual
questions, combining the Issue match and discussion-turn indices. Request acceptance
and question score-gate pass rates are separate; neither is human-reviewed
accuracy. Use --details for fallback reasons, issues, model/threshold totals,
reviewed accuracy and all ten score gates; JSON retains full data and adds
by_kind and by_question. The standard summary fits an 80×24 terminal.
Collection remains opt-in. The writers migrate v1/v2 metrics to v3 atomically,
preserving routing history and labels; the new CLI reads v1/v2/v3 without
migration. Upgrade CLI and plugin together. Past unrecorded lifecycle assessments
cannot be recovered from the old database.
The seven runtime kinds are routing, discussion, recovery, outcome,
review_policy, completion and memory_triage. Issue association is an
issue question inside routing, not an additional provider request. All host
integrations use the shared collectors; memory triage writes the same database
protocol from the memory service.
Only kinds with retained samples appear in the report. Enable both
TASKIX_DECISION_ENABLED and TASKIX_DECISION_METRICS_ENABLED in the host and memory-service
processes, using the same TASKIX_DECISION_METRICS_DB to combine their observations.
Invalid/disabled decision service configuration and deterministic discussion selection without
an evaluation do not generate records. Provider errors and preflight fallbacks
are counted when collection is enabled, but bounded best-effort writes can drop
samples. Offline replay/evaluation scripts keep separate results; extraction and
consolidation calls to the memory model are not decision service calls.
New integrations use the shared metrics collectors rather than writing SQL.
JavaScript uses withJevMetrics(..., callback, kind) / measureDecision; Rust
uses typed DecisionMetric and AnswerMetric with MetricsCollector::record.
Kinds are stable identifiers matching [a-z][a-z0-9_]{0,63}, with no type
whitelist. Standard report tables discover new kinds and questions automatically.
Collectors preserve the v3 schema, atomic multi-answer writes and the 250 ms
best-effort budget. See the developer integration guide
for ownership of timing, validation, nested calls and fallback outcomes.
Add --json for the standard taskix response envelope. Reports display text
tables by default; list/label use the standard human-readable JSON display.
Queries use the same TASKIX_DECISION_METRICS_DB setting; reading an absent database
fails instead of creating one. list shows the latest 50 requests and their
question scores; use session/turn/time to locate the corresponding conversation.
report groups adoption and reviewed accuracy by model and configured threshold,
lists fallback/question issues, and compares all-question score gates at
0.50 through 0.95 in 0.05 increments. response_quality gives valid-response and low-confidence-response
counts: divide the latter by the former for the fraction of valid responses with
at least one low score. A failed Issue answer can cause the entire prompt to defer.
Score-gate passes are not predicted adoption: later assignment/revision checks
might reject, and missing/invalid/uncertain answers cannot be fixed by lowering a
threshold. reviewed_accuracy measures only manually labeled accepted requests;
without labels it is null, not 100%. Label the correctness of the complete proposed
route and Issue selection, not agreement with another model. Review both accepted
and deferred samples before changing thresholds.
Writing uses one transaction per assessment in a dedicated worker and closes the connection afterward. The worker receives only sanitized metrics, with an empty environment; no API key or prompt is transferred. SQLite lock waits use a 25 ms busy timeout. The parent waits at most 250 ms for worker startup and persistence, then requests termination and continues without awaiting OS cleanup. This bounds parent waiting under normal event-loop scheduling, not physical disk completion. Failures skip the sample with a generic stderr notice and never alter routing. The report labels duration_ms as PREP_MS: preparation and decision service time, excluding statistics writing and native subagent work. Reports describe successfully stored
samples, so dropped writes can bias them. No automatic retention/deletion is
performed; disable collection when finished. The query tool adds no model calls.
OpenCode 2.0.32+ loads the Taskix server plugin separately from the Agentix TUI bridge. Install both directly, without cloning Agentix:
opencode plugin add 'github:tenfyzhong/agentix#main::path:plugins/taskix-manager'
opencode plugin add 'github:tenfyzhong/agentix#main::path:plugins/agentix-bridge'Use opencode plugin update for updates. For a persistent server-plugin load failure, finish active turns, run opencode service restart, then reopen the TUI; --standalone sessions only need their terminal process restarted. See the OpenCode guide for configuration paths, migration helpers and removal.
The plugin exposes the structured taskix tool, adds the bundled workflow skill to native discovery, routes native prompts before execution, and maintains independent lease state for each native session. It shares delivered native inbox/user IDs with Agentix Bridge, so identical real prompts and attachments remain distinct and compaction entries do not create duplicate users. Prompt admission only stages context; native delivery activates the Taskix turn. Minimal active ownership/context persists in native plugin storage for process restart and compacted-history recovery. The direct Taskix tool keeps a unique native call ID for each operation. Optional decision service settings and guarded Task/Job commands remain shared with the other hosts.
See Plugin installation for installation, update and removal commands for all six hosts.
Install Node.js 24+ and put taskix on PATH. Initialize taskix with your chosen document directory before enabling the plugin. Set TASKIX_CONFIG if its configuration is not in the default location.
The plugin uses only Node built-ins and plain JSON Schema for Pi/OMP tools.
Directory, Git marketplace, and npm package installations run without installing
npm dependencies, vendored libraries, build steps or lifecycle scripts. Node.js
and the taskix executable remain external prerequisites.
The repository provides the agentix marketplace in .agents/plugins/marketplace.json. Add the GitHub repository, then install the plugin:
codex plugin marketplace add tenfyzhong/agentix --ref main
codex plugin add taskix-manager@agentix
codex plugin listStart a new Codex thread after installation, then use /hooks to review and trust the bundled hooks. Installation does not bypass hook trust. See Codex marketplace commands and plugin commands.
The repository also provides .claude-plugin/marketplace.json with the same marketplace and plugin names. Run these commands in your terminal:
claude plugin marketplace add tenfyzhong/agentix
claude plugin install taskix-manager@agentix
claude plugin listInside Claude Code, the equivalent commands start with /plugin. Reload plugins if the host requests it, and review the discovered hooks with /hooks. See Claude Code marketplace installation.
Both hosts fetch the marketplace catalogs from GitHub. Source checkouts contain both catalogs; taskix-* release archives provide the plugin directory, not a marketplace root. The agentix-* archives do not include the plugin. Both hosts load the shared hooks/hooks.json; Codex additionally loads hooks/codex.json, and Claude loads hooks/claude.json. No per-project hook files need to be copied.
Failed command hooks exit with code 1 and print the underlying error to stderr,
including the Taskix command words when a CLI call fails. Taskix JSON error
messages take precedence over subprocess stderr. Hosts may display only a generic
hook failure, so the entrypoint also appends a JSON line to
$XDG_STATE_HOME/taskix/hooks.jsonl, or ~/.local/state/taskix/hooks.jsonl when
XDG_STATE_HOME is unset. Stderr includes the log path after a successful write.
Each entry records the timestamp, hook event, session ID, working directory, command words, available exit code or spawn error code/signal, and error message. The logger does not copy the event payload, transcript, environment, or complete CLI argument list. Error messages can contain local paths or subprocess-provided details; newly created log files use owner-only permissions. The file is append-only and can be removed or rotated when needed. Log write failures are reported to stderr without replacing the original failure. Successful hooks do not write this error log. Failures before the entrypoint loads, or processes forcibly killed by the host timeout, cannot be captured by this handler.
Install the package directly from GitHub:
pi install git:github.com/tenfyzhong/agentixPi manages the Git checkout and installs npm dependencies automatically. The repository-root package.json selects the plugin's Pi extension and shared skills; its npm workspace installs the plugin's runtime dependencies. Restart or reload Pi after installation. See Pi package installation.
Keep only one Agentix installation enabled in Pi. Installing the GitHub package while a local checkout is still registered can produce Tool "taskix" conflicts with .... Remove the old checkout with pi remove /absolute/path/to/old/checkout, then restart Pi. This removes its registration without deleting the source files.
Project-local installations created with pi install -l must be removed with pi remove /absolute/path/to/old/checkout -l in that project.
Install the extension package directly from GitHub:
omp plugin marketplace add tenfyzhong/agentix
omp plugin install taskix-manager@agentix
omp plugin install agentix-bridge@agentixOMP installs the plugins from the same marketplace used by Claude. The marketplace selects plugins/taskix-manager/ and plugins/agentix-bridge/; each plugin selects its OMP extension through omp.extensions. OMP discovers plugins/taskix-manager/skills/, so all hosts use the same workflow and reference files. No repository-root skill copies are required. No checkout or Make is required. To update, run omp plugin marketplace update agentix, then repeat both install commands with --force. Remove plugins with omp plugin uninstall taskix-manager@agentix and omp plugin uninstall agentix-bridge@agentix. Restart OMP after installation or update. The native marketplace follows the default branch; the non-main developer Make helper retains a managed branch checkout because OMP has no native branch selector.
If skill://taskix-manager reports Unknown skill while the taskix tool is available, remove the old root package with omp plugin uninstall agentix-plugins, install the marketplace plugins above, and restart OMP. In a new session, check /status for the skill and read skill://taskix-manager and skill://taskix-manager/references/commands.md. Older repository packages placed skills only below plugins/taskix-manager/, outside OMP's discovery root.
Taskix Manager needs no additional npm dependency installation. The separate Obsidian skill is still required when an agent edits Obsidian Plan/Notes bodies.
Obsidian uses Dashboard.base for a compact project table showing clickable names, status, and recent activity, sorted newest first. Formula columns keep the displayed state read-only. Archived projects are hidden and their complete note folders move to documents.archive_directory (default Archived Projects) under the document output. Taskix Sync offers Archive project / Restore project on the Board or project folder context menu. Sync publishes this Base before removing the old generated Dashboard.md; unrelated same-name files are preserved.
Generated Markdown documents use readable names, YAML frontmatter and type tags; Dashboard.base uses native Base YAML with a generated-file comment. Job and Task note filenames include a stable YYMMDD-seq- prefix, with separate daily counters per project and type; taskix assigns these automatically. Each Task has one Markdown note in the project’s Tasks/ directory, even before planning. Frontmatter records task status and metadata; the body is freely organized by the agent. Task timestamps use the computer’s local time zone and revision is the sole document revision field. Plan commands update that body in place. Jobs directly link Task notes, while Board embeds native Bases Kanban views (Obsidian 1.14+). Agents choose concise Job/Task names with --name. Unarchived Jobs are stored directly in Jobs/; archived Jobs are stored in Jobs/Archived/. Completed Tasks remain on the Board until their Job is archived. taskix job delete JOB_ID permanently deletes the Job and its Task notes; taskix project delete PROJECT_ID removes all project work and its entire generated project directory. Release active Task leases first; remove dependencies from surviving Jobs before deleting a Job. sync retries interrupted file cleanup. TASKIX_LANG=zh-CN tells the skill to decompose tasks and author names, goals, Notes, and Plans in Chinese. Hooks and extensions expose this preference as task_language in agent context. Unset or blank defaults to English; other languages such as ja are supported by the agent. taskix has no language setting and renders fixed English labels. See the native Bases guide for the generated status groups.
The shared Skill uses claim → Plan → start → execute/verify → done. Claim reserves PLANNING before the agent drafts a Plan; Plan publication requires the current lease. Start checks the Plan and dependencies and switches to EXECUTING with the same token. Pi/OMP/OpenCode resolve unambiguous Task prefixes and automatically attach the lease to owned Task/Plan writes and an idempotency key to metadata mutations, including Job/Project deletion. Retrying the same delete call returns its committed result without deleting twice or adding duplicate events. Codex/Claude shell calls supply them explicitly.
| Trigger | Behavior |
|---|---|
Codex/Claude SessionStart
|
Restore eligible Tasks to PLANNING with a new token; inject full context by default or a short notice with decision service enabled |
Codex/Claude UserPromptSubmit
|
Optionally classify ownership with decision service and inject selected context or Agent fallback |
Codex/Claude PreToolUse, PostToolUse
|
Renew leases and surface human cancellation facts |
Codex/Claude Stop
|
Renew leases; leave Issues unchanged for explicit user input |
Codex Interrupt
|
Block active Tasks owned by the interrupted session and release their leases |
Claude PostToolUseFailure with is_interrupt: true
|
Release that session’s active leases; ordinary tool failures do nothing |
Codex/Claude SessionEnd
|
Block active Tasks owned by the ending session and release their leases |
Pi/OMP session_start
|
Restore eligible Tasks to PLANNING and start a one-minute heartbeat timer |
Pi/OMP before_agent_start
|
Wait for pending cleanup, restart paused heartbeat, and inject current task facts; never reclaim implicitly |
Pi agent_end + agent_settled
|
Release after an aborted run settles without automatic continuation |
OMP agent_end
|
Release when the latest assistant response is aborted and willContinue is not true |
Pi/OMP session_shutdown
|
Cancel the timer and in-flight heartbeat, then block active Tasks and release leases |
Hook commands resolve CLAUDE_PLUGIN_ROOT or PLUGIN_ROOT inside Node, without shell-specific variable expansion. Paths containing spaces or Unicode remain one filesystem path. Pi/OMP register a structured taskix tool that supplies session, executor, lease token, and idempotency identity.
Renewal and expiry apply during both planning and execution. Recovery does not require a Plan yet and never calls start automatically: the agent must repair/review the current Plan and explicitly start before continuing execution. Hooks never create or revise Plans. Registered Plan files are published through taskix, not overwritten directly by agents.
The shared SessionEnd, Codex Interrupt, and Claude PostToolUseFailure hooks request a three-second timeout; other command hooks allow 30 seconds. If shutdown times out or the process is killed, recovery falls back to the 15-minute lease expiry checked by subsequent task operations. Claude additionally applies a session-exit budget (1.5 seconds by default in current versions); a timeout in plugin hooks does not raise that budget. If cleanup needs more time, launch Claude with CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS=3000. Codex/Claude have no periodic timer, so long tool calls or idle gaps can also expire a lease. Hooks never force task completion.
Codex emits Interrupt when an active main-thread turn is interrupted. The Task becomes system-blocked with reason session interrupted, its Plan is preserved, and its old lease token cannot write. Later heartbeats cannot revive that lease. Recover released Task work through its owning Job and a fresh Task claim; Stop never claims additional work. Existing Tasks still require claim and start. To continue in the same thread, claim again, review the Plan, and start; a later SessionStart can also restore eligible Tasks to PLANNING. Released leases no longer prevent Job deletion, though dependency checks still apply.
Exiting an idle CLI connected to a persistent app-server may only disconnect the client: it does not guarantee Interrupt or immediate SessionEnd. Force-killing the process can also skip hooks. After stopping the agent, explicit cleanup is available with taskix hook session-end --session SESSION_ID; taskix hook interrupt --session SESSION_ID applies the interrupted state. Otherwise expiry remains the fallback. See Codex hook events.
Pi and OMP stop heartbeat timers on detected interruption before invoking cleanup, cancel an in-flight heartbeat without cancelling cleanup, and ignore queued ticks and lifecycle events from the previous session. Cleanup failure keeps renewal stopped and is reported through the host; repeated events can retry. A new prompt waits for pending cleanup before restarting heartbeat; the agent still needs to claim a released Task, review its Plan, and start. Normal replies and automatic continuations retain ownership. Pi requires the agent_settled extension event (present in Pi 0.84.4); OMP requires agent_end.willContinue to distinguish internal retries. These adapters detect aborted assistant results; aborts that produce no such result fall back to session shutdown or explicit cleanup. They do not intercept terminal keystrokes or process signals themselves.
Claude’s PostToolUseFailure adapter only acts on the boolean is_interrupt: true. It is best-effort coverage: Claude has no general Interrupt hook, Stop does not fire for user interruption, and cancelling a running tool does not necessarily emit PostToolUseFailure. Use SessionEnd for actual exit and taskix hook interrupt --session SESSION_ID for explicit cleanup after stopping work when no event is emitted. See Claude hook events and shutdown budgets, Pi extension lifecycle, and OMP extension events. Force-kill, crashes, and older hosts missing these events still rely on expiry.
When updating an existing local marketplace installation, rebuild/install taskix first, then refresh the plugin with codex plugin add taskix-manager@agentix. Codex CLI 0.153.4 refreshes the installed local copy even when the plugin version is unchanged. Start a new thread and use /hooks to review and trust the changed hook configuration, including Interrupt. Source edits alone do not update an installed cache.
An Issue is the durable requirement; each associated Job is an execution round. One Job may reference one Issue or remain independent. Owned association and explicit IM Issue/Job selection take priority. Otherwise the decision service may select one same-Project TODO/ACTIVE Issue; uncertainty returns to the main Agent, which reads its full requirement, acceptance criteria and Milestone context. Association uses revision/content-hash guards. Planning does not activate an Issue; the first successful associated Task start does. Linking an already executing Job also activates TODO. Job delivery never submits or completes the Issue.
Human submission/approval checks meaningful requirement/acceptance and closed related Jobs. Reject with a reason returns to ACTIVE. Cancellation stops unfinished associated work while preserving outcomes; reopening retains history. After the requested result is delivered, wait for human input. Stop/idle never select another requirement. See Project Issues.
See the native Bases setup guide (Obsidian 1.14+) for setup, generated statuses, migration, unlimited Recent Jobs results, and bounded-height scrolling.
Run taskix obsidian setup to install the bundled desktop Taskix Sync plugin and enable native Bases. Board contains a native Job status board above the Task board. Saved status edits are submitted through taskix; rejected changes are restored with a notification. See Obsidian setup and supported edits.
When all non-cancelled Tasks are DONE and at least one exists, the default review_policy: required submits the Job to PENDING_REVIEW. Investigation-only, document-only, and simple git commit/push Jobs use job create/update --review-policy none and complete directly without separate human approval. Mixed Jobs containing code changes retain required. Verification passes with job approve, or fails with job reject --reason to return the Job to ACTIVE while preserving Task outcomes. Use job submit to resubmit ready work explicitly. Update all taskix and Agentix database writers together.
Git and gh delivery requests such as git commit, git push, gh pr create, and gh pr edit also supplement a pending Job when they concern its changes, even if the prompt only says "commit" or "create a PR". Resolve that ownership before creating a Job or choosing a review policy. Use the conversation and repository/worktree evidence to confirm the delivery; if context.previous_job is absent, inspect the current Project with job list --pending-review rather than assuming the request is independent. Tool names alone do not establish relevance. For a match, run job followup before delivery work, then add new Tasks to the same ACTIVE Job with the old Tasks as dependencies. Preserve the whole Job's review policy: a Git-only supplement to an implementation Job still requires review. Only independent operational Jobs use none; unrelated requests and requests after COMPLETED get new Jobs.
A new prompt supplementing a PENDING_REVIEW Job reuses it through job followup JOB_ID --prompt 'Verbatim supplementary request'. Context and hooks expose previous_job as a candidate for the agent to assess; they do not reopen every Job automatically. Follow-up returns the Job to ACTIVE, preserves old Tasks, and makes each newly added Task depend on the snapshot of all old Tasks. Unsatisfied prerequisites still block execution. Independent requests and requests after COMPLETED get new Jobs. The original Prompt is preserved; Conversation records successive Turn N sections, each with User input and Agent output.
Routing includes up to eight recent dialogue messages (8,192 serialized bytes), with 1,024-byte user and 1,536-byte assistant excerpts that retain the beginning and end. Progress updates retain the latest preceding user request even when eight assistant updates would otherwise displace it. Codex/Claude read up to eight turns within the existing 256 KiB limit; Pi/OMP retain eight messages. The complete request remains capped at 30,000 UTF-8 bytes. The latest user and assistant messages also have focused 4,096/8,192-byte excerpts with their matching source Jobs. Leading host plugin catalogs and internal continuation wrappers are removed before extracting visible user messages, while any following real request remains. The previous Job is an explicit hint, not an automatic ownership decision.
The decision service answers intent, ownership and requested work scope (review policy) in one HTTP request. Intent and ownership
must pass the existing score gates. A question about an existing delivery returns
action: discussion with that job_id. The
main Agent receives that Job context without reopening it or creating a Task.
An implementation request referring to the same conversation uses the existing
revision-guarded resume/followup workflow. Discussion drafts are still attached
when work resumes; routing alone does not mutate their ownership. Ambiguity still
falls back to the main Agent. No threshold or statistics configuration is changed.
When a candidate Job contains the same visible dialogue as the recent context,
recent_conversation_indices preserve that source relationship instead of
silently discarding duplicated text. References are zero-based indices into the
final bounded dialogue, recomputed after trimming; multiple matching Jobs remain
visible. They are evidence for the model, not an automatic ownership decision.
A same-session boolean supplies additional evidence without exposing session IDs
or automatically assigning ownership. Route options include bounded Job titles, and instructions distinguish accepting
an earlier implementation suggestion from asking another question about it.
An updated Taskix CLI and plugin can retrieve project decisions from the optional
Taskix memory service.
Export TASKIX_MEMORY_ENABLED=true or 1 to the host, CLI and service, then start taskix memory serve separately. Unset or any other value disables memory.
Hooks read this environment variable directly without parsing TOML.
The memory worker uses independent API credentials; it does not reuse the main
agent's login or context. No additional memory config file is needed.
Codex/Claude prompt hooks and Pi/OMP before_agent_start retrieve at most 6,400
bytes with a 1.5-second deadline, independently of decision service routing. Unset/disabled
TASKIX_MEMORY_ENABLED does not start the memory CLI; unavailable queries fail
soft. Session receipts are recorded by the receiving host and deduplicate unchanged revisions,
including offline FTS fallback. Service-side packet generation does not imply
delivery, so a timed-out response cannot suppress the next turn. Context semantic
retrieval uses at most 750 ms, leaving part of the host deadline for FTS and IPC. Main
agents can use taskix memory search, show and source on demand. Memory is
historical evidence, not permission or task ownership. Normal task capture also
records Project-owned discussions without requiring a Job.
Obsidian memory notes are read-only projections. Local file edits are never
imported; synchronization restores SQLite content. Use memory CLI commands for
changes and forget for removal.
The memory service also reuses TASKIX_DECISION_ENABLED, TASKIX_DECISION_URL,
TASKIX_DECISION_API_KEY and TASKIX_DECISION_MODEL to screen extraction. Memory uses its
own TASKIX_MEMORY_JEV_MIN_CONFIDENCE (default 0.75, range 0.5–1), with no
fallback to the routing threshold TASKIX_DECISION_MIN_CONFIDENCE. When the decision service is disabled, extraction goes directly to the model. Only a valid high-confidence
skip bypasses extraction. Extract, uncertain, low-score, malformed and failed
screening results continue to the extraction model. With the existing metrics environment enabled,
taskix routing metrics report includes memory_triage decisions.
Install both native agy plugins directly:
agy plugin install https://github.com/tenfyzhong/agentix/tree/main/plugins/taskix-manager
agy plugin install https://github.com/tenfyzhong/agentix/tree/main/plugins/agentix-bridgeRestart agy after installation. Native hooks stage explicit user turns and visible replies; the MCP tool binds the original conversation identity, executor and lease. User cancellation and MCP shutdown release ownership. See Antigravity for prerequisites, installation, configuration and acceptance boundaries.
The CLI and Taskix Manager load ~/.config/taskix/taskix.env automatically; inherited variables override file defaults. Resident plugins cache the file until restarted. See Local environment files for syntax and migration.