vp-flush-commands

vp-flush-commands is a command for coding agents from Ganbin/4d-development-skill. It costs 0 tokens per session (787 once invoked), scanned A, original, MIT.

A spreadsheet command that immediately runs all queued 4D View Pro spreadsheet commands and clears the queue. Queuing groups commands so they can be processed together.

In plain words
What is it for?
Use it before follow-up work such as saving or printing a spreadsheet, with an optional callback function that runs after processing is complete.
Why use it?
It lets later code run only after pending spreadsheet changes and calculations have finished.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ganbin/4d-development-skill/vp-flush-commands
Clone the repo
git clone --depth 1 https://github.com/Ganbin/4d-development-skill

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vp-flush-commands

README.md
[![agentmods](https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-flush-commands.svg)](https://agentmods.dev/commands/ganbin/4d-development-skill/vp-flush-commands)
Your own site
<a href="https://agentmods.dev/commands/ganbin/4d-development-skill/vp-flush-commands"><img src="https://agentmods.dev/badge/commands/ganbin/4d-development-skill/vp-flush-commands.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00787
Opus 5 $0.00000 $0.00394
Sonnet 5 $0.00000 $0.00157
Haiku 4.5 $0.00000 $0.00079

Measured 4d ago against content hash e735df5d9167, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

vp-flush-commands scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/ViewPro/commands/vp-flush-commands.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Release Changes
20 R9 Support of callback parameter

VP FLUSH COMMANDS ( vpAreaName : Text {; callback : 4D.Function} )

Parameter Type Description
vpAreaName Text -> 4D View Pro area form object name
callback 4D.Function -> (Optional) A callback function executed after all VP commands and 4D custom functions have been executed

Description

The VP FLUSH COMMANDS command immediately executes stored commands and clears the command buffer.

In vpAreaName, pass the name of the 4D View Pro area. If you pass a name that does not exist, an error is returned.

In order to increase performance and reduce the number of requests sent, the 4D View Pro commands called by the developer are stored in a command buffer. When called, VP FLUSH COMMANDS executes the commands as a batch when leaving the method and empties the contents of the command buffer.

If a callback function is provided, it is only executed after all stored commands and 4D custom functions have finished processing. This ensures that any follow-up actions, such as saving or printing the document, are only performed after all calculations have completed.

The following parameters can be used in the callback function:

Parameter Type Description
param1 Text The name of the 4D View Pro area object
param2 Object An object returned by the method with a status message
.success Boolean True if import was successful, False otherwise
.errorCode Integer Error code
.errorMessage Text Error message

Example 1

You want to execute commands and empty the command buffer:

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 76 lines · 0 tokens per session scan A e735df5d9167

Subscribe to this mod's changes

vp-flush-commands is a command published in the GitHub repository Ganbin/4d-development-skill (9 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 787 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.