Repository navigation
Taskix Memory
Taskix remembers reusable project decisions, reasons and rejected alternatives, constraints, external facts and verified lessons that cannot be found in the repository. It keeps evidence and revisions, distinguishes user decisions from assertions, observations and inferences, and does not treat brainstorming as a confirmed decision. Repository facts, progress reports and internal tool chatter are not useful memory candidates.
Supported historical experiences and events with lasting significance can be external facts. Keep their source attribution and date, and distinguish them from claims about current status. A dated historical assertion does not expire merely because the event ended; ongoing external conditions may still need expiry.
Memory maintenance runs in taskix memory serve, a separate process shipped
in the same executable and release as the task board. It uses the same Taskix
configuration file. The service is available on macOS, Linux and Windows. This delivery does not install or launch a
background service automatically.
Initialize Taskix and register the project normally. Add these sections to the
existing ~/.config/taskix/config.toml (or the file selected by TASKIX_CONFIG
or --config):
[memory.providers.openai]
protocol = "openai"
base_url = "https://api.openai.com/v1"
api_key_env = "OPENAI_API_KEY"
[memory.agent]
provider = "openai"
api = "responses"
model = "gpt-6-astra"
# Optional: omit to use the provider default.
reasoning_effort = "low"memory.agent.reasoning_effort accepts none, minimal, low, medium,
high and xhigh. The selected model/provider must support the requested level;
unsupported levels produce a provider error without silently changing the model
or effort. Omission sends no effort setting. Responses receives reasoning.effort;
Chat Completions receives reasoning_effort. This setting applies to extraction,
consolidation, repository review and deep queries. taskix memory reload applies
changes to new work; running loops retain their configuration snapshot.
Export TASKIX_MEMORY_ENABLED=true or 1 to the CLI, agent host and memory
service. Unset or any other value disables memory. Hooks read this variable
directly and skip memory CLI calls when disabled; the CLI uses the same rule.
Provider, embedding, projection and retrieval settings remain in config.toml.
Provide the named provider credential to the service process, then run:
export TASKIX_MEMORY_ENABLED=true
taskix memory doctor
taskix memory serve
# From another terminal in a registered project:
taskix memory status
taskix memory search 'offline deployment'Use a process manager such as launchd or a systemd user unit to run the same
foreground command if desired. Give it an absolute executable/config path and
configure the required provider credentials. On macOS/Linux, memory serve
loads a complete exported environment snapshot from the user's account login
shell using -lc, following Agentix's Codex startup approach. Override the shell
with TASKIX_LOGIN_SHELL, an absolute executable path supplied to the service.
The lookup has a three-second deadline. Failure, missing/malformed framing or a
timeout emits a diagnostic and retains the inherited environment; environment
values and shell output are not logged. Successful snapshots honor shell unset
operations and preserve whitespace and non-UTF-8 environment bytes.
The service then uses exec to restart itself once with the snapshot before
loading configuration or initializing providers. The executable, arguments,
working directory, PID and standard streams are preserved, so launchd/systemd
continue supervising the same process. No global process environment is mutated.
Only memory serve performs this lookup; ordinary commands, diagnostics and
configuration reload do not. Windows uses the environment supplied by its
launcher and does not invoke a Unix login shell.
Memory model, embedding and triage HTTP clients read http_proxy/HTTP_PROXY,
https_proxy/HTTPS_PROXY, and NO_PROXY/no_proxy from this environment. There is no
TOML proxy setting. Ordinary Taskix downloads use the inherited process environment.
See outbound proxies
for examples and bypass rules. Restart the service after changing exported variables.
If Fish is your account login shell, export TASKIX_MEMORY_ENABLED, service API
keys, proxy settings and Jev variables in its configuration with set -gx, outside status is-interactive
guards. Variables set only in an existing terminal are not available to a new
login shell started by a service manager. The main agent's subscription is not
provider authentication. Homebrew formulae can invoke taskix memory serve
directly without a Fish dependency or a shell wrapper.
Ctrl-C stops service background loops; Unix also accepts SIGTERM and Windows accepts Ctrl-Break. Unfinished work resumes after its durable lease expires. One service can manage many Projects; a second process for the same database is rejected.
The default memory path is memory.sqlite3 beside [storage].path. Override
with [memory.storage].path, using a distinct absolute path (~ is expanded).
Keep this database: human edits, lifecycle decisions and suppression markers
cannot be regenerated from conversation history. Indexes and vectors are derived.
The complete configuration example includes all limits. Ordinary board operations ignore memory model configuration. Memory reads load only location/retrieval settings and remain available when model configuration is invalid or the vault is missing. Missing provider credentials leave the service available for FTS and manual edits; maintenance reports its provider error. Invalid full service configuration prevents startup or reload.
taskix memory reload applies a validated snapshot to future work. In-flight
loops finish with their original model/settings. Query admission limits retain
process-wide accounting across reloads. Named providers also share admission across old and new model instances; changing
max_in_flight updates this shared budget. Lowering it lets active requests
finish and withholds new requests until usage falls below the new limit.
Database paths, enabled state and IPC connection/size limits require a restart; an incompatible reload keeps
the running configuration intact. memory doctor checks configuration,
credential availability, database identity and service availability without a
model request. Credential availability in doctor refers to the CLI environment;
service.provider_errors describes the running process. doctor and status
also report an uninitialized database when its parent directory is missing,
without creating that directory.
The memory service reuses the existing Jev connection, enable and metrics environment variables, with an independent memory confidence threshold. There is no separate memory triage configuration section. Supply these to the service process, just as for the host plugin:
| Variable | Behavior |
|---|---|
TASKIX_JEV_ENABLED |
true or 1 enables screening, case-insensitive; otherwise extraction goes directly to the model |
TASKIX_JEV_URL |
Existing Jev evaluation URL, used directly |
TASKIX_JEV_API_KEY |
Existing Bearer credential |
TASKIX_JEV_MODEL |
Defaults to jev-latest
|
TASKIX_MEMORY_JEV_MIN_CONFIDENCE |
Memory-only threshold, defaults to 0.75, range 0.5..1; never reads or falls back to TASKIX_JEV_MIN_CONFIDENCE
|
TASKIX_JEV_METRICS_ENABLED |
true or 1 enables best-effort metrics |
TASKIX_JEV_METRICS_DB |
Existing metrics database override; otherwise the usual XDG state path |
Missing or invalid Jev settings bypass screening without blocking extraction.
Changing a service process's environment requires restarting it. On macOS/Linux,
the restart reads a fresh login-shell snapshot; memory reload updates only the
configuration. Changing a shell or the main agent's environment does not update
an already running service.
Each extraction work item is screened before repository tools or the extraction
model run. Jev receives the full source snapshot and the current chunk; source
text is treated as data. Only a valid skip with confidence and selected
probability at least the configured threshold and a margin of at least 0.2
suppresses the model call. extract continues normally. Uncertain, malformed,
low-confidence or small-margin answers, HTTP errors and the eight-second deadline
all use model extraction. Requests
above 30,000 UTF-8 bytes bypass Jev without truncating decision context; responses
are capped at 1 MiB. Consolidation, repository reviews and queries are not gated.
Screening concurrency is bounded by the existing worker pool.
The screening question distinguishes memory value from task progress. Pure CI updates, delivery receipts, routine operations, injected execution boilerplate, raw tool output and repository-visible implementation descriptions may be skipped. Substantive choices, rationale, external limits, incidents and measurements remain eligible even inside progress updates. The current chunk is the decision target; other source messages only resolve context. Unresolved approvals or missing incident evidence remain eligible for conservative extraction.
Skipping finishes that extraction item with zero candidates. Its source remains stored, and its decision is visible in the work audit. Lease and source-revision checks prevent an old screening result from completing superseded work. This classifier can still make semantic mistakes; score thresholds are not an accuracy guarantee. No observation-only mode is enabled implicitly.
taskix routing metrics report adds the memory_triage request and question
category, plus counts of skip, extract and fallback decisions. --details,
--json and routing metrics list retain confidence, score gates and fallback
reasons. Counts are per work-item evaluation, including retries and chunks, not
unique turns. accepted means the classifier result passed validation; both
skip and extract can be accepted. It does not mean a memory was created or that
a fenced work completion succeeded. Disabled/misconfigured Jev produces no Jev
metric, matching host behavior. Metrics failures never change extraction;
metrics contain identifiers and scores, not conversation text or credentials.
Extraction, consolidation and repository review share [memory.agent]; each
work item and retry starts a fresh Agent context. Clients and connection pools
are reused, conversations are not. Models are called through explicit APIs,
with structured tool responses and application-side evidence validation.
The loop can page through preceding turns in the same Project and session, then
read original messages to resolve references such as "use the second option."
Each task still starts with fresh model context; history is retrieved on demand.
Turn ordering and current source metadata are indexed, including a transactional
backfill when opening an older database. Neighbor lookup returns summaries;
message bodies are read separately when needed.
[memory.agent].extraction_debounce_ms defaults to 1000 (range 0..60000);
zero disables the wait. Claimed extraction waits before Jev or model execution
so rapid revisions can supersede it without paying for a request. Every source
snapshot remains durable. Lease validity is checked approximately every 200 ms;
superseded or expired work drops its running model/tool future. Provider-side
billing may already have occurred. An unchanged message is not treated as a
permanent cache hit: new context can require a new decision. The lease must
exceed the task timeout plus the debounce rounded up to seconds.
api = "responses" and api = "chat_completions" are supported for compatible
models/providers. GPT-6 Astra requires Responses. There is no automatic model
fallback or login-session subprocess.
Embedding is optional. FTS5 supports Chinese segmentation and English identifiers without network calls. Enable semantic recall by adding:
[memory.embedding]
enabled = true
provider = "openai"
model = "text-embedding-3-small"
# dimensions = 1536
batch_size = 16
max_concurrent_projects = 4
request_timeout_seconds = 10For a separately running Ollama embedding endpoint:
[memory.providers.local_embedding]
protocol = "ollama"
base_url = "http://127.0.0.1:11434"
max_in_flight = 2
[memory.embedding]
enabled = true
provider = "local_embedding"
model = "YOUR_INSTALLED_EMBEDDING_MODEL"
# Set query_prefix/document_prefix if that model requires retrieval prefixes.Replace the existing embedding section; TOML cannot declare it twice. The
service does not download Ollama models. Omit api_key_env for an unauthenticated
local provider. OpenAI-compatible embeddings use /embeddings; Ollama uses
/api/embed with truncation disabled. Dimension zero is never an embedding:
omitted dimensions are discovered from the first successful response.
Model, endpoint, dimensions or prefix changes create a new index generation.
Asynchronous results are fenced by generation and memory revision; mixed vectors
are never searched together. Background batches fill the new generation while
FTS stays usable. Search combines independent lexical and exact cosine rankings
with reciprocal rank fusion. Responses report fts, hybrid, fts_fallback,
or offline_fts. status --project PROJECT_ID reports the active profile and
indexed count. reindex rebuilds FTS in bounded pages; changing the embedding
profile triggers its own rebuild. Old vector generations are not used for recall.
Background embedding runs at most one batch per Project and up to
max_concurrent_projects Projects concurrently (default 4, range 1..32).
Admission rotates fairly and completed Projects cool down independently, so
one slow Project does not hold an entire round. Provider max_in_flight still
applies to all requests together. With a provider limit of two or more, background
model/embedding work leaves one slot for online query embeddings. With a limit of
one, active requests are not preempted; a queued query precedes subsequent
background batches. Reserving capacity reduces peak background throughput.
Reload cancels old batches; generation/revision fences remain active.
The Project list refreshes every five seconds instead of on each completion.
Empty Projects back off exponentially to a maximum of 30 seconds. Committed
memory changes in this service wake their Project immediately; changes from
another process are discovered by periodic scans. Lost notifications trigger a
recovery scan. Nonempty batches and errors retain the normal polling interval,
and per-record failure backoff still applies.
Embedding failures are persisted per memory revision and index generation, with
backoff and at most three automatic attempts. Input-related HTTP 400/413/422
batch failures are retried individually so one rejected document cannot block
later valid records. Outages, authentication errors and rate limits do not fan
out into individual requests. status includes up to 20 current
embedding_failures with attempts, retry time and error. memory reindex clears
failure state for the records on its page, permitting an explicit retry; it does
not discard already valid vectors. A memory edit or new model generation also
permits fresh attempts. Responses incompatible with the current profile's resolved
dimensions also enter failure backoff; results from superseded generations are
simply discarded. Retry state survives daemon restarts and paired backups.
Query vectors have a 64-entry, one-minute, project/generation-scoped cache; up to 64 distinct in-flight queries are shared by Project, generation and exact query text. Each caller keeps its own wait deadline. One caller timing out does not cancel another caller's request; shared work has the configured query timeout. Failures are not cached. Dropping the old runtime cache cancels its pending work. Retrieved memory results themselves are not cached, so forgetting and revisions take effect on subsequent reads. Provider failures/timeouts fall back to FTS. Exact vector scanning uses 256-row pages and a fixed-capacity top-k heap, sorted once at the end with deterministic score/ID ordering. Its CPU/I/O cost still grows with the number and dimensions of vectors in the selected Project.
Visible turns are captured transactionally in the task database, together with
an immutable outbox receipt. Explicit Project/Job ownership and canonical cwd
resolve scope; unknown ownership is not guessed from the latest Job. Worktrees
share their canonical Project. Pure discussions can be sources without a Job.
Late replies and corrections create new source revisions. Deleted/expired
original discussion records do not remove already retained evidence. Project
archival stops new background maintenance; history remains explicitly readable.
Missing registered workspace directories are treated as unavailable repositories.
Periodic repository reviews skip them and resume when the directory returns;
existing memories and evidence remain readable. Extraction that needs an unavailable
repository fails through the normal work retry mechanism rather than accepting
unverified candidates. After the retry budget is exhausted, restore the directory
and use taskix memory retry WORK_ID. Permission errors and roots replaced by files
still report background errors.
background_errors.worker records the most recent worker failure until a subsequent
work item succeeds; empty queue probes do not clear it. Individual work errors and
retry states remain available through taskix memory work WORK_ID even after the
worker resumes successful processing.
The service commits receipt, evidence and queue entries before acknowledging the outbox. Acknowledgement means received, not extracted. No model work runs inside the main agent or task transaction. Intake failures are retried separately from the forward replay scan. Replay has its own durable checkpoint, advanced only after each input has been persisted. It stops at a failed input and retries without skipping it, even when later inputs arrived through pending intake. The maximum stored source sequence is not a recovery checkpoint. Databases from before checkpoint support perform one idempotent replay from zero to repair gaps. Durable retries, leases and source revisions fence stale workers. Startup checks stored sources against the task history and resumes ordered replay, including acknowledged inputs after an older memory restore. Source snapshots are deliberately retained; there is no automatic prune.
The default worker budget is four concurrent loops, at most two extraction loops per Project, and one consolidation/review loop per Project. Different Projects can consolidate concurrently; fair scheduling prevents a single busy Project from owning all claims. Live intake precedes historical backfill and review within a Project. Providers also have an independent in-flight limit. Normal queries and optional deep queries have separate service limits.
Sources are split at UTF-8 boundaries into 16 KiB chunks. Candidate consolidation
is split into bounded batches; each atomic memory document is limited to 60 KiB.
Default loop budgets are 12 steps, 24 tool calls, 128 KiB serialized context,
8,192 output tokens, 90 seconds per request and 240 seconds per work item, with
three attempts. Invalid repo_search arguments return corrective feedback to the
model within the same loop and consume the normal call budget. They do not count
as repository inspection. Storage and other operational failures still fail the
work attempt. Empty model replies receive a reminder to submit through a tool.
Extraction and consolidation submissions receive pure structural validation before
acceptance; invalid fields or missing current-source evidence return bounded
feedback in the same loop. These corrections consume the original step, call,
context and timeout budgets. Database fencing and literal-source validation still
run atomically at commit and are not bypassed. Each memory permits one to sixteen
evidence quotations; an oversized merge should become a separate scoped memory
instead of discarding prior evidence. Empty extraction workers back off up to five seconds, with
post-commit notifications for intake, consolidation work, scheduled reviews and
explicit retries. A work-generation check prevents a stale empty result from
overriding a newer notification. Periodic probes recover cross-process writes
and expired leases; existing retry availability and concurrency gates still apply.
Lowering the context limit below a work item's needs causes a
reported failure rather than truncating evidence. work exposes attempts,
configuration, usage, repository inspection digests and inspected HEAD.
Extraction adds no model context to the main agent. The updated Codex/Claude prompt hooks and Pi/OMP extension request a relevant packet, normally at most 8 items and 6,400 UTF-8 bytes, within a 1.5-second host deadline. The packet is whole-entry JSONL with a historical/untrusted-context notice. The actual token count depends on language/tokenizer; the bound is bytes, not a promised token count. A slow or unavailable query yields no injected memory and host work continues. Context injection caps semantic retrieval at the smaller of the configured query timeout and 750 ms, reserving time within the host deadline for FTS fallback and CLI/IPC. Ordinary search retains its configured semantic timeout. The host uses the first 1,000 prompt characters. FTS builds an OR query from at most 128 deterministically ordered unique terms instead of rejecting longer prompts; semantic embedding still receives the complete bounded query. The 4,096-byte query input limit remains in force. Agentix captures session events and uses the installed host integration for injection; it does not duplicate the packet inside Engine prompts.
The receiving host deduplicates memory ID/revision per session, both online and
offline. The service caches prepared packets for same-turn retry but does not
record their generation as delivery. A same-turn receipt is checked before
retrieval using a read-only existence probe; a miss does not acquire a SQLite
writer lock. Hits and final receipt creation are still checked inside the
transaction to resolve races. Empty receipts are hits; a hit reports context_cache. Referenced
memories are batch-revalidated for Project, revision, status and expiry before
rendering within the current byte budget. Unchanged receipts refresh their
timestamp at most hourly. Background maintenance removes receipts older than
30 days every minute, at most 1,000 rows per receipt table per pass.
A context request that times out before the hook accepts its text cannot
suppress memory in the next turn; old service-side delivery markers are ignored. Direct memory context CLI reads can return the same entries on later
turns because they do not confirm host injection. Host receipts persist only
metadata, not memory content. The hook accepts the text before asynchronously
publishing its receipt, without another deadline race between those two actions.
Receipt write failures or a host crash can cause a safe duplicate on a later turn.
Host delivery and receipt persistence are not an atomic transaction across a
process crash. Current user instructions and current repository evidence always
take precedence; memory is not authorization.
Upgrade the CLI and memory service together to a build containing semantic compaction before using these commands.
New extraction emits one memory per independently updateable fact. Each fact
has a canonical entity, one attribute, qualifiers distinguishing applicability,
and a value. Project/entity/attribute/qualifiers identify the fact independently
of its wording and value. Deployment path, autostart, REALITY domain, client SNI
and independent protocol/port settings remain separate.
The background writer checks exact fact matches and bounded related evidence.
A new fact becomes active; an identical fact/value merges evidence; a confirmed
later value makes the old record superseded and creates a new active record.
The database permits at most one active version per fact identity, including
concurrent writes. Original source dates establish precedence; late ingestion
cannot overwrite newer knowledge. Uncertain incompatible claims become
conflicted. Ordinary search, context and lists return only active, unexpired
records; the read-only Agent tool memory_conflicts, list --all and explicit
ID/history inspection expose unresolved claims separately. Human records are
protected. Evidence, revision and lease guards apply to the whole transaction.
Successful atomic writes are already reconciled and do not require another automatic compact. Schema 3 migration marks old mixed records dirty once, including previously compacted records. Upgrade the CLI and memory daemon together: older writers do not understand the fact identity constraint. Migration preserves sources/history and does not itself call a model.
The service schedules low-priority semantic compaction when memory is added or updated. Existing history is processed once in batches of at most ten dirty records per unarchived Project per pass. Progress is durable per revision, so startup recovers unfinished work without reassessing unchanged completed records. Only active/conflicted, nonexpired Agent memories qualify. Configure automatic scheduling under the existing agent section:
[memory.agent]
compaction_enabled = true
compaction_debounce_seconds = 30 # Wait for dirty revisions to settle.Set compaction_enabled = false to disable automatic scheduling; re-enable and
reload to resume durable dirty work. A write wakes the compact loop, which sets a
timer for the actual dirty deadline. Once no work remains, it waits for notifications
without periodic compact scans or model calls. Unchanged assessed revisions are
not rechecked daily. A successful compact does not enqueue its own output again.
Pending/running seeds are deduplicated across restarts; seeds changed since
scheduling are skipped without a model call, then any newer dirty revision resumes.
Other service activities such as source intake and repository review retain their
independent schedules.
Compaction uses the normal provider, step, timeout and retry budgets and has lower
priority than live intake and backfill within its Project. Search, context and ask never run compaction.
To explicitly enqueue an existing Project page:
taskix memory compact --limit 10 --json
# Continue with the returned next_after until it is empty:
taskix memory compact --after mem_ID --limit 10 --jsonThe limit is 1–100; output reports scanned, scheduled, work_ids and
next_after. This schedules work rather than waiting for semantic completion.
Inspect returned work IDs with memory work. Manual scheduling ignores the
observed-revision/debounce checks but retains duplicate-work and protected-record guards.
Legacy compact preloads bounded complete memory/source evidence and exposes only
the submission tool. Repository review runs separately. It uses at most four
model steps (or a lower configured limit) for the proposal and validation
corrections, without repeated searches or source reads. Provider/task timeouts,
tool limits and retries remain unchanged. Insufficient evidence keeps the seed
unchanged with an explanation. Proposal evidence items use memory ID and
zero-based quote index; the worker restores literal quotes and their source IDs
before validation. The submission schema permits only supplied memory IDs and
quote indices. Invalid indices receive their valid range as correction feedback. Missing
evidence reports up to sixteen memory/quote references and the total missing
count, so the model can reuse the exact originals. Each submitted part requires
a non-null fact; protocol, container port and published port remain independent.
The seed is supplied once, with its current conclusion as migration_scope.
Example attributes and a formerly broader title do not require unrelated facts;
preserving a complete quotation does not require extracting every fact inside it. Related assessments must use the supplied IDs and
revisions, and can only keep a record or retire a whole legacy agent record.
Atomic and human records can only be kept by these assessments; atomic changes
use part-level reconciliation. Each proposed new identity is also checked against
the active-fact index, including matches outside the initial lexical snapshots.
At most sixteen indexed metadata lookups return bounded correction feedback with
IDs, revisions, actor and same-value flags; full quotation bodies are not reloaded.
Operational database failures stop the attempt rather than asking the model to
correct infrastructure errors. Fenced transaction checks still protect concurrent
changes after validation.
Preloaded source author roles distinguish user decisions/assertions from
assistant observations/inferences; assistant-only user decisions are corrected
before committing, with evidence checks repeated by the store.
Compact splits a legacy mixed record into independent atomic facts. For example,
a record containing deployment path, autostart and domain produces three records.
When only the domain changes later, its old version becomes superseded and its
replacement becomes active; path and autostart remain unchanged. Existing atomic
facts are reused only for matching identity/value or guarded replacement.
Overlapping legacy records become superseded after every remaining fact and
literal quotation is preserved. Each part displays derived_from IDs, and the
store retains the complete one-to-many lineage and original revisions. A mixed
record's superseded_by points to the first part. Its historical fact: null
remains intact; the new records display structured facts. Other active records
with fact: null are legacy records whose queued split has not completed. Use
memory work to distinguish queued/running work from a failed or suspended split. No unrelated attributes are
merged into an umbrella configuration. A domain and SNI may legitimately share
www.sakura.ad.jp; there is one active domain fact, not one textual occurrence
across all attributes. Altered quotations receive correction feedback before
writing; invalid evidence or stale guards roll back all parts and retirements.
Human records and the evidence budget remain protected.
An explicitly authorized one-shot migration can use the repository's
compact_codex example with an existing Codex subscription, gpt-6-luna and
reasoning low. It selects explicit work IDs or only active agent-authored legacy
records in a complete Project page below one hundred records, and executes them
through normal leases, cancellation, retries and fenced writes without claiming
other queue items. Back up the memory database and pause the competing memory
worker first; resume it and sync the normal memory projection afterward. Supply a
separate configuration file for any bounded migration deadline override so the
installed daemon's provider and default budgets remain unchanged. Generated
Markdown is never edited directly. See the repository's
memory acceptance guide
for the opt-in command and diagnostic artifact handling.
Exhausted work remains suspended until an explicit retry, manual compact or
changed memory revision. It does not authorize forgetting, reclaim version/source storage, or
prove every conflict was found by bounded retrieval.
Forgetting remains explicit. A current user message containing exactly
Forget memory <ID or TITLE>. or 忘记记忆 <ID or TITLE> can authorize a
consolidation proposal with matching source evidence. Negated, quoted and
historical requests do not. The revision-guarded CLI in the next section remains
the direct way to forget a memory; suppression prevents historical replay.
Provider errors expose bounded recognized status/schema details and the known unsupported-location diagnostic, without echoing arbitrary provider text. Permanent HTTP 4xx errors, except 408 and 429, stop retries immediately. After fixing a provider key, request or upstream route, retry the affected work ID. An upstream region rejection requires changing that provider's actual egress; changing the Taskix request alone does not repair it. Tool calls are required when tools are supplied, and the original final step is reserved for submission.
All commands accept global --project PROJECT_ID and --json. Without an explicit
Project, reads resolve the registered canonical cwd without registration or
migration. Reads can use the existing memory database in read-only mode when the
service is stopped; writes require the service.
taskix memory list --limit 20
taskix memory show mem_ID
taskix memory show mem_ID --revision 1
taskix memory source receipt_ID --message MESSAGE_ID --offset 0
taskix memory context 'deployment constraint' --session SESSION --turn TURN --budget 6400
taskix memory work 42
taskix memory receipt receipt_ID --wait-seconds 10
taskix memory retry 42
taskix memory reindex --limit 50Follow returned cursors with --after; receipt waits are bounded to 300 seconds.
source returns metadata unless a message is selected, then a bounded UTF-8 page.
Historical intake is explicit and resumable:
taskix memory backfill job_ID --offset 0 --limit 20Follow next_offset until complete. This handles legacy bound Job messages;
enabling memory does not scan all existing Jobs automatically. Source changes
cancel unfinished old extraction/consolidation work. Completed memories remain
versioned and are reconciled by subsequent evidence, not erased with a turn.
Create/update takes a JSON memory document, for example:
{
"title": "Offline deployments",
"conclusion": "Production deployments must work without public internet.",
"rationale": "Customer network policy; a hosted-only design was rejected.",
"scope": "production",
"conditions": ["Customer-managed installations"],
"valid_until": null,
"tags": ["deployment"],
"kind": "user_decision",
"evidence": []
}taskix memory create --file decision.json
taskix memory update mem_ID --revision 1 --file decision.json
taskix memory forget mem_ID --revision 2 --reason 'User withdrew this decision'
taskix memory set-status mem_ID archived --revision 2 --reason 'Documented in repository'Direct human input may omit evidence. Agent-attributed writes require valid,
literal same-Project evidence. The host passes its executor identity; do not
impersonate a human to bypass evidence checks. Consolidation retains every
candidate quotation, either verbatim or inside a longer literal quotation from
the same receipt and message. Longer quotations still require source validation;
changed attribution, omitted text and fabricated extensions are rejected.
Updates are revision guarded.
User decisions and assertions require at least one user quotation when evidence
is supplied. Assistant quotations can supply separately attributed proposal
context, but cannot establish a user decision alone. The extraction model must
still verify that the user actually selected or confirmed the quoted proposal.
Conflicts remain inspectable separately. Default recall includes only active,
unexpired records; conflicted, superseded, archived and forgotten records are
excluded. list --all and historical
show preserve inspection. Forget is a logical lifecycle operation with evidence
suppression, not physical erasure of source conversations or old versions.
Suppression includes evidence from every historical version of the memory, so
merges and edits cannot make older evidence eligible for replay/backfill again.
This applies when forgetting an existing memory, including versions saved by
older builds; it does not retroactively rebuild suppression records for memories
already forgotten by an older build.
Repository review periodically checks agent-authored active memories using the
same bounded worker pool. It schedules at most ten per Project per minute after
HEAD changes or the configured review interval (default one day, also covering
unversioned/dirty repositories). It requires a literal repository citation before
archiving documented content and preserves human edits. Set
memory.agent.repository_review_interval_seconds = 0 to disable this additional
model workload. Human memories are never automatically archived by this loop.
Consolidation cannot archive existing memories; automatic archival is exclusive
to this citation-validated review path. Legacy archive proposals are rejected
without changing the target memory.
taskix memory ask 'Why was the hosted approach rejected?' runs a separately
limited, read-only Agent query with validated memory/source citations. Ordinary
search and context requests do not run an Agent loop.
The service projects read-only memory notes into
<documents.directory>/Projects/<project key>/Memory/<memory ID>.md.
SQLite stores the complete memory content, properties, evidence and revisions.
Frontmatter contains identity and lifecycle metadata, such as id, project_id,
revision, status and timestamps. The complete content is rendered in the
Markdown body with subsections for each field; structured values use indented
YAML blocks. The reason is a separate body section. Neither content nor
reason is stored in frontmatter. Full synchronization repairs older note
layouts without changing database content or memory revisions.
Do not edit any part of these notes in Obsidian. File edits, including body text,
properties and managed metadata, are never imported into SQLite. Synchronization
restores the current database representation without changing the memory revision.
Use taskix memory update, set-status or forget for supported changes.
taskix memory sync --limit 20
taskix memory projection-statusThese are logically read-only Markdown files, not an operating-system access
control boundary: a local editor can still change their bytes. Each note displays
a read-only notice. With the matching Taskix Sync plugin, saving an edited note
waits for 750 ms of quiet before checking and rolling the file back to SQLite
content. A read-only error is shown at most once per file per 30 seconds; rollback
still operates while repeated notices are suppressed. Opening an
edited note also checks it. Normal generated updates do not trigger errors;
lookup or write failures are reported without discarding the file. The plugin
uses the read-only taskix memory document <vault-relative-path> command, which
works without the memory service and validates the Project path. Taskix Sync passes
TASKIX_MEMORY_ENABLED=true only to the document lookup child process, allowing
existing notes to be protected without exporting the switch to Obsidian. Other
plugin commands retain the inherited environment. The service
prioritizes changed database revisions on each projection poll (default 5 s).
A full repair scan runs at startup and repeats after
[memory.projection].reconcile_interval_seconds (default 300, range 1..86400)
from the end of its last pass. Full scans advance in bounded pages on projection
polls, so larger vaults take additional time. They repair externally changed or
missing files even without the plugin. taskix memory sync still performs full
repair for its requested page; removing a note does not forget memory. If the vault itself is
removed, recreate a valid vault and configure its path before synchronizing.
Projection runs independently of extraction/search and retries missing-vault or
filesystem failures. Unchanged publication receipts are not rewritten; file I/O
runs in blocking tasks rather than on async runtime threads. Recovery/ retains displaced file versions, including
unsupported local edits, and is not automatically pruned. Concurrent file changes
are preserved and retried rather than silently overwritten during publication.
Publication receipts survive restart, including a file installed before its
SQLite acknowledgement. Recovery-only edits and unrelated vault content are not
part of the authoritative memory database.
Use the existing standalone backup script for ordered dual snapshots, checksum/source-coverage verification and restore into a new directory. Keep the entire memory database, including human revisions and forgotten-memory markers. Restore does not change configuration, stop services or overwrite live databases. SQLite is authoritative; a vault copy alone is not a memory backup.
The memory command definitions and shell completions are shared across platforms.
Unix uses a private Unix domain socket. Like Agentix's control socket, Windows
uses loopback-only TCP. The service binds 127.0.0.1 with an automatically
assigned port and publishes tcp://127.0.0.1:<port> plus a new instance UUID on
the second line of <memory database>.tcp. Clients reject non-loopback addresses
and verify the server's 16-byte instance greeting before sending any business
request. A stale file pointing at a reused port therefore fails closed. The
handshake is covered by the normal request timeout. A stable
<memory database>.lock file stays locked for the service lifetime, rejecting
another service for the same database. Shutdown removes the endpoint; a restart
replaces stale endpoint data left by a crash. Do not remove the lock file while
services are running. Each database receives its own port.
The instance greeting prevents accidental endpoint reuse; it is not user authentication. TCP follows Agentix's local-machine trust boundary: it has no per-user peer credentials or authentication, so other local users can access a known port. Both transports share bounded JSON framing, concurrency limits and request timeouts. Stalled clients are cancelled without blocking service shutdown.
On Windows, run taskix memory serve in a console or configure Task Scheduler to
launch it under the same user as the CLI/plugins. This command does not register a
Windows Service Control Manager service. Use the same absolute --config path
for the service and clients. The standalone Python/rclone backup script still
requires Unix; Windows IPC support does not change that script's platform scope.
Projection sync flushes note contents on all platforms. Unix also syncs the parent directory; Windows does not apply Unix directory-fsync semantics. SQLite remains authoritative for repairing interrupted or missing projections.
For developer validation and derived-data maintenance details, see verification and limits and retention and performance checks.