Skip to content

About

A Knowledge Graph for Ocean Research and Forecasting

Resources

Stars

8 stars

Watchers

1 watching

Forks

Latest commit

ย 

History

78 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

OceanGraph

OceanGraph: From Ocean Knowledge to Research and Forecasting

Connect domain knowledge, scientific models and research tools to turn questions into evidence-backed outputs.

๐ŸŒ ็ฎ€ไฝ“ไธญๆ–‡ ยท ๐Ÿ”‘ Get API Token ยท ๐Ÿš€ Quick Start
๐ŸŒ Website ยท ๐Ÿ“š Online Docs ยท ๐Ÿ“– Usage Guide

Python 3.10+ recommended License: MIT Codex and Claude Code

โœจ Why OceanGraph?

Ocean research connects literature evidence, observations and specialized models. OceanGraph provides research and forecasting tools for ocean science: its knowledge graph and retrieval service supply domain evidence, Agent Skills organize research tasks, and XiHe supports forecasting, visualization and report preparation.

Researchers can describe goals, add constraints and review results in Codex or Claude Code, or call tools through the standalone CLI. This repository provides the CLI, Skills and local workflows; online literature and news retrieval use the hosted service.

๐Ÿ“‘ Table of Contents

๐Ÿงฉ Capabilities at a Glance

OceanGraph provides one unified entrypoint and five focused Skills. Use oceangraph to let the agent select and coordinate tasks, or choose a focused Skill:

What you want to do Skill
Retrieve papers and news; produce cited reviews, investigations or trend reports oceangraph-research
Compare an idea with prior work and identify overlap and questions to validate oceangraph-idea-grounding
Inspect coverage gaps, generate testable hypotheses or plan observations oceangraph-idea-generate
Check scientific claims or validate how approved analyses relate to them oceangraph-claim-check
Run or reuse forecasts; produce figures, numerical summaries and reports oceangraph-forecast

๐Ÿš€ Quick Start

Start with literature retrieval, then configure forecasting or other research workflows as needed. Python 3.10+ is recommended. For Skills, install and sign in to Codex CLI or Claude Code first. The terminal commands below target Linux/macOS.

1. Get the Project

git clone https://github.com/OceanGPT/OceanGraph.git
cd OceanGraph
cp -n .env.example .env

Run the following commands from the repository root. Keep your existing configuration if .env is already present.

2. Configure Retrieval

Open the API Token registration page, complete email verification and copy your personal Token. Set these values in .env:

OCEANGRAPH_API_BASE_URL=https://oceangraph.zjukg.cn
OCEANGRAPH_API_KEY=YOUR_OCEANGRAPH_TOKEN

See the Configuration and CLI guide for service configuration, model settings and CLI usage.

3. Start Your Agent

Choose one entrypoint. The connector prepares the project Python environment, installs the CLI and all six Skills, loads local configuration and starts the selected agent.

Codex:

python3 OceanGraph/scripts/connect-codex.py

Or Claude Code:

python3 OceanGraph/scripts/connect-claude.py

See the Agent Skills guide for selective installation, updates and invocation.

4. Send Your First Task

In Codex chat, enter:

$oceangraph-research Find papers on South China Sea spring warm pool formation and decay and save a cited brief.

In Claude Code, replace $oceangraph-research with /oceangraph-research.

Expected result: a short answer with source citations and the location of the saved brief. Follow up with a mechanism, region or evidence gap to investigate further.

This direct retrieval and host-agent synthesis path needs only the configuration above. Some structured CLI assessments require a separate model service. Standalone CLI use does not require an agent; see CLI usage.

๐ŸŒŠ Bring Domain Knowledge into Research

OceanGraph connects ocean concepts, scientific literature and news events to provide traceable knowledge and evidence. Research tools retrieve papers and news about a topic, organize findings, disagreements and scope conditions, and retain sources in briefs or structured artifacts.

See Architecture and interfaces for the system architecture, research state and development interfaces.

These examples show literature research, port and shipping investigations, and maritime policy impacts. Findings use retrieved evidence and retain source disagreements and coverage limits.

Marine Scientific Reasoning

$oceangraph-research Explain how the South China Sea spring warm pool forms and decays.
Retrieve paper evidence, compare the mechanisms and save a cited brief.
Present the findings and citations in your final answer.

