Skip to content

docs: mention namespace param for graph_search in graph prompts - #1499

Merged
Evanfeenstra merged 1 commit into
mainfrom
fix/graph-search-namespace-prompt
Jul 28, 2026
Merged

docs: mention namespace param for graph_search in graph prompts#1499
Evanfeenstra merged 1 commit into
mainfrom
fix/graph-search-namespace-prompt

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Collaborator

Why

An agent running /repo/agent with mode=graph incorrectly claimed:

graph_search accepts domains, limit, q, and type parameters, but not namespace directly—that parameter is only available in graph_neighbors and graph_get for edge counts.

graph_search does accept namespace (added in #1450), but the prompts never mention it:

  • GRAPH_SYSTEM describes graph_search as scoping only with type/domains
  • The graph sub-agent prompt says the same ("Scope with type/domains")
  • The only prose mentions of namespace the model sees are the graph_get/graph_neighbors param descriptions, which frame it as edge-count-only

When asked what its tools accept, the model reproduced the prompt summary instead of the schema — verbatim the wrong claim above.

What

One-line additions to both prompts noting that graph_search can scope to a data partition with namespace. No behavior change; schemas were already correct.

🤖 Generated with Claude Code

GRAPH_SYSTEM and the graph sub-agent prompt described graph_search as
scoping only with type/domains, causing the agent to claim namespace
isn't accepted there (it is, since #1450). Mention it in both prompts.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Evanfeenstra
Evanfeenstra merged commit 4b5ae99 into main Jul 28, 2026
6 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.

1 participant