A scholar-centered agent architecture for empirical social-science research.
Keep research judgment traceable, reviewable, and verifiable.
Why GEZHI / Architecture / Quick Start / Implementation / 中文
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.
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
| 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. |
格 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.
致 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.
Install the current GEZHI control plane from this repository:
python3 -m pip install "gezhi[openai] @ git+https://github.com/SiyaoZheng/GEZHI.git"
gezhi --helpThen 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-runThis 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 |
- 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.
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.
- Repository: github.com/SiyaoZheng/GEZHI
- Author: siyaozheng.org
- Issues: GEZHI issue tracker
- Security: SECURITY.md