Skip to content
Agent Memory
Command

/cortexdb-facts-asof

Show CortexDB knowledge-graph facts valid at a point in time (as-of / bitemporal query)

BOOST
From plugin
cortexdb
44313 skills13 commands1 MCP
Install
> /plugin marketplace add liliang-cn/cortexdb
> /plugin install cortexdb@cortexdb

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/cortexdb-facts-asof

Context preview

What this command does when you run it.

Show CortexDB knowledge-graph facts valid at a point in time (as-of / bitemporal query)

Command definition

cortexdb-facts-asof.md
description: Show CortexDB knowledge-graph facts valid at a point in time (as-of / bitemporal query)

Ask the **temporal knowledge graph** what was true at a given moment. CortexDB stores relation facts with a validity interval (`valid_from`..`valid_to`, plus a `recorded_at` transaction time), so you can query "as of" any instant — the fact whose interval contains that time wins, and superseded/expired facts drop out. The timestamp is RFC3339 and defaults to now; `--from` scopes to a subject and `--type` to a predicate. Run in a shell:

bin=$(ls -t ~/.claude/plugins/data/cortexdb-cortexdb/bin/cortexdb-mcp-* 2>/dev/null | head -1)
[ -n "$bin" ] || bin="${CORTEXDB_MCP_BIN:-cortexdb-mcp}"
"$bin" --facts-as-of                              # facts valid right now
"$bin" --facts-as-of 2022-06-01T00:00:00Z         # as of a past date
"$bin" --facts-as-of 2022-06-01T00:00:00Z --from Alice --type works_at

Each line prints `subject -predicate-> object [valid_from .. valid_to]`, where `open` means the fact is still current (no end date). Use this to answer historical questions ("who was CTO in 2021?", "what did Alice work on then?") without the current graph state overwriting the past — supersession keeps each subject's history as a chain of non-overlapping intervals.

$ARGUMENTS

Ships withcortexdb

AI memory and a knowledge graph in one SQLite file. Pure Go, no service to run, works without an embedding model.

Get the whole plugin

Other commands on cortexdb.