Feynman
feynman is a research-first CLI built on @mariozechner/pi-coding-agent.
It keeps the useful parts of a coding agent:
- file access
- shell execution
- persistent sessions
- skills
- custom extensions
But it biases the runtime toward general research work:
- literature review
- source discovery and paper lookup
- source comparison
- research memo writing
- paper and report drafting
- session recall and durable research memory
- recurring and deferred research jobs
- replication planning when relevant
The primary paper backend is @companion-ai/alpha-hub and your alphaXiv account.
The rest of the workflow is augmented through a curated .pi/settings.json package stack.
Install
npm install -g @companion-ai/feynman
Then authenticate alphaXiv and start the CLI:
feynman setup
feynman
For local development:
cd /Users/advaitpaliwal/Companion/Code/feynman
npm install
cp .env.example .env
npm run start
Feynman uses Pi under the hood, but the user-facing entrypoint is feynman, not pi.
When you run feynman, it launches the real Pi interactive TUI with Feynman's research extensions, skills, prompts, package stack, memory snapshot, and branded defaults preloaded.
Most users should not need slash commands. The intended default is:
- ask naturally
- let Feynman route into the right workflow
- use slash commands only as explicit shortcuts or overrides
Commands
Inside the REPL:
/helpshows local commands/initbootstrapsAGENTS.mdandnotes/session-logs//alpha-loginsigns in to alphaXiv/alpha-statuschecks alphaXiv auth/newstarts a new persisted session/exitquits/lit <topic>expands the literature-review prompt template/related <topic>builds the related-work and justification view/review <artifact>simulates a peer review for an AI research artifact/ablate <artifact>designs the minimum convincing ablation set/rebuttal <artifact>drafts a rebuttal and revision matrix/replicate <paper or claim>expands the replication prompt template/reading <topic>expands the reading-list prompt template/memo <topic>expands the general research memo prompt template/deepresearch <topic>expands the thorough source-heavy research prompt template/autoresearch <idea>expands the end-to-end idea-to-paper prompt template/compare <topic>expands the source comparison prompt template/audit <item>expands the paper/code audit prompt template/draft <topic>expands the paper-style writing prompt template/logwrites a durable session log tonotes//watch <topic>schedules or prepares a recurring research watch/jobsinspects active background work
Package-powered workflows inside the REPL:
/agentsopens the subagent and chain manager/run,/chain, and/paralleldelegate work to subagents/psopens the background process panel/schedule-promptmanages recurring and deferred jobs/searchopens indexed session search/previewpreviews generated artifacts in the terminal, browser, or PDF
Outside the REPL:
feynman setupconfigures alpha login, web research, and preview depsfeynman --alpha-loginsigns in to alphaXivfeynman --alpha-statuschecks alphaXiv authfeynman --doctorchecks models, auth, preview dependencies, and branded settingsfeynman --setup-previewinstallspandocautomatically on macOS/Homebrew systems when preview support is missing
Custom Tools
The starter extension adds:
alpha_searchfor alphaXiv-backed paper discoveryalpha_get_paperfor fetching paper reports or raw textalpha_ask_paperfor targeted paper Q&Aalpha_annotate_paperfor persistent local notesalpha_list_annotationsfor recall across sessionsalpha_read_codefor reading a paper repositorysession_searchfor recovering prior Feynman work from stored transcriptspreview_filefor browser/PDF review of generated artifacts
Feynman also ships bundled research subagents in .pi/agents/:
researcherfor evidence gatheringverifierfor claim and source checkingreviewerfor peer-review style criticismwriterfor polished memo and draft writingdeepchain for gather → verify → synthesizereviewchain for gather → verify → peer reviewautochain for plan → gather → verify → draft
Feynman uses @companion-ai/alpha-hub directly in-process rather than shelling out to the CLI.
Curated Pi Stack
Feynman loads a lean research stack from .pi/settings.json:
pi-subagentsfor parallel literature gathering and decompositionpi-docparserfor PDFs, Office docs, spreadsheets, and imagespi-web-accessfor broader web, GitHub, PDF, and media accesspi-markdown-previewfor polished Markdown and LaTeX-heavy research writeups@walterra/pi-chartsfor charts and quantitative visualizationspi-generative-uifor interactive HTML-style widgetspi-mermaidfor diagrams in the TUI@aliou/pi-processesfor long-running experiments and log tailspi-zoterofor citation-library workflows@kaiserlich-dev/pi-session-searchfor indexed session recall and summarize/resume UIpi-schedule-promptfor recurring and deferred research jobs@samfp/pi-memoryfor automatic preference/correction memory across sessions
The default expectation is source-grounded outputs with explicit Sources sections containing direct URLs and durable artifacts written to outputs/, notes/, experiments/, or papers/.
Layout
feynman/
├── .pi/agents/ # Bundled research subagents and chains
├── extensions/ # Custom research tools
├── papers/ # Polished paper-style drafts and writeups
├── prompts/ # Slash-style prompt templates
├── skills/ # Research workflows
└── src/ # Branded launcher around the embedded Pi TUI