Skip to content

Repository files navigation

Karya — The structure behind AI-native development.

Karya Website Karya Documentation Get Started with Karya Karya Contributing Guide Karya MIT License

Karya is an open-source development system for Codex built around durable project knowledge, executable Specs, reusable Skills, isolated Threads, deterministic routing, validation, and evidence. Its four independent Factories cover product creation, market research, commercial launch, and durable AI project operations.

Durable Knowledge · Specs · Skills · Threads · Routing · Evidence

How Karya works

Objective
   ↓
Karya classification
   ↓
Route + runtime recommendation
   ↓
Explicit approval
   ↓
Approved specialist capabilities
   ↓
Execution + evidence

Karya recommends; you approve; approved capabilities execute. Routing selects and explains a path—it is not authorization or execution, and Karya is not a fifth Factory.

Quick start

1. Clone Karya

git clone https://github.com/viniciusjsdev/karya.git
cd karya

2. Install the skills

Windows / PowerShell:

$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $env:USERPROFILE ".codex" }
$skillsHome = Join-Path $codexHome "skills"
New-Item -ItemType Directory -Force $skillsHome | Out-Null

Get-ChildItem .\skills -Directory | ForEach-Object {
  Copy-Item -Recurse -Force $_.FullName (Join-Path $skillsHome $_.Name)
}

Linux / macOS:

export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
mkdir -p "$CODEX_HOME/skills"
cp -R skills/. "$CODEX_HOME/skills/"

3. Start your first flow

In Codex, describe the outcome once:

Use $karya to analyze this objective and project, recommend the smallest suitable route with reasons, and wait for my approval before applying specialist skills internally: <your objective>

Review the recommendation and approve or revise its exact scope. Karya then coordinates the approved specialist capabilities while remaining the user-facing voice.

If you already know the route, invoke its entry skill directly—for example, $product-brief-architect, $market-research-architect, $commercial-launch-architect, or $project-harness-architect. See the complete skill catalog.

Why Karya?

AI-assisted development becomes fragile when decisions and operating knowledge live only in conversations. Karya moves that context into durable, reviewable artifacts so projects can continue without reconstructing their history.

  • Durable knowledge preserves project truth beyond a single conversation.
  • Explicit Specs and contracts make bounded work executable and testable.
  • Reusable Skills encode stable specialist procedures without proliferating agents.
  • Deterministic routing materializes model, reasoning, thread, and validation policy when a Project Harness Spec requires it.
  • Evidence and independent review keep completion claims tied to artifacts, commands, and results.

Four independent Factories

Every Factory is opt-in. None is a hidden prerequisite for another, and cross-factory handoffs require an explicit request or approval.

MVP Factory

Turns an idea, PRD, or existing product context into explicit product contracts, a testable implementation, backend and infrastructure boundaries, and validation. Read the MVP method →

Research Factory

Defines research hypotheses, routes evidence collection by source and provider, and challenges the result before recommending the next experiment or decision. Read the research workflow →

Marketing Factory

Plans positioning and launch, prepares channel-ready creative, routes bounded external operations, and evaluates commercial results. Read the marketing workflow →

Project Harness Factory

Makes project knowledge and AI execution durable through documentation, Specs, local Skills, runtime policy, isolated Threads, evidence, audit, and optional economic OpenCode implementation with Codex fallback and final review. Read the Project Harness architecture →

Architecture

Karya separates persistent project truth from temporary execution state:

  • Knowledge — Docs and ADRs preserve domain truth and decisions.
  • Specs — bounded changes pair human intent with resolved execution policy.
  • Skills — independently installable specialist capabilities package instructions, references, scripts, schemas, and assets.
  • Threads — temporary design, implementation, worker, or review contexts communicate through durable artifacts, not chat history.
  • Runtime — model, reasoning, working directory, thread mode, validation, and review requirements are materialized before Harness execution.
  • Routing$karya optionally recommends the smallest suitable direct or Factory route and waits for approval.
  • Evidence — tests, artifacts, completion records, and independent reviews make results auditable.

Persistent Codex-facing context belongs under .codex/; gitignored operational state belongs under .harness/runtime/. Read the architecture →

