Skip to content

p135246/computational-research

v0.1.0MIT

Wolfram-centric computational research: organize projects and sources, maintain a wiki, create and edit notebooks, collaborate on human-owned papers and paclet designs through concise notes companions, develop and publish paclets, retrieve citations, formalize requested proofs, and manage a backlog with isolated workers. Preserves human edits and author-controlled iterations; publication requires an explicit request. README.md is the authoritative workflow blueprint.

โš ๏ธ Disclaimer. This repo grows on the fly out of my own thoughts and needs around AI assistance in computational research. It is a working draft, in need of human revision and selective improvement. Helpers and testers welcome!

๐Ÿค– Computational Research

A Wolfram-centric Codex and ChatGPT plugin for AI-assisted computational research. Original: Pavel Hajekโ€™s Computational Research plugin.

  • โš™๏ธ Autosetup installs the MCP servers and tools, and checks the environment.
  • ๐Ÿ“ Autoorganization sorts a project into folders and keeps it tidy.
  • ๐Ÿ“š Autoknowledge grows and maintains a wiki of what the project knows.
  • ๐Ÿ” Autoresources gathers resources and keeps track of how to recover them.
  • ๐Ÿบ Converts Wolfram notebooks to and from Markdown.
  • ๐Ÿ““ Writes expository notebooks, and mathematics papers as notebooks.
  • ๐Ÿ“ฆ Turns code into a documented paclet and publishes it.
  • ๐Ÿ“ Supports human-owned papers and paclet designs, with concise research companions and edits on request.
  • ๐Ÿ“ Formalizes proofs in Lean.
  • ๐Ÿงฎ Paper verification builds code and tests beside a mathematics paper and checks it statement by statement.
  • ๐Ÿ“” Keeps a scientific journal of what was learned, if you want one.
  • ๐Ÿงฌ Records the prompt behind everything it generates, if you want that.
  • ๐Ÿ—ƒ๏ธ Autolab manages a backlog of work and works through it while you are away.
  • ๐Ÿค Shows you every deliverable, and revises it from the notes you write into it, keeping every version and remembering your corrections.
  • ๐Ÿงญ Gives a guided tour of the project.

๐Ÿ”„ Workflows

1. Organization of materials and resources

Organize your folder into a structure maintained by the LLM, or scaffold a new project from a research question.

Project/
  Code/          code items
  <PacletName>/  optional paclet folder
  Research/      research items
  Wiki/          knowledge base maintained by the LLM
  Work/          backlog managed by the LLM
  Resources/     downloaded material

The project is version-controlled with Git. Resources are downloaded and stored locally, with recovery instructions committed to Git instead of the downloaded files. Within each folder, Artifacts/ holds notes and notebooks on individual topics, while Archive/ holds superseded material. Documents intended as outputs are developed iteratively in the folder itself, as described below.

2. Assisted writing of output documents

The author develops the main document directly, in numbered iterations such as document1.tex, document2.tex, and so on. For each iteration, the LLM maintains a matching notes file, such as document1_notes.tex, following the documentโ€™s structure while exploring related questions and proposing additions.

The author decides what to incorporate and when to begin the next iteration. The LLM edits the main document only on explicit request.

See the document ownership rules.

3. Assisted paclet development

Paclet development follows the same workflow, with a design notebook as the main document. For a paclet named Infrageometry, keep Infrageometry1.nb and Infrageometry1_notes.nb in the repository root beside the paclet folder. The author develops the design in the notebook; the LLM proposes additions in the notes and implements the accepted design.

See the paclet design rules.

4. Backlog management and execution

Define and refine work items, have agents execute them in parallel in separate worktrees, and review the results. Work items follow the Kanban lifecycle Backlog โ†’ Ready โ†’ Active โ†’ UnderReview โ†’ Done, with each stage represented by a folder. The plugin can deploy a web control board for managing the backlog.

See the work-item format and execution details.

๐Ÿ“ฅ Installation

This package uses the OpenAI plugin format and includes a repository marketplace. Add it as a source:

codex plugin marketplace add p135246/CodexPluginComputationalResearch

