Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions docs/1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ The primary surface has twelve tools, plus the separately enabled destructive
| `bm_move` | Move a note or directory to `destination`. A trailing slash means move into that directory under the source's existing name; without it, the destination is the new path. |
| `bm_search` | Ranked text, title, permalink, semantic, or hybrid search; metadata filters; project scopes; and matching-line searches. Replaces both note search and the MCP grep workflow. |
| `bm_context` | Build graph context from an exact `identifier`, with bounded depth and time window. Whitespace-only identifiers are refused. |
| `bm_list` | List one directory level. Root discovery exposes addressable project mounts; use returned scope for follow-up calls. |
| `bm_list` | List one directory level in the required project. `/` is that project's root; discover projects with `bm_project(command="list")`. |
| `bm_find` | Recursive file discovery with path and frontmatter filters. Use this for inventory rather than expecting recursive `bm_list` results. |
| `bm_project` | Consolidate `list`, `create`, and `recent`. Project rows carry workspace metadata; deletion is not a command on this tool. |
| `bm_project_delete` | Separate, opt-in destructive project deletion. Keep it separate in tool permissions and agent allowlists. |
Expand All @@ -197,7 +197,7 @@ The primary surface has twelve tools, plus the separately enabled destructive

### Change arguments and response handling too

- Pass names, workspace-qualified names, or external UUIDs through `project`.
- Pass names, workspace-qualified names, or external UUIDs through required `project`.
Remove `project_id`; calls do not retain a selected project between requests.
- Search uses `mode`, `filters`, `items`, `since`, and `all_projects` instead of
`search_type`, `metadata_filters`, `entity_types`, `after_date`, and
Expand Down Expand Up @@ -251,11 +251,16 @@ surface they were measured against and should not be relabeled as 1.0 results.

### Project routing and refusal handling

- With multiple addressable projects, core note/search calls require an explicit
`project` or a recognized project-qualified target, even if a default project
is configured. A single-project constraint can supply the scope implicitly.
- Core note, folder, context and schema calls require a nonempty `project`,
including single-project sessions, constrained servers and qualified targets.
Discovery (`bm_project(command="list")`) and bundled manuals need no project.
`bm_project(command="recent")` requires `project` too.
- Search requires explicit scope: `project` for one project, `projects` for
selected projects, or `all_projects=True` for all accessible projects. A
project-qualified path or memory URL does not replace explicit search scope.
- A relative path such as `notes/topic.md` does not select a project merely
because it contains a slash. Use returned qualified identifiers or pass scope.
because it contains a slash. Pass scope with every call; qualified identifiers
must agree with that scope. Restart MCP clients to refresh required parameters.
- Search resolves project-qualified `memory://` URLs without rewriting stored
project-qualified permalinks into workspace-qualified identities.
- Native ChatGPT search/fetch and saved search/continue prompts resolve their
Expand Down
13 changes: 12 additions & 1 deletion integrations/pi/skill-references/memory-capture/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ description: "Capture a working thread's current state into one coherent Basic M

Capture the gist of a working thread — the decisions made, insights surfaced, and context built — into a single coherent Basic Memory note that reflects where the thread has landed.

## Project scope

If the project is unknown, discover it with `bm_project(command="list")`.
Pass a nonempty `project` on every note, folder, context and schema call, even
with one project or a qualified `memory://` URL. Use the chosen project's name,
`workspace/project`, or external ID; `<project>` below is a placeholder for it.
Recent activity also requires `project`. Search accepts `project` for one
project, `projects` for selected projects, or `all_projects=True` explicitly.
Discovery and bundled manuals need no project. Keep the same scope when following
returned paths, paginating, or recovering from a refusal.

## Purpose

A thread has a beginning, middle, and end. Things change as the conversation progresses: an early decision gets revised, a problem looks different in light of new information, a trade-off is settled differently than it first seemed. When this skill is invoked, capture the **current state of understanding**, not the history of how it got there.
Expand All @@ -40,7 +51,7 @@ To rewrite the same note on re-capture instead of duplicating, key the note to a

> **Example (hosts with a JSONL transcript):** some agents write a per-session transcript whose filename is a stable session UUID. If yours does, you can derive the id from the most-recently-modified transcript file and use it as `thread_id`. This is optional — only do it if your host actually exposes such a transcript.

**If no stable id is available**, match the existing note by title/topic instead: search for a note covering the same thread (`bm_search(query="<topic>")`), and if you find the one this thread already produced, rewrite it. Omit `thread_id` and rely on a consistent title.
**If no stable id is available**, match the existing note by title/topic instead: search for a note covering the same thread (`bm_search(query="<topic>", project="<project>")`), and if you find the one this thread already produced, rewrite it. Omit `thread_id` and rely on a consistent title.

## Decision Flow

Expand Down
52 changes: 36 additions & 16 deletions integrations/pi/skill-references/memory-continue/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ description: "Resume prior work by rebuilding context from the Basic Memory grap

Resume previous work by reconstructing context from the Basic Memory knowledge graph, so the assistant can pick up across sessions instead of starting cold.

## Project scope

