Logo di Long Command Check

Long Command Check

Organizzazione
MiniMax-AI
long-command-check

Verifica come l’harness di un agente gestisce i comandi shell di lunga durata: limiti di attesa in primo piano, passaggio all’esecuzione in background senza ripetere il comando, timeout, notifiche di completamento, polling, dimensione dell’output, pulizia e comportamento dopo la compattazione. Usala quando sviluppi o revisioni lo strumento shell o per le attività in background di un agente, oppure quando un agente si blocca su server di sviluppo, build lunghe o test prolungati.

Add to TypingMind

Panoramica

Pubblicato daMiniMax-AI
Repositorymcode-stack
Nome della skilllong-command-check
Stelle
464
Fork
36
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da MiniMax-AI su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Long Command Check in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/long-command-check
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/long-command-check .claude/skills/long-command-check
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Long Command Check in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Long Command Check non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Long Command Check non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Long Command Check

For people building agents. The question is simple: when the agent runs a shell command, should it wait for it to finish? Following that question leads to a chain of design decisions. Foreground is for fast commands, background is for long ones, and ideally the same process connects the two.

Companion to MCode Engineering Notes 04, "How long should one bash command wait". Plain-text checklist: checklists/long-command.md.

Why waiting is expensive

Two costs while the agent blocks on a command:

  • The visible one: the user waits and nothing else happens.
  • The hidden one: the provider's prompt cache can expire. While a command runs in the foreground there are no new model requests. If the wait is longer than the cache lifetime of the model service you use, the next request re-processes the whole prefix: slower first token, higher cost. Look up the cache lifetime in your provider's documentation.

Moving work to the background does not keep the cache warm forever. It saves the time the agent would otherwise spend idle when it had other work to do.

How to run the audit

Read the shell tool and background-task code of the target agent. For each item, record the answer with evidence (file and function, config, or a test you ran). Do not guess; write "unknown" if the code does not show it.

#ItemQuestion
1Foreground limitHow long does the foreground wait at most? Is that comfortably below the cache lifetime of your model service, leaving room for generation time?
2No re-runWhen a command moves from foreground to background, is it the same process, or is it killed and started again?
3Timeout accountingAfter moving to background and reading output, is the deadline reset? (It should not be, or a stuck command can run forever.)
4Result deliveryWhen a background task finishes, does the model learn it from a notification, or only by polling?
5Notification positionIs the notification appended at the end, or does it modify an already cached prefix?
6Anti-pollingIs blocking wait time capped, and does repeated reading with no change produce a hint to stop polling?
7Output sizeIs large output truncated or written to a file and read incrementally, rather than pasted whole into context? Is incomplete output labelled as incomplete?
8CleanupWho stops background tasks when the user stops the agent, when a one-shot headless run exits, and when the process restarts? Are orphaned tasks marked instead of showing "running" forever?
9After compactionIs "a task finished and its result was not read" tracked outside the conversation history (for example a task table), so it survives compaction?
10PreconditionIf the current environment cannot read background results, is backgrounding disabled?

Quick behavioural tests

If you can run the agent, try these and record what actually happened:

  1. Ask it to start a dev server and then do something else. Does it hang?
  2. Run a command that takes several minutes. Does it move to the background without starting a second copy?
  3. Start a background task, then stop the agent. Is the task stopped?
  4. Let a background task finish, then trigger compaction before reading the result. Is the unread result still surfaced afterwards?

Output

A table of the ten items with pass / fail / unknown and evidence, the results of any behavioural tests, and the top three fixes.

Domande frequenti

Cosa fa la skill IA Long Command Check?

Verifica come l’harness di un agente gestisce i comandi shell di lunga durata: limiti di attesa in primo piano, passaggio all’esecuzione in background senza ripetere il comando, timeout, notifiche di completamento, polling, dimensione dell’output, pulizia e comportamento dopo la compattazione. Usala quando sviluppi o revisioni lo strumento shell o per le attività in background di un agente, oppure quando un agente si blocca su server di sviluppo, build lunghe o test prolungati.

Perché usare Long Command Check su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Long Command Check è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Long Command Check in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/long-command-check. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Long Command Check?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Long Command Check?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Long Command Check: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Long Command Check è gratuita?

Sì. È pubblicata su GitHub da MiniMax-AI con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