openscience: Instructions file for Claude Code

CLAUDE.md

openscience CLAUDE.md is an instructions file for Claude Code from synthetic-sciences/openscience. It costs 2,093 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for OpenScience, an open-source AI research and engineering agent written in Bun and TypeScript. Bun is a JavaScript runtime, while TypeScript adds types to JavaScript.

In plain words
What is it for?
Running the project in development, checking types, running tests, building binaries, and working with its configuration and provider integrations.
Why use it?
They explain where the frontend, backend, tools, configuration, and binaries live. This reduces guesswork when developing, testing, or building the project for different systems.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

This is synthetic-sciences/openscience's own configuration. It tells Claude Code how to work on openscience itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything openscience configures →

About the project

synthetic-sciences/openscience is an AI workbench that carries out scientific research by reading papers, forming hypotheses, writing and running code, conducting experiments, analyzing results, and preparing reports. Researchers use it for work in machine learning, biology, physics, and chemistry with remote or local models. Catalogue add-ons extend its scientific workflows through skills and instructions.

synthetic-sciences/openscience · 4,348 stars · on GitHub · openscience.sh

Reuse

Borrowing it

Nothing to install: this file belongs to synthetic-sciences/openscience. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/synthetic-sciences/openscience/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/synthetic-sciences/openscience

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openscience CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/synthetic-sciences/openscience/claude-md/github.svg)](https://agentmods.dev/instructions/synthetic-sciences/openscience/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/synthetic-sciences/openscience/claude-md"><img src="https://agentmods.dev/badge/instructions/synthetic-sciences/openscience/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openscience CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/synthetic-sciences/openscience/claude-md"><img src="https://agentmods.dev/badge/instructions/synthetic-sciences/openscience/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,093 This file is loaded in full into every session.
When invoked 2,093 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02093 $0.02093
Opus 5.5 $0.00837 $0.00837
Sonnet 5.5 $0.00419 $0.00419
Haiku 4.5 $0.00209 $0.00209

Measured 1mo ago against content hash 9a7a18523da8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

openscience CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md: OpenScience

Read AGENTS.md first: repository map, commands, conventions, and the CI/release rules. This file keeps the product facts and the prompt-architecture guide that help when the shipped agent misbehaves.

Product facts

OpenScience (openscience) is an open-source, model-agnostic AI research agent for ML engineering and scientific work. Built with Bun and TypeScript, it ships as native binaries for Linux, macOS, and Windows.

  • npm package: @synsci/openscience
  • Binary name: openscience
  • Config dir: ~/.config/openscience/ (override with OPENSCIENCE_CONFIG_DIR)
  • Data root: ~/.openscience/ by default (relocatable; legacy synsc data imports automatically)
  • Config file: openscience.json
  • Provider ID: synsci (Atlas wire contract, do not rename)

Prompt architecture

In this guide, src/... paths are relative to backend/cli; prompt paths such as agent/prompt/... and session/prompt/... are relative to backend/cli/src.

The Research loop is shared across providers. Prompt selection, scientific context, model options and API serialization are separate steps. The harness is OpenCode's Build path with science in skills, agents, headers and a few switchable units; the loop itself knows nothing about science, deliverables or budgets.

Agent registry + selected model + current user message
    -> agent prompt, otherwise the model-family header with the science block
    -> environment (+ harness env lines), project instructions, core-skills index, posture reminder
    -> system-transform plugin, then parameter/header hooks
    -> provider message/tool normalization and inference options
    -> provider API
    -> on a final answer or a tripped guard, the harness units may continue or redirect

Header selection

LLM.prompts in src/session/llm.ts selects an explicit agent.prompt first. An agent without one (research, plan) receives the model-family header: SystemPrompt.provider(model) in src/session/system.ts routes by wire model id in OpenCode's order (gpt-4/o1/o3 and other gpt → gpt.txt; gpt-6/astra → gpt-astra.txt; codex → codex.txt; gemini- → gemini.txt; claude → anthropic.txt; otherwise default.txt). Each family file carries one {{SCIENCE}} slot that the runtime fills with agent/prompt/science.txt (Evidence and files; Methods and deliverables; Manuscripts and figures), so the science text is byte-identical across families. session/prompt/response.txt is appended to every header.

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +7 lines · +133 tokens per session 9a7a18523da8
  2. 1mo ago Changed · +10 lines · +319 tokens per session 892875c9774b
  3. 1mo ago Changed · +39 lines · +360 tokens per session faf6bb1abcb3
  4. 2mo ago Changed · -32 lines · -151 tokens per session 0de248d6d9c5
  5. 2mo ago Changed bb3cb11bee07
  6. 2mo ago First seen · 131 lines · 1,432 tokens per session scan A 7f389c736bc2

Subscribe to this mod's changes

openscience CLAUDE.md is an instructions file published in the GitHub repository synthetic-sciences/openscience (4,348 stars, last pushed 2d ago), licensed Apache-2.0. It adds 2,093 tokens to every session, about $0.0084 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

openscience CLAUDE.md compared with instructions from other repositories

openscience CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
openscience CLAUDE.mdsynthetic-sciences/openscienceInstructions file4.3k2d agoApache-2.0A2,093Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode