Logo vun Pi Agent Rust

Pi Agent Rust

CommunautéitBeléift
Dicklesworthstone
pi-agent-rust

Speeds up pi_agent_rust development and verification workflows. Use when editing providers, tools, sessions, extensions, installer/uninstaller logic, or triaging regressions in this repo.

Iwwersiicht

EditeurDicklesworthstone
Repositorypi_agent_rust
Skill-Nummpi-agent-rust
Stären
1.9K
Forks
220
Matgeliwwert Fichieren
2
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.

  • 2 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 Dicklesworthstone op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pi Agent Rust 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/Dicklesworthstone/pi_agent_rust/tree/main/.claude/skills/pi-agent-rust
  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/Dicklesworthstone/pi_agent_rust.git /tmp/pi_agent_rust
mkdir -p .claude/skills
cp -r /tmp/pi_agent_rust/.claude/skills/pi-agent-rust .claude/skills/pi-agent-rust
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pi Agent Rust 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 Pi Agent Rust automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pi Agent Rust 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.

Pi Agent Rust

Use This Skill When

  • You are working inside pi_agent_rust and need the fastest path to safe, verified edits.
  • You are touching provider/tool/session/extension behavior and need targeted triage.
  • You are changing installer/uninstaller/skill install behavior and need deterministic safety checks.
  • You need symptom-first debugging playbooks instead of ad-hoc command hunting.

60-Second Bootstrap

bash
export CARGO_TARGET_DIR="/data/tmp/pi_agent_rust/${USER:-agent}"
export TMPDIR="/data/tmp/pi_agent_rust/${USER:-agent}/tmp"
mkdir -p "$TMPDIR"

rch exec -- cargo check --all-targets
rch exec -- cargo clippy --all-targets -- -D warnings
cargo fmt --check
bash tests/installer_regression.sh

Symptom Router