Project Harness

Project Harness is the Factory that most directly expresses Karya's durable operating model:

Design Thread
  → durable Spec + resolved runtime manifest
  → isolated Implementation Thread
  → tests + structured evidence
  → independent review
  → Harness audit

If implementation encounters a consequential unresolved decision, it returns needs_design; the durable Spec, ADR, or documentation is updated before the mapped thread resumes. Secrets, transcripts, conversation history, domain truth, ADRs, Specs, and persistent documentation never belong in .harness/runtime/.

See the Project Harness architecture, durable contract, and executable SPEC-023 example.

Core principles and boundaries

  • Artifacts over chat history. Important knowledge must survive the conversation that created it.
  • Architect ≠ Executor ≠ Auditor. Contract definition, implementation, and approval retain separate authority.
  • Smallest capable runtime. Use the least expensive model and reasoning level that can complete the work reliably.
  • Deterministic operations belong in code. Scripts validate and route what should not be guessed by another model.
  • Progressive context disclosure. Threads receive the smallest useful context and load more only when required.
  • Explicit boundaries. Recommendation is not approval; routing is not execution; approval does not authorize unlisted scope.
  • Independent Factories. Research, Marketing, MVP, and Project Harness never hand work to one another automatically.
  • Human-controlled external actions. Credentials, account creation, publication, communication, spending, and other consequential writes remain explicitly controlled.

Requirements and installation details

Core requirements:

Live Project Harness routing additionally requires Python 3.12+ and the pinned official Python Codex SDK. Existing MVP, Research, and Marketing mechanisms may use Node.js 24+, npm, or provider-specific tools documented by their owning skill.

Each folder under skills/ is independently installable. To install only one capability, copy only its folder into $CODEX_HOME/skills/.

For live Project Harness routing, create an isolated Python environment and run:

python -m pip install -r skills/codex-runtime-router/requirements.txt
python skills/codex-runtime-router/scripts/codex_runtime_doctor.py

Validation

Validate every skill definition:

$codexHome = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $env:USERPROFILE ".codex" }
$quickValidate = Join-Path $codexHome "skills\.system\skill-creator\scripts\quick_validate.py"

Get-ChildItem .\skills -Directory | ForEach-Object {
  python $quickValidate $_.FullName
}

Run the Project Harness deterministic suite:

python -m pip install -r skills/codex-runtime-router/requirements-dev.txt
python -m pytest \
  skills/project-harness-architect/scripts/test_harness_bootstrap.py \
  skills/project-spec-architect/scripts/test_spec_validator.py \
  skills/project-skill-author/scripts/test_project_skill_validator.py \
  skills/codex-runtime-router/scripts/test_runtime_router.py \
  skills/codex-runtime-router/scripts/test_runtime_router_v2.py \
  skills/karya-execution-router/scripts/test_execution_router.py \
  skills/project-harness-auditor/scripts/test_harness_auditor.py \
  examples/project-harness/spec-023-sensor-export/project/tests/test_sensor_export.py -q

Factory-specific validators remain inside their owning skill folders. Contributors should also follow the implementation and validation workflow.

Documentation

Explore the interactive Karya architecture and workflow →

Why the name Karya?

Karya is a brand adaptation inspired by the Caryatids: female figures used as structural supports in classical architecture. The Caryatid is not decoration; she is structure—a metaphor for the durable layer that helps humans and AI build, validate, and evolve projects consistently.

Read the Karya brand principles and official asset policy.

Contributing

Contributions to skills, deterministic tooling, tests, examples, documentation, and cross-platform support are welcome. Read CONTRIBUTING.md for the package format, runtime conventions, validation requirements, and pull-request checklist.

Acknowledgments

Thanks to Leiming Cloud for providing a complimentary permanent license to evaluate BizBot, a standalone platform for AI-assisted business outreach. The evaluation helped inform Karya’s thinking about lead discovery, outreach workflows, human approval gates, and the separation between research and commercial execution. BizBot remains an independent external product and is not a Karya dependency.

License

Karya is available under the MIT License.

About

The structure behind AI-native development. Skills, Specs, Threads and deterministic execution for Codex.

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages