Skip to content

AI: draft on c0mpute by default (0.55.0) - #182

Merged
ralyodio merged 1 commit into
mainfrom
ai-c0mpute-default
Nov 5, 2026
Merged

ralyodio merged 1 commit into
mainfrom
ai-c0mpute-default

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

The writer called Anthropic first with the shared house key. Checked today, that key answers credit balance too low and the OpenAI understudy's key is 401 Incorrect API key provided. So the writer was not degrading, it was dead — every draft, link drop and reply suggestion failed.

c0mpute is now the default and the last resort: our own peer network via @profullstack/ai-providers, a fraction of a cent per draft against what our own nodes earned, and no key required. Wave 3 of the fleet rollout.

Changes

  • New packages/core/src/ai/c0mpute.ts wraps the house router, built once so its circuit breaker and alternating paid fallback see every call in the process.
  • ai.provider gains "c0mpute" and defaults to it. anthropic and openai stay selectable for when there's credit and the extra quality is worth it.
  • The anthropic chain now ends at c0mpute instead of throwing once Gemini is out too — and Gemini's own failure is no longer swallowed (it was the last link and threw raw).
  • writerAvailable() is now always ok outside ollama. With a provider that needs no key, reporting "unavailable" was switching off every feature that checks first — the same bug that kept link drops silently dead.
  • ollama still never falls back. Picking a local model is a decision about where the text goes, and quietly shipping it to a third party would betray that.

Testing

bun test — 872 pass, 0 fail (27 skip). tsc --noEmit clean.

Verified live end to end, no paid key set: a Bluesky draft written on huihui_ai/qwen3.5-abliterated:9b in 30s, billed 5 micro-USD against node earnings.

Myna now drafts posts on c0mpute instead of a frontier API. We are running our own peer compute network to handle the heavy lifting. It costs a fraction of a cent per prompt.

One behaviour change worth flagging in review: the test that asserted "no keys = writer unavailable" now asserts the opposite, deliberately.

🤖 Generated with Claude Code

The writer called Anthropic first with the shared house key. That key
answers "credit balance too low" and the OpenAI understudy's key is
invalid outright, so the writer was not degrading, it was dead: every
draft, link drop and reply suggestion failed.

c0mpute is now the default and the last resort. It is our own peer
network, reached through @profullstack/ai-providers, so a draft costs a
fraction of a cent against what our nodes earned, and it needs no key.

- New packages/core/src/ai/c0mpute.ts wraps the house router, built once
  so its breaker and alternating paid fallback see every call.
- ai.provider gains "c0mpute" and defaults to it. anthropic and openai
  stay selectable for when there is credit and the quality is worth it.
- The anthropic chain now ends at c0mpute instead of throwing once
  Gemini is out too, and Gemini's own failure is no longer swallowed.
- writerAvailable() is now always ok outside ollama: with a provider
  that needs no key, "unavailable" was turning off every feature that
  checks first, which is how link drops stayed silently dead.
- ollama still never falls back. Picking a local model is a decision
  about where the text goes.

Verified live: a Bluesky draft written end to end on
huihui_ai/qwen3.5-abliterated:9b in 30s with no paid key set.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@ralyodio
ralyodio merged commit be0326d into main Nov 5, 2026
1 check 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