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
Objective
↓
Karya classification
↓
Route + runtime recommendation
↓
Explicit approval
↓
Approved specialist capabilities
↓
Execution + evidenceKarya 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.
git clone https://github.com/viniciusjsdev/karya.git
cd karyaWindows / 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/"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.
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.
Every Factory is opt-in. None is a hidden prerequisite for another, and cross-factory handoffs require an explicit request or approval.
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 →
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 →
Plans positioning and launch, prepares channel-ready creative, routes bounded external operations, and evaluates commercial results. Read the marketing workflow →
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 →
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 —
$karyaoptionally 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 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 auditIf 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.
- 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.
Core requirements:
- OpenAI Codex;
- Git.
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.pyValidate 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 -qFactory-specific validators remain inside their owning skill folders. Contributors should also follow the implementation and validation workflow.
- Architecture
- Karya method
- Routing and coordination
- Factory workflow map
- Project Harness
- Research workflow
- Marketing workflow
- Product workflow
- Complete skill catalog
Explore the interactive Karya architecture and workflow →
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.
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.
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.
Karya is available under the MIT License.