OceanGraph research retrieval, source inspection and cited brief

Compare the mechanisms, review source citations and read the final findings.

Port and Maritime Operations

$oceangraph-research Investigate how methanol bunkering in Singapore developed from trials to technical standards and licensing.
Retrieve news evidence with OceanGraph, compare the operational and regulatory milestones, and distinguish announcement dates from implementation dates.
Save a cited brief and present concise findings and the retrieved source list in your final answer.

OceanGraph Singapore methanol bunkering investigation, trials, standards and licensing

Marine Law and Governance

$oceangraph-research Investigate the ocean protection mechanisms and implementation challenges of the high seas treaty (BBNJ).
Retrieve news and paper evidence with OceanGraph, compare the main governance tools and implementation concerns, and distinguish negotiations, adoption and entry into force.
Save a cited brief and present concise findings and the retrieved source list in your final answer.

OceanGraph BBNJ treaty investigation, ocean protection mechanisms and implementation challenges

๐Ÿค Connect General Agents with Specialized Models

OceanGraph Skills connect general agents, specialized ocean models and research tools to support research analysis, ocean forecasting, visualization and report generation.

Ocean Forecasting

For example, provide existing XiHe forecast files, then request:

$oceangraph-forecast Reuse validated XiHe outputs initialized on 2024-03-20 for 2024-03-21.
Plot South China Sea SST and sea-surface height with surface currents for 105-121 E, 3-24 N.
Save figures and numerical summaries, and explain the findings in your final answer without starting new inference.

OceanGraph XiHe forecast reuse, numerical findings and regional forecast figures

The demo reuses existing XiHe outputs and ends with SST and sea-surface height/current figures.

See Forecast environment setup for model deployment, input data and rendering requirements. For report inputs and result validation, follow the Forecast report guide.

๐Ÿง  OceanRSI: Improving Research Tools and Agent Harnesses

We are building OceanRSI (Ocean Research Self-Improvement) on OceanGraph and HarnessGrad to use feedback from ocean research tasks to improve the tools and agent harnesses used in subsequent work. OceanGraph supplies domain knowledge and evidence, while Skills connect research tasks with specialized models and tools. The editable scope spans Skills and prompts, tool code, and the agent's planning, memory and control flow.

OceanRSI: connecting ocean knowledge, scientific research and continual improvement

HarnessGrad runs are underway; the full iteration loop is in development.

In this design, an optimization method reads study-task traces, scores and version history, edits the agent project and submits runnable candidates. HarnessGrad runs and independently scores candidates, recording version changes and costs. The method uses study feedback to guide further edits and version selection. A selected version is then evaluated on held-out tasks for generalization and retention of existing capabilities, with validated Skills, tools and harnesses reused in later research.

For example, if a South China Sea spring warm pool study misses decay processes and counterevidence, candidate edits could target the retrieval Skill, evidence-processing code and the agent's retrieval and verification workflow. Other research tasks would then test the effects of these edits. Researchers help set goals, provide domain feedback and review evidence. Reproducible cases and cross-task evaluation results are in the TODO list.

๐Ÿ“– Documentation

Use case Documentation
Browse the full documentation online Online documentation
Install and use Skills Agent Skills guide
Configure services and run the CLI Configuration and CLI guide
Deploy forecast models and prepare the runtime Forecast environment setup
Generate and validate forecast reports Forecast report guide
Explore the architecture and development interfaces Architecture and interfaces

๐Ÿ“ TODO

  • CLI Tools. Provide command-line tools for ocean research and retrieval workflows.
  • Agent Skills. Package reusable ocean research Skills for Codex and Claude Code.
  • Ocean Forecasting. Support XiHe forecasts, output reuse and regional/global visualization.
  • Knowledge Expansion and Updates. Expand the coverage of ocean knowledge and datasets, and support regular updates to the knowledge graph.
  • More Models. Integrate Wenhai and expand support for specialized ocean models.
  • Benchmarks and Evaluation. Add research task benchmarks, forecast evaluations and reproducible examples.
  • OceanRSI. Complete the candidate-editing, evaluation and feedback loop, and publish reproducible improvement cases with cross-task evaluation results.

๐Ÿ“„ License

This project is licensed under the MIT License.

About

A Knowledge Graph for Ocean Research and Forecasting

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages