Skip to content

Fix admin restart, optimize daily digest, and add Atlas Cloud support#604

Merged
asim merged 3 commits into
mainfrom
claude/add-wallet-transfers-74PHC
Jun 1, 2026
Merged

Fix admin restart, optimize daily digest, and add Atlas Cloud support#604
asim merged 3 commits into
mainfrom
claude/add-wallet-transfers-74PHC

Conversation

@asim
Copy link
Copy Markdown
Member

@asim asim commented Jun 1, 2026

No description provided.

claude added 3 commits May 26, 2026 12:38
The -n (non-interactive) flag caused sudo to fail silently when
the mu user didn't have NOPASSWD in sudoers. Removed the flag
so it at least attempts properly. The server needs a sudoers
entry like: mu ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart mu
The digest scheduler was re-generating the entire content every
time it checked (every few hours), burning a full Sonnet call to
overwrite the same day's post. Now if today's digest already
exists, it logs and skips. One generation per day, that's it.
Atlas Cloud (atlascloud.ai) provides OpenAI-compatible inference
at significantly lower cost than Anthropic:

  DeepSeek V4 Pro:   $1.68/$3.38/M tokens (vs Sonnet $3/$15)
  DeepSeek V4 Flash: $0.14/$0.28/M tokens (vs Haiku $0.80/$4)

When ATLAS_API_KEY is set:
- DefaultModel() returns deepseek-v4-pro (interactive: chat, agent)
- BackgroundModel() returns deepseek-v4-flash (summaries, tags,
  moderation, topics)
- Premium agent tier stays on Claude Opus via Anthropic

When ATLAS_API_KEY is not set, everything falls back to Anthropic
exactly as before — no behaviour change without the env var.

Implementation:
- generateAtlas() — OpenAI-compatible /chat/completions endpoint
- isAtlasModel() — routes deepseek/qwen/glm/kimi/minimax models
  to Atlas Cloud, everything else to Anthropic
- DefaultModel() / BackgroundModel() — centralised model selection
  so callers don't hardcode model strings
- All hardcoded "claude-haiku-4-5-20251001" references in chat.go
  and search/topics.go replaced with ai.BackgroundModel()

Expected savings: ~80% on interactive, ~95% on background tasks
when Atlas Cloud is enabled.

https://claude.ai/code/session_01GRGLA9yj7BpqKiyi6xFwnm
@asim asim merged commit 99cb047 into main Jun 1, 2026
2 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.

2 participants