# unforgit - Doramagic AI Context Pack

> Positioning: a pre-install experience and judgment asset. It helps the host AI get off to a good start, but it does not mean the project has already been installed, run, or validated.

## Sufficiency Principle

- **Sufficiency over compression**: The AI Context Pack should be sufficient for the host AI to understand the project's value, capability boundaries, entrypoints, risks, and evidence sources before starting work; it may be layered, but it does not aim for the shortest possible summary.
- **Compression policy**: Compress only noise and duplication, never context that affects judgment or the quality of the work.

## How the Host AI Should Use This

You are reading the AI Context Pack that Doramagic compiled for unforgit. Treat it as pre-work context: help the user understand who it fits, what it can do, how to start, what must be verified after install, and where the risks are. Do not claim that you have already installed, run, or executed the target project.

## Claim Consumption Rules

- **Fact source**: Repo Evidence + Claim/Evidence Graph; the Human Wiki only supplies salience, terminology, and narrative structure.
- **Minimum status for a fact**: `supported`
- `supported`: May be used as a project fact, but the answer must cite the claim_id and evidence path.
- `weak`: Usable only as a low-confidence lead; the user must be asked to keep verifying.
- `inferred`: Usable only for risk notes or open questions; must not be packaged as a project fact.
- `unverified`: Must not be used as fact; state clearly that evidence is insufficient.
- `contradicted`: Must show the conflicting sources and must not force a single version on the user's behalf.

## Who It Fits Best

- **Developers already using host AIs such as Claude/Codex/Cursor/Gemini**: The README or plugin config mentions multiple host AIs. Evidence: `README.md` Claim: `clm_0004` supported 0.86
- **Users who want to bring professional workflows into a host AI**: The repo contains Skill documents. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md` Claim: `clm_0005` supported 0.86

## What It Can Do

- **AI Skill / Agent Instruction Asset Library** (Previewable before install): The project contains Skill or Agent instruction files that a host AI can read, useful for bringing professional workflows into hosts like Claude, Codex, or Cursor. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md` Claim: `clm_0001` supported 0.86
- **Multi-Host Install and Distribution** (Verify after install): The project contains plugin or marketplace configuration, indicating it targets install and distribution across one or more AI hosts. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json` Claim: `clm_0002` supported 0.86
- **Command-Line Startup or Install Flow** (Verify after install): The project documentation contains runnable commands; real use requires running them in a local or host environment. Evidence: `README.md` Claim: `clm_0003` supported 0.86

## How to Start

- `/plugin marketplace add MiguelMedeiros/unforgit` Evidence: `README.md` Claim: `clm_0006` supported 0.86
- `/plugin install unforgit` Evidence: `README.md` Claim: `clm_0007` supported 0.86
- `npm install -g unforgit` Evidence: `README.md` Claim: `clm_0008` supported 0.86

## Continue-or-Stop Decision Card

- **Current recommendation**: Sandbox-trial permissions first
- **Why**: The project has signals of install commands, host configuration, or local writes; do not go straight into your primary environment—trial it in isolation first.

### 30-Second Read

- **What to do now**: Sandbox-trial permissions first
- **Minimum safe next step**: Run Prompt Preview first; if you still want to install, trial only in an isolated environment
- **Do not trust yet**: Tool permission boundaries cannot be trusted before install.
- **Continuing will touch**: Command execution, Host AI configuration, Local environment or project files

### What You Can Trust Now

- **Target-audience signal: Developers already using host AIs such as Claude/Codex/Cursor/Gemini** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `README.md` Claim: `clm_0004` supported 0.86
- **Target-audience signal: Users who want to bring professional workflows into a host AI** (supported): Backed by a supported claim or project evidence, but that still is not the same as real install results. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md` Claim: `clm_0005` supported 0.86
- **Capability exists: AI Skill / Agent Instruction Asset Library** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md` Claim: `clm_0001` supported 0.86
- **Capability exists: Multi-Host Install and Distribution** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json` Claim: `clm_0002` supported 0.86
- **Capability exists: Command-Line Startup or Install Flow** (supported): You can trust that the project contains signals of this capability; whether it fits your specific task still needs trial or after-install verification. Evidence: `README.md` Claim: `clm_0003` supported 0.86
- **There are Quick Start / install-command signals** (supported): You can trust that the docs mention a startup or install entrypoint; do not run it directly in your primary environment because of that. Evidence: `README.md` Claim: `clm_0006` supported 0.86

### What You Cannot Trust Yet

- **Tool permission boundaries cannot be trusted before install.** (unverified): MCP/tool projects usually touch files, the network, the browser, or external APIs, so permissions and logs must be checked for real.
- **Real output quality cannot be trusted before install.** (unverified): Prompt Preview can only show how it guides you; it cannot prove result quality in the real project.
- **Host AI version compatibility cannot be trusted before install.** (unverified): Host loading rules and version differences across Claude, Cursor, Codex, Gemini, and others must be verified in a real environment.
- **That it will not pollute your existing host AI's behavior cannot be trusted directly.** (inferred): Skill, plugin, and AGENTS/CLAUDE/GEMINI instructions may change the host AI's default behavior. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json`, `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md`
- **Safe rollback cannot be assumed by default.** (unverified): Unless the project clearly provides uninstall and recovery instructions, verify in an isolated environment first.
- **After a real install, is it compatible with the user's current host AI version?** (unverified): Compatibility can only be verified in the actual host environment. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json`
- **Does the project's output quality meet the user's specific task?** (unverified): The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **Do the install commands require network access, permissions, or global writes?** (unverified): This affects install risk in both enterprise and personal environments. Evidence: `README.md`

### What Continuing Will Touch

- **Command execution**: Package managers, network downloads, the local plugin directory, project config, or the user's home directory. Why: Running the very first command can already change your environment; decide whether it is worth running first. Evidence: `README.md`
- **Host AI configuration**: The plugin, Skill, or rule-loading config of hosts like Claude/Codex/Cursor/Gemini/OpenCode. Why: Host configuration changes how the AI works afterward and may conflict with the user's existing rules. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json`, `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md`
- **Local environment or project files**: Install results, plugin caches, project config, or local dependency directories. Why: The write scope and rollback path cannot be proven before install and need isolated verification. Evidence: `README.md`, `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json`
- **Host AI context**: The AI Context Pack, Prompt Preview, Skill routing, risk rules, and project facts. Why: Importing context affects the host AI's later judgment, so avoid packaging unverified items as facts.

### Minimum Safe Next Steps

