Skip to content

Demand-driven memory

Aictx is most useful when memory quality improves from real work.

When an agent fails, asks for missing project context, finds stale assumptions, or receives a correction from the user, that event is evidence. It may mean the project memory needs to be updated, marked stale, superseded, deleted, or expanded with a better source-backed summary.

The loop is:

load -> work/fail/correction -> identify memory gap -> save memory repair

A task is a memory-quality signal when it reveals durable context that future agents should not rediscover:

  • Missing architecture, workflow, or product context blocked the task.
  • Loaded memory contradicted current code, tests, docs, or the user request.
  • The user corrected an assumption that is likely to recur.
  • Two active memories conflict and the agent cannot safely choose between them.
  • Knowledge was tribal: only the user knew it, but future agents will need it.

Existing Aictx objects cover the common repair cases:

  • source for provenance.
  • question for missing knowledge or unresolved conflict.
  • gotcha for repeated failure modes.
  • synthesis for compact maintained context.
  • decision, constraint, fact, workflow, and concept for precise claims.
  • Relations when the link matters.

Facets such as domain, bounded-context, capability, business-rule, and unresolved-conflict are organization hints. They are optional and should stay plain-language.

Save nothing when the task produced no durable future value. Passing tests, renaming a local variable, or trying a temporary debugging command usually does not need memory.

Save memory when future agents would otherwise waste time, repeat a mistake, or need user correction to learn the same thing.