feynman

agent
Security Audit
Fail
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 9781 GitHub stars
Code Fail
  • process.env — Environment variable access in .github/workflows/deploy-website.yml
  • fs module — File system access in .github/workflows/deploy-website.yml
  • process.env — Environment variable access in .github/workflows/e2e.yml
  • fs module — File system access in .github/workflows/e2e.yml
  • exec() — Shell command execution in .github/workflows/publish.yml
  • rm -rf — Recursive force deletion command in .github/workflows/publish.yml
  • process.env — Environment variable access in .github/workflows/publish.yml
  • fs module — File system access in .github/workflows/publish.yml
  • process.env — Environment variable access in evals/run.mjs
  • network request — Outbound network request in evals/run.mjs
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

The open source AI research agent.

README.md

Feynman CLI

The open source AI research agent.

Docs License


Installation

macOS / Linux:

curl -fsSL https://feynman.is/install | bash

Windows (PowerShell):

irm https://feynman.is/install.ps1 | iex

The one-line installer fetches the latest tagged release as a standalone bundle with its own Node.js runtime and verifies its SHA-256 before installing. To pin a version, pass it explicitly, for example curl -fsSL https://feynman.is/install | bash -s -- 0.5.3. Rerun the installer to upgrade; feynman update only updates optional Pi packages you installed.

npm alternative (uses your local Node.js >=22.22.0):

npm install -g @companion-ai/feynman

If you installed the interim @advaitpaliwal/feynman package, migrate once:

npm uninstall -g @advaitpaliwal/feynman
npm install -g @companion-ai/feynman

Then run feynman setup to sign in to a model provider. To use Feynman in an ACP editor such as Zed, run it through pi-acp: "agent_servers": { "Feynman": { "command": "npx", "args": ["-y", "pi-acp"], "env": { "PI_ACP_PI_COMMAND": "feynman" } } }. See the installation guide for uninstalling and the setup guide for local models (LM Studio, LiteLLM, Ollama, vLLM) and Amazon Bedrock.

Skills Only

If you want just the research skills without the full terminal app:

macOS / Linux:

curl -fsSL https://feynman.is/install-skills | bash

Windows (PowerShell):

irm https://feynman.is/install-skills.ps1 | iex

That installs the skill library into ~/.codex/skills/feynman for Codex. For other targets, pass a scope:

curl -fsSL https://feynman.is/install-skills | bash -s -- --codex     # ~/.codex/skills/feynman (default)
curl -fsSL https://feynman.is/install-skills | bash -s -- --repo      # .agents/skills/feynman in the current repo
curl -fsSL https://feynman.is/install-skills | bash -s -- --opencode  # .opencode/skills/feynman in the current repo
& ([scriptblock]::Create((irm https://feynman.is/install-skills.ps1))) -Scope Codex     # or -Scope Repo, -Scope OpenCode

These installers download the bundled skills/ and prompts/ trees plus the repo guidance files referenced by those skills. They do not install the Feynman terminal, bundled Node runtime, auth storage, or Pi packages.


What you type → what happens

$ feynman "what do we know about scaling laws"
→ Searches papers and the web, answers with cited sources

$ feynman deepresearch "mechanistic interpretability"
→ Plan-first investigation with parallel researchers, synthesis, and citation verification

$ feynman lit "RLHF alternatives"
→ Literature review with consensus, disagreements, open questions, and lab/PI corpus mode when the input names a research group

$ feynman audit 2401.12345
→ Compares paper claims against the public codebase

$ feynman replicate "chain-of-thought improves math"
→ Plans replication checks and runs them only after an explicit environment choice

$ feynman recipe "fine-tune a small model for math reasoning"
→ Finds ranked, implementable ML training recipes from papers, datasets, docs, and code

Workflows

Ask naturally or use slash commands as shortcuts.

Command What it does
/deepresearch <topic> Source-heavy multi-agent investigation
/lit <topic-or-lab> Literature review from paper search and primary sources; lab/PI inputs map publication trajectories and originality-ranked papers
/review <artifact> Research review with severity and revision plan
/audit <item> Paper vs. codebase mismatch audit
/replicate <paper> Plan replication checks; execute only after choosing an environment
/recipe <task-or-paper> Ranked ML training recipes with dataset, method, code, and verification status
/compare <topic> Source comparison matrix
/draft <topic> Paper-style draft from research findings
/autoresearch <idea> Bounded experiment loop with benchmark evidence
/summarize <source> Summarize a paper, report, repo, or PDF without loading it raw into context
/btw <question> Side conversation while the main research agent is busy, with optional handoff back into the main thread
/outputs Browse all research artifacts

Agents

Four bundled research agents, invoked by workflow prompts when decomposition helps.

  • Researcher — gather evidence across papers, web, repos, docs
  • Reviewer — internal research critique with severity-graded feedback
  • Writer — structured drafts from research notes
  • Verifier — inline citations, source URL verification, dead link cleanup

Skills & Tools

  • alphaXiv — paper search, Q&A, code reading, and annotations (via Feynman's alpha tools and feynman alpha command)
  • Literature databases — read-only Semantic Scholar, OpenAlex, arXiv ID lookup, PubMed, Europe PMC full text, bioRxiv/medRxiv, and Crossref, with stable identifiers. Set the free OPENALEX_API_KEY (create one) and optionally SEMANTIC_SCHOLAR_API_KEY (request one) to use your own rate limits
  • Hugging Face Hub — dataset metadata, split/schema inspection, and small file reads from model, dataset, and Space repos
  • Web research — search, page fetching, and PDF extraction through pi-web-access; Exa works without a key, and feynman search set configures Perplexity, Exa, or Gemini
  • Documents — local PDF and office-document parsing through pi-docparser
  • Compute — Docker, plus Modal or RunPod when their CLIs are installed, for replication and experiment runs you explicitly approve

How it works

Feynman runs on stock Pi (@earendil-works/pi-coding-agent). Its prompts, skills, agents, and research tools load as a Pi package alongside the bundled pi-subagents, pi-web-access, pi-docparser, and pi-btw packages. Paper search and analysis use alphaXiv. Research claims link to papers, docs, or repos with direct URLs.


Telemetry

Feynman sends anonymous usage telemetry to PostHog by default and prints a one-time notice on first run. It sends commands, workflow names and outcomes, tool names, model and provider names, token counts, latency, and error flags under a random install ID. It never sends prompts, model output, paper content, file paths, or tool arguments. Set FEYNMAN_TELEMETRY=off (or DO_NOT_TRACK=1) to disable it; feynman status shows the current setting. The full event list is in the configuration docs.


Star History

Star History Chart

The bundled Pi packages are pinned and update with Feynman, not through feynman update. See the package stack and release notes.

Contributing

See CONTRIBUTING.md for the full contributor guide.

git clone https://github.com/Companion-Inc/feynman.git
cd feynman
nvm use || nvm install
npm install
npm test
npm run typecheck
npm run build

Docs · Release Notes · MIT License

Reviews (0)

No results found