Skip to content

Repository files navigation

GEZHI: a scholar-centered agent architecture for empirical social-science research

GEZHI · 格致

A scholar-centered agent architecture for empirical social-science research.

Keep research judgment traceable, reviewable, and verifiable.

Why GEZHI  /  Architecture  /  Quick Start  /  Implementation  /  中文

GitHub stars Active research software Scholar centered MIT license

Why GEZHI

AI can retrieve literature, organize evidence, clean data, write code, and format manuscripts. But a social-science paper is not a checklist of tasks. It is a chain of judgments about theory, design, measurement, evidence, inference, and the boundaries of a credible claim.

GEZHI organizes agents around those judgments.

It gives repetitive execution to AI while keeping the researcher at the architecture layer—as thinker, planner, and gatekeeper.

Architecture

flowchart TB
    R["Researcher<br/>thinker · planner · gatekeeper"]
    G["GEZHI research loop"]
    GE["格 · review<br/>whole-paper judgment · root diagnosis · bounded brief"]
    ZHI["致 · revise<br/>authorized edits · rebuild · return evidence"]
    S["AI4SS research skill layer<br/>design · evidence · analysis · writing"]
    C["GEZHI control plane<br/>produce · review · route · repeat"]
    A["Paper + code + data + provenance"]

    R --> G
    C --> G
    S --> G
    G --> GE
    GE --> ZHI
    ZHI --> A
    A --> GE
    GE --> R
Loading
Layer Responsibility
Research architecture The researcher decides what matters, plans the research path, and guards evidentiary and inferential boundaries.
Scholarly capability The AI4SS skill layer supports research design, evidence construction, analysis review, and academic writing.
Control plane gezhi rebuilds the artifact, requests review, persists the decision, and schedules the next bounded pass.

格 and 致

格 · judge the whole

reviews the current paper as one integrated argument.

  • cover the full scholarly object, not a sequence of mechanical stages;
  • make judgments, not just scores;
  • diagnose one root problem, not a pile of surface symptoms;
  • return evidence and explicit completion conditions.

致 · revise within bounds

receives the active scholarly focus and performs a bounded revision.

  • edit only authorized source files;
  • rebuild the paper and analysis rather than claiming completion in chat;
  • preserve data, code, and provenance as inspectable evidence;
  • return the new artifact to for another whole-paper judgment.

Quick Start

Install the current GEZHI control plane from this repository:

python3 -m pip install "gezhi[openai] @ git+https://github.com/SiyaoZheng/GEZHI.git"
gezhi --help

Then give your coding agent one entrypoint:

Read https://github.com/SiyaoZheng/GEZHI/blob/main/llms.txt and configure this project as a GEZHI research loop.

For a manual first run, create and edit the starter configuration before allowing an agent to edit research source:

gezhi init
# Edit gezhi.toml: set the artifact, producer, review, and writable source scopes.
gezhi validate
gezhi doctor
gezhi run --dry-run

Current Implementation

This repository ships GEZHI as one canonical Python distribution, import package, and command: gezhi. Project configuration lives in gezhi.toml, and runtime state lives under .gezhi/.

The runtime names the review role tik and the bounded source-repair role tok. In the GEZHI architecture, those mechanisms support and respectively; they are role names, not separate products.

Path Role in GEZHI
src/gezhi/ Persistent artifact-first control loop
gezhi-project-setup Connect an existing research project to the GEZHI control loop
gezhi-template-author Improve reusable project templates, checks, and examples
examples/scientificity/ Empirical-paper example with executable checks
docs/config-schema.md Full gezhi.toml contract
docs/cli-reference.md Current command reference
docs/architecture.md Control-plane design rationale
docs/migration.md Hard-cut migration from the earlier runtime identity

Non-negotiables

  • The artifact is the object of evaluation. Agent activity is not evidence of research progress.
  • No invented evidence. Missing information stays missing and constrains the claim.
  • One active root focus. Revision effort stays bounded and auditable.
  • Researcher responsibility remains human. GEZHI does not replace authorship, research ethics, or independent verification.
  • Every pass leaves a trail. Paper, code, data, provenance, review, and decision remain inspectable.

Status

GEZHI is active research software. Its present public implementation is most useful for completed empirical social-science projects with executable analysis, a canonical paper artifact, and explicit evidence boundaries.

The architecture is deliberately conservative: it can make an agent workflow more persistent and inspectable, but it cannot make a weak design, missing data, or an unsupported claim credible.

Project Links

License

MIT

About

GEZHI (格致): a scholar-centered agent architecture for traceable, reviewable, and verifiable empirical social-science research.

Topics

Resources

Security policy

Stars

40 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages