YABCCF

skill
Guvenlik Denetimi
Basarisiz
Health Uyari
  • License — License: AGPL-3.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Basarisiz
  • os.homedir — User home directory access in overlay/dist-server/server/index.js
  • process.env — Environment variable access in overlay/dist-server/server/index.js
  • os.homedir — User home directory access in overlay/dist-server/server/load-env.js
  • process.env — Environment variable access in overlay/dist-server/server/load-env.js
  • exec() — Shell command execution in overlay/dist-server/server/modules/database/migrations.js
  • os.homedir — User home directory access in overlay/dist-server/server/modules/providers/list/claude/claude-auth.provider.js
  • process.env — Environment variable access in overlay/dist-server/server/modules/providers/list/claude/claude-auth.provider.js
  • os.homedir — User home directory access in overlay/dist-server/server/modules/providers/list/claude/claude-runtime.provider.js
  • process.env — Environment variable access in overlay/dist-server/server/modules/providers/list/claude/claude-runtime.provider.js
  • exec() — Shell command execution in overlay/dist-server/server/modules/providers/list/claude/claude-sessions.provider.js
  • process.env — Environment variable access in overlay/dist-server/server/modules/providers/list/codex/codex-runtime.provider.js
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Yet Another Boring CloudCLI Fork: an overlay for @cloudcli-ai/cloudcli 1.37.11 (Claude Code web UI)

README.md

YABCCF — Yet Another Boring CloudCLI Fork

English · Русский

Part of yet another boring scripts. A personal fork of CloudCLI UI (@cloudcli-ai/cloudcli 1.37.11),
the web UI for Claude Code, Codex, Cursor CLI and OpenCode. It is shipped as an overlay on top of the
npm package rather than as a rebuilt source tree.

Cheaper Claude Code

The fork runs yabtsp (Yet Another Boring Token Shortening
Plugin) inside every Claude Code chat, and the sidebar entry Agent plugins shows what it saved and switches
between its Save Money and Save Tokens presets. It shortens what the model reads, not what you see in the chat.
Measured on real output (characters before → after):

Output Before After
git log -n 60 in a real repo 138,369 5,939
ls -la of a real node_modules 36,992 6,533
curl of a 476-item JSON response 923,212 4,954
Read of a 447-line source file (outline) 11,969 2,406

The unshortened text is saved to a file that the shortened output points to, so the agent can open it when it needs
the rest. Claude Code only lets hooks shorten the output of commands that succeeded, so failing test runs are not
shortened here; the yabtsp README lists this and the other limits.

The bigger lever is chat length: Claude re-reads the whole chat on every step, so the plugin dialog also has
Compact long chats at (on at 200K by default, new chats only; a CLAUDE_CODE_AUTO_COMPACT_WINDOW set on the
server wins). Measured and estimated numbers, with their limits, are in the yabtsp README; the short version is that the
cap cuts tokens but, in an 11-step chat that read ten big files, cost 4-16% more money and took 1.5-2 times as long,
because a compaction rewrites the prompt cache, so it is a bet on long chats. The benchmark behind them is
tools/savings-bench.mjs; it takes the model and key from BENCH_* environment variables and keeps your Claude login
and plugin settings out of the run. It runs every task with no plugin, with Save Money and with Save Tokens and
prints a table of turns, input and output (tokens and dollars), reply time and the share saved.

The same table is kept live for your own chats: Agent plugins has Spent per mode, filled from every finished
Claude reply and grouped by the mode it ran in (set the preset to Off, which runs new chats with no plugin hooks
and no compaction cap, for a while to get a no-plugin baseline). Money there is the API list price of the model that
answered, not a subscription bill, and Saved compares money per reply between chats that were not the same task, so
it is a rough figure. The sidebar Claude usage card shows the last and the average reply time.

What's different

Sidebar

  • Claude usage: 5-hour and weekly limits with reset times, for every connected Claude account.
  • Agents: scheduled agents. Run a prompt in a project manually, every N minutes, daily or by cron, with its own
    model, permissions, timeout and Telegram report; run history with output.
  • Models: one place for model sources, with tabs per agent:
    • built-in models and extra model IDs;
    • OpenRouter catalog (search, prices, one-click add; runs through Claude Code via OpenRouter's Anthropic API);
    • Custom API: any Anthropic-compatible (→ Claude Code) or OpenAI-compatible (→ Codex) endpoint. The model
      list is fetched by the server, and the key is stored once per endpoint and reused;
    • Combos: one picker entry that falls back across models/accounts on usage thresholds, errors or rate limits.
  • GitHub star, issue/Discord links, Prompt Vault and Pro upsells removed.

Agent plugins (OpenCode-style plugins inside Claude Code chats)

  • Drop plugin files (.ts, .js, .mjs, each export default { setup(ctx) }, the same format OpenCode loads) into
    ~/.cloudcli/agent-plugins. A sidebar entry lists them, shows the hooks each one uses and any load error, and has
    an on/off switch and a reload button.

  • They run in a separate process, so a slow or crashing plugin (for example tsc in a typecheck plugin) cannot stall
    the server. A plugin call that takes too long is skipped, and the worker restarts after three in a row.

  • What a plugin can do, by OpenCode hook:

    OpenCode hook Claude Code event Effect
    tool.execute.before PreToolUse throw denies the tool call; an edited input replaces the call's input
    tool.execute.after PostToolUse, PostToolUseFailure an edited result.output / result.content replaces what the model reads (Bash, Read, Grep, WebFetch); for other tools the text becomes a note
    session.prompt UserPromptSubmit sees the user's message, e.g. to switch modes
    session.context UserPromptSubmit, after each tool event.system rules go out once per change; text added to the end of the last message goes out as a note
    session.compaction PreCompact runs before the conversation is compacted
  • Steering: notes travel as additionalContext, which the model reads at its next step of the same turn, and
    ctx.session.steer(sessionID, text) pushes a message straight into the running turn.

  • Limits, stated plainly: Claude Code keeps its own history, so plugins cannot rewrite earlier messages (the sliding
    pruning of prune-tool-outputs has nothing to act on, while its output compression does); tool names are mapped to
    OpenCode's (Bash is shell, Read is read, ...) and file_path arrives as filePath.

  • The yabtsp pack works unchanged. Checked against a real model:
    smart outline reads (a 12 KB file read as 2.4 KB), Bash output compression (3.0 KB to 0.6 KB), the guard against
    destructive commands, and standing rules.

Chat

  • Auto steer: while a turn runs, Enter steers the message into it (read at the next tool call); Ctrl/⌘+Enter
    queues it for after. Steered messages keep their place when the history reloads.
  • Long command output is folded to its head and tail with a "+N lines" expander, like the Claude Code CLI.
  • Clawd keeps you company while Claude works.
  • Fixes: chat crash (TDZ), Hub panels that never loaded (wrong fetch helper), "Logged in as Authenticated",
    combo event clearing (route order), lazy diagram chunks loading a second copy of the app.

Server

  • Services: autonomous agents, Claude accounts and limits, model router (combos), marketplace, PC bridge
    (Windows PCs over an SSH reverse tunnel), Telegram notifications.
  • POST /api/providers/:provider/models/discover, per-endpoint key reuse, a refusal to save a custom endpoint
    without a key (the CLI would otherwise send your account token to it).

Install

npm install -g @cloudcli-ai/[email protected]
git clone https://github.com/yet-another-boring-scripts/YABCCF.git && cd YABCCF
./install.sh            # or ./install.sh /path/to/@cloudcli-ai/cloudcli

The script backs up what it replaces. Then restart CloudCLI (the plugin host and its routes are server code). Optional environment: TELEGRAM_BOT_TOKEN
(default bot for notifications) and CLOUDCLI_VPS_HOST (used in the PC bridge setup guide).

Layout

Path What
overlay/ Files copied over the installed package (built UI bundle, patched/added server modules)
src/bundle.pretty.js The UI bundle, pretty-printed: the source the client is built from
src/hub.jsx Sidebar usage card, Agents and Models dialogs, Clawd
patches/client-bundle.diff Every change to the stock UI bundle, for review
tools/ Build (deploy.sh), TDZ checks, Tailwind class check, Playwright screenshots and site crawler, server-test.mjs, agent-plugins-e2e.mjs
tests/ agent-plugins.test.mjs: plugin host wiring into the runtime and routes, no model needed

Only Tailwind classes already present in the stock CSS work; tools/build-hub.mjs lists missing ones.

Tests (against an installed copy; set CLOUDCLI_APP if it is not the global npm install):

node --test tests/agent-plugins.test.mjs     # plugin host: hooks, deny, output rewrite, steer, toggle (offline)
node tools/server-test.mjs                   # provider routes incl. /agent-plugins
node tools/agent-plugins-e2e.mjs             # the same host against a real model (a few Haiku calls)

Install the yabtsp pack on the server (install.sh already does this when the folder is empty; YABCCF_NO_PLUGINS=1 skips it):

mkdir -p ~/.cloudcli/agent-plugins && curl -fsSL https://github.com/yet-another-boring-scripts/yabtsp/archive/refs/heads/main.tar.gz | tar xz --strip-components=2 -C ~/.cloudcli/agent-plugins yabtsp-main/plugins

License

AGPL-3.0, same as CloudCLI (see LICENSE). Not affiliated with CloudCLI or Anthropic. Claude and Clawd are
trademarks of Anthropic.

Yorumlar (0)

Sonuc bulunamadi