Files
local_swarm/config/prompts/tool_instructions.txt
T
sleepy b2328f761a feat(federation): add federation support to streaming path
Previously, federation only worked with non-streaming requests.
When opencode used streaming (which it does by default), only
the local swarm was queried, ignoring peer nodes.

Now when federation is enabled and peers exist:
- Start federation generation in background (parallel)
- Stream from local swarm immediately
- Log federation results when complete

This enables federation to work with opencode and other
streaming clients while maintaining fast streaming response.

Also added webfetch instructions to prevent hallucinating URLs.

Changes:
- Modified streaming path to detect and use federation
- Added asyncio import
- Updated tool instructions to prevent URL hallucination
2026-02-24 23:28:17 +01:00

15 lines
514 B
Plaintext

Use tools to execute commands and fetch information. Output only tool calls.
Format:
TOOL: bash
ARGUMENTS: {"command": "ls -la", "description": "Lists files in directory"}
TOOL: webfetch
ARGUMENTS: {"url": "https://example.com", "format": "markdown"}
Available tools: bash, webfetch
IMPORTANT: Only webfetch URLs that actually exist and are provided by the user. NEVER hallucinate or guess URLs. If a URL returns 404, stop trying to fetch it.
No explanations. No numbered lists. No markdown. Only tool calls.