Files
personas/personas/_shared/community-skills/feynman-cli/references/repl-and-slash.md
salvacybersec 0183a1eb5f feat(community-skills): add opencode-cli + feynman-cli + migrate 12 skills
Two new tool-operation skills with deep references/ docs:
- opencode-cli: SKILL.md + 6 references covering rules, agents, models,
  commands, formatters, permissions, skills, MCP, plugins, custom tools,
  LSP, themes, keybinds, server API, SDK, GitHub Actions, IDE, network,
  troubleshooting (full opencode.ai/docs surface)
- feynman-cli: SKILL.md + 6 references covering install, setup, config,
  CLI, REPL slash commands, agents/tools/packages, and full pi-subagents
  custom-agent spec (verified against the working install)

Migrate 12 skills from ~/.claude/skills into _shared/community-skills/:
- clean copy: intel-briefing, vercel-react-best-practices, ui-ux-pro-max
- core-only: notebooklm (data/images stripped — 184M to 224K)
- light sanitize: anythingllm-manager (gitea URL), foia-tool (DB password),
  jira (atlassian instance + email), librarian (paths), obsidian-tasks
  (vault path + email-in-cred-path)
- branding sanitize: marketing-strategist + pentest-reporter (Proudsec
  variants normalized to <COMPANY>)
- secrets sanitize: waha-whatsapp (IP, API key, vault path placeholders)

Skipped per user: proudguard-api (kept locally only).

build.py:
- DEFAULT_SKILL_PERSONA_MAP: 14 new entries
- NAME_PATTERNS: opencode + jira to coding-tools; notebooklm + feynman-
  to ai-llm-dev; waha- to osint-intel

Community-skills index: 703 -> 716 (+13).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 12:19:53 +03:00

4.8 KiB

REPL & Slash Commands

REPL flow

feynman (no args) launches the REPL. Conversational: type prompt, Enter, read response. The REPL retains session memory, indexes artifacts to outputs/ (when running in a project), and exposes slash commands.

REPL templating:

  • @<path> — inject file contents into the prompt (e.g. @papers/foo.pdf)
  • !<shell> — run a shell command and inject its stdout (e.g. !ls outputs/)

Quit: Ctrl-D or /exit (when supported by your version).

Slash commands — research workflows

Command What it does
/deepresearch <topic> Multi-agent investigation → research brief in outputs/
/lit <topic> Structured literature review (consensus / disagreement / open Qs)
/review <artifact> Peer review with severity-graded feedback + inline annotations
/audit <paper-or-arxiv-id> Compare a paper's claims against its public code
/replicate <paper> Plan or execute a replication for a paper / claim / benchmark
/compare <topic> Build agreement / disagreement matrix across sources
/draft <topic> Paper-style draft from research findings
/autoresearch <idea> Autonomous loop iteratively optimizing toward a goal
/watch <topic> [cadence] Recurring research monitoring on a topic

Slash commands — project / session / control

Command What it does
/help Grouped command list
/init Bootstrap AGENTS.md + session-log folders for a new project
/log Durable session log: work / findings / open Qs / next steps
/jobs Active background work — running, scheduled, watches
/outputs Browse research artifacts
/search <query> Search prior session transcripts (semantic + keyword)
/preview [path] Render artifact as HTML or PDF
/feynman-model Model picker (default model + per-subagent overrides)

Slash commands — pi-subagents (when installed)

pi-subagents adds direct agent control:

Command What it does
/run <agent> <task> Run one agent with a task
/chain <a> "task" -> <b> "task" Sequential chain
/parallel <a> "task" -> <b> "task" Parallel run
/subagents-status Async status overlay
/agents Agents Manager overlay (edit / override)

Per-step task forms:

  • /chain scout "scan code" -> planner "make plan" — each step has its own task
  • /chain scout -- scan code -> planner -- analyze auth-- delimiter
  • /chain scout "analyze auth" -> planner -> implementer — bare steps inherit {previous} (chain) or first task (parallel)
  • Shared task: /parallel scout reviewer -- audit src/ — same task to both

Quotes ("…" or '…') and -- are interchangeable.

Sample REPL session

$ feynman
Feynman 0.2.39 — github-copilot/gpt-5.3-codex (medium thinking)
> /deepresearch Current approaches to mechanistic interpretability in LLMs
[plan] Reading 12 source candidates…
[researcher] Fetching arXiv:2401.…
[writer] Drafting brief
✓ outputs/mechanistic-interp-brief.md (2,341 lines, 47 sources)
> /preview outputs/mechanistic-interp-brief.md
✓ Opened in browser
> /log
✓ Wrote outputs/session-log-2026-05-01.md

Tips

  • Long-running workflows (/deepresearch, /lit) run for minutes. Use /jobs from another window to monitor.
  • /watch <topic> weekly schedules via pi-schedule-prompt. List with /jobs. Cancel by editing the schedule (no built-in unwatch verb).
  • /preview requires pandoc (feynman setup preview once).
  • /feynman-model lets you set different models per role — e.g. cheap Haiku for researcher (high token volume), Opus for reviewer.
  • @<path> works with directories — Feynman recursively reads supported formats (pi-docparser handles PDFs/Office/etc).
  • Slash commands shadow built-ins of the same name when defined as a custom command. Project-scope shadows user-scope.