Skip to content
Agent Memory
Command

/cortexdb-facts-asof

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

From plugin
cortexdb
52913 skills13 commands1 MCP
> /plugin marketplace add liliang-cn/cortexdb
> /plugin install cortexdb@cortexdb

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

@liliang-cn
Ships withcortexdb

Memory your coding agents share. Tell Claude Code something once, and Codex, your other machines and next week's session already know it.

5293 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
529
Star history of liliang-cn/cortexdb on GitHub, a chart by star-history.com

Other commands on cortexdb.

More commands from other plugins.

mempalace-audit

mempalace-audit

Command

Score how well organized your memory palace is, then run a guided repair session — one decision at a time.

@mempalace@mempalaceInstall Command
plan-to-beads

plan-to-beads

Command

Convert a Claude Code plan file into beads epic + tasks for cross-session tracking.

beads8d29k
@gastownhall@gastownhallInstall Command