SymptomFirst 3 Commands
Provider stream/tool-call regressioncargo test --test provider_streaming -- --nocapture ; `rg -n "stream
Session replay/index driftcargo test session -- --nocapture ; `rg -n "Session
Extension policy/runtime failurecargo test extension -- --nocapture ; `rg -n "policy
Installer/uninstaller/skill issuebash tests/installer_regression.sh ; `rg -n "AGENT_SKILL_STATUS
Interactive vs RPC divergencecargo test --test e2e_rpc -- --nocapture ; `rg -n "interactive

For deeper diagnosis, use references/DEBUGGING-PLAYBOOKS.md.

Non-Negotiables

  • Read AGENTS.md first, then follow it exactly.
  • Do not delete files or run destructive git/filesystem commands.
  • Keep edits in-place; avoid creating variant files for the same purpose.
  • Use main semantics in docs/scripts; do not introduce master.
  • Prefer rg for fast text recon and ast-grep for structural matching/refactors.
  • Prefer rch exec -- <cargo ...> for heavy compile/test workloads.
  • After substantive edits, run compile/lint/format gates and the smallest relevant regression slice.

Core Workflow

  • Recon: identify exact change surface and invariants.
  • Implement: minimal, behavior-focused patch with explicit failure semantics.
  • Validate: targeted tests first, broaden only as needed.
  • Verify UX: error/status output is explicit, stable, and non-ambiguous.
  • Sync docs: update README.md when flags/behavior/user guidance changed.

Changed Files -> Required Tests

Changed Files (examples)Minimum Required Tests
install.sh, uninstall.sh, .claude/skills/pi-agent-rust/**bash -n install.sh uninstall.sh tests/installer_regression.sh ; shellcheck -x install.sh uninstall.sh tests/installer_regression.sh ; bash tests/installer_regression.sh ; bash scripts/skill-smoke.sh
src/providers/**, src/provider.rs, src/sse.rscargo test --test provider_streaming ; cargo test --test e2e_provider_streaming ; cargo test conformance
src/session.rs, src/session_index.rs, src/session_test.rscargo test session ; cargo test conformance
src/extensions.rs, src/extensions_js.rscargo test extension ; cargo test conformance
src/tools.rscargo test tools ; cargo test conformance
src/interactive.rs, src/rpc.rs, src/main.rscargo test --test e2e_rpc ; cargo test conformance

Do Not Run Yet

Run these only after targeted repro + focused slice indicates need:

  • Broad cargo test across entire workspace when a narrower slice already reproduces.
  • Heavy multi-surface runs before confirming changed-file impact.
  • Repeated full conformance loops while the core failing slice is still unstable.

High-Value Commands

bash
# Fast recon
git status --short
rg -n "install|uninstall|skill|checksum|sigstore|completion|provider|session|extension" \
  install.sh uninstall.sh README.md tests/installer_regression.sh src/

# Installer + skill safety gates
bash -n install.sh uninstall.sh tests/installer_regression.sh
shellcheck -x install.sh uninstall.sh tests/installer_regression.sh
bash tests/installer_regression.sh
bash scripts/skill-smoke.sh

# Rust gates
rch exec -- cargo check --all-targets
rch exec -- cargo clippy --all-targets -- -D warnings
cargo fmt --check

For an expanded command cookbook, see references/COMMANDS.md. For deep incident triage, see references/DEBUGGING-PLAYBOOKS.md.

Critical Files

  • src/main.rs: CLI entry and mode dispatch.
  • src/agent.rs: agent loop and tool iteration behavior.
  • src/provider.rs: provider trait contract.
  • src/providers/: provider implementations and factory wiring.
  • src/tools.rs: built-in tools (read, write, edit, bash, grep, find, ls).
  • src/session.rs: JSONL session persistence.
  • src/session_index.rs: session index and metadata cache.
  • src/extensions.rs + src/extensions_js.rs: extension policy and QuickJS bridge.
  • src/interactive.rs + src/rpc.rs: TUI and RPC/stdin surfaces.
  • install.sh + uninstall.sh: install lifecycle, migration, and skill management.
  • tests/installer_regression.sh: installer regression harness.
  • scripts/skill-smoke.sh: skill integrity + inline-sync validation.

Known Footguns

  • Custom artifact install paths without compatible release context can fall back incorrectly if not explicitly guarded.
  • Skill status can become misleading on mixed outcomes unless partial/failure branches are explicit.
  • Uninstall logic must enforce both marker checks and expected destination path shape.
  • Installer progress/status text should stay on stderr when stdout is used for data plumbing.
  • Bundled skill and inline fallback can silently drift unless explicitly checked.

Patch Patterns

Pattern 1: Mixed Outcome Status Clarity

bash
# BEFORE: everything collapsed into "skipped custom"
if [ "$skipped_custom" -ge 1 ]; then
  AGENT_SKILL_STATUS="skipped (existing custom skill)"
fi

# AFTER: distinguish custom-skip from write failure
if [ "$skipped_custom" -ge 1 ] && [ "$failed_writes" -ge 1 ]; then
  AGENT_SKILL_STATUS="partial (custom skill kept; other install failed)"
elif [ "$skipped_custom" -ge 1 ]; then
  AGENT_SKILL_STATUS="skipped (existing custom skill)"
fi

Pattern 2: Safe Skill Replacement

bash
# BEFORE: remove destination before validating copy result
rm -rf "$destination"
cp "$source" "$destination/SKILL.md"

# AFTER: stage then atomically move into place
staged="$(mktemp -d ...)"
cp "$source" "$staged/SKILL.md"
mv "$staged" "$destination"

Failure Triage

  • Installer summary/status mismatch: trace AGENT_SKILL_STATUS, CHECKSUM_STATUS, and COMPLETIONS_STATUS in install.sh.
  • Install/uninstall safety concern: verify marker checks and expected destination guards in both scripts.
  • Provider/session/extension regressions: use symptom router, then follow references/DEBUGGING-PLAYBOOKS.md.
  • Docs drift: ensure README.md flags/examples match current installer behavior.

Done Criteria

  • Changed-file matrix minimum tests passed.
  • Compile/lint/format checks passed for touched surfaces.
  • Installer/skill changes pass tests/installer_regression.sh and scripts/skill-smoke.sh.
  • Behavior is explicit on failure paths; no silent fallback surprises.
  • Skill docs and inline fallback remain aligned and current.

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 Pi Agent Rust?

Speeds up pi_agent_rust development and verification workflows. Use when editing providers, tools, sessions, extensions, installer/uninstaller logic, or triaging regressions in this repo.

Firwat Pi Agent Rust op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pi Agent Rust 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 Pi Agent Rust an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Dicklesworthstone/pi_agent_rust/tree/main/.claude/skills/pi-agent-rust 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 Pi Agent Rust 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 Pi Agent Rust benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pi Agent Rust 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 Pi Agent Rust gratis?

De Skill gëtt vum Dicklesworthstone op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. 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 👇