Logo vun Timesharing

Timesharing

Communautéit
roerohan
timesharing

Multiplexes one agent's attention across independent long-running external processes while preserving one reasoning context. Use for concurrent tests, builds, servers, watchers, REPLs, benchmarks, downloads, and other latency-bearing shell work; never use it to spawn or substitute subagents.

Iwwersiicht

Editeurroerohan
Repositoryskills
Skill-Nummtimesharing
Stären
29
Forks
1
Matgeliwwert Fichieren
3
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 3 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum roerohan op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Timesharing an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/roerohan/skills/tree/main/timesharing
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roerohan/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/timesharing .claude/skills/timesharing
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Timesharing an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Timesharing automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Timesharing net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Timesharing

Timesharing lets one agent preserve one coherent reasoning context while opportunistically multiplexing its attention across independent external work.

The AI's reasoning stays serial. Only ordinary OS processes run concurrently. Never spawn a subagent, delegate interpretation, or create another AI context for this workflow.

Central Rule

Never block on an independent long-running process when useful independent work exists.

Treat yourself as a cooperative scheduler:

  1. Identify a command whose result is not immediately required.
  2. Start it asynchronously and record its purpose, provenance, dependency, and revisit point.
  3. Continue concrete independent work immediately.
  4. Revisit at a natural boundary, not through busy polling.
  5. Interpret the result in the same context that launched it.

Use a small number of jobs, usually 2-4. The goal is to hide external latency without losing cognitive coherence, not to maximize concurrency.

Decide

Timeshare when judgment says all of these are true:

  • The command may take meaningful time or must remain alive.
  • Its result is not required for the next reasoning step.
  • Useful independent work exists, or later interaction/incremental output matters.
  • Its inputs are stable enough that the run will remain useful.

Typical jobs include test suites, builds, installs, Docker builds, servers, watchers, long scripts, migrations, data/model processing, downloads, benchmarks, integration tests, REPLs, and debuggers.

Run trivial or immediately blocking commands normally: pwd, git status, small reads, quick searches, and commands whose answer determines the very next step. Use judgment, not a hard timing threshold.

Schedule

Before launch, form a tiny dependency graph. Only overlap genuinely independent work. Do not start a run whose inputs are likely to be invalidated immediately.

Maintain a lightweight in-context ledger:

text
JOB       PURPOSE             LOCATION                 STATE    DEPENDS/REVISIT
ts-tests  validate parser     tmux:ts-repo-tests-...   running  after serializer edit
ts-api    integration target  tmux:ts-repo-api-...     persistent before requests

Know for each job: what and why, location, state, expected result, dependents, revisit point, and code/input provenance. The helper persists operational metadata; the purpose and dependency graph remain in this agent's unified mental model.

Natural scheduling points include after an edit, before a dependent decision, after another job completes, when no independent work remains, before final response, or when input may be needed. Do not repeatedly check a job without useful work between checks. If nothing useful remains, bounded waiting or inspection is honest and appropriate.

Use The Interface

The bundled script prefers isolated tmux sessions and falls back to background processes when tmux is unavailable. Run it by absolute path when necessary:

bash
timesharing/scripts/timeshare.sh start tests \
  --purpose 'validate parser fix' --dependency 'review after serializer edit' \
  --provenance 'parser change A' -- npm test
timesharing/scripts/timeshare.sh start api --persistent \
  --purpose 'serve integration target' -- npm run dev
timesharing/scripts/timeshare.sh list
timesharing/scripts/timeshare.sh status tests
timesharing/scripts/timeshare.sh inspect tests --lines 80
timesharing/scripts/timeshare.sh send repl --literal 'value.inspect' --enter
timesharing/scripts/timeshare.sh interrupt api
timesharing/scripts/timeshare.sh stop api
timesharing/scripts/timeshare.sh cleanup

Names become lowercase ts-* job IDs. The tmux session also includes a repository name and workspace hash, preventing cross-repository collisions. Existing live jobs are never silently replaced. Resolve and inspect exact registered IDs before sending input, interrupting, or stopping anything.

For detailed operations, states, fallback behavior, and failures, read references/operations.md. For scheduling examples, read references/examples.md. Load the lower-level tmux skill only when pane layout or tmux-specific mechanics beyond this interface are needed.

Interpret State And Output

The lifecycle is:

text
planned -> running -> completed | failed | waiting | persistent
        -> consumed -> cleaned up

The helper detects running, completed, failed, persistent, and unexpectedly terminated. For interactive jobs, infer waiting versus computing from the recent tail and prompt. Infer a stall only from elapsed time, unchanged output, expected behavior, and process state; do not guess from silence alone.

Inspect recent output first. Increase --lines only when the error needs earlier context. Never flood this context with whole logs by default. Treat a missing completion marker as unknown/unexpected termination, not success.

Before consuming a result, compare its launch provenance with current files/configuration. A run against state A does not validate later state B. Rerun relevant validation after material edits.

Interactive And Persistent Jobs

Mark servers/watchers with --persistent; continued execution is expected, not failure. Mark REPLs/debuggers with --interactive; tmux is required. Inspect the exact job before send, and send the least powerful input needed. Never send destructive keys to an uncertain target.

The shell fallback supports finite and persistent non-interactive commands, but not interactive input or durable terminal attachment. Report that limitation when fallback is used.

Finish

Before answering the user:

  • Inspect every important outstanding finite job.
  • Never claim success without a verified zero exit status.
  • Check that results still match the current code/input state.
  • State which requested services intentionally remain persistent.
  • Stop and clean disposable jobs you own; never kill uncertain or unrelated processes.
  • Preserve services the user explicitly asked to leave running.

Communicate only meaningful transitions: "Tests are running while I inspect the serializer" or "The build passed; integration tests are still running." Do not narrate every tmux command or status check.

Anti-Patterns

  • Subagent substitution: same agent launches a process; never spawn another AI to run or interpret it.
  • Fake concurrency: do useful work after launch; do not launch and immediately poll in a loop.
  • Context flooding: read a relevant tail, not 50,000 repeated log lines.
  • Excessive concurrency: prefer 2-4 purposeful jobs, not 14 vague experiments.
  • Stale validation: record what state ran and never apply an old result to newer changes.
  • Speculative overlap: do not run work whose inputs are still being rewritten.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Timesharing?

Multiplexes one agent's attention across independent long-running external processes while preserving one reasoning context. Use for concurrent tests, builds, servers, watchers, REPLs, benchmarks, downloads, and other latency-bearing shell work; never use it to spawn or substitute subagents.

Firwat Timesharing op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Timesharing besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Timesharing an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/roerohan/skills/tree/main/timesharing an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Timesharing benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Timesharing benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Timesharing domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Timesharing gratis?

Jo. De Skill gëtt vum roerohan ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