- **Run Prompt Preview first**: Use a pre-install interactive trial to judge whether the way of working fits; it needs no authorization or environment change. (applies when: Applies to any project, especially when output quality is unknown.)
- **Trial-install only in an isolated directory or a test account**: Avoid letting install commands pollute your primary host AI, real projects, or home directory. (applies when: When there are signals of command execution, plugin config, or local writes.)
- **Back up your host AI configuration first**: Skill, plugin, and rule files may change the default behavior of Claude/Cursor/Codex. (applies when: When there is a plugin manifest, a Skill, or a host rule entrypoint.)
- **After install, verify just one minimal task**: Verify loading, compatibility, output quality, and rollback first, then decide whether to use it deeply. (applies when: When moving from a trial into a real workflow.)

### Exit Plan

- **Preserve the pre-install state**: Record the original host config and project state so you can later judge whether it is recoverable.
- **Be ready to remove the host plugin / Skill / rule entrypoint**: If behavior is off after the trial install, you can restore the host AI to its pre-trial state.
- **Record the install commands and written paths**: Without clear uninstall instructions, you at least need to know which directories or configs to clean up manually.
- **If there is no rollback path, do not enter your primary environment**: No rollback is a blocker before continuing; do not proceed on trust or luck.

## What Can Only Be Previewed

- Explain who the project fits and what it can do
- Demonstrate a typical conversation flow based on project docs
- Help the user decide whether it is worth installing or researching further

## What Must Be Verified After Install

- Actually installing the Skill, plugin, or CLI
- Running scripts, modifying local files, or accessing external services
- Verifying real output quality, performance, and compatibility

## Boundary & Risk Decision Card

- **Mistaking the pre-install preview for a real run**: The user may overestimate how much configuration, permission, and compatibility verification the project has already done. Mitigation: Clearly separate prompt_preview_can_do from runtime_required. Claim: `clm_0009` inferred 0.45
- **Host AI plugin or Skill rule conflicts**: New rules may change how the user's existing host AI behaves. Mitigation: Inspect the plugin manifest and Skill files before installing, and test in isolation if needed. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json` Claim: `clm_0010` supported 0.86
- **Command execution will modify the local environment**: Install commands may write to the user's home directory, the host plugin directory, or project configuration. Mitigation: Run in an isolated environment or a test account first. Evidence: `README.md` Claim: `clm_0011` supported 0.86
- **To confirm**: After a real install, is it compatible with the user's current host AI version?. Why: Compatibility can only be verified in the actual host environment.
- **To confirm**: Does the project's output quality meet the user's specific task?. Why: The pre-install preview can only show flow and boundaries; it cannot replace real evaluation.
- **To confirm**: Do the install commands require network access, permissions, or global writes?. Why: This affects install risk in both enterprise and personal environments.

## Pre-Work Working Context

### Loading Order

- First read how_to_use.host_ai_instruction to establish the boundaries of this pre-install judgment asset.
- Read claim_graph_summary to confirm facts come from the Claim/Evidence Graph, not the Human Wiki narrative.
- Then read intended_users, capabilities, and quick_start_candidates to judge whether the user is a match.
- When you need to carry out a concrete task, check role_skill_index first, then evidence_index.
- For real install, file modification, network access, performance, or compatibility questions, turn to risk_card and boundaries.runtime_required.

### Task Routes

- **AI Skill / Agent Instruction Asset Library**: Use role_skill_index / evidence_index to help the user pick a usable role, Skill, or workflow first. Boundary: Can be experienced via a pre-install Prompt. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`, `plugins/hermes/unforgit-memory/SKILL.md` Claim: `clm_0001` supported 0.86
- **Multi-Host Install and Distribution**: State that this is an after-install capability first, then give a pre-install checklist. Boundary: Must be verified after a real install or run. Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`, `plugins/claude-code/unforgit/.claude-plugin/plugin.json` Claim: `clm_0002` supported 0.86
- **Command-Line Startup or Install Flow**: State that this is an after-install capability first, then give a pre-install checklist. Boundary: Must be verified after a real install or run. Evidence: `README.md` Claim: `clm_0003` supported 0.86

### Context Scale

- Total files: 441
- Important-file coverage: 40/441
- Evidence index entries: 65
- Role / Skill entries: 2

### Handling Insufficient Evidence

- **missing_evidence**: State that evidence is insufficient and ask the user for the target file, a README section, or after-install verification records; do not fill in facts.
- **out_of_scope_request**: State that the task is beyond the current AI Context Pack's evidence scope and suggest the user check the Human Manual or verify after a real install.
- **runtime_request**: Provide a pre-install checklist and command sources, but do not run commands for the user or claim they have been run.
- **source_conflict**: Show the conflicting sources side by side, mark them as unverified, and do not force a single version.

## Prompt Recipes

### Fit assessment

- Goal: Judge whether this project fits the user's current task.
- Expected output: A fit conclusion, key reasons, evidence citations, what can be previewed before install, what must be verified after install, and a next-step recommendation.

```text
Based on the AI Context Pack for unforgit, ask me 3 necessary questions first, then judge whether it fits my task. The answer must cover: who it fits, what it can do, what it cannot do, whether it is worth installing, and where the evidence comes from. Every project fact must cite evidence_refs, source_paths, or a claim_id.
```

### Pre-install experience

- Goal: Let the user feel the core workflow before installing, while avoiding packaging the preview as real capability or a marketing promise.
- Expected output: An experience script with boundary labels, an after-install verification checklist, and a cautious recommendation; with no real-run promises or strong marketing language.

```text
Treat unforgit as a pre-install experience asset, not an already-installed tool or a real runtime environment.

Output exactly four parts:
1. Ask me 3 necessary questions first.
2. Give an "experience script": use the three labels [Previewable before install], [Must verify after install], and [Insufficient evidence] to show how it might guide the workflow.
3. Give an after-install verification checklist: list which capabilities can only be confirmed after a real install, real host loading, and a real project run.
4. Give a cautious recommendation: only "worth researching/trialing further", "add information before deciding", or "not recommended to continue"; do not endorse the project.

Hard boundaries:
- Do not claim you have installed, run, executed tests, modified files, or produced real results.
- Do not write promise-like phrasing such as "auto-adapts", "guarantees passing", "perfect fit", or "strongly recommend installing".
- If you describe how it works after install, you must use a conditional such as "if installed successfully and the host loads the Skill correctly, it might...".
- The experience script may only be written as "example lines / hypothetical flow": use "might ask / might suggest / might show", not "has written, has generated, has passed, is running, is generating".
- Prompt Preview does not hand out install commands; if the user is ready to trial, only prompt them to read Quick Start and the Risk Card first and to verify in an isolated environment.
- Every project fact must come from a supported claim, evidence_refs, or source_paths; inferred/unverified items can only be risks or open questions.

```

### Role / Skill selection