If the project is unknown, discover it with `bm_project(command="list")`.
Pass a nonempty `project` on every note, folder, context and schema call, even
with one project or a qualified `memory://` URL. Use the chosen project's name,
`workspace/project`, or external ID; `<project>` below is a placeholder for it.
Recent activity also requires `project`. Search accepts `project` for one
project, `projects` for selected projects, or `all_projects=True` explicitly.
Discovery and bundled manuals need no project. Keep the same scope when following
returned paths, paginating, or recovering from a refusal.

## When to Use

- Starting a new session and you need to pick up where you left off
Expand All @@ -40,37 +51,38 @@ bm_context(
identifier="memory://topic-or-note-name",
depth=2, # how many relation hops to follow
since="7d", # only include changes in this window
project="<project>",
)
```

**No clear starting point — use `bm_project(command="recent")`.** See what's changed and let it surface the thread:
**No clear starting point — use `bm_project(command="recent", project="<project>")`.** See what's changed and let it surface the thread:

```python
bm_project(command="recent", since="3d")
bm_project(command="recent", since="3d", project="<project>")
```

**Looking for something specific — use `bm_search`.** Find candidate notes by keyword:

```python
bm_search(query="async client refactor", page_size=10)
bm_search(query="async client refactor", page_size=10, project="<project>")
```

### 3. Read the Key Notes

Once you've identified the relevant notes, read them in full:

```python
bm_read(identifier="note-title-or-permalink")
bm_read(identifier="note-title-or-permalink", project="<project>")
```

For long notes, pick before you pay for bodies. `compact=True` drops bodies from
search results (and observations from `bm_context`), and a line range or a
section reads only the part you need:

```python
bm_search(query="async client refactor", compact=True)
bm_read(identifier="note-title-or-permalink", start_line=120, end_line=180)
bm_read(identifier="note-title-or-permalink", section="Status")
bm_search(query="async client refactor", compact=True, project="<project>")
bm_read(identifier="note-title-or-permalink", start_line=120, end_line=180, project="<project>")
bm_read(identifier="note-title-or-permalink", section="Status", project="<project>")
```

### 4. Present Context to the User
Expand All @@ -96,7 +108,7 @@ Use a specific note URL to anchor on one starting point; use a wildcard to pull

## Timeframe Reference

`bm_context` and `bm_project(command="recent")` accept natural-language timeframes:
`bm_context` and `bm_project(command="recent", project="<project>")` accept natural-language timeframes:

| Timeframe | Meaning |
|-----------|---------|
Expand All @@ -113,10 +125,10 @@ Use a specific note URL to anchor on one starting point; use a wildcard to pull

```python
# 1. Read the spec / project note
bm_read(identifier="SPEC-24: Postgres Database Migration")
bm_read(identifier="SPEC-24: Postgres Database Migration", project="<project>")

# 2. Pull in related context and recent changes via the graph
bm_context(identifier="memory://SPEC-24*", since="7d")
bm_context(identifier="memory://SPEC-24*", since="7d", project="<project>")
```

Then summarize: the goals, what's completed, what's pending, and any blockers or open decisions.
Expand All @@ -125,10 +137,10 @@ Then summarize: the goals, what's completed, what's pending, and any blockers or

```python
# 1. Check recent activity
bm_project(command="recent", since="3d")
bm_project(command="recent", since="3d", project="<project>")

# 2. Read notes from the recent sessions it surfaces
bm_read(identifier="relevant-note")
bm_read(identifier="relevant-note", project="<project>")
```

Then list the modified notes with brief descriptions and ask which thread to dive into.
Expand All @@ -137,10 +149,10 @@ Then list the modified notes with brief descriptions and ask which thread to div

```python
# 1. Find the topic
bm_search(query="topic keywords")
bm_search(query="topic keywords", project="<project>")

# 2. Build context from the best match, following its relations
bm_context(identifier="memory://found-note-permalink", depth=2)
bm_context(identifier="memory://found-note-permalink", depth=2, project="<project>")
```

Then present the full picture — the note plus its connected context.
Expand All @@ -153,11 +165,19 @@ Project names are user-specific. To discover what's available before scoping a s
bm_project(command="list")
```

In multi-project setups, prefix a `memory://` URL with the project name (e.g. `memory://research/papers/crdt`) to scope it.
A qualified `memory://` URL (e.g. `memory://research/papers/crdt`) must agree
with `project`; the prefix does not replace that required parameter.

For an explicitly broader search, use one of these scopes instead:

```python
bm_search(query="topic keywords", projects=["research", "team/engineering"])
bm_search(query="topic keywords", all_projects=True)
```

## Guidelines

1. **Start broad, then narrow.** Get an overview with `bm_project(command="recent")` or a wildcard `bm_context`, then drill into specific notes.
1. **Start broad, then narrow.** Get an overview with `bm_project(command="recent", project="<project>")` or a wildcard `bm_context`, then drill into specific notes.
2. **Present incrementally.** Share what you find as you go rather than holding everything until the end.
3. **Follow relations.** The graph's connections are the point — `bm_context` with `depth` surfaces context you wouldn't find by reading one note.
4. **Check multiple projects.** Specs may live separately from implementation notes; discover projects with `bm_project(command="list")`.
Expand Down
Loading
Loading