Pi Agent Rust logo

Pi Agent Rust

CommunityPopular
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.

Overview

PublisherDicklesworthstone
Repositorypi_agent_rust
Skill namepi-agent-rust
Stars
1.9K
Forks
220
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Dicklesworthstone on GitHub. Read the source before you install it.

Installation

Install the Pi Agent Rust AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Dicklesworthstone/pi_agent_rust/tree/main/.claude/skills/pi-agent-rust
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pi Agent Rust in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pi Agent Rust on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pi Agent Rust is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Pi Agent Rust AI skill do?

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.

Why use Pi Agent Rust on TypingMind?

Because you install it once and use it with any model. Pi Agent Rust is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pi Agent Rust in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Dicklesworthstone/pi_agent_rust/tree/main/.claude/skills/pi-agent-rust. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Pi Agent Rust?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pi Agent Rust?

As many as you like. As long as a model supports skills, you can use Pi Agent Rust with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pi Agent Rust AI skill free?

It is published on GitHub by Dicklesworthstone. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