- Goal: Pick the best-matching asset from the project's roles or Skills.
- Expected output: A list of candidate roles or Skills, each with an applicable scenario, evidence paths, risk boundary, and whether after-install verification is needed.

```text
Read role_skill_index and recommend 3-5 of the most relevant roles or Skills for my target task. For each recommendation, state the applicable scenario, likely output, risk boundary, and evidence_refs.
```

### Risk pre-check

- Goal: Identify environment, permission, rule-conflict, and quality risks before installing or adopting.
- Expected output: A checklist of environment, permission, dependency, license, host-conflict, quality risk, and unknown items.

```text
Based on risk_card, boundaries, and quick_start_candidates, give me a pre-install risk pre-check list. Do not run commands for me; only explain what I should check, why, and what impact a failure would have.
```

### Host AI kickoff instruction

- Goal: Turn the project context into a host AI instruction for the start of a conversation.
- Expected output: A pre-work instruction with clear boundaries and clear evidence citations, suitable to copy to a host AI.

```text
Based on the AI Context Pack for unforgit, generate a pre-work instruction I can paste to my host AI. This instruction must obey not_runtime=true and must not claim the project has been installed, run, or produced real results.
```

## Role / Skill Index

- Indexed 2 role / Skill / project-doc entries.

- **unforgit-memory** (skill): Use Unforgit MCP tools as durable repository memory for decisions, conventions, gotchas, and playbooks. Activation hint: When the user's task is highly relevant to the workflow described by “unforgit-memory”, use it for a pre-install experience first, then decide whether to install. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`
- **unforgit-memory** (skill): Configure and use Unforgit as repository-scoped memory from Hermes Agent. Activation hint: When the user's task is highly relevant to the workflow described by “unforgit-memory”, use it for a pre-install experience first, then decide whether to install. Evidence: `plugins/hermes/unforgit-memory/SKILL.md`

## Evidence Index

- Indexed 65 evidence entries.

