Skip to content

w3bs ask: ask a published agent on the c0mpute network (0.1.19) - #275

Merged
sh1pt-actions-fleet[bot] merged 3 commits into
mainfrom
feat/w3bs-ask
Nov 2, 2026
Merged

sh1pt-actions-fleet[bot] merged 3 commits into
mainfrom
feat/w3bs-ask

Conversation

@sh1pt-actions-fleet

@sh1pt-actions-fleet sh1pt-actions-fleet Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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-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/chat with p2p_only: true, then the SSE stream). It routes to a live c0mpute/Infernet node serving hf.co/profullstack/saas-business-strategist-agent-GGUF:latest and never to the hosted fallback; the CLI also refuses any non-p2p route. I picked this over c0mpute's infernet.text.infer because 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_KEY sends a trusted client key as a bearer. We embed no key.

Agents are data. fixtures/agents.json is served at w3bs.org/agents.json and 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 becomes ASK_NO_ANSWER.

Surfaces. w3bs ask --list, --no-search, --max-tokens, --timeout, --infernet, --json. On a terminal, w3bs ask alone opens a chat with /ask <agent> <question>, /agent, /list, /help and /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) and tests/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 --locked and bun run test both pass. I also checked it live against infernetprotocol.com before opening this PR.

🤖 Generated with Claude Code

ralyodio and others added 3 commits November 2, 2026 12:21
`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>
@sh1pt-actions-fleet
sh1pt-actions-fleet Bot merged commit 8c4b3c3 into main Nov 2, 2026
20 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