Then open the Plugins Directory in the ChatGPT desktop app, select Pavel Hajek โ€” Research, install Computational Research, and test in a new chat. Availability of local marketplaces varies by surface. This repository is not a submission to the public OpenAI Plugins Directory.

For local development, clone this repository and add its absolute directory with codex plugin marketplace add /absolute/path/to/CodexPluginComputationalResearch. Invoke skills by name ($project-create, $document-propose) or describe the task.

Wolfram work requires an existing Wolfram Engine/Mathematica and a connected Wolfram AgentTools MCP server. Connect it through the host's MCP settings using the official server's instructions for that host; this package does not configure or launch another kernel. Lean and arXiv integrations are optional and discovered when needed. Run $project-check-env to check capabilities and license headroom.

Local scaffolding, builds, the board and CLI workers require filesystem and shell access. A web-only ChatGPT session needs those capabilities supplied by its environment. The board is a standalone local snapshot with a pending-change export; changes are reviewed and reconciled before applying to project files. Autolab uses native subagents when available, and the scheduled workflow uses bounded codex exec sessions. See runtime guidance for host differences and verification limits.

๐Ÿงฉ Functionality

โš™๏ธ Autosetup

Skill / commandPurpose
project-check-envCheck tools, kernel access and license capacity
โ€”Automatic setup: planned, no skill yet

๐Ÿ“ Autoorganization

Skill / commandPurpose
project-createSet up a research, mathematics or paclet project
project-loadSummarize the project and next steps
project-cleanMove superseded material into Archive/

๐Ÿ“š Autoknowledge

Skill / commandPurpose
wiki-initStart the wiki
wiki-updateRecord new findings
wiki-checkFind gaps, stale entries and broken links

๐Ÿ” Autoresources

Skill / commandPurpose
wiki-add-resourceSave and summarize a source
wiki-search-wolframSearch Wolfram documentation, repositories and Community
wiki-search-mathSearch MathWorld, nLab, OEIS, DLMF and Wikipedia
paper-citeMake BibTeX from an arXiv ID or DOI

๐Ÿบ Notebook and Markdown conversion

Skill / commandPurpose
notebook-createConvert between Wolfram notebooks and Markdown

๐Ÿ““ Expository notebooks and mathematics papers

Skill / commandPurpose
notebook-createCreate or edit an expository Wolfram notebook
paper-create-notebookWrite a requested mathematics paper as a notebook
paper-create-noteTurn a conversation into a mathematical note

๐Ÿ“ฆ Paclet development and publishing

Skill / commandPurpose
paclet-buildBuild and install locally
paclet-docsWrite function reference pages
paclet-publishPublish the paclet and documentation when requested

๐Ÿ“ Human-owned papers and paclet designs

Skill / commandPurpose
paper-createSet up a LaTeX or Typst paper and its notes
document-setupIdentify the current document and notes; create a missing pair when requested
document-proposeInvestigate a question and put proposed additions in the notes
document-compareCompare the document with proposals, proofs or code

๐Ÿ“ Proof formalization in Lean

Skill / commandPurpose
paper-leanFormalize proofs with Lean and Mathlib

๐Ÿงฎ Paper verification

Skill / commandPurpose
โ€”Planned; no skill yet

๐Ÿ“” Scientific journal

Skill / commandPurpose
paper-journalKeep an optional cited scientific journal

๐Ÿงฌ Prompt provenance

Skill / commandPurpose
project-provenanceOptionally record prompts behind generated work; retain revision history

๐Ÿ—ƒ๏ธ Autolab

Skill / commandPurpose
backlog-addRecord a work item
backlog-refineRefine its plan and tasks with you
backlog-infoReview the backlog with you
backlog-boardShow an editable web board
backlog-runRun one task, then stop
backlog-autolabExecute Ready tasks with background workers
backlog-run-scheduledRun unattended for scheduled jobs
backlog-reviewCheck results against your acceptance criteria

๐Ÿค Document review and revision

Skill / commandPurpose
document-reviseRevise a generated document from your comments and edits

๐Ÿงญ Guided project tours

Skill / commandPurpose
project-tourGive a guided project walkthrough

๐Ÿ“„ License

Code: MIT. Ideas: CC BY 4.0.