Skip to content

umyunsang/KOSMOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
KOSMOS

KOSMOS

KOrean public Serivce Multi-agent Orchestration System

License: Apache 2.0 PRs Welcome Code of Conduct GitHub Discussions

A conversational national-infrastructure AI agent platform that orchestrates Korean public OpenAPIs (data.go.kr) through a multi-agent architecture inspired by Claude Code's internal patterns, powered by LG AI Research's K-EXAONE.

Academic R&D project. Not affiliated with Anthropic, LG AI Research, or the Korean government.

Vision

Turn the 5,000+ fragmented public APIs on data.go.kr into a single conversational interface where citizens can resolve cross-ministry civil affairs (민원) in natural language — route safety, emergency services, welfare benefits, residence transfer, and more.

Architecture

KOSMOS transfers six architectural layers from Claude Code into the public-service domain:

Layer Claude Code Origin KOSMOS Adaptation
Query Engine while(true) tool loop + 5-stage preprocessing Civil-affairs state machine with ministry routing
Tool System buildTool() factory + Partition-Sort cache strategy buildGovAPI() adapters for data.go.kr endpoints
Permission Pipeline 7-step gauntlet with bypass-immune checks Citizen authentication + PII protection layers
Agent Swarms File-based mailbox IPC + Coordinator synthesis Ministry-specialist agents over message queue
Context Assembly CLAUDE.md 6-tier memory + per-turn attachments CITIZEN.md profile + live API status attachments
Error Recovery withRetry with 429/529/401 matrix Public-API outage fallback + cross-ministry verification

Model Stack

  • Orchestrator — K-EXAONE 236B (reasoning mode) for multi-agent synthesis and long-context civil-affairs flows
  • Workers — EXAONE 4.5 33B (non-reasoning) for single API calls, OCR, and fast response
  • Router / Classifier — EXAONE 4.0 1.2B for intent classification and ministry routing

Roadmap

  • Phase 1 — Prototype (3 months) — FriendliAI Serverless + 10 high-value APIs + single query engine
  • Phase 2 — Swarm (6 months) — Ministry agents, mailbox IPC, multi-API synthesis
  • Phase 3 — Production (12 months) — Full permission pipeline, identity verification, audit logging

Status

Early initialization. Architecture design in progress.

Contributing

Contributions are very welcome — issues, design discussions, tool adapters, and documentation. Start with:

For questions or design proposals, open a Discussion before writing code on large ideas.

License

Licensed under the Apache License 2.0. By contributing, you agree that your contributions will be licensed under the same terms.

About

Korean Sovereign Multi-agent Orchestration System — a conversational platform orchestrating data.go.kr public APIs via K-EXAONE, inspired by Claude Code architecture patterns.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors