Address review of the in-place loader: the directory-subtree filter had two regressions vs the old mirror. - It only rewrote files under the entry's package root, so a `dist/` entry importing `../../shared/helper.ts` (or a symlink-escaping sibling) left that module's legacy `@(scope)/pi-*` / `@sinclair/typebox` imports un-rewritten. - `findExtensionRoot` walked up to the nearest package.json, which for an ad-hoc extension under a project (e.g. `/repo/.omp/extensions/foo.ts`) resolved to the project root — so the permanent onLoad hook would then rewrite unrelated project/host source imported later. Replace the directory filter with a precise scope: pre-walk the entry's relative-import graph (static + dynamic `./`/`../` specifiers), collect each module's realpath, and build the onLoad filter as an exact-path alternation of just those modules. This matches exactly the set the old mirror tracked (minus the copy): it covers `../src`/symlinked siblings and never touches the host, other extensions, node_modules deps, or unrelated project files. Adds a regression test that a non-imported sibling stays outside the rewrite scope, and renames the ../src test to reflect graph-following.
@oh-my-pi/pi-coding-agent
Core implementation package for the omp coding agent in the oh-my-pi monorepo.
For installation, setup, provider configuration, model roles, slash commands, and full CLI reference, see:
Package-specific references:
- CHANGELOG
- MCP configuration guide
- MCP runtime lifecycle
- MCP server/tool authoring
- DEVELOPMENT
- RenderMermaid guide
Memory backends
The agent supports three mutually-exclusive memory backends, selected via the memory.backend setting (Settings → Memory tab, or ~/.omp/config.yml):
off(default) — no memory subsystem runs.local— existing rollout-summarisation pipeline; writesmemory_summary.mdand consolidated artifacts under the agent dir.hindsight— talks to a Hindsight server (Cloud or self-hosted Docker), retains transcripts every Nth user turn, recalls memories on the first turn of a session, and exposesretain,recall, andreflect.
Hindsight quickstart
- Run a Hindsight server (Cloud or
docker run -p 8888:8888 ghcr.io/vectorize-io/hindsight:latest). - Set
memory.backend = "hindsight"andhindsight.apiUrl = "http://localhost:8888"(or your Cloud URL). - Optional environment overrides (env wins over settings):
HINDSIGHT_API_URL,HINDSIGHT_API_TOKEN— connectionHINDSIGHT_BANK_ID,HINDSIGHT_DYNAMIC_BANK_ID,HINDSIGHT_AGENT_NAME— bank addressingHINDSIGHT_AUTO_RECALL,HINDSIGHT_AUTO_RETAIN,HINDSIGHT_RETAIN_MODE— lifecycleHINDSIGHT_RECALL_BUDGET,HINDSIGHT_RECALL_MAX_TOKENS— recall sizingHINDSIGHT_BANK_MISSION,HINDSIGHT_DEBUG
Switching backends mid-session is honoured on the next system-prompt rebuild and the next /memory slash command. Existing users with memories.enabled = true|false are migrated to memory.backend = "local"|"off" exactly once on first launch.