- **Quick Start** (documentation): Long-term memory for AI agents and developer workflows. Capture locally, rank by reuse, share when it matters. Evidence: `README.md`
- **Unforgit Claude Code Marketplace** (documentation): This directory is a Claude Code plugin marketplace for Unforgit. Evidence: `plugins/claude-code/README.md`
- **Unforgit Claude Code Plugin** (documentation): Persistent repository memory for Claude Code using Unforgit's MCP server, rules, skills, and slash commands. Evidence: `plugins/claude-code/unforgit/README.md`
- **Package** (package_manifest): { "name": "unforgit-monorepo", "version": "0.9.3", "private": true, "description": "Repository memory system — shared + local knowledge for agents and developers", "type": "module", "scripts": { "build": "pnpm -r build", "dev:server": "pnpm --filter @unforgit/api dev", "dev:cli": "pnpm --filter @unforgit/cli dev", "dev:web": "pnpm --filter @unforgit/web dev", "dev:admin": "pnpm --filter @unforgit/admin dev", "dev:website": "pnpm --filter @unforgit/website dev", "test": "vitest run", "test:watch": "vitest", "db:generate": "prisma generate", "db:migrate": "prisma migrate dev", "db:push": "prisma db push", "lint": "eslint .", "lint:fix": "eslint . --fix", "smoke:cli": "UNFORGIT DATA DIR=$ mkte… Evidence: `package.json`
- **Package** (package_manifest): { "name": "unforgit-admin", "version": "0.1.0", "private": true, "scripts": { "dev": "next dev -p 3939", "build": "next build", "start": "next start -p 3939" }, "dependencies": { "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-dialog": "^1.1.15", "@radix-ui/react-select": "^2.2.6", "@radix-ui/react-slot": "^1.2.3", "@radix-ui/react-tabs": "^1.1.12", "@radix-ui/react-tooltip": "^1.2.8", "@unforgit/ui": "workspace: ", "class-variance-authority": "^0.7.1", "next": "^15.5.19", "react": "^19.1.0", "react-dom": "^19.1.0", "react-force-graph-2d": "^1.28.1", "sonner": "^2.0.7", "tailwindcss-animate": "^1.0.7" }, "devDependencies": { "@tailwindcss/postcss": "^4.1.10", "@types/node": "^22… Evidence: `apps/admin/package.json`
- **Package** (package_manifest): { "name": "@unforgit/api", "version": "0.9.3", "private": true, "type": "module", "scripts": { "build": "tsup", "dev": "tsx watch src/index.ts", "start": "node dist/index.js" }, "dependencies": { "@fastify/cors": "^11.2.0", "@fastify/rate-limit": "^11.0.0", "dotenv": "^17.3.1", "fastify": "^5.8.5", "fastify-type-provider-zod": "^6.1.0", "jose": "^6.1.3", "unforgit-core": "workspace: ", "unforgit-db": "workspace: ", "unforgit-shared": "workspace: ", "zod": "^4.3.6" }, "devDependencies": { "tsup": "^8.5.1", "tsx": "^4.21.0", "typescript": "^5.9.3" } } Evidence: `apps/api/package.json`
- **Package** (package_manifest): { "name": "unforgit", "version": "0.9.3", "mcpName": "io.github.miguelmedeiros/unforgit", "type": "module", "bin": { "unforgit": "dist/index.js", "unforgit-mcp": "dist/mcp.js" }, "scripts": { "build": "tsup", "dev": "tsx src/index.ts" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.29.0", "@prisma/adapter-pg": "^7.4.2", "@prisma/client": "^7.4.2", "better-sqlite3": "^12.6.2", "commander": "^14.0.3", "dotenv": "^17.3.1", "openai": "^6.25.0", "pg": "^8.19.0", "uuid": "^13.0.1", "yaml": "^2.8.3", "zod": "^4.3.6" }, "devDependencies": { "@types/node": "^25.3.3", "tsup": "^8.5.1", "tsx": "^4.21.0", "typescript": "^5.9.3", "unforgit-config": "workspace: ", "unforgit-core": "workspace: ", "u… Evidence: `apps/cli/package.json`
- **Package** (package_manifest): { "name": "@unforgit/mcp", "version": "0.9.3", "private": true, "type": "module", "bin": { "unforgit-mcp": "dist/index.js" }, "scripts": { "build": "tsup", "dev": "tsx src/index.ts" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.29.0", "dotenv": "^17.3.1", "unforgit-config": "workspace: ", "unforgit-core": "workspace: ", "unforgit-db": "workspace: ", "unforgit-shared": "workspace: ", "zod": "^4.3.6" }, "devDependencies": { "tsup": "^8.5.1", "tsx": "^4.21.0", "typescript": "^5.9.3" } } Evidence: `apps/mcp/package.json`
- **Package** (package_manifest): { "name": "unforgit-web", "version": "0.1.0", "private": true, "type": "module", "scripts": { "dev": "UNFORGIT WORKSPACE=../.. dotenv -e ../../.env -- next dev -p 3838", "build": "next build", "start": "dotenv -e ../../.env -- next start -p 3838" }, "dependencies": { "@radix-ui/react-alert-dialog": "^1.1.15", "@unforgit/ui": "workspace: ", "better-sqlite3": "^12.6.2", "next": "^16.2.9", "openai": "^6.25.0", "react": "^19.2.4", "react-dom": "^19.2.4", "react-force-graph-2d": "^1.29.1", "recharts": "^3.7.0", "sonner": "^2.0.7", "unforgit-core": "workspace: ", "unforgit-db": "workspace: ", "unforgit-shared": "workspace: ", "uuid": "^13.0.1", "yaml": "^2.8.3" }, "devDependencies": { "@radix-ui/… Evidence: `apps/web/package.json`
- **Package** (package_manifest): { "name": "unforgit-website", "version": "0.9.3", "private": true, "scripts": { "dev": "next dev", "build": "next build", "start": "next start", "lint": "next lint" }, "dependencies": { "@tsparticles/engine": "^3.9.1", "@tsparticles/react": "^3.0.0", "@tsparticles/slim": "^3.9.1", "clsx": "^2.1.1", "framer-motion": "^12.34.5", "lucide-react": "^0.513.0", "next": "^15.5.19", "react": "^19.1.0", "react-dom": "^19.1.0", "tailwind-merge": "^3.3.1", "three": "^0.183.2" }, "devDependencies": { "@tailwindcss/postcss": "^4.1.10", "@types/node": "^22.16.4", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@types/three": "^0.183.1", "tailwindcss": "^4.1.10", "typescript": "^5.9.3" }, "overr… Evidence: `apps/website/package.json`
- **Package** (package_manifest): { "name": "unforgit-config", "version": "0.5.3", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "dependencies": { "unforgit-core": "workspace: ", "unforgit-shared": "workspace: ", "yaml": "^2.8.3", "zod": "^4.3.6" }, "devDependencies": { "@types/node": "^25.3.3", "tsup": "^8.5.1", "typescript": "^5.9.3" }, "publishConfig": { "access": "public" }, "files": "dist", "README.md", "LICENSE" } Evidence: `packages/config/package.json`
- **Package** (package_manifest): { "name": "unforgit-core", "version": "0.5.3", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "dependencies": { "unforgit-shared": "workspace: ", "openai": "^6.25.0", "zod": "^4.3.6" }, "devDependencies": { "tsup": "^8.5.1", "typescript": "^5.9.3" }, "publishConfig": { "access": "public" }, "files": "dist", "README.md", "LICENSE" } Evidence: `packages/core/package.json`
- **Package** (package_manifest): { "name": "unforgit-db", "version": "0.5.3", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "dependencies": { "@prisma/adapter-pg": "^7.4.2", "@prisma/client": "^7.4.2", "better-sqlite3": "^12.6.2", "pg": "^8.19.0", "unforgit-core": "workspace: ", "unforgit-shared": "workspace: ", "uuid": "^13.0.1" }, "devDependencies": { "@types/better-sqlite3": "^7.6.13", "@types/pg": "^8.18.0", "@types/uuid": "^11.0.0", "tsup": "^8.5.1", "typescript": "^5.9.3" }, "publishConfig": { "access": "public" }, "files": "dist… Evidence: `packages/db/package.json`
- **Package** (package_manifest): { "name": "unforgit-shared", "version": "0.5.3", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "dependencies": { "zod": "^4.3.6" }, "devDependencies": { "tsup": "^8.5.1", "typescript": "^5.9.3" }, "publishConfig": { "access": "public" }, "files": "dist", "README.md", "LICENSE" } Evidence: `packages/shared/package.json`
- **Package** (package_manifest): { "name": "@unforgit/tools", "version": "0.1.0", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } }, "scripts": { "build": "tsup", "dev": "tsup --watch" }, "dependencies": { "unforgit-shared": "workspace: ", "unforgit-core": "workspace: ", "unforgit-db": "workspace: ", "unforgit-config": "workspace: " }, "devDependencies": { "tsup": "^8.5.1", "typescript": "^5.9.3" } } Evidence: `packages/tools/package.json`
- **Package** (package_manifest): { "name": "@unforgit/ui", "version": "0.1.0", "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", "exports": { ".": { "source": "./src/index.ts", "import": "./dist/index.js", "types": "./dist/index.d.ts" }, "./primitives": { "source": "./src/primitives/index.ts", "import": "./dist/primitives/index.js", "types": "./dist/primitives/index.d.ts" }, "./components": { "source": "./src/components/index.ts", "import": "./dist/components/index.js", "types": "./dist/components/index.d.ts" }, "./hooks": { "source": "./src/hooks/index.ts", "import": "./dist/hooks/index.js", "types": "./dist/hooks/index.d.ts" }, "./constants": { "source": "./src/constants/index.ts", "import": "./dist/… Evidence: `packages/ui/package.json`
- **Plugin** (structured_config): { "name": "unforgit", "version": "0.1.0", "description": "Persistent repository memory for AI coding agents using MCP tools, repository rules, and durable project knowledge.", "author": { "name": "Unforgit" }, "homepage": "https://github.com/MiguelMedeiros/unforgit", "repository": "https://github.com/MiguelMedeiros/unforgit", "license": "MIT", "keywords": "memory", "mcp", "agents", "repository", "claude-code" } Evidence: `plugins/claude-code/unforgit/.claude-plugin/plugin.json`
- **Architecture** (documentation): src/ ├── server/ Fastify HTTP API │ ├── routes/ memory, recall, curate, consolidate │ └── index.ts App factory + server start ├── mcp/ MCP server unforgit-mcp │ └── index.ts Stdio transport + tools ├── cli/ Commander CLI unforgit │ ├── commands/ init, add, recall, promote, consolidate, deprecate, supersede, reset, embeddings │ └── index.ts CLI entry point ├── core/ Shared domain logic │ ├── types.ts TypeScript types │ ├── schemas.ts Zod validation schemas │ ├── policy.ts Auto-visibility policy │ ├── recall.ts Merge + dedup + rank + hybrid scoring │ ├── embeddings.ts Local/OpenAI embedding providers & similarity │ ├── quality.ts Memory quality scoring │ ├── suggestions.ts Curation suggestion… Evidence: `docs/architecture.md`
- **Unforgit Memory** (skill_instruction): Use this skill whenever work can benefit from durable project memory or when the user asks you to remember, recall, curate, or inspect repository knowledge. Evidence: `plugins/claude-code/unforgit/skills/unforgit-memory/SKILL.md`
- **Unforgit Memory for Hermes** (skill_instruction): Use this skill when configuring Hermes Agent to use Unforgit MCP tools, or when a Hermes conversation is working inside a repository that should keep durable project memory. Evidence: `plugins/hermes/unforgit-memory/SKILL.md`
- **Marketplace** (structured_config): { "$schema": "https://anthropic.com/claude-code/marketplace.schema.json", "name": "unforgit-claude-code-marketplace", "description": "Claude Code plugins for Unforgit persistent repository memory.", "owner": { "name": "Unforgit" }, "plugins": { "name": "unforgit", "description": "Persistent repository memory for AI coding agents using MCP tools, repository rules, and durable project knowledge.", "author": { "name": "Unforgit" }, "category": "development", "source": { "source": "git-subdir", "url": "https://github.com/MiguelMedeiros/unforgit.git", "path": "plugins/claude-code/unforgit", "ref": "main" }, "homepage": "https://github.com/MiguelMedeiros/unforgit" } } Evidence: `plugins/claude-code/.claude-plugin/marketplace.json`
- **License** (source_file): Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files the "Software" , to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Evidence: `LICENSE`
- **Agent Tools** (documentation): Import and use the programmatic interface: Evidence: `docs/agent-tools.md`
- **API Server** (documentation): bash Set DATABASE URL in .env cp .env.example .env Evidence: `docs/api.md`
- **CLI Reference** (documentation): Creates .unforgit/ with local.db and unforgit.yaml , plus IDE-specific integration files. The org and repo are auto-detected from the git remote origin . You can override with --org-id and --repo-id if needed. Evidence: `docs/cli.md`
- **Concepts** (documentation): Type Description Value ------ ------------- ------- episodic Events/observations noisy, short-lived Low semantic Facts/decisions stable High procedural Playbooks/checklists/routines High Evidence: `docs/concepts.md`
- **Configuration** (documentation): Use the unforgit config command to manage all settings: Evidence: `docs/configuration.md`
- **MCP Server** (documentation): Unforgit includes an MCP Model Context Protocol server for native integration with AI-powered IDEs. When configured, the AI agent gets direct access to unforgit recall and unforgit add tools — no shell commands needed. Evidence: `docs/mcp.md`
- **Server-Side AI Team Mode** (documentation): When running the Unforgit server for a team, you can configure server-side OpenAI integration so individual developers don't need their own API keys. Evidence: `docs/server-ai.md`
- **Tsconfig.Base** (structured_config): { "compilerOptions": { "target": "ES2022", "module": "ESNext", "moduleResolution": "bundler", "lib": "ES2022" , "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, "declaration": true, "declarationMap": true, "sourceMap": true, "isolatedModules": true, "noUnusedLocals": true, "noUnusedParameters": true } } Evidence: `tsconfig.base.json`
- **Server** (structured_config): { "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.miguelmedeiros/unforgit", "description": "Git-backed repository memory for AI coding agents, exposed as a local-first MCP server.", "repository": { "url": "https://github.com/MiguelMedeiros/unforgit", "source": "github" }, "websiteUrl": "https://unforgit.com", "version": "0.9.3", "packages": { "registryType": "npm", "identifier": "unforgit", "version": "0.9.3", "transport": { "type": "stdio" } } , "icons": { "src": "https://raw.githubusercontent.com/MiguelMedeiros/unforgit/main/docs/unforgit-icon.png", "mimeType": "image/png", "sizes": "400x400" } } Evidence: `apps/cli/server.json`
- **.Mcp** (structured_config): { "mcpServers": { "unforgit": { "command": "unforgit-mcp", "args": } } } Evidence: `plugins/claude-code/unforgit/.mcp.json`
- **Pnpm Workspace** (source_file): packages: - "packages/ " - "apps/ " Evidence: `pnpm-workspace.yaml`
- **Index** (source_file): import Fastify from "fastify"; import cors from "@fastify/cors"; import rateLimit from "@fastify/rate-limit"; import { RemoteStore } from "unforgit-db"; import { memoryRoutes } from "./routes/memory.js"; import { recallRoutes } from "./routes/recall.js"; import { curateRoutes } from "./routes/curate.js"; import { consolidateRoutes } from "./routes/consolidate.js"; import { linkRoutes } from "./routes/links.js"; import { syncRoutes } from "./routes/sync.js"; import { apiKeyRoutes } from "./routes/api-keys.js"; import { embeddingRoutes } from "./routes/embeddings.js"; import { autoConsolidateRoutes } from "./routes/auto-consolidate.js"; import { suggestionsRoutes } from "./routes/suggestions.… Evidence: `apps/api/src/index.ts`
- **Auth** (source_file): import type { FastifyRequest, FastifyReply, FastifyInstance } from "fastify"; import type { RemoteStore } from "unforgit-db"; ⋮---- interface FastifyRequest { apiKey?: { id: string; orgId: string; name: string; }; } ⋮---- function matchesPublicPrefix urlPath: string, prefix: string : boolean ⋮---- export function createAuthMiddleware store: RemoteStore ⋮---- export function registerAuthMiddleware app: FastifyInstance, store: RemoteStore : void Evidence: `apps/api/src/middleware/auth.ts`
- **Admin** (source_file): import type { FastifyPluginAsync, FastifyRequest, FastifyReply, } from "fastify"; import { jwtVerify } from "jose"; import { RemoteStore } from "unforgit-db"; import { isOpenAIConfigured, findConsolidationCandidatesRemote, executeConsolidationRemote, type ConsolidationCandidate, } from "unforgit-core"; ⋮---- interface CreateApiKeyBody { name: string; orgId: string; repoId?: string; userId?: string; label?: string; } ⋮---- interface ApiKeyParams { id: string; } ⋮---- interface UserParams { id: string; } ⋮---- interface UserRepoParams { id: string; orgId: string; repoId: string; } ⋮---- interface GrantRepoAccessBody { orgId: string; repoId: string; permission: string; } ⋮---- interface Create… Evidence: `apps/api/src/routes/admin.ts`
- **Auth** (source_file): import type { FastifyPluginAsync } from "fastify"; import { SignJWT, jwtVerify } from "jose"; import { RemoteStore } from "unforgit-db"; ⋮---- interface GitHubUser { id: number; login: string; name: string null; email: string null; avatar url: string; } ⋮---- interface GitHubRepo { id: number; full name: string; owner: { login: string; }; name: string; permissions?: { admin: boolean; push: boolean; pull: boolean; }; } ⋮---- interface CallbackQuery { code: string; state?: string; } ⋮---- function getOAuthStateSecret : Uint8Array ⋮---- async function createOAuthState : Promise ⋮---- async function verifyOAuthState state: string undefined : Promise ⋮---- function getJwtSecret : Uint8Array ⋮---… Evidence: `apps/api/src/routes/auth.ts`
- **Auto Consolidate** (source_file): import type { FastifyInstance } from "fastify"; import { z } from "zod"; import type { RemoteStore } from "unforgit-db"; import { isOpenAIConfigured, findConsolidationCandidatesRemote, executeConsolidationRemote, autoConsolidateRemote, formatCandidatePreview, type ConsolidationCandidate, } from "unforgit-core"; ⋮---- export async function autoConsolidateRoutes app: FastifyInstance, store: RemoteStore : Promise Evidence: `apps/api/src/routes/auto-consolidate.ts`
- **Recall** (source_file): import type { FastifyInstance } from "fastify"; import { resolveLifecycleConfig, generateEmbedding, isOpenAIConfigured } from "unforgit-core"; import { recallQuerySchema } from "unforgit-shared"; import type { RemoteStore } from "unforgit-db"; ⋮---- export async function recallRoutes app: FastifyInstance, store: RemoteStore, scheduleLifecycle?: orgId: string, repoId: string = void, : Promise Evidence: `apps/api/src/routes/recall.ts`
- **Stats** (source_file): import type { FastifyInstance } from "fastify"; import { RemoteStore } from "unforgit-db"; ⋮---- interface StatsQuery { orgId: string; repoId: string; timeframe?: string; } ⋮---- interface ActivityQuery { orgId: string; repoId: string; days?: string; timeframe?: string; } ⋮---- interface TagsQuery { orgId: string; repoId: string; limit?: string; timeframe?: string; } ⋮---- function getTimeframeDate timeframe?: string : Date undefined ⋮---- function parsePositiveIntegerParam value: string undefined, fallback: number : number undefined ⋮---- export async function statsRoutes app: FastifyInstance, store: RemoteStore : Promise Evidence: `apps/api/src/routes/stats.ts`
- **Add** (source_file): import { Command } from "commander"; import { loadConfig, getDbPath } from "unforgit-config"; import { logger } from "../logger.js"; import { EXIT ERROR } from "../exit-codes.js"; import { LocalStore } from "unforgit-db"; import { resolveVisibility } from "unforgit-core"; import { applyLifecycleDefaults } from "unforgit-core"; import type { MemoryType } from "unforgit-shared"; import { getTemplate, applyTemplate, formatTemplateList } from "unforgit-core"; import { validateMemoryType, parseConfidence, parseTtl } from "unforgit-config"; Evidence: `apps/cli/src/commands/add.ts`
- **Auth** (source_file): import { Command } from "commander"; import { loadConfig, isInitialized } from "unforgit-config"; import { logger } from "../logger.js"; import { EXIT CONFIG ERROR } from "../exit-codes.js"; import { maskKey } from "../utils.js"; Evidence: `apps/cli/src/commands/auth.ts`
- **Auto Consolidate** (source_file): import { Command } from "commander"; import { LocalStore } from "unforgit-db"; import { loadConfig, getDbPath, isInitialized } from "unforgit-config"; import type { MemoryType } from "unforgit-shared"; import { findConsolidationCandidates, executeConsolidation, formatCandidatePreview, } from "unforgit-core"; ⋮---- import { logger } from "../logger.js"; import { EXIT ERROR, EXIT CONFIG ERROR } from "../exit-codes.js"; import { parseThreshold, parsePositiveInt, validateMemoryType, } from "unforgit-config"; ⋮---- function createReadlineInterface : readline.Interface ⋮---- async function askConfirmation rl: readline.Interface, question: string, : Promise Evidence: `apps/cli/src/commands/auto-consolidate.ts`
- **Dashboard** (source_file): import { spawn } from "node:child process"; import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { Command } from "commander"; import { logger } from "../logger.js"; import { EXIT ERROR } from "../exit-codes.js"; ⋮---- export interface DashboardLaunchInput { cwd: string; host?: string; port?: string number; workspace?: string; allowNetwork?: boolean; } ⋮---- export interface DashboardLaunchOptions { host: string; port: number; workspace: string; url: string; } ⋮---- export function assertSafeDashboardBind host: string, allowNetwork = false : void ⋮---- export function parseDashboardPort port: string number undefined : number ⋮---- export f… Evidence: `apps/cli/src/commands/dashboard.ts`
- **Init** (source_file): import fs from "node:fs"; import { Command } from "commander"; import { logger } from "../logger.js"; import { getDataDir, getConfigPath, getDbPath, defaultConfig, saveConfig, isInitialized, detectGitInfo, } from "unforgit-config"; import { LocalStore } from "unforgit-db"; import { detectIdes, setupIdes, logIdeResults, parseIdeOption, ALL IDE NAMES, type IdeName, } from "../ide-integration.js"; Evidence: `apps/cli/src/commands/init.ts`
- **Recall** (source_file): import { Command } from "commander"; import { loadConfig, getDbPath } from "unforgit-config"; import { logger } from "../logger.js"; import { LocalStore } from "unforgit-db"; import { RemoteClient } from "unforgit-config"; import { mergeAndRank } from "unforgit-core"; import { resolveLifecycleConfig } from "unforgit-core"; import type { MemoryType, RecallResult } from "unforgit-shared"; import { parsePositiveInt } from "unforgit-config"; import { EXIT ERROR } from "../exit-codes.js"; import { isJsonMode, outputJson, paginate } from "../utils.js"; Evidence: `apps/cli/src/commands/recall.ts`
- **Ide Integration** (source_file): import fs from "node:fs"; import path from "node:path"; import { logger } from "./logger.js"; ⋮---- export type IdeName = "cursor" "claude" "vscode" "windsurf" "cline" "roo" "codex" "opencode" "kilo"; ⋮---- interface SetupAction { path: string; action: "created" "updated" "exists"; } ⋮---- interface IdeSetupResult { ide: IdeName; rules?: SetupAction; mcp?: SetupAction; } ⋮---- function upsertJsonMcp filePath: string, serverKey: string, mcpEntry: Record , : SetupAction ⋮---- function appendOrCreateMarkdown filePath: string, content: string, : SetupAction ⋮---- function replaceMarkdownIfMissingMarker filePath: string, content: string, : SetupAction ⋮---- function appendOrCreateTomlSection fil… Evidence: `apps/cli/src/ide-integration.ts`
- **Index** (source_file): import { Command } from "commander"; import { initCommand } from "./commands/init.js"; import { addCommand } from "./commands/add.js"; import { recallCommand } from "./commands/recall.js"; import { promoteCommand } from "./commands/promote.js"; import { consolidateCommand } from "./commands/consolidate.js"; import { deprecateCommand } from "./commands/deprecate.js"; import { supersedeCommand } from "./commands/supersede.js"; import { deleteCommand, restoreCommand } from "./commands/delete.js"; import { webCommand } from "./commands/web.js"; import { linkCommand, unlinkCommand, linksCommand } from "./commands/link.js"; import { mergeCommand, remergeCommand, similarCommand, historyCommand, }… Evidence: `apps/cli/src/index.ts`
- **Utils** (source_file): import readline from "node:readline"; ⋮---- export function truncate text: string, maxLength: number : string ⋮---- export function maskKey key: string : string ⋮---- export function confirm message: string : Promise ⋮---- export function setJsonMode enabled: boolean : void ⋮---- export function isJsonMode : boolean ⋮---- export function outputJson data: unknown : void ⋮---- export function paginate items: T , page: number, perPage: number : Evidence: `apps/cli/src/utils.ts`
- **Index** (source_file): import path from "node:path"; import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { z } from "zod"; import dotenv from "dotenv"; import { LocalStore } from "unforgit-db"; import { resolveVisibility } from "unforgit-core"; import { applyLifecycleDefaults, resolveLifecycleConfig } from "unforgit-core"; import { buildAutoLinkQuery } from "unforgit-core"; import { loadConfig, getDbPath, isInitialized, findRepoRoot } from "unforgit-config"; import type { MemoryType, LinkType } from "unforgit-shared"; import { findConsolidationCandidates, executeConsolidation, formatCandidatePreview, } from "… Evidence: `apps/mcp/src/index.ts`
- **Utils** (source_file): import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; ⋮---- export function cn ...inputs: ClassValue Evidence: `apps/website/lib/utils.ts`
- **Auto Consolidate Remote** (source_file): import type { Memory, MemoryType } from "unforgit-shared"; import type { IRemoteStore } from "unforgit-shared"; import { generateConsolidatedText, memoriesToConsolidationInput, } from "./llm.js"; ⋮---- export interface ConsolidationCandidate { memories: Memory ; reason: string; suggestedTags: string ; averageScore: number; } ⋮---- export interface AutoConsolidateOptions { threshold?: number; minGroupSize?: number; maxGroups?: number; types?: MemoryType ; excludeConsolidations?: boolean; } ⋮---- export interface AutoConsolidateResult { candidates: ConsolidationCandidate ; totalMemoriesScanned: number; totalCandidateGroups: number; } ⋮---- export interface ExecuteConsolidationOptions { apiKey… Evidence: `packages/core/src/auto-consolidate-remote.ts`
- **Auto Consolidate** (source_file): import type { Memory, MemoryType } from "unforgit-shared"; import type { ILocalStore } from "unforgit-shared"; import { generateConsolidatedText, memoriesToConsolidationInput, } from "./llm.js"; ⋮---- export interface ConsolidationCandidate { memories: Memory ; reason: string; suggestedTags: string ; averageScore: number; } ⋮---- export interface AutoConsolidateOptions { threshold?: number; minGroupSize?: number; maxGroups?: number; types?: MemoryType ; excludeConsolidations?: boolean; } ⋮---- export interface AutoConsolidateResult { candidates: ConsolidationCandidate ; totalMemoriesScanned: number; totalCandidateGroups: number; } ⋮---- export interface ExecuteConsolidationOptions { apiKey?… Evidence: `packages/core/src/auto-consolidate.ts`
- **Lifecycle Maintenance** (source_file): import { findConsolidationCandidates, executeConsolidation } from "./auto-consolidate.js"; import { executeConsolidationRemote, findConsolidationCandidatesRemote, type ConsolidationCandidate, type ExecuteConsolidationResult, } from "./auto-consolidate-remote.js"; import { resolveLifecycleConfig, isMemoryExpired } from "./lifecycle.js"; import { isOpenAIConfigured } from "./embeddings.js"; import type { LifecycleConfig, Memory } from "unforgit-shared"; import type { ILocalStore } from "unforgit-shared"; import type { IRemoteStore } from "unforgit-shared"; ⋮---- export interface StrengthenedMemoryCandidate { id: string; usageCount: number; lastUsed?: Date; recommendedAction: "promote" "pin";… Evidence: `packages/core/src/lifecycle-maintenance.ts`
- **Lifecycle Scheduler** (source_file): export interface LifecycleSchedulerOptions { debounceMs: number; onError?: error: unknown, context: { orgId: string; repoId: string } = void; } ⋮---- type LifecycleRunner = orgId: string, repoId: string = Promise ; ⋮---- interface SchedulerState { timer?: ReturnType ; running: boolean; pending: boolean; orgId: string; repoId: string; } ⋮---- export class LifecycleScheduler ⋮---- constructor ⋮---- schedule orgId: string, repoId: string : void ⋮---- dispose : void ⋮---- private async run key: string : Promise Evidence: `packages/core/src/lifecycle-scheduler.ts`
- **Lifecycle** (source_file): import type { CreateMemoryInput, LifecycleConfig, LifecycleMaintenanceConfig, LifecycleUsageBoostConfig, LifecycleTtlConfig, Memory, MemoryType, } from "unforgit-shared"; ⋮---- export interface ResolvedLifecycleConfig { ttlSecondsByType: LifecycleTtlConfig; usageBoost: LifecycleUsageBoostConfig; maintenance: LifecycleMaintenanceConfig; } ⋮---- export function resolveLifecycleConfig config?: LifecycleConfig, : ResolvedLifecycleConfig ⋮---- export function getDefaultTtlSeconds memoryType: MemoryType, lifecycle?: LifecycleConfig, : number undefined ⋮---- export function applyLifecycleDefaults input: CreateMemoryInput, lifecycle?: LifecycleConfig, : CreateMemoryInput ⋮---- export function isExp… Evidence: `packages/core/src/lifecycle.ts`
- **Quality** (source_file): import type { Memory } from "unforgit-shared"; ⋮---- export interface QualityFactors { textQuality: number; recallCount: number; consolidationStatus: number; age: number; hasLinks: number; hasTags: number; hasEmbedding: number; } ⋮---- export interface QualityScore { overall: number; factors: QualityFactors; suggestions: string ; } ⋮---- export interface MemoryStats { recallCount: number; linkCount: number; hasEmbedding: boolean; daysSinceCreation: number; daysSinceLastRecall: number null; } ⋮---- export function computeTextQuality text: string : number ⋮---- export function computeRecallScore recallCount: number : number ⋮---- export function computeAgeScore daysSinceCreation: number, days… Evidence: `packages/core/src/quality.ts`
- **Recall** (source_file): import type { RecallResult } from "unforgit-shared"; ⋮---- function recencyScore createdAt: Date : number ⋮---- export function rankResults results: RecallResult : RecallResult ⋮---- export function computeCompositeScore textScore: number, createdAt: Date, confidence?: number, usageBoost = 0, : number ⋮---- export function computeHybridScore ftsScore: number, embeddingScore: number, createdAt: Date, confidence?: number, usageBoost = 0, : number ⋮---- export function normalizeEmbeddingScore similarity: number : number ⋮---- export function deduplicateResults results: RecallResult : RecallResult ⋮---- export function mergeAndRank localResults: RecallResult , remoteResults: RecallResult , k: n… Evidence: `packages/core/src/recall.ts`
- **Index** (source_file): import { LocalStore } from "unforgit-db"; import { RemoteClient } from "unforgit-config"; import { resolveVisibility, mergeAndRank, applyLifecycleDefaults, resolveLifecycleConfig, runLocalLifecycleMaintenance, LifecycleScheduler, } from "unforgit-core"; import type { LifecycleConfig, MemoryType, MemoryLink, LinkType, Visibility, RecallResult, } from "unforgit-shared"; ⋮---- export interface ToolConfig { localDbPath: string; remoteUrl: string; orgId: string; repoId: string; apiKey?: string; lifecycle?: LifecycleConfig; } ⋮---- export interface RecallParams { query: string; repo?: string; types?: MemoryType ; tags?: string ; k?: number; } ⋮---- export interface StoreParams { text: string; typ… Evidence: `packages/tools/src/index.ts`
- **Changelog** (documentation): 0.9.3 https://github.com/MiguelMedeiros/unforgit/compare/v0.9.2...v0.9.3 2026-07-08 Evidence: `CHANGELOG.md`
- The remaining 5 evidence entries are in `AI_CONTEXT_PACK.json` or `EVIDENCE_INDEX.json`.

## Rules the Host AI Must Follow

- **Treat this asset as pre-work context, not a runtime environment.**: The AI Context Pack contains only an evidence-backed understanding of the project, not the project's executable state. Evidence: `README.md`, `plugins/claude-code/README.md`, `plugins/claude-code/unforgit/README.md`
- **When answering the user, distinguish what can be previewed from what can only be verified after install.**: The consumer value of the pre-install experience comes from reducing bad installs and misjudgments, not from pretending to be a real run. Evidence: `README.md`, `plugins/claude-code/README.md`, `plugins/claude-code/unforgit/README.md`

## Questions the User Should Answer First

- Which host AI or local environment do you plan to use it in?
- Do you just want to experience the workflow first, or are you ready to actually install?
- What matters most to you: install cost, output quality, or conflicts with your existing rules?

## Acceptance Checks

- Every capability claim can be traced back to a file path in evidence_refs.
- AI_CONTEXT_PACK.md does not package previews as a real run.
- The user can understand who it fits, what it can do, how to start, and the risk boundaries within 3 minutes.

---

## Doramagic Context Augmentation

The following sections strengthen the repository context for a host AI. Human Manual data is a reading route, and pitfall notes become operating constraints.

## Human Manual Outline

Usage rule: this is only a reading route and salience signal, not factual authority. Concrete claims must still return to repo evidence or Claim Graph.

Host AI hard rules:
- Do not treat page titles, section order, summaries, or importance values as factual project evidence.
- When explaining the Human Manual outline, state that it is only a reading route or salience signal.
- Capability, installation, compatibility, runtime state, and risk claims must cite repo evidence, source paths, or Claim Graph.

- **System Overview & Architecture**: importance `high`
  - source_paths: README.md, package.json, pnpm-workspace.yaml, tsconfig.base.json, docker-compose.yml
- **Memory Lifecycle, Curation & Quality**: importance `high`
  - source_paths: packages/core/src/lifecycle.ts, packages/core/src/lifecycle-maintenance.ts, packages/core/src/lifecycle-scheduler.ts, packages/core/src/auto-consolidate.ts, packages/core/src/auto-consolidate-remote.ts
- **CLI, HTTP API, Web & Admin Dashboards**: importance `high`
  - source_paths: apps/cli/src/index.ts, apps/cli/src/utils.ts, apps/cli/src/commands/add.ts, apps/cli/src/commands/recall.ts, apps/cli/src/commands/init.ts
- **Agent Integrations, MCP, Plugins & Deployment**: importance `medium`
  - source_paths: apps/mcp/src/index.ts, apps/cli/src/ide-integration.ts, apps/cli/src/cursor-rule.ts, apps/cli/server.json, plugins/claude-code/unforgit/.claude-plugin/plugin.json

## Repo Inspection Evidence

- repo_clone_verified: true
- repo_inspection_verified: true
- repo_commit: `5c22d930de8e2691e18463d98f6b61f5bc743f17`
- inspected_files: `README.md`, `docker-compose.yml`, `package.json`, `pnpm-lock.yaml`, `docs/agent-tools.md`, `docs/api.md`, `docs/architecture.md`, `docs/cli.md`, `docs/concepts.md`, `docs/configuration.md`, `docs/mcp.md`, `docs/server-ai.md`, `packages/config/package.json`, `packages/config/src/config-schemas.ts`, `packages/config/src/config.ts`, `packages/config/src/index.ts`, `packages/config/src/remote-client.ts`, `packages/config/tsconfig.json`, `packages/config/tsup.config.ts`, `packages/core/package.json`

Host AI hard rules:
- Without repo_clone_verified=true, do not claim that the source code has been read.
- Without repo_inspection_verified=true, do not write README, docs, or package-file conclusions as facts.
- Without quick_start_verified=true, do not claim that the Quick Start path has run successfully.

## Doramagic Pitfall Constraints

These rules come from Doramagic discovery, validation, or compilation findings. The host AI must treat them as operating constraints, not background notes.

### Constraint 1: Capability evidence risk requires verification

- Trigger: README/documentation is current enough for a first validation pass.
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: capability.assumptions | https://github.com/MiguelMedeiros/unforgit
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 2: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: downstream_validation.risk_items | https://github.com/MiguelMedeiros/unforgit
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 3: Security or permission risk requires verification

- Trigger: no_demo
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: risks.scoring_risks | https://github.com/MiguelMedeiros/unforgit
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 4: Maintenance risk requires verification

- Trigger: issue_or_pr_quality=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://github.com/MiguelMedeiros/unforgit
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.

### Constraint 5: Maintenance risk requires verification

- Trigger: release_recency=unknown。
- Host AI rule: Reproduce the official install and quickstart path in an isolated environment.
- Why it matters: May increase setup, validation, or first-run risk for the user.
- Evidence: evidence.maintainer_signals | https://github.com/MiguelMedeiros/unforgit
- Hard boundary: Do not present this pitfall as solved, verified, or ignorable unless later evidence explicitly closes it.
