forgetful
Memory server
Created by Scott
Published in ScottRBK/forgetful. Publisher page
339 GitHub stars
What it is
Opensource Memory for Agents
AutoGineer overview, from the brain’s own files
Forgetful is a storage and retrieval tool designed as a Model Context Protocol (MCP) server. It provides AI agents with persistent, semantically searchable memory, enabling them to maintain context across sessions and different agentic applications. By imposing the Zettelkasten principle, Forgetful requires memories to be atomic, which facilitates the automatic construction of a knowledge graph through semantic embedding and linking. It supports flexible storage backends including SQLite for local development and PostgreSQL for production, and uses local embedding models to ensure privacy and performance. Beyond simple memory, it supports entities, projects, and procedural skills, allowing agents to coordinate tasks and maintain complex relationships between data points.
How it works
Memory model: Hybrid
AutoGineer overview, from the brain’s own files
Forgetful functions as an MCP server that exposes meta-tools to connected AI agents. When an agent records a memory, it must provide a title, content, and context, which the server then converts into semantic embeddings using local models. The system automatically links new memories to existing ones based on similarity scores, building a knowledge graph. It manages the agent's context window by enforcing a token budget and ranking retrieved information by importance. The system also supports entities and relationships, allowing for structured data management alongside unstructured memory notes.
| Folder | Role | Files |
|---|---|---|
| .github | agent-config | 10 |
| app | source-code | 153 |
| docs | docs | 46 |
| examples | examples | 1 |
| skills | agent-instructions | 13 |
| tests | tests | 182 |
| alembic | folder | 18 |
| benchmarks | folder | 6 |
| docker | folder | 5 |
| nix | folder | 1 |
| test_harness | folder | 12 |
Requirements
Runtimes: Python >=3.12
Databases: PostgreSQL, Qdrant, SQLite
API keys (by name): FORGETFUL_TOKEN
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Google Antigravity, Kiro, OpenCode, Amp, Roo Code, Cline, JetBrains Junie, Devin (ex-Windsurf)
Set it up
This brain runs code automatically: 2 scripts. Review app/bootstrap.py, pyproject.toml before opening the folder in Claude Code. No step below turns a hook on for you.
app/bootstrap.py:python app/bootstrap.pypyproject.toml:hatch build hook vcs (hatch_build.py)
- Not scanned by AutoGineerThe author’s README also describes installing it with Docker Compose. Read its install section: AutoGineer did not scan that path. https://github.com/ScottRBK/forgetful/blob/9f85ddcf2ca1ae0264358e0b4b50860948ec1e03/README.md#option-3-docker-deployment-productionscale
- Not scanned by AutoGineerThe author’s README also describes installing it from a clone of its repository. Read its install section: AutoGineer did not scan that path. https://github.com/ScottRBK/forgetful/blob/9f85ddcf2ca1ae0264358e0b4b50860948ec1e03/README.md#quick-start
- Not scanned by AutoGineerIts dependencies are installed by pip or uv when you run it and were not scanned by AutoGineer (28 declared). https://pypi.org/project/forgetful-ai/
Created by Scott. Published in ScottRBK/forgetful. Licence: MIT License.
Usage
AutoGineer overview, from the brain’s own files
- Connect to AI agents via MCP (stdio or HTTP).
- Store atomic memories with context and tags.
- Query memories using natural language with semantic search.
- Manage projects and link memories to specific work streams.
- Track entities and their relationships for team or system context.
- Execute procedural skills stored as step-by-step instructions.
- “Create a memory about a technical decision.”
- The agent saves an atomic note linked to a project, which is then semantically indexed and linked to related past decisions.
- “Find information about a specific team member's role.”
- The agent retrieves the entity record for the person and any associated memories or relationship metadata.
Documentation by Scott
<h1 align="center">Forgetful</h1>
<p align="center"> <img src="https://img.shields.io/badge/python-3.12%2B-blue" alt="Python"> <img src="https://img.shields.io/badge/license-MIT-green" alt="License"> <img src="https://img.shields.io/badge/MCP-server-purple" alt="MCP"> <a href="https://github.com/jlowin/fastmcp"> <img src="https://img.shields.io/badge/FastMCP-powered-orange" alt="FastMCP"> </a> <a href="https://github.com/qdrant/fastembed"> <img src="https://img.shields.io/badge/FastEmbed-powered-orange" alt="FastEmbed"> </a> <a href="https://discord.gg/ngaUjKWkFJ"> <img src="https://img.shields.io/badge/Discord-Join%20Us-7289da?logo=discord&logoColor=white" alt="Discord"> </a> </p>
Forgetful is a storage and retrieval tool for AI Agents. Designed as a Model Context Protocol (MCP) server built using the FastMCP framework. Once connected to this service, MCP clients such as Coding Agents, Chat Bots or your own custom built Agents can store and retrieve information from the same knowledge base.
Table of Contents
Overview
Features
Quick Start
CLI
Usage Examples
How It Works
Configuration
Documentation
Contributing
License
Overview
A lot of us are using AI Agents now, especially in the realm of software development. The pace at which work and decisions are made can make it difficult for you to keep up from a notes and context persistence perspective.
So if you are following something like the BMAD Method for example and you want to take your brain storming session you've just had with Claude on your desktop/mobile and use it for the basis of your next Claude Code session, then having a shared knowledge base across the two agents can help with this.
This is just one example use case to illustrate the point, more and more agentic applications are going to surface and the use cases for sharing data across them is going to increase.
Knowledge bases are going to become a key infrastructure component for your interactions with AIs. There are many excellent knowledge base solutions available (many for free on github) and I would encourage you to check them out and find one that works for you (even if Forgetful doesn't) as I found from personal experience that interactions with my agents got easier and more rewarding once they knew more about me, my work and previous interactions that I had had with them or other AI systems.
What makes Forgetful different from other Memory based MCP services is that it is a rather opinionated view on how AI Agents such store and retrieve data.
Forgetful imposes the Zettelkasten principle when clients wish to record memories, that is each memory must be atomic (one concept per note). Along with the note (title and content), we also ask the client / agent to provide context around what it was doing when creating the note, along with keywords and tags. With this information we create semantic embeddings and store these to aid with later retrieval and in addition to this we also automatically link the memory to existing memories that have a particular similarity score, allowing for the automatic construction of a knowledge graph.
In this sense Forgetful becomes a little bit like Obsidian for AI Agents, where the auto linking nudges them in building up a graph of the knowledge.
We find, as do others (A-MEM: Agentic Memory or LLM Agents), all this helps in ensuring that when the agent requires relevant information from the memory system later, the correct information is returned.
In addition to just memories, Forgetful also has the concept of entities (think organisation, people, products), projects, documents, code artifacts, skills (procedural knowledge following the Agent Skills standard), and plans with tasks for multi-agent coordination, all of which can be associated with one or more memories.
Features
Configure either STDIO or HTTP transport mechanism (or stand up two services to support both)
Multiple Authentication supported, flows see FastMCP docs for full list
Meta Tool Discovery, only three tools exposed to client application to preserve context window.
Flexible Storage– SQLite (default, zero-config) or PostgreSQL (for scale and production deployments)
Stores memories as vectors and allowing memories to be retrieved from natural language queries from AI.
Cross Encoder reranking to improve recall and precision of memory retrieval.
Flexible ranking (embedding and cross encoder) providers, run everything locally without calls to the cloud thanks to FastEmbed
Automatic linking of semantically similar memories, automating the creation of the knowledge graph.
Plans and Tasks for multi-agent coordination -- structure work into plans with tasks that have acceptance criteria, state management with optimistic locking, and dependency tracking with cycle detection.
Skills for procedural memory -- store step-by-step instructions and agent capabilities with semantic search, import/export in Agent Skills SKILL.md format, and cross-referencing with memories.
For the complete roadmap, see Features Roadmap.
Quick Start
Option 1: PyPI (Recommended)
# Run directly with uvx (no installation needed)
uvx forgetful-ai
# Or install globally
uv tool install forgetful-ai
forgetfulData stored in platform-appropriate locations (~/.local/share/forgetful on Linux/Mac, AppData on Windows).
By default, runs with stdio transport for MCP clients. For HTTP:
uvx forgetful-ai --transport http --port 8020Option 2: From Source
git clone https://github.com/ScottRBK/forgetful.git
cd forgetful
# Install dependencies with uv
uv sync
# Run the server (uses SQLite by default)
uv run main.pyThe server starts with stdio transport. For HTTP: uv run main.py --transport http
Option 3: Docker Deployment (Production/Scale)
Forgetful provides two Docker deployment options:
SQLite with Docker (Simpler, Single-Container)
cd docker
cp .env.example .env
# Edit .env: Set DATABASE=SQLite and SQLITE_PATH=data/forgetful.db
docker compose -f docker-compose.sqlite.yml up -dThe SQLite database persists in the ./data directory on the host.
PostgreSQL with Docker (Recommended for multitenant)
See docker-compose.postgres.yml and .env.example
cd docker
cp .env.example .env
# Edit .env: Set DATABASE=Postgres and configure POSTGRES_* settings
docker compose -f docker-compose.postgres.yml up -dNote: If no .env file exists, the application uses defaults from app/config/settings.py.
For all configuration options, see Configuration Guide.
Connecting to An Agent
For detailed connection guides (Claude Code, Claude Desktop, other clients that support MCP), see Connectivity Guide.
Copilot CLI (includes custom agents and skills)
Gemini CLI (includes custom commands)
Opencode (includes custom commands and skills)
Add Forgetful to your MCP client configuration:
stdio transport (recommended for local use):
{
"mcpServers": {
"forgetful": {
"type": "stdio",
"command": "uvx",
"args": ["forgetful-ai"]
}
}
}HTTP transport (for Docker/remote):
{
"mcpServers": {
"forgetful": {
"type": "http",
"url": "http://localhost:8020/mcp"
}
}
}CLI
The forgetful command is also a full terminal client over the same tool registry the
MCP meta-tools use - against your local database by default, or a remote deployment
after auth login.
uv tool install forgetful-ai
# Curated verbs for daily use
forgetful memory save "Set generateResolvConf false to fix WSL2 DNS" \
--title "WSL2 DNS fix" --importance 7
forgetful memory search "wsl dns" -c "wsl networking" -n 5
forgetful memory get 812
forgetful memory recent -n 10 -p my-project
forgetful project list
# Generic passthrough to any available tool
forgetful tools list --category memory
forgetful tools info query_memory
forgetful call create_project --args '{"name": "Homelab", "description": "...", "project_type": "personal"}'
# Remote deployment (browser OAuth; saves FORGETFUL_SERVER to ~/.config/forgetful/.env)
forgetful auth login --server https://forgetful.example.com
forgetful auth status
forgetful memory search "wsl dns" -c "wsl networking" # now runs remotely
forgetful memory search "wsl dns" -c "wsl networking" --local # force local mode per invocation
# Scripting: --json emits machine-readable output
forgetful memory search "wsl dns" -c "wsl networking" --json | jq '.primary_memories[0].id'forgetful serve is the canonical way to run the MCP server (forgetful serve --transport http --port 8020); the bare forgetful / uvx forgetful-ai invocation and
the legacy --transport/--re-embed flags keep working indefinitely, so existing MCP
client configurations are unaffected. Headless environments can set FORGETFUL_TOKEN
(bearer) instead of the OAuth flow. See the
Configuration Guide for precedence rules, or walk
through the forgetful-cli-setup skill for install,
auth, and verification steps end-to-end.
Usage Examples
Forgetful exposes only 3 meta-tools to MCP clients. The tools available through
execute_forgetful_tool depend on the enabled feature flags. Use
discover_forgetful_tools for the current runtime catalog.
Example 1: Project-Scoped Memory
Create a memory linked to a project for better organization and scoped retrieval.
# Create project for organizing related knowledge
project = execute_forgetful_tool(
"create_project",
{
"name": "E-Commerce Platform Redesign",
"project_type": "work",
"status": "active"
}
)
# Create memory linked to project
memory = execute_forgetful_tool(
"create_memory",
{
"title": "Payment gateway: Stripe chosen over PayPal",
"content": "Selected Stripe for its API, fees, and fraud detection.",
"context": "Choosing the payment provider for the redesign",
"keywords": ["payment", "stripe", "paypal"],
"tags": ["payment", "decision"],
"importance": 9,
"project_ids": [project["id"]]
}
)
# Later, query within project scope
results = execute_forgetful_tool(
"query_memory",
{
"query": "payment processing implementation",
"query_context": "Implementing payments for the redesign",
"project_ids": [project["id"]]
}
)
# Returns: Stripe decision + auto-linked related memoriesExample 2: Knowledge Graph with Entities
Track people, organizations, and relationships - perfect for team and infrastructure management.
# New engineer joins your company
new_hire = execute_forgetful_tool(
"create_entity",
{
"name": "Jordan Taylor",
"entity_type": "Individual",
"description": "Backend Engineer - Payments Team",
"tags": ["engineering", "backend", "payments"]
}
)
# Get company entity (create if needed)
company = execute_forgetful_tool(
"create_entity",
{
"name": "TechFlow Systems",
"entity_type": "Organization",
"description": "SaaS platform company"
}
)
# Create employment relationship
execute_forgetful_tool(
"create_entity_relationship",
{
"from_entity_id": new_hire["id"],
"to_entity_id": company["id"],
"relationship_type": "works_for",
"metadata": {
"role": "Backend Engineer II",
"department": "Payments",
"start_date": "2025-01-20"
}
}
)
# Create memory about hiring
hire_memory = execute_forgetful_tool(
"create_memory",
{
"title": "Jordan Taylor hired - payments focus",
"content": "Jordan joins to build the Stripe integration and handle PCI compliance.",
"context": "Recording ownership and experience for the payments work",
"keywords": ["jordan", "stripe", "payments", "pci"],
"tags": ["team", "hiring", "payments"],
"importance": 7
}
)
# Link person to memory
execute_forgetful_tool(
"link_entity_to_memory",
{
"entity_id": new_hire["id"],
"memory_id": hire_memory["id"]
}
)
# Query Jordan's related knowledge
results = execute_forgetful_tool(
"query_memory",
{
"query": "Jordan payment implementation",
"query_context": "Finding ownership and experience for payments work"
}
)
# Returns: Hiring memory + linked entity + relationship contextTool Categories
The core catalog covers users, memories, projects, entities, code artifacts, and documents. Skills, files, plans, and tasks appear when their feature flags are enabled.
For complete documentation with extensive examples, see Complete Tool Reference.
How It Works
Atomic Memory Principle
Inspired by Zettelkasten, each memory stores one concept in ~300-400 words:
Easily titled – Forces clarity (200 char limit)
Self-contained – Understandable without external context
Linkable – Small units enable precise knowledge graphs
For detailed content, use Documents and extract 3-7 atomic memories that link to the parent document.
Automatic Knowledge Graph
When you create a memory:
Embedding generated – FastEmbed converts content to 384-dimensional vector
Similarity search – Finds related memories (similarity ≥0.7 by default)
Auto-linking – Creates bidirectional links to top 3-5 matches (configurable)
Graph traversal – Queries return primary results + 1-hop linked memories
Entities and Knowledge Graphs
Entities represent concrete, real-world things (people, organizations, teams, devices) that can be linked to memories:
Typed entities – Organizations, Individuals, Teams, Devices, Systems, or custom types
Relationships – Directional connections (e.g., "Person works_at Organization") with strength and metadata
Memory linking – Associate entities with relevant memories for context
Knowledge graph – Build networks showing how entities relate to each other and your knowledge base
Use entities for concrete things (Sarah Chen, TechFlow Systems, Cache Server 01) and memories for abstract concepts (architectural patterns, decisions, learnings).
Token Budget Management
Prevents context window overflow:
Configurable budget (default 8K tokens)
Search finds relevant memories; primary results are then sorted by importance (high first)
Equal-importance primary results keep their search order, even when nothing is truncated
Truncates gracefully if over budget
Respects max memory count (default 20)
This keeps query results within the LLM's context budget.
For vector search and optional cross-encoder reranking, see Search Documentation.
Configuration
No configuration required – Forgetful uses sensible defaults out of the box.
Key Settings (Optional)
MEMORY_TOKEN_BUDGET– Max tokens for query results (default:8000)EMBEDDING_MODEL– Embedding model (default:BAAI/bge-small-en-v1.5)MEMORY_NUM_AUTO_LINK– Auto-link count (default:3, set0to disable)MEMORY_SIMILARITY_THRESHOLD– Minimum cosine similarity for auto-links (default:0.7)SERVER_PORT– HTTP server port (default:8020)MAX_GRAPH_LIMIT– Upper bound for/api/v1/graph?limitand/api/v1/graph/subgraph?max_nodes(default:2000)
For all 40+ environment variables with detailed explanations, see Configuration Guide.
Documentation
Guides
Core Concepts – Memories vs Entities vs Documents explained
Complete Tool Reference – Runtime tools and examples
REST API Reference – HTTP endpoints for web UI integration
Configuration Guide – All environment variables explained
Connectivity Guide – Connect Claude and other MCP clients
Self-Hosting Guide – Deploy on a VPS with Docker
Nix Guide – Reproducible dev shell, builds and OCI image with Nix flakes
Search Documentation – Embedding pipeline and retrieval architecture
Embedding Migration – Switch embedding providers safely
Features Roadmap – Planned features and priorities
External Resources
MCP Protocol Specification – Model Context Protocol docs
pgvector – PostgreSQL vector extension
FastEmbed – Local embedding generation
Zettelkasten Principle – Atomic note-taking method
Contributing
We welcome contributions! Forgetful uses integration + E2E testing with Docker Compose orchestration.
See the contributor guide for:
Testing workflows (integration tests, E2E tests, GitHub Actions)
Development setup (local vs Docker)
CI/CD pipeline details
Release process
License
MIT License - see LICENSE for details.
docs/concepts.md
Core Concepts
Forgetful organizes knowledge into nine building blocks. Understanding when to use each one makes the difference between a cluttered knowledge dump and a useful, searchable knowledge graph.
The Building Blocks
Memories
Atomic knowledge units - one concept per note.
Memories are the core of Forgetful. Each memory captures a single fact, decision, preference, or insight. Think of them as the nodes in your knowledge graph.
Important: Memories are the only directly queryable type. Documents and Code Artifacts must be linked to memories to be discoverable through search.
Good memories are:
Easily titled - if you can't summarize it in ~10 words, it's probably not atomic
Self-contained - understandable without needing to read other memories
Linkable - small enough to connect precisely to related concepts
Examples:
"Chose Stripe over PayPal for lower fees and better webhook support"
"Use temperature 0.7 for creative tasks, 0.2 for factual queries"
"Scott prefers explicit error handling over silent fallbacks"
Limits: 200 char title, ~300-400 words content
Provenance tracking: Memories can optionally track their origin for traceability:
source_repo- Repository where the knowledge originatedsource_files- Specific files that informed the memorysource_url- URL to original source materialconfidence- How confident the encoding agent was (0.0-1.0)encoding_agent- Which AI/process created this memoryencoding_version- Version of the encoding processagent_id- Logical identity of the agent (e.g., 'CodeAgentUltra')agent_version- Version of the agentagent_model- LLM model used (e.g., 'claude-sonnet-4-6')
Entities
Real-world things - people, organizations, devices, products.
Entities represent concrete nouns that exist in the world. They can have relationships with each other and link to memories. Use entities when you want to track WHO or WHAT is involved, not just the knowledge itself.
Types: Organization, Individual, Team, Device, System, Other (with custom_type)
Examples:
Sarah Chen (Individual) - "Backend lead, payments team"
TechFlow Systems (Organization) - "SaaS platform company"
Production Server 01 (Device) - "Primary API server, us-east-1"
GPT-4 (Product) - "OpenAI's flagship model"
Relationships: Entities connect to each other (e.g., "Sarah works_at TechFlow") and to memories (e.g., "Sarah" linked to "Hired Sarah for Stripe integration").
Plans
Containers for structured work - goals, context, and ordered tasks.
Plans represent intent and procedure, not knowledge. While memories capture what you know, plans capture what you intend to do. Each plan lives within a project and decomposes a goal into concrete tasks.
Plans follow a lifecycle: draft → active → completed → archived. A draft plan is being shaped; an active plan is in progress; a completed plan has all its tasks done; an archived plan is retained for reference but no longer actionable.
Good plans have:
A clear goal - what does "done" look like?
Context - background information an implementer needs to get started
Ordered tasks - a breakdown of the work, not a vague wish list
Examples:
"Migrate payment provider from PayPal to Stripe" (active)
"Set up CI/CD pipeline for staging environment" (draft)
"Evaluate and select embedding model" (completed)
Tasks
Work units within plans - assignable, trackable, state-machined.
Tasks are the actionable steps inside a plan. Each task has a service-enforced state machine: todo → doing → done, with two additional terminal/pause states: waiting (blocked on an external dependency) and cancelled (no longer needed).
Tasks support atomic claiming via optimistic locking - when an agent picks up a task, the transition is conflict-safe even with concurrent workers. Each task carries a priority level (P0 = critical, P1 = high, P2 = normal, P3 = low) and an optional agent assignment so multiple agents can coordinate without stepping on each other.
Task dependencies: Tasks can declare dependencies on other tasks within the same plan. A task cannot transition to doing until all of its dependencies are done. The system enforces cycle detection at creation time - if adding a dependency would create a circular chain (A → B → C → A), the request is rejected.
Examples:
"Create Stripe webhook endpoint" (P1, todo, assigned: backend-agent)
"Write migration script for subscription records" (P0, doing)
"Update API documentation for new payment flow" (P2, waiting)
Acceptance Criteria
Boolean conditions on tasks - the definition of done.
Acceptance criteria are first-class children of tasks. Each criterion is a clear, verifiable condition that must be satisfied before a task can transition to done. All criteria on a task must be met for completion.
This enables a clean separation of concerns: a planner defines criteria up front, an implementer does the work and marks criteria as met, and a reviewer validates the results. The workflow becomes planner-sets-criteria → implementer-does-work → reviewer-validates.
Good criteria are:
Binary - unambiguously true or false, no subjective judgment
Verifiable - an agent or person can check it without guessing
Scoped - tied to one observable outcome, not a compound condition
Examples (for a "Create Stripe webhook endpoint" task):
"Endpoint returns 200 for valid Stripe signature"
"Invalid signatures return 400 with error detail"
"Events are persisted to the webhook_events table"
"Integration test covers payment_intent.succeeded event"
Documents
Long-form reference material - guides, analysis, specifications.
When content exceeds ~300 words or covers multiple related concepts, use a document. Documents are meant to be referenced, not retrieved in full during every query.
Best practice: Create the document, then extract 3-7 atomic memories that link back to it. This gives you both the detailed reference AND searchable knowledge atoms.
Examples:
"Payment Integration Architecture Guide" - 2000 word technical spec
"Q4 Planning Meeting Notes" - detailed discussion summary
"TTS Engine Evaluation Report" - comparison of 5 different engines
Code Artifacts
Reusable code snippets - patterns, templates, examples.
Attach working code to memories so agents can retrieve not just the concept but a concrete implementation.
Examples:
Stripe webhook handler boilerplate
FastAPI dependency injection pattern
React form validation hook
Skills
Procedural knowledge - step-by-step instructions and agent capabilities.
Skills bridge the gap between knowledge (memories) and action. While memories capture WHAT you know, skills capture HOW to do things. Each skill follows the Agent Skills open standard with a kebab-case name, description, and markdown instructions.
Skills have semantic search via embedded descriptions, making them discoverable by capability rather than exact name. They can be imported/exported as SKILL.md files for portability across 30+ agent platforms (Claude Code, Cursor, Gemini CLI, etc.).
Examples:
"code-review" - Systematic code review process for pull requests
"deploy-staging" - Deploy application to staging environment
"data-pipeline-etl" - Extract, transform, and load data from external sources
Fields: kebab-case name (max 64), description (max 1024), content (markdown, max 100KB), license, compatibility, allowed_tools, metadata, tags, importance
Projects
Organizational scope - groups memories by context.
Projects help you filter queries to relevant knowledge. When working on the e-commerce platform, you don't need memories from the trading bot project cluttering your results.
Examples:
"E-Commerce Platform Redesign" (status: active)
"Q4 Hiring Initiative" (status: completed)
"AI Agent Framework" (status: active)
Provenance Tracking
Forgetful supports optional provenance fields on all object types so you can trace where knowledge came from and which agent encoded it. This is particularly useful when multiple agents or tools write to the same knowledge base.
Supported Fields
| Field | Description | Example |
|---|---|---|
source_repo | Repository or project the knowledge came from | "owner/repo" |
source_files | List of file paths that informed this object | ["src/payments.py"] |
source_url | URL to the original source material | "https://github.com/..." |
confidence | Encoding confidence score (0.0–1.0) | 0.9 |
encoding_agent | Software running the agent | "OpenCode" |
encoding_version | Version of the encoding software | "1.3.13" |
agent_id | Logical identity of the agent | "CodeAgentUltra" |
agent_version | Version of the agent | "1.0" |
agent_model | LLM model the agent used | "claude-sonnet-4-6" |
Coverage by Object Type
All 9 fields: Memories, Projects, Documents, Code Artifacts, Skills, Files, Entities, Plans, Tasks
8 fields (no
confidence): Entity relationships — these already carry their own relationship-level confidenceMemories previously had 6 fields;
agent_id,agent_version, andagent_modelwere added to bring them in line with all other types
Environment-Level Defaults
Six environment variables let a server operator set provenance defaults that apply automatically to every create operation, without requiring individual agents to pass these values explicitly:
ENCODING_AGENT, ENCODING_VERSION, AGENT_ID, AGENT_VERSION, AGENT_MODEL, ENFORCE_ENV_OVERWRITEThe apply_provenance_defaults() utility fills in any missing provenance fields from these env values at create time.
ENFORCE_ENV_OVERWRITE
When ENFORCE_ENV_OVERWRITE=true, environment defaults override any provenance values the calling agent provides. This lets a server operator enforce consistent provenance across a shared instance regardless of what individual agents pass in — useful for audit or compliance scenarios where you need to guarantee which tool and model encoded each object.
When false (the default), agent-provided values take precedence and env values only fill gaps.
Decision Flow: What Goes Where?
| Question | Answer |
|---|---|
| Is it a person, org, device, or product? | Entity |
| Is it a goal that decomposes into steps? | Plan |
| Is it a concrete piece of work to be done? | Task |
| Is it a verifiable condition for "done"? | Acceptance Criterion |
| Is it step-by-step procedural knowledge? | Skill |
| Is it detailed analysis or a guide (>300 words)? | Document |
| Is it a single fact, decision, or preference? | Memory |
| Is it reusable code? | Code Artifact |
| Does it help scope/filter other knowledge? | Project |
The Litmus Test
Memory vs Entity
Entity = a thing that EXISTS (noun you could point at) Memory = knowledge ABOUT things (facts, decisions, preferences)
Ask: "Can I point at it?" If yes, probably an entity. If it's abstract knowledge, it's a memory.
"Sarah Chen" - Entity (she exists)
"Sarah is great at debugging async issues" - Memory (knowledge about Sarah)
Memory vs Document
Memory = single concept, scannable, <400 words **Document** = multiple concepts, reference material, >300 words
Ask: "Is this ONE idea or MANY?" One idea = memory. Many related ideas = document (then extract atomic memories from it).
"Chose XTTS-v2 for voice cloning" - Memory
"TTS Engine Evaluation comparing 5 engines with benchmarks" - Document
Memory vs Plan
Memory = knowledge about something (retrospective) Plan = intent to do something (prospective)
Ask: "Am I recording what happened, or describing what should happen?" Past/present knowledge = memory. Future work with steps = plan.
"Chose Stripe for lower fees" - Memory (a decision already made)
"Migrate payment provider from PayPal to Stripe" - Plan (work to be done)
Skill vs Memory
Skill = how to do something (procedural, reusable steps) Memory = knowledge about something (declarative fact or decision)
Ask: "Is this a procedure someone would follow, or a fact someone would recall?" Steps to follow = skill. Facts to know = memory.
"How to review pull requests in this project" - Skill
"We use conventional commits for all PRs" - Memory
Task vs Memory
Task = something to be done, with a state and an owner Memory = something to be known, permanently
Ask: "Will this be 'done' at some point?" If yes, it's a task. Memories don't get completed - they stay true.
"Write migration script for subscriptions" - Task (it will be done or cancelled)
"Subscription data lives in the billing schema" - Memory (a fact that persists)
When to Use Projects
Create a project when you have:
Multiple related memories that should be queried together
Work context that you'll return to repeatedly
A need to exclude unrelated knowledge from searches
Worked Example 1: E-Commerce Project
You're building a payment system. Here's how to decompose the knowledge:
Entities:
Stripe (Product) - "Payment processor API"
PayPal (Product) - "Alternative payment processor"
Jordan Taylor (Individual) - "Backend engineer, payments team"
TechFlow Systems (Organization) - "The company"
Project:
"E-Commerce Platform v2" (active)
Document:
"Payment Gateway Evaluation" - 1500 word comparison of Stripe vs PayPal vs Square
Memories (extracted from document + decisions):
"Chose Stripe over PayPal: better webhooks, lower fees, superior fraud detection"
"PCI compliance: use Stripe Elements to avoid handling raw card data"
"Subscription billing requires Stripe Billing API, not one-time charges endpoint"
"Jordan Taylor owns payment integration - hired specifically for Stripe experience"
Code Artifact:
Stripe webhook signature verification snippet
Links:
Memories link to → Stripe entity, PayPal entity, Jordan entity
Memories link to → Payment Gateway Evaluation document
Everything scoped to → E-Commerce Platform v2 project
Worked Example 2: AI Agent Project
You're developing a coding assistant agent. Here's the breakdown:
Entities:
Claude Sonnet (Product) - "Anthropic's fast model"
Claude Opus (Product) - "Anthropic's reasoning model"
OpenAI (Organization) - "GPT provider"
Production Agent Server (Device) - "Hosts the deployed agent"
Project:
"AI Coding Assistant" (active)
Document:
"Prompt Engineering Guidelines" - 2000 word guide on system prompts, temperature, context management
Memories (extracted + decisions):
"Use Claude Sonnet for quick edits, Opus for complex refactoring"
"Temperature 0.3 for code generation, 0.7 for explanations"
"System prompt must include repo structure for accurate file references"
"Context window overflow: summarize conversation history after 50k tokens"
"Tool calls: prefer specific tools over generic bash when available"
Code Artifact:
Conversation summarization prompt template
Tool result truncation logic
Links:
Model-related memories link to → Claude Sonnet, Claude Opus entities
Infrastructure memories link to → Production Agent Server entity
Everything scoped to → AI Coding Assistant project
Quick Reference
| Type | Size | Contains | Links To |
|---|---|---|---|
| Memory | <400 words | One concept | Memories, Entities, Documents, Code Artifacts |
| Entity | N/A | Real-world thing | Other Entities, Memories |
| Plan | N/A | Goal + context | Tasks, Project |
| Task | N/A | Work unit + state | Acceptance Criteria, Plan, Agent |
| Acceptance Criterion | N/A | Boolean condition | Task |
| Document | >300 words | Multiple concepts | Memories |
| Code Artifact | Variable | Working code | Memories |
| Skill | Variable | Procedural instructions | Memories, Projects |
| Project | N/A | Scope/context | Memories, Plans |
The knowledge graph emerges from these connections. Memories are the atoms; entities, documents, skills, and projects provide structure and context. Plans, tasks, and acceptance criteria layer intent on top of knowledge, letting agents coordinate structured work.
472 files · 452 not served here
- .dockerignore (not served here)
- .github/ISSUE_TEMPLATE/bug_report.yml (not served here)
- .github/ISSUE_TEMPLATE/config.yml (not served here)
- .github/ISSUE_TEMPLATE/feature_request.yml (not served here)
- .github/PULL_REQUEST_TEMPLATE.md (not served here)
- .github/dependabot.yml (not served here)
- .github/workflows/build.yml (not served here)
- .github/workflows/ci.yml (not served here)
- .github/workflows/e2e.yml (not served here)
- .github/workflows/nix-cache.yml (not served here)
- .github/workflows/publish.yml (not served here)
- .gitignore (not served here)
- .python-version (not served here)
- AGENTS.md
- ATTRIBUTION.md
- AUTOGINEER-RUNS.md
- CLAUDE.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENCE.md
- README.md
- SECURITY.md
- _typos.toml (not served here)
- alembic.ini (not served here)
- alembic/README (not served here)
- alembic/_db_helpers/__init__.py (not served here)
- alembic/_db_helpers/db_postgres_impl.py (not served here)
- alembic/_db_helpers/db_sqlite_impl.py (not served here)
- alembic/env.py (not served here)
- alembic/script.py.mako (not served here)
- alembic/versions/0c7b964dd1e7_initial_schema_with_entity_many_to_many.py (not served here)
- alembic/versions/20251216143413_add_aka_to_entities.py (not served here)
- alembic/versions/20260106_add_activity_log_table.py (not served here)
- alembic/versions/20260106_add_provenance_tracking_to_memories.py (not served here)
- alembic/versions/20260312_add_plans_tasks_criteria_dependencies.py (not served here)
- alembic/versions/20260315_add_files_table.py (not served here)
- alembic/versions/20260321_add_skills_table.py (not served here)
- alembic/versions/20260408_add_provenance_to_all_object_types.py (not served here)
- alembic/versions/20260704_add_memory_usage_tracking.py (not served here)
- alembic/versions/20260822_add_project_last_encoding_point.py (not served here)
- alembic/versions/20261008_add_plan_external_ref.py (not served here)
- alembic/versions/20261103_add_memory_search_tsv.py (not served here)
- app/__init__.py (not served here)
- app/bootstrap.py (not served here)
- app/config/__init__.py (not served here)
- app/config/auth.py (not served here)
- app/config/logging_config.py (not served here)
- app/config/plan_plugin.py (not served here)
- app/config/settings.py (not served here)
- app/config/write_plugin.py (not served here)
- app/events/__init__.py (not served here)
- app/events/event_bus.py (not served here)
- app/exceptions.py (not served here)
- app/middleware/__init__.py (not served here)
- app/middleware/auth.py (not served here)
- app/middleware/logging_middleware.py (not served here)
- app/models/__init__.py (not served here)
- app/models/activity_models.py (not served here)
- app/models/code_artifact_models.py (not served here)
- app/models/document_models.py (not served here)
- app/models/entity_models.py (not served here)
- app/models/file_models.py (not served here)
- app/models/graph_models.py (not served here)
- app/models/memory_models.py (not served here)
- app/models/models.py (not served here)
- app/models/plan_models.py (not served here)
- app/models/plan_plugin_models.py (not served here)
- app/models/project_models.py (not served here)
- app/models/skill_models.py (not served here)
- app/models/tool_registry_models.py (not served here)
- app/models/user_models.py (not served here)
- app/models/write_plugin_models.py (not served here)
- app/protocols/__init__.py (not served here)
- app/protocols/activity_protocol.py (not served here)
- app/protocols/backup_protocol.py (not served here)
- app/protocols/code_artifact_protocol.py (not served here)
- app/protocols/document_protocol.py (not served here)
- app/protocols/embedding_protocol.py (not served here)
- app/protocols/entity_protocol.py (not served here)
- app/protocols/executor.py (not served here)
- app/protocols/file_protocol.py (not served here)
- app/protocols/memory_protocol.py (not served here)
- app/protocols/plan_plugin_protocol.py (not served here)
- app/protocols/plan_protocol.py (not served here)
- app/protocols/project_protocol.py (not served here)
- app/protocols/skill_protocol.py (not served here)
- app/protocols/task_protocol.py (not served here)
- app/protocols/user_protocol.py (not served here)
- app/protocols/write_plugin_protocol.py (not served here)
- app/repositories/__init__.py (not served here)
- app/repositories/backup_adapter.py (not served here)
- app/repositories/embeddings/__init__.py (not served here)
- app/repositories/embeddings/bounded_executor.py (not served here)
- app/repositories/embeddings/embedding_adapter.py (not served here)
- app/repositories/embeddings/fastembed_offline.py (not served here)
- app/repositories/embeddings/reranker_adapter.py (not served here)
- app/repositories/postgres/__init__.py (not served here)
- app/repositories/postgres/activity_repository.py (not served here)
- app/repositories/postgres/code_artifact_repository.py (not served here)
- app/repositories/postgres/document_repository.py (not served here)
- app/repositories/postgres/entity_repository.py (not served here)
- app/repositories/postgres/file_repository.py (not served here)
- app/repositories/postgres/memory_repository.py (not served here)
- app/repositories/postgres/plan_repository.py (not served here)
- app/repositories/postgres/postgres_adapter.py (not served here)
- app/repositories/postgres/postgres_tables.py (not served here)
- app/repositories/postgres/project_reference.py (not served here)
- app/repositories/postgres/project_repository.py (not served here)
- app/repositories/postgres/skill_repository.py (not served here)
- app/repositories/postgres/task_repository.py (not served here)
- app/repositories/postgres/user_repository.py (not served here)
- app/repositories/sqlite/__init__.py (not served here)
- app/repositories/sqlite/activity_repository.py (not served here)
- app/repositories/sqlite/code_artifact_repository.py (not served here)
- app/repositories/sqlite/document_repository.py (not served here)
- app/repositories/sqlite/entity_repository.py (not served here)
- app/repositories/sqlite/file_repository.py (not served here)
- app/repositories/sqlite/memory_repository.py (not served here)
- app/repositories/sqlite/plan_repository.py (not served here)
- app/repositories/sqlite/project_reference.py (not served here)
- app/repositories/sqlite/project_repository.py (not served here)
- app/repositories/sqlite/skill_repository.py (not served here)
- app/repositories/sqlite/sqlite_adapter.py (not served here)
- app/repositories/sqlite/sqlite_tables.py (not served here)
- app/repositories/sqlite/task_repository.py (not served here)
- app/repositories/sqlite/user_repository.py (not served here)
- app/routes/__init__.py (not served here)
- app/routes/api/__init__.py (not served here)
- app/routes/api/activity.py (not served here)
- app/routes/api/auth.py (not served here)
- app/routes/api/capabilities.py (not served here)
- app/routes/api/code_artifacts.py (not served here)
- app/routes/api/documents.py (not served here)
- app/routes/api/entities.py (not served here)
- app/routes/api/files.py (not served here)
- app/routes/api/graph.py (not served here)
- app/routes/api/health.py (not served here)
- app/routes/api/memories.py (not served here)
- app/routes/api/plans.py (not served here)
- app/routes/api/projects.py (not served here)
- app/routes/api/skills.py (not served here)
- app/routes/api/tasks.py (not served here)
- app/routes/cli/__init__.py (not served here)
- app/routes/cli/auth_commands.py (not served here)
- app/routes/cli/context.py (not served here)
- app/routes/cli/local_executor.py (not served here)
- app/routes/cli/parser.py (not served here)
- app/routes/cli/paths.py (not served here)
- app/routes/cli/remote_executor.py (not served here)
- app/routes/cli/render.py (not served here)
- app/routes/cli/token_storage.py (not served here)
- app/routes/cli/verbs.py (not served here)
- app/routes/mcp/__init__.py (not served here)
- app/routes/mcp/code_artifact_tools.py (not served here)
- app/routes/mcp/document_tools.py (not served here)
- app/routes/mcp/entity_tools.py (not served here)
- app/routes/mcp/memory_tools.py (not served here)
- app/routes/mcp/meta_tools.py (not served here)
- app/routes/mcp/pagination.py (not served here)
- app/routes/mcp/project_tools.py (not served here)
- app/routes/mcp/scope_resolver.py (not served here)
- app/routes/mcp/skill_tools.py (not served here)
- app/routes/mcp/tool_adapters.py (not served here)
- app/routes/mcp/tool_metadata_registry.py (not served here)
- app/routes/mcp/tool_registry.py (not served here)
- app/routes/mcp/user_tools.py (not served here)
- app/routes/plan_plugin_responses.py (not served here)
- app/routes/write_plugin_responses.py (not served here)
- app/services/__init__.py (not served here)
- app/services/activity_service.py (not served here)
- app/services/backup_service.py (not served here)
- app/services/code_artifact_service.py (not served here)
- app/services/document_service.py (not served here)
- app/services/entity_service.py (not served here)
- app/services/entity_write_plugin_service.py (not served here)
- app/services/file_service.py (not served here)
- app/services/graph_service.py (not served here)
- app/services/memory_service.py (not served here)
- app/services/plan_service.py (not served here)
- app/services/plan_write_plugin_service.py (not served here)
- app/services/project_service.py (not served here)
- app/services/re_embedding_service.py (not served here)
- app/services/skill_service.py (not served here)
- app/services/task_service.py (not served here)
- app/services/user_service.py (not served here)
- app/services/write_plugin_service.py (not served here)
- app/utils/__init__.py (not served here)
- app/utils/embedding_helpers.py (not served here)
- app/utils/keyword_query.py (not served here)
- app/utils/provenance.py (not served here)
- app/utils/pydantic_helper.py (not served here)
- app/utils/rank_fusion.py (not served here)
- app/utils/repository_identity.py (not served here)
- app/utils/token_counter.py (not served here)
- app/version.py (not served here)
- architecture.md
- benchmarks/retrieval/README.md (not served here)
- benchmarks/retrieval/build_corpus.py (not served here)
- benchmarks/retrieval/corpus.jsonl (not served here)
- benchmarks/retrieval/eval_lib.py (not served here)
- benchmarks/retrieval/queries_curated.jsonl (not served here)
- benchmarks/retrieval/run_eval.py (not served here)
- default.nix (not served here)
- docker/.env.example (not served here)
- docker/Dockerfile (not served here)
- docker/docker-compose.postgres.yml (not served here)
- docker/docker-compose.sqlite.yml (not served here)
- docker/docker-compose.yml (not served here)
- docs/OFFLINE_SETUP.md (not served here)
- docs/api_reference.md
- docs/assets/mycelium_class_diagram.md (not served here)
- docs/concepts.md
- docs/configuration.md (not served here)
- docs/connectivity_guide.md (not served here)
- docs/copilot-cli/README.md (not served here)
- docs/copilot-cli/agents/forgetful-memory.agent.md (not served here)
- docs/copilot-cli/agents/knowledge-explorer.agent.md (not served here)
- docs/copilot-cli/agents/memory-curator.agent.md (not served here)
- docs/copilot-cli/skills/README.md (not served here)
- docs/dev/architecture-tests.md (not served here)
- docs/dev/cli_plan.md (not served here)
- docs/embedding_migration.md
- docs/features_roadmap.md
- docs/gemini-cli/README.md (not served here)
- docs/gemini-cli/commands/encode-repo.toml (not served here)
- docs/gemini-cli/commands/forgetful-setup.toml (not served here)
- docs/gemini-cli/commands/memory-explore.toml (not served here)
- docs/gemini-cli/commands/memory-list.toml (not served here)
- docs/gemini-cli/commands/memory-save.toml (not served here)
- docs/gemini-cli/commands/memory-search.toml (not served here)
- docs/images/Forgetful Architecture.drawio.png (not served here)
- docs/images/Forgetful Architecture.drawio_transparent.png (not served here)
- docs/images/avatar.png (not served here)
- docs/images/hero_banner.png (not served here)
- docs/images/layers.png (not served here)
- docs/nix.md
- docs/opencode/README.md (not served here)
- docs/opencode/commands/encode-repo.md (not served here)
- docs/opencode/commands/forgetful-setup.md (not served here)
- docs/opencode/commands/memory-explore.md (not served here)
- docs/opencode/commands/memory-list.md (not served here)
- docs/opencode/commands/memory-save.md (not served here)
- docs/opencode/commands/memory-search.md (not served here)
- docs/opencode/skills/README.md (not served here)
- docs/prompts/comprehensive_project_understanding_prompt.md (not served here)
- docs/prompts/custom_agent_integration.md (not served here)
- docs/prompts/example_system_prompt.md (not served here)
- docs/prompts/knowledge_base_bootstrap_prompt.md (not served here)
- docs/prompts/prompts_overview.md (not served here)
- docs/prompts/rapid_project_scan_prompt.md (not served here)
- docs/release_notes.md
- docs/search.md
- docs/self-hosting-guide.md
- docs/tool_reference.md
- examples/plan_policy.py (not served here)
- flake.lock (not served here)
- flake.nix (not served here)
- main.py (not served here)
- nix/test-fixtures.nix (not served here)
- org_knowledge_proposal.md
- pyproject.toml (not served here)
- pytest.ini (not served here)
- ruff.toml (not served here)
- shell.nix (not served here)
- skills/README.md (not served here)
- skills/forgetful-cli-setup/SKILL.md (not served here)
- skills/forgetful-context-gather/SKILL.md (not served here)
- skills/forgetful-encode-repo/SKILL.md (not served here)
- skills/forgetful-encode-repo/references/first-encode.md (not served here)
- skills/forgetful-encode-repo/references/refresh.md (not served here)
- skills/forgetful-entities/SKILL.md (not served here)
- skills/forgetful-explore/SKILL.md (not served here)
- skills/forgetful-files/SKILL.md (not served here)
- skills/forgetful-mcp-setup/SKILL.md (not served here)
- skills/forgetful-procedures/SKILL.md (not served here)
- skills/forgetful-recall/SKILL.md (not served here)
- skills/forgetful-remember/SKILL.md (not served here)
- test_harness/README.md (not served here)
- test_harness/__init__.py (not served here)
- test_harness/__main__.py (not served here)
- test_harness/config.py (not served here)
- test_harness/container.py (not served here)
- test_harness/docker/Dockerfile (not served here)
- test_harness/docker/opencode.json (not served here)
- test_harness/docker/runner.py (not served here)
- test_harness/prompts.py (not served here)
- test_harness/report.py (not served here)
- test_harness/server.py (not served here)
- test_harness/walkthrough.py (not served here)
- tests/__init__.py (not served here)
- tests/architecture/test_contracts.py (not served here)
- tests/backup_restore_cases.py (not served here)
- tests/docker/test_offline_image.py (not served here)
- tests/e2e/README.md (not served here)
- tests/e2e/conftest.py (not served here)
- tests/e2e/test_activity_user_scope_e2e.py (not served here)
- tests/e2e/test_api_activity.py (not served here)
- tests/e2e/test_api_memories_e2e.py (not served here)
- tests/e2e/test_auth_e2e.py (not served here)
- tests/e2e/test_auto_link_threshold_e2e.py (not served here)
- tests/e2e/test_backup_recovery_e2e.py (not served here)
- tests/e2e/test_cli_postgres_e2e.py (not served here)
- tests/e2e/test_code_artifact_tools_e2e.py (not served here)
- tests/e2e/test_cross_user_reference_checks_e2e.py (not served here)
- tests/e2e/test_document_tools_e2e.py (not served here)
- tests/e2e/test_embedding_concurrency.py (not served here)
- tests/e2e/test_entity_tools_e2e.py (not served here)
- tests/e2e/test_file_tools_e2e.py (not served here)
- tests/e2e/test_graph_e2e.py (not served here)
- tests/e2e/test_health_e2e.py (not served here)
- tests/e2e/test_hybrid_search_e2e.py (not served here)
- tests/e2e/test_link_memories_no_autolink_e2e.py (not served here)
- tests/e2e/test_memory_link_ownership_e2e.py (not served here)
- tests/e2e/test_memory_tools_e2e.py (not served here)
- tests/e2e/test_memory_usage_e2e.py (not served here)
- tests/e2e/test_memory_usage_tracking_disabled_e2e.py (not served here)
- tests/e2e/test_meta_tools_e2e.py (not served here)
- tests/e2e/test_obsolete_matches_e2e.py (not served here)
- tests/e2e/test_plan_external_ref_e2e.py (not served here)
- tests/e2e/test_plan_plugin_e2e.py (not served here)
- tests/e2e/test_plan_tools_e2e.py (not served here)
- tests/e2e/test_project_tools_e2e.py (not served here)
- tests/e2e/test_provenance_e2e.py (not served here)
- tests/e2e/test_re_embedding_e2e.py (not served here)
- tests/e2e/test_reranking_e2e.py (not served here)
- tests/e2e/test_retrieval_scores_e2e.py (not served here)
- tests/e2e/test_skill_tools_e2e.py (not served here)
- tests/e2e/test_task_tools_e2e.py (not served here)
- tests/e2e/test_user_creation_e2e.py (not served here)
- tests/e2e/test_user_tools_e2e.py (not served here)
- tests/e2e/test_zz_backup_restore_e2e.py (not served here)
- tests/e2e_provider_sessions/__init__.py (not served here)
- tests/e2e_provider_sessions/conftest.py (not served here)
- tests/e2e_provider_sessions/test_provider_sessions.py (not served here)
- tests/e2e_sqlite/conftest.py (not served here)
- tests/e2e_sqlite/test_api_activity_sqlite.py (not served here)
- tests/e2e_sqlite/test_api_auth.py (not served here)
- tests/e2e_sqlite/test_api_code_artifacts.py (not served here)
- tests/e2e_sqlite/test_api_documents.py (not served here)
- tests/e2e_sqlite/test_api_entities.py (not served here)
- tests/e2e_sqlite/test_api_files.py (not served here)
- tests/e2e_sqlite/test_api_graph.py (not served here)
- tests/e2e_sqlite/test_api_graph_limit_settings.py (not served here)
- tests/e2e_sqlite/test_api_memories.py (not served here)
- tests/e2e_sqlite/test_api_plans.py (not served here)
- tests/e2e_sqlite/test_api_projects.py (not served here)
- tests/e2e_sqlite/test_api_skills.py (not served here)
- tests/e2e_sqlite/test_api_task_actions.py (not served here)
- tests/e2e_sqlite/test_api_tasks.py (not served here)
- tests/e2e_sqlite/test_auth_cache_sqlite.py (not served here)
- tests/e2e_sqlite/test_auth_sqlite.py (not served here)
- tests/e2e_sqlite/test_auth_token_cache_sqlite.py (not served here)
- tests/e2e_sqlite/test_auto_link_threshold_sqlite.py (not served here)
- tests/e2e_sqlite/test_backup_restore_sqlite.py (not served here)
- tests/e2e_sqlite/test_cli_passthrough.py (not served here)
- tests/e2e_sqlite/test_cli_remote.py (not served here)
- tests/e2e_sqlite/test_cli_verbs.py (not served here)
- tests/e2e_sqlite/test_code_artifact_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_cross_user_reference_checks_sqlite.py (not served here)
- tests/e2e_sqlite/test_document_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_embedding_concurrency_sqlite.py (not served here)
- tests/e2e_sqlite/test_entity_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_feature_flags_sqlite.py (not served here)
- tests/e2e_sqlite/test_file_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_harness_server.py (not served here)
- tests/e2e_sqlite/test_health_sqlite.py (not served here)
- tests/e2e_sqlite/test_hybrid_search.py (not served here)
- tests/e2e_sqlite/test_link_memories_no_autolink_sqlite.py (not served here)
- tests/e2e_sqlite/test_memory_file_ids_sqlite.py (not served here)
- tests/e2e_sqlite/test_memory_link_ownership_sqlite.py (not served here)
- tests/e2e_sqlite/test_memory_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_meta_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_obsolete_matches_sqlite.py (not served here)
- tests/e2e_sqlite/test_plan_external_ref_storage.py (not served here)
- tests/e2e_sqlite/test_plan_plugin_storage.py (not served here)
- tests/e2e_sqlite/test_plan_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_project_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_provenance_sqlite.py (not served here)
- tests/e2e_sqlite/test_re_embedding_sqlite.py (not served here)
- tests/e2e_sqlite/test_reranking_concurrency_sqlite.py (not served here)
- tests/e2e_sqlite/test_reranking_sqlite.py (not served here)
- tests/e2e_sqlite/test_retrieval_scores_sqlite.py (not served here)
- tests/e2e_sqlite/test_scoped_permissions_sqlite.py (not served here)
- tests/e2e_sqlite/test_skill_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_task_tools_sqlite.py (not served here)
- tests/e2e_sqlite/test_token_scope_fail_open_sqlite.py (not served here)
- tests/e2e_sqlite/test_user_creation_sqlite.py (not served here)
- tests/e2e_sqlite/test_user_tools_sqlite.py (not served here)
- tests/integration/conftest.py (not served here)
- tests/integration/entity_plugin_helpers.py (not served here)
- tests/integration/plan_plugin_helpers.py (not served here)
- tests/integration/test_auth.py (not served here)
- tests/integration/test_auth_cache.py (not served here)
- tests/integration/test_auth_factory.py (not served here)
- tests/integration/test_auth_info.py (not served here)
- tests/integration/test_auth_token_cache.py (not served here)
- tests/integration/test_azure_embedding_concurrency.py (not served here)
- tests/integration/test_azure_embeddings_adapter.py (not served here)
- tests/integration/test_backup_service.py (not served here)
- tests/integration/test_bootstrap.py (not served here)
- tests/integration/test_capabilities.py (not served here)
- tests/integration/test_cli_dispatch.py (not served here)
- tests/integration/test_cli_local_executor.py (not served here)
- tests/integration/test_cli_remote_executor.py (not served here)
- tests/integration/test_cli_verbs_mapping.py (not served here)
- tests/integration/test_code_artifact_service.py (not served here)
- tests/integration/test_config_precedence.py (not served here)
- tests/integration/test_dns_record_security.py (not served here)
- tests/integration/test_document_service.py (not served here)
- tests/integration/test_entity_plugin_cli.py (not served here)
- tests/integration/test_entity_plugin_phases.py (not served here)
- tests/integration/test_entity_plugin_runtime.py (not served here)
- tests/integration/test_entity_plugin_transports.py (not served here)
- tests/integration/test_entity_service.py (not served here)
- tests/integration/test_event_bus.py (not served here)
- tests/integration/test_fastembed_concurrency.py (not served here)
- tests/integration/test_fastembed_offline.py (not served here)
- tests/integration/test_file_service.py (not served here)
- tests/integration/test_graph_service_plan_task.py (not served here)
- tests/integration/test_harness_cli.py (not served here)
- tests/integration/test_harness_config.py (not served here)
- tests/integration/test_harness_container.py (not served here)
- tests/integration/test_harness_report.py (not served here)
- tests/integration/test_harness_walkthrough.py (not served here)
- tests/integration/test_http_reranker_adapter.py (not served here)
- tests/integration/test_keyword_query.py (not served here)
- tests/integration/test_local_reranker_concurrency.py (not served here)
- tests/integration/test_memory_fts_unicode.py (not served here)
- tests/integration/test_memory_null_transports.py (not served here)
- tests/integration/test_memory_null_updates.py (not served here)
- tests/integration/test_memory_plugin_phases.py (not served here)
- tests/integration/test_memory_score_serialization.py (not served here)
- tests/integration/test_memory_service.py (not served here)
- tests/integration/test_memory_usage_tracking.py (not served here)
- tests/integration/test_memory_write_plugin.py (not served here)
- tests/integration/test_meta_tools_docstrings.py (not served here)
- tests/integration/test_obsolete_warning_gate.py (not served here)
- tests/integration/test_obsolete_warning_settings.py (not served here)
- tests/integration/test_ollama_embeddings_adapter.py (not served here)
- tests/integration/test_onnx_providers.py (not served here)
- tests/integration/test_openai_embedding_concurrency.py (not served here)
- tests/integration/test_openai_embeddings_adapter.py (not served here)
- tests/integration/test_plan_plugin_baseline.py (not served here)
- tests/integration/test_plan_plugin_cli.py (not served here)
- tests/integration/test_plan_plugin_runtime.py (not served here)
- tests/integration/test_plan_plugin_transports.py (not served here)
- tests/integration/test_plan_service.py (not served here)
- tests/integration/test_project_service.py (not served here)
- tests/integration/test_provenance.py (not served here)
- tests/integration/test_rank_fusion.py (not served here)
- tests/integration/test_re_embedding_service.py (not served here)
- tests/integration/test_rest_auth.py (not served here)
- tests/integration/test_retrieval_benchmark_lib.py (not served here)
- tests/integration/test_rrf_tie_break.py (not served here)
- tests/integration/test_scope_resolver.py (not served here)
- tests/integration/test_service_activity_events.py (not served here)
- tests/integration/test_skill_frontmatter_quoting.py (not served here)
- tests/integration/test_skill_service.py (not served here)
- tests/integration/test_targeted_rebuild_sqlite.py (not served here)
- tests/integration/test_task_service.py (not served here)
- tests/integration/test_token_scope_fail_open.py (not served here)
- tests/integration/test_tool_registry.py (not served here)
- tests/integration/test_trace_context_security.py (not served here)
- tests/integration/test_unobsolete_memory.py (not served here)
- tests/integration/test_user_service.py (not served here)
- tests/integration/test_write_plugin_cli.py (not served here)
- tests/integration/test_write_plugin_runtime.py (not served here)
- tests/integration/test_write_plugin_transports.py (not served here)
- tests/plan_external_ref_cases.py (not served here)
- tests/plan_plugin_cases.py (not served here)
- tests/user_creation_cases.py (not served here)
- uv.lock (not served here)
Advantages
- Automatic knowledge graph construction through semantic linking of atomic memories. evidence: README.md
- Maintains context window efficiency via configurable token budgets and importance-based ranking. evidence: README.md
- Flexible deployment options ranging from zero-config local SQLite to scalable PostgreSQL. evidence: README.md
Limitations
- Requires adherence to the Zettelkasten principle, which may be restrictive for some workflows. evidence: README.md
- Limits the number of tools exposed to the agent to preserve context window, potentially hiding advanced functionality. evidence: README.md
Security
Risk level: Medium risk
This brain runs
Agent instructions that run or fetch something (34)
AGENTS.md:Run `uv run pytest tests/architecture/` to check and prove the agreed import boundaries.AGENTS.md:**Location**: `tests/integration/` **Purpose**: Test business logic with stubbed I/O (no real database required) **Run locally**:AGENTS.md:uv run pytest tests/integration/AGENTS.md:These tests use in-memory stubs and run fast (~seconds).AGENTS.md:**Location**: `tests/e2e_sqlite/` **Purpose**: Test complete stack with in-memory SQLite **Requirements**: None (no Docker required) **Run locally**:AGENTS.md:uv run pytest tests/e2e_sqlite/AGENTS.md:**Location**: `tests/e2e/` **Purpose**: Test complete stack with real PostgreSQL **Requirements**: PostgreSQL running in Docker **Run locally**:AGENTS.md:uv run pytest -m e2eAGENTS.md:Ensure that you run ruff following any changes and address any issues raisedAGENTS.md:uv tool run ruff check .skills/forgetful-cli-setup/SKILL.md:The CLI is the shell-native surface: same tool registry as MCP, reachable by anything that can run a command.skills/forgetful-cli-setup/SKILL.md:After changing embedding provider or model: `forgetful re-embed --dry-run` to preview, then `forgetful re-embed` (batch size tunable via `--batch-size`).skills/forgetful-context-gather/SKILL.md:Run MCP-flavored gathers in the main conversation.skills/forgetful-context-gather/SKILL.md:Done when: every angle has run and its outcome is recorded.skills/forgetful-encode-repo/SKILL.md:this skill moves it, and only after a run has reviewed every change up to the new commit.skills/forgetful-encode-repo/SKILL.md:Run git in the repository being encoded (the current directory unless the user named one).skills/forgetful-encode-repo/SKILL.md:**HEAD**: `git rev-parse HEAD`.skills/forgetful-encode-repo/SKILL.md:Unless the user names another range end, this is the end commit: everything this run writes describes it.skills/forgetful-encode-repo/SKILL.md:**Clean worktree**: `git status --porcelain` prints nothing.skills/forgetful-encode-repo/SKILL.md:**Project**: `git remote get-url origin` → `owner/repo` → `list_projects` with `repo_name`.skills/forgetful-encode-repo/SKILL.md:Checks: the checkpoint is a commit here when `git rev-parse --verify --quiet <sha>^{commit}` prints the stored value itself;skills/forgetful-encode-repo/SKILL.md:`git merge-base --is-ancestor <sha> <end>` succeeds when it is an ancestor.skills/forgetful-encode-repo/SKILL.md:Done when: the branch decision is written, and each value in it comes from a command or tool result in this run.skills/forgetful-encode-repo/SKILL.md:**Retrieval**: when the run wrote knowledge, `query_memory` scoped to the project with `strict_project_filter` true and the questions this encoding should answer (how the system fits together, each changed area under its current name).skills/forgetful-encode-repo/SKILL.md:**Pinning**: `git rev-parse HEAD` still matches Step 1, `git status --porcelain` still prints nothing, and `get_project` still shows the checkpoint read in Step 1.skills/forgetful-encode-repo/SKILL.md:Advance the checkpoint only when the run recorded no gaps and the range leaves no unreviewed commit (see user ranges in Step 2).skills/forgetful-encode-repo/SKILL.md:Build it from tool results in this run: an ID or count appears only when a response confirmed it, and a read that failed is reported as unknown.skills/forgetful-encode-repo/SKILL.md:Correct the call against the operation's schema and run it again;skills/forgetful-mcp-setup/SKILL.md:**stdio** — the client spawns the server per session: command `uvx forgetful-ai` (equivalently `forgetful serve --transport stdio`).skills/forgetful-mcp-setup/SKILL.md:Recognised scopes in verified token `scope`/`scp` claims can narrow MCP access further;· uses the networkskills/forgetful-mcp-setup/SKILL.md:Run Forgetful MCP calls in the main conversation — subagents do not inherit MCP tool access.skills/forgetful-procedures/SKILL.md:All skill operations run through the standard invocation surface below, the same as every other domain.skills/forgetful-recall/SKILL.md:Run it as a deliberate step, then continue into normal recall as the task demands.skills/forgetful-remember/SKILL.md:Derive the candidate from the repo: `git remote get-url origin` → `owner/repo` → `list_projects` with `repo_name`.
MCP servers (2)
README.md(forgetful):uvx forgetful-aiREADME.md(forgetful):http://localhost:8020/mcp· uses the network
Install scripts (1)
app/bootstrap.py:python app/bootstrap.py
Package scripts (1)
pyproject.toml(build-hook):hatch build hook vcs (hatch_build.py)
- Medium risk: runs-mcp-server-unpinned-runner (README.md:159)
- Medium risk: runs-instruction-instruction-network (skills/forgetful-mcp-setup/SKILL.md:51)
- Low risk: scripts-present (app/bootstrap.py)
- Low risk: network-instructions (skills/forgetful-cli-setup/SKILL.md:25)
Attribution and licence
- Created by
- Scott
- Declared authors
- Scott (declared in pyproject.toml)
- Publisher
- Scott Raisbeck (Community)
- Source
- ScottRBK/forgetful · commit 9f85ddc
- Licence
- MIT License (files served here)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Scott.
Install from source
452 of its files are not served here, so there is no ZIP. ScottRBK/forgetful at 9f85ddc