get_relevant_context
Retrieve past intents and decisions relevant to a user request by providing the prompt and active files, enabling informed approach without dumping all recent activity.
Instructions
Find past intents and decisions relevant to the current user request.
When to use:
After you have done a quick initial exploration of the user's request and know which files are involved. Calling earlier with only a vague prompt gives weak results.
To pull task-specific context instead of dumping all recent activity — preferred for large projects.
Inputs of note:
prompt: the user request, in their words or your paraphrase.activeFiles(recommended): files you have identified as relevant to the request. Significantly improves relevance.maxIntents,maxDecisions,minRelevance: result-shaping caps and threshold.
Returns:
relevantIntents: past work units (intents) related to the task, scored by relevance.relevantDecisions: prior decisions related to the task — both intent-scoped and repo-scoped. Summary-only (no inline rationale, to keep context lean); callget_decision_detail(decisionId)for the full rationale/context/consequences of any decision you want to open.
Recommended sequence:
check_active_intentat session start to resume any existing work.Briefly explore the user's request to identify involved files.
get_relevant_contextwith the prompt andactiveFilesto inform the approach.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The user request to find relevant context for | |
| repoPath | Yes | Local path to the repository root | |
| forkAuthor | No | Fork attribution; usually resolved by Muninn automatically — pass only for override / testing. | |
| maxIntents | No | Maximum number of intents to return | |
| repoOrigin | No | Git remote origin URL. Auto-detected from repoPath via git if not provided. | |
| activeFiles | No | Files currently being discussed or recently opened | |
| workspaceId | No | Workspace identifier; usually resolved by Muninn automatically — pass only for override / testing. | |
| maxDecisions | No | Maximum number of decisions to return | |
| minRelevance | No | Minimum relevance score (0-1) |