Repository navigation
w3bs ask: ask a published agent on the c0mpute network (0.1.19) - #275
Merged
Merged
Conversation
`w3bs ask business "What do I do, I can't make money???? HELP!"` streams an answer from Profullstack's saas-business-strategist-agent (Qwen2.5-0.5B + LoRA, GGUF house model on Infernet) with the top pit.world results as sources. - Agents are data: public/agents.json, served at w3bs.org/agents.json and embedded in the binary as a fallback (name, aliases, model, system prompt, grounding, max_tokens, temperature). A new agent is one object. - Transport: Infernet's public chat API with p2p_only (never the hosted fallback); the CLI also refuses any non-p2p route. Anonymous by default (20/h per IP), INFERNET_API_KEY sends a trusted client key. - Grounding: pit.world search (question + agent query_suffix), results with snippets first; the question goes before the background because the 0.5B model otherwise repeats its system prompt. - `w3bs ask --list`, `--no-search`, `--json`, and `w3bs ask` alone opens a chat with /ask <agent> <question>, /agent, /list, /help, /quit. - docs/ask.md, README, package-manager doc, /packages callout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…3bs without public/) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
w3bs ask business "What do I do, I can't make money???? HELP!"streams an answer from Profullstack'ssaas-business-strategist-agent(Qwen2.5-0.5B-Instruct + LoRA trained on c0mpute, GGUF house model served by Infernet nodes), followed by the pit.world sources it was given and the node that served it.Transport. Infernet's public chat API (
POST /api/chatwithp2p_only: true, then the SSE stream). It routes to a live c0mpute/Infernet node servinghf.co/profullstack/saas-business-strategist-agent-GGUF:latestand never to the hosted fallback; the CLI also refuses any non-p2proute. I picked this over c0mpute'sinfernet.text.inferbecause that one needs the c0mpute binary, the adapter on disk and a transfer server the worker can reach, which an ordinary NAT'd machine does not have.Auth. Anonymous by default (Infernet's public limit, 20 questions/hour per IP).
INFERNET_API_KEYsends a trusted client key as a bearer. We embed no key.Agents are data.
fixtures/agents.jsonis served atw3bs.org/agents.jsonand embedded in the binary as a fallback. Each entry has name, aliases, model, HF links, system prompt, grounding (search + query suffix + result count), max_tokens and temperature. Adding an agent is one object.Grounding. pit.world search on the question plus the agent's
query_suffix, with results that have snippets ranked first. The question goes before the background: with the background first, the 0.5B model repeated its system prompt (reproduced on two nodes). A leading echo of the system prompt is stripped, and an answer that is only the echo becomesASK_NO_ANSWER.Surfaces.
w3bs ask --list,--no-search,--max-tokens,--timeout,--infernet,--json. On a terminal,w3bs askalone opens a chat with/ask <agent> <question>,/agent,/list,/helpand/quit.Docs:
docs/ask.md, README,docs/package-manager.md, and a callout on/packages.Tests: unit tests in
ask.rs(registry, aliases, query, source picking, prompt, SSE framing, slash-command parsing, URL rules) andtests/ask.rs(real binary against a fake registry, search and Infernet: p2p_only body, bearer, streamed output, list, unknown agent, missing question, 429, built-in fallback).cargo test --lockedandbun run testboth pass. I also checked it live against infernetprotocol.com before opening this PR.🤖 Generated with Claude Code