foretext0.8.0
Persistent memory for Pi and AI coding agents. Remember project decisions, preferences, and lessons across sessions with local, Git-native Markdown storage.
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
foretext
Foretext gives AI agents durable memory across sessions. Save decisions, preferences, and lessons as plain Markdown with YAML frontmatter so you and your agents can read them with or without the CLI.
New project notes live in .foretext/notes/ and can be shared through Git.
New personal notes live in ~/.foretext/notes/ and stay local. Existing
stores keep working in place. Check recalled memory against current evidence
before acting on it.
Install
Requires Node.js 20 or newer. The npm package installs the foretext command.
npm install -g foretext
Upgrading from engram-cli? See the
upgrade guide.
Quick start
From a Git checkout, use --tracked if you plan to share project memory.
Use --untracked to keep project memory out of Git.
foretext init --tracked
foretext add --title "Use pnpm for this project" --type preference --tags tooling \
"CI expects pnpm-lock.yaml."
foretext search "tag:tooling"
Use the ID from the result with foretext show <id> to read the full entry.
To share tracked memory, run foretext where to locate the project store, then
review and commit its files.
Agent / harness integration
Run foretext inject and paste the output into your agent's instructions.
For managed setup and host-specific features, see the
harness guides.
Documentation
Start with the documentation index
for guides and reference. Run foretext --help or foretext <command> --help
for the commands and flags available in your installed version.
Report an issue · Contribute · Release history · MIT license