8000 feat(topics): # links in notes point at topics, and topic tools for the assistant and MCP by adeelahmad · Pull Request #135 · adeelahmad/lense · GitHub
[go: up one dir, main page]

Skip to content

feat(topics): # links in notes point at topics, and topic tools for the assistant and MCP - #135

Merged
adeelahmad merged 1 commit into
mainfrom
claude/graph-explorer-ockijg
Oct 4, 2026
Merged

adeelahmad merged 1 commit into
mainfrom
claude/graph-explorer-ockijg

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Before: # in a note offered entities of type TERM, and topics had no page of their own. The assistant and MCP agents couldn't see topics.

After:

  • # in a note offers the namespace's topics, found by any of their labels, and writes #[label](topic:id).
  • Every topic has a page, reached from Page in its drawer. The page lists the notes that link to it. Deleting or merging a topic keeps its page as a free note.
  • Older #[...](entity:id) links still work.
  • The assistant gains find_topics, topic_recordings and, for editors, suggest_topic.
  • The MCP server gains list_topics, get_topic and suggest_topic. suggest_topic needs a write-scope token and editor access.
  • Suggestions from either wait for someone to accept them, with assistant as their source. Anything a person already accepted or dismissed stays as it is.

How:

  • notebook.KINDS and ABOUT gain topic, and search_targets("#") reads the topic table.
  • topics.delete and merge release topic pages.
  • The new topics.propose adds suggested rows only where none exist.
  • MCP Arg now supports integer[].
  • The assistant's write_note instructions now use #[label](topic:id).
  • The client was regenerated.

Tests:

🤖 Generated with Claude Code

https://claude.ai/code/session_012Jo1JNziunMs8MgWJSGyyM


Generated by Claude Code

…he assistant and MCP

of their own. The assistant gains find_topics, topic_recordings and
suggest_topic; the MCP server gains list_topics, get_topic and suggest_topic.
Their suggestions wait for someone to accept.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012Jo1JNziunMs8MgWJSGyyM
@adeelahmad
adeelahmad merged commit f4d6883 into main Oct 4, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0