mokata 0.0.9rc1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mokata-0.0.9rc1/LICENSE +201 -0
- mokata-0.0.9rc1/NOTICE +8 -0
- mokata-0.0.9rc1/PKG-INFO +203 -0
- mokata-0.0.9rc1/README.md +181 -0
- mokata-0.0.9rc1/pyproject.toml +74 -0
- mokata-0.0.9rc1/setup.cfg +4 -0
- mokata-0.0.9rc1/src/mokata/__init__.py +72 -0
- mokata-0.0.9rc1/src/mokata/__main__.py +6 -0
- mokata-0.0.9rc1/src/mokata/adapters/__init__.py +39 -0
- mokata-0.0.9rc1/src/mokata/adapters/contract.py +97 -0
- mokata-0.0.9rc1/src/mokata/adapters/mcp.py +85 -0
- mokata-0.0.9rc1/src/mokata/adapters/precedence.py +36 -0
- mokata-0.0.9rc1/src/mokata/agent_skills.py +251 -0
- mokata-0.0.9rc1/src/mokata/baseline.py +89 -0
- mokata-0.0.9rc1/src/mokata/bootstrap.py +253 -0
- mokata-0.0.9rc1/src/mokata/brainstorm.py +717 -0
- mokata-0.0.9rc1/src/mokata/ci_check.py +220 -0
- mokata-0.0.9rc1/src/mokata/cli.py +214 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/__init__.py +1 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/_common.py +226 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/collab.py +355 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/core.py +218 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/diagnostics.py +103 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/distribution.py +281 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/index.py +94 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/knowledge.py +241 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/mcp.py +110 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/memory.py +220 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/pipeline.py +224 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/plan.py +109 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/reset.py +47 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/rules.py +230 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/runviews.py +311 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/setup.py +221 -0
- mokata-0.0.9rc1/src/mokata/cli_commands/skills.py +240 -0
- mokata-0.0.9rc1/src/mokata/compose.py +72 -0
- mokata-0.0.9rc1/src/mokata/config.py +161 -0
- mokata-0.0.9rc1/src/mokata/config_cmd.py +172 -0
- mokata-0.0.9rc1/src/mokata/crossplat.py +46 -0
- mokata-0.0.9rc1/src/mokata/dashboard.py +497 -0
- mokata-0.0.9rc1/src/mokata/detect.py +107 -0
- mokata-0.0.9rc1/src/mokata/engine/__init__.py +117 -0
- mokata-0.0.9rc1/src/mokata/engine/acmapper.py +95 -0
- mokata-0.0.9rc1/src/mokata/engine/completeness.py +107 -0
- mokata-0.0.9rc1/src/mokata/engine/compliance.py +67 -0
- mokata-0.0.9rc1/src/mokata/engine/phases.py +204 -0
- mokata-0.0.9rc1/src/mokata/engine/premortem.py +78 -0
- mokata-0.0.9rc1/src/mokata/engine/preview.py +77 -0
- mokata-0.0.9rc1/src/mokata/engine/ship.py +131 -0
- mokata-0.0.9rc1/src/mokata/engine/spec.py +59 -0
- mokata-0.0.9rc1/src/mokata/engine/spec_awareness.py +256 -0
- mokata-0.0.9rc1/src/mokata/engine/spec_gate.py +83 -0
- mokata-0.0.9rc1/src/mokata/execmode/__init__.py +62 -0
- mokata-0.0.9rc1/src/mokata/execmode/decompose.py +394 -0
- mokata-0.0.9rc1/src/mokata/execmode/estimate.py +41 -0
- mokata-0.0.9rc1/src/mokata/execmode/orchestrator.py +205 -0
- mokata-0.0.9rc1/src/mokata/execmode/review.py +51 -0
- mokata-0.0.9rc1/src/mokata/execmode/routing.py +99 -0
- mokata-0.0.9rc1/src/mokata/execmode/selector.py +134 -0
- mokata-0.0.9rc1/src/mokata/execmode/tasks.py +40 -0
- mokata-0.0.9rc1/src/mokata/govern/__init__.py +137 -0
- mokata-0.0.9rc1/src/mokata/govern/authoring.py +65 -0
- mokata-0.0.9rc1/src/mokata/govern/budget.py +89 -0
- mokata-0.0.9rc1/src/mokata/govern/cache.py +53 -0
- mokata-0.0.9rc1/src/mokata/govern/compaction.py +39 -0
- mokata-0.0.9rc1/src/mokata/govern/compress.py +71 -0
- mokata-0.0.9rc1/src/mokata/govern/deviation.py +117 -0
- mokata-0.0.9rc1/src/mokata/govern/doctor.py +109 -0
- mokata-0.0.9rc1/src/mokata/govern/gate.py +92 -0
- mokata-0.0.9rc1/src/mokata/govern/hooks.py +58 -0
- mokata-0.0.9rc1/src/mokata/govern/karpathy.py +129 -0
- mokata-0.0.9rc1/src/mokata/govern/learning.py +112 -0
- mokata-0.0.9rc1/src/mokata/govern/ledger.py +123 -0
- mokata-0.0.9rc1/src/mokata/govern/lifecycle.py +85 -0
- mokata-0.0.9rc1/src/mokata/govern/outbound.py +47 -0
- mokata-0.0.9rc1/src/mokata/govern/resume.py +57 -0
- mokata-0.0.9rc1/src/mokata/govern/retrieval.py +74 -0
- mokata-0.0.9rc1/src/mokata/govern/revert.py +86 -0
- mokata-0.0.9rc1/src/mokata/govern/rules.py +165 -0
- mokata-0.0.9rc1/src/mokata/govern/secrets.py +175 -0
- mokata-0.0.9rc1/src/mokata/govern/tdd.py +47 -0
- mokata-0.0.9rc1/src/mokata/govern/tokens.py +56 -0
- mokata-0.0.9rc1/src/mokata/govern/trifecta.py +81 -0
- mokata-0.0.9rc1/src/mokata/govern/trust.py +49 -0
- mokata-0.0.9rc1/src/mokata/harness.py +184 -0
- mokata-0.0.9rc1/src/mokata/harness_paths.py +38 -0
- mokata-0.0.9rc1/src/mokata/harness_setup.py +876 -0
- mokata-0.0.9rc1/src/mokata/hook_cli.py +400 -0
- mokata-0.0.9rc1/src/mokata/hooks/hooks.json +25 -0
- mokata-0.0.9rc1/src/mokata/hooks/launch.sh +68 -0
- mokata-0.0.9rc1/src/mokata/hooks/secret_guard.py +26 -0
- mokata-0.0.9rc1/src/mokata/hooks/session_start.py +40 -0
- mokata-0.0.9rc1/src/mokata/init.py +247 -0
- mokata-0.0.9rc1/src/mokata/knowledge/__init__.py +91 -0
- mokata-0.0.9rc1/src/mokata/knowledge/anchors.py +115 -0
- mokata-0.0.9rc1/src/mokata/knowledge/graph_backend.py +84 -0
- mokata-0.0.9rc1/src/mokata/knowledge/grep_backend.py +177 -0
- mokata-0.0.9rc1/src/mokata/knowledge/index.py +126 -0
- mokata-0.0.9rc1/src/mokata/knowledge/layer.py +260 -0
- mokata-0.0.9rc1/src/mokata/knowledge/neo4j_backend.py +114 -0
- mokata-0.0.9rc1/src/mokata/knowledge/query.py +78 -0
- mokata-0.0.9rc1/src/mokata/languages.py +351 -0
- mokata-0.0.9rc1/src/mokata/legibility.py +147 -0
- mokata-0.0.9rc1/src/mokata/manifest.py +138 -0
- mokata-0.0.9rc1/src/mokata/mcp/__init__.py +51 -0
- mokata-0.0.9rc1/src/mokata/mcp/registry.py +60 -0
- mokata-0.0.9rc1/src/mokata/mcp/server.py +88 -0
- mokata-0.0.9rc1/src/mokata/mcp/tools_read.py +565 -0
- mokata-0.0.9rc1/src/mokata/mcp/tools_write.py +628 -0
- mokata-0.0.9rc1/src/mokata/mcp_admin.py +252 -0
- mokata-0.0.9rc1/src/mokata/mcp_server.py +33 -0
- mokata-0.0.9rc1/src/mokata/memory/__init__.py +199 -0
- mokata-0.0.9rc1/src/mokata/memory/_pg.py +30 -0
- mokata-0.0.9rc1/src/mokata/memory/backends.py +387 -0
- mokata-0.0.9rc1/src/mokata/memory/brain.py +116 -0
- mokata-0.0.9rc1/src/mokata/memory/consolidation.py +92 -0
- mokata-0.0.9rc1/src/mokata/memory/embed.py +60 -0
- mokata-0.0.9rc1/src/mokata/memory/episodic.py +76 -0
- mokata-0.0.9rc1/src/mokata/memory/healing.py +76 -0
- mokata-0.0.9rc1/src/mokata/memory/intelligence.py +193 -0
- mokata-0.0.9rc1/src/mokata/memory/item.py +148 -0
- mokata-0.0.9rc1/src/mokata/memory/migrate.py +197 -0
- mokata-0.0.9rc1/src/mokata/memory/share.py +160 -0
- mokata-0.0.9rc1/src/mokata/memory/store.py +496 -0
- mokata-0.0.9rc1/src/mokata/memory/tiered.py +104 -0
- mokata-0.0.9rc1/src/mokata/memory/vector.py +166 -0
- mokata-0.0.9rc1/src/mokata/modes/__init__.py +33 -0
- mokata-0.0.9rc1/src/mokata/modes/bug.py +76 -0
- mokata-0.0.9rc1/src/mokata/modes/debug.py +76 -0
- mokata-0.0.9rc1/src/mokata/modes/optimize.py +77 -0
- mokata-0.0.9rc1/src/mokata/netguard.py +80 -0
- mokata-0.0.9rc1/src/mokata/onboard.py +76 -0
- mokata-0.0.9rc1/src/mokata/onboarding.py +663 -0
- mokata-0.0.9rc1/src/mokata/packaging.py +175 -0
- mokata-0.0.9rc1/src/mokata/parity.py +319 -0
- mokata-0.0.9rc1/src/mokata/perf.py +186 -0
- mokata-0.0.9rc1/src/mokata/pipeline.py +126 -0
- mokata-0.0.9rc1/src/mokata/plans.py +135 -0
- mokata-0.0.9rc1/src/mokata/playbook.py +204 -0
- mokata-0.0.9rc1/src/mokata/plugin_cache.py +53 -0
- mokata-0.0.9rc1/src/mokata/profiles.py +236 -0
- mokata-0.0.9rc1/src/mokata/progress.py +671 -0
- mokata-0.0.9rc1/src/mokata/progress_events.py +265 -0
- mokata-0.0.9rc1/src/mokata/project.py +144 -0
- mokata-0.0.9rc1/src/mokata/prompt.py +103 -0
- mokata-0.0.9rc1/src/mokata/refine.py +282 -0
- mokata-0.0.9rc1/src/mokata/router.py +110 -0
- mokata-0.0.9rc1/src/mokata/schema.py +265 -0
- mokata-0.0.9rc1/src/mokata/session_bundle.py +602 -0
- mokata-0.0.9rc1/src/mokata/session_transport.py +253 -0
- mokata-0.0.9rc1/src/mokata/share.py +83 -0
- mokata-0.0.9rc1/src/mokata/skills/brainstorm/SKILL.md +125 -0
- mokata-0.0.9rc1/src/mokata/skills/bug/SKILL.md +23 -0
- mokata-0.0.9rc1/src/mokata/skills/debug/SKILL.md +23 -0
- mokata-0.0.9rc1/src/mokata/skills/develop/SKILL.md +35 -0
- mokata-0.0.9rc1/src/mokata/skills/govern/SKILL.md +40 -0
- mokata-0.0.9rc1/src/mokata/skills/mcp/SKILL.md +86 -0
- mokata-0.0.9rc1/src/mokata/skills/onboard/SKILL.md +51 -0
- mokata-0.0.9rc1/src/mokata/skills/optimize/SKILL.md +23 -0
- mokata-0.0.9rc1/src/mokata/skills/playbook/SKILL.md +32 -0
- mokata-0.0.9rc1/src/mokata/skills/refine/SKILL.md +88 -0
- mokata-0.0.9rc1/src/mokata/skills/review/SKILL.md +35 -0
- mokata-0.0.9rc1/src/mokata/skills/session/SKILL.md +107 -0
- mokata-0.0.9rc1/src/mokata/skills/ship/SKILL.md +34 -0
- mokata-0.0.9rc1/src/mokata/skills/spec/SKILL.md +26 -0
- mokata-0.0.9rc1/src/mokata/skills/test/SKILL.md +29 -0
- mokata-0.0.9rc1/src/mokata/skills.py +586 -0
- mokata-0.0.9rc1/src/mokata/stacks/go-service.json +97 -0
- mokata-0.0.9rc1/src/mokata/stacks/index.json +79 -0
- mokata-0.0.9rc1/src/mokata/stacks/node-ts.json +98 -0
- mokata-0.0.9rc1/src/mokata/stacks/python-web.json +99 -0
- mokata-0.0.9rc1/src/mokata/stacks.py +367 -0
- mokata-0.0.9rc1/src/mokata/state.py +64 -0
- mokata-0.0.9rc1/src/mokata/team.py +583 -0
- mokata-0.0.9rc1/src/mokata/team_audit.py +372 -0
- mokata-0.0.9rc1/src/mokata/templates/README.md +11 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/brainstorm.md +119 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/bug.md +17 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/chain.md +27 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/debug.md +17 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/decompose.md +47 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/develop.md +29 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/enter.md +30 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/exec.md +30 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/govern.md +36 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/init.md +79 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/mcp.md +81 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/onboard.md +46 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/optimize.md +17 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/playbook.md +28 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/progress.md +41 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/reconfigure.md +69 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/refine.md +83 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/resume.md +32 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/review.md +29 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/session.md +103 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/setup.md +79 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/ship.md +28 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/skill.md +44 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/spec.md +20 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/stacks.md +65 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/team.md +80 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/test.md +23 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/tour.md +47 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/upgrade.md +35 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/vault.md +82 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/version.md +14 -0
- mokata-0.0.9rc1/src/mokata/templates/commands/watch.md +35 -0
- mokata-0.0.9rc1/src/mokata/templates/manifest.schema.json +128 -0
- mokata-0.0.9rc1/src/mokata/vault.py +306 -0
- mokata-0.0.9rc1/src/mokata/version.py +165 -0
- mokata-0.0.9rc1/src/mokata/visibility.py +200 -0
- mokata-0.0.9rc1/src/mokata/worktree.py +157 -0
- mokata-0.0.9rc1/src/mokata.egg-info/PKG-INFO +203 -0
- mokata-0.0.9rc1/src/mokata.egg-info/SOURCES.txt +374 -0
- mokata-0.0.9rc1/src/mokata.egg-info/dependency_links.txt +1 -0
- mokata-0.0.9rc1/src/mokata.egg-info/entry_points.txt +4 -0
- mokata-0.0.9rc1/src/mokata.egg-info/requires.txt +17 -0
- mokata-0.0.9rc1/src/mokata.egg-info/top_level.txt +1 -0
- mokata-0.0.9rc1/tests/test_acmapper.py +97 -0
- mokata-0.0.9rc1/tests/test_adapter_contract.py +56 -0
- mokata-0.0.9rc1/tests/test_agent_skills.py +351 -0
- mokata-0.0.9rc1/tests/test_anchors.py +69 -0
- mokata-0.0.9rc1/tests/test_authoring.py +50 -0
- mokata-0.0.9rc1/tests/test_bootstrap.py +74 -0
- mokata-0.0.9rc1/tests/test_brainstorm.py +146 -0
- mokata-0.0.9rc1/tests/test_brainstorm_grounding.py +82 -0
- mokata-0.0.9rc1/tests/test_brainstorm_persistence.py +84 -0
- mokata-0.0.9rc1/tests/test_cli_adapters.py +59 -0
- mokata-0.0.9rc1/tests/test_cli_brainstorm.py +69 -0
- mokata-0.0.9rc1/tests/test_cli_budget.py +45 -0
- mokata-0.0.9rc1/tests/test_cli_compose.py +71 -0
- mokata-0.0.9rc1/tests/test_cli_dist.py +63 -0
- mokata-0.0.9rc1/tests/test_cli_exec.py +45 -0
- mokata-0.0.9rc1/tests/test_cli_govern.py +53 -0
- mokata-0.0.9rc1/tests/test_cli_graph.py +56 -0
- mokata-0.0.9rc1/tests/test_cli_lifecycle.py +58 -0
- mokata-0.0.9rc1/tests/test_cli_memory.py +51 -0
- mokata-0.0.9rc1/tests/test_cli_preview.py +38 -0
- mokata-0.0.9rc1/tests/test_cli_query.py +42 -0
- mokata-0.0.9rc1/tests/test_command_templates.py +36 -0
- mokata-0.0.9rc1/tests/test_completeness_gate.py +93 -0
- mokata-0.0.9rc1/tests/test_compliance.py +54 -0
- mokata-0.0.9rc1/tests/test_compose.py +54 -0
- mokata-0.0.9rc1/tests/test_config.py +66 -0
- mokata-0.0.9rc1/tests/test_config_commit.py +69 -0
- mokata-0.0.9rc1/tests/test_consolidation.py +79 -0
- mokata-0.0.9rc1/tests/test_cross_platform_python.py +184 -0
- mokata-0.0.9rc1/tests/test_decision_observability.py +185 -0
- mokata-0.0.9rc1/tests/test_detect.py +86 -0
- mokata-0.0.9rc1/tests/test_docs_consistency.py +80 -0
- mokata-0.0.9rc1/tests/test_doctor.py +63 -0
- mokata-0.0.9rc1/tests/test_engine_phases.py +97 -0
- mokata-0.0.9rc1/tests/test_episodic.py +81 -0
- mokata-0.0.9rc1/tests/test_exec_orchestrator.py +116 -0
- mokata-0.0.9rc1/tests/test_exec_review.py +39 -0
- mokata-0.0.9rc1/tests/test_exec_selector.py +74 -0
- mokata-0.0.9rc1/tests/test_govern_commands_wiring.py +188 -0
- mokata-0.0.9rc1/tests/test_govern_dashboard.py +183 -0
- mokata-0.0.9rc1/tests/test_govern_governance.py +141 -0
- mokata-0.0.9rc1/tests/test_govern_rules.py +71 -0
- mokata-0.0.9rc1/tests/test_govern_safety.py +181 -0
- mokata-0.0.9rc1/tests/test_govern_safety_wiring.py +234 -0
- mokata-0.0.9rc1/tests/test_govern_tokens.py +54 -0
- mokata-0.0.9rc1/tests/test_govern_wiring.py +126 -0
- mokata-0.0.9rc1/tests/test_harness.py +55 -0
- mokata-0.0.9rc1/tests/test_harness_codex.py +152 -0
- mokata-0.0.9rc1/tests/test_harness_cowork.py +119 -0
- mokata-0.0.9rc1/tests/test_harness_setup.py +188 -0
- mokata-0.0.9rc1/tests/test_hook_secret_guard.py +65 -0
- mokata-0.0.9rc1/tests/test_init.py +107 -0
- mokata-0.0.9rc1/tests/test_karpathy.py +90 -0
- mokata-0.0.9rc1/tests/test_knowledge_bridge.py +70 -0
- mokata-0.0.9rc1/tests/test_knowledge_graph_backend.py +69 -0
- mokata-0.0.9rc1/tests/test_knowledge_index.py +101 -0
- mokata-0.0.9rc1/tests/test_knowledge_layer.py +105 -0
- mokata-0.0.9rc1/tests/test_knowledge_query.py +77 -0
- mokata-0.0.9rc1/tests/test_learning.py +61 -0
- mokata-0.0.9rc1/tests/test_lifecycle.py +69 -0
- mokata-0.0.9rc1/tests/test_local_first.py +94 -0
- mokata-0.0.9rc1/tests/test_manifest.py +193 -0
- mokata-0.0.9rc1/tests/test_mcp.py +60 -0
- mokata-0.0.9rc1/tests/test_memory_backends.py +93 -0
- mokata-0.0.9rc1/tests/test_memory_healing.py +117 -0
- mokata-0.0.9rc1/tests/test_memory_item.py +38 -0
- mokata-0.0.9rc1/tests/test_memory_store.py +184 -0
- mokata-0.0.9rc1/tests/test_modes.py +106 -0
- mokata-0.0.9rc1/tests/test_packaging.py +62 -0
- mokata-0.0.9rc1/tests/test_pipeline_entry.py +68 -0
- mokata-0.0.9rc1/tests/test_playbook.py +103 -0
- mokata-0.0.9rc1/tests/test_precedence.py +70 -0
- mokata-0.0.9rc1/tests/test_premortem.py +55 -0
- mokata-0.0.9rc1/tests/test_preview.py +50 -0
- mokata-0.0.9rc1/tests/test_profiles.py +132 -0
- mokata-0.0.9rc1/tests/test_repo_hardening.py +72 -0
- mokata-0.0.9rc1/tests/test_resume.py +52 -0
- mokata-0.0.9rc1/tests/test_revert.py +98 -0
- mokata-0.0.9rc1/tests/test_router.py +80 -0
- mokata-0.0.9rc1/tests/test_routing.py +57 -0
- mokata-0.0.9rc1/tests/test_secret_corpus.py +220 -0
- mokata-0.0.9rc1/tests/test_session_lifecycle.py +186 -0
- mokata-0.0.9rc1/tests/test_settings.py +40 -0
- mokata-0.0.9rc1/tests/test_share.py +81 -0
- mokata-0.0.9rc1/tests/test_ship.py +103 -0
- mokata-0.0.9rc1/tests/test_skills.py +67 -0
- mokata-0.0.9rc1/tests/test_stage1d_prompt_sweep.py +191 -0
- mokata-0.0.9rc1/tests/test_stage23_plugin_init.py +255 -0
- mokata-0.0.9rc1/tests/test_stage24_configurable_backends.py +298 -0
- mokata-0.0.9rc1/tests/test_stage24_footprint.py +144 -0
- mokata-0.0.9rc1/tests/test_stage24c_skill_naming.py +59 -0
- mokata-0.0.9rc1/tests/test_stage25_fanout_and_graph.py +200 -0
- mokata-0.0.9rc1/tests/test_stage26_refine.py +204 -0
- mokata-0.0.9rc1/tests/test_stage27_progress.py +192 -0
- mokata-0.0.9rc1/tests/test_stage29_proactive_brainstorm.py +155 -0
- mokata-0.0.9rc1/tests/test_stage31_plan_adherence.py +160 -0
- mokata-0.0.9rc1/tests/test_stage32_spec_persisted.py +175 -0
- mokata-0.0.9rc1/tests/test_stage33_grounding_discipline.py +117 -0
- mokata-0.0.9rc1/tests/test_stage34_ship_and_baseline.py +206 -0
- mokata-0.0.9rc1/tests/test_stage35a_shared_memory.py +203 -0
- mokata-0.0.9rc1/tests/test_stage35b_memory_share.py +214 -0
- mokata-0.0.9rc1/tests/test_stage35c_memory_migrate.py +211 -0
- mokata-0.0.9rc1/tests/test_stage35d_vault.py +326 -0
- mokata-0.0.9rc1/tests/test_stage35e_vector_memory.py +178 -0
- mokata-0.0.9rc1/tests/test_stage35f_graph_adapter.py +316 -0
- mokata-0.0.9rc1/tests/test_stage36_onboard_typed_memory.py +315 -0
- mokata-0.0.9rc1/tests/test_stage37_spec_awareness.py +296 -0
- mokata-0.0.9rc1/tests/test_stage37r_remediation.py +240 -0
- mokata-0.0.9rc1/tests/test_stage39_binding.py +184 -0
- mokata-0.0.9rc1/tests/test_stage3b1_mcp_default.py +129 -0
- mokata-0.0.9rc1/tests/test_stage3b2_mcp_group.py +300 -0
- mokata-0.0.9rc1/tests/test_stage3b3_setup_verify.py +201 -0
- mokata-0.0.9rc1/tests/test_stage40_observability.py +294 -0
- mokata-0.0.9rc1/tests/test_stage53b_hook_cli.py +142 -0
- mokata-0.0.9rc1/tests/test_stage54_resume_hint.py +169 -0
- mokata-0.0.9rc1/tests/test_stage54b_stage_badge.py +372 -0
- mokata-0.0.9rc1/tests/test_stage54c_legibility.py +290 -0
- mokata-0.0.9rc1/tests/test_stage54d_parallel_view.py +249 -0
- mokata-0.0.9rc1/tests/test_stage54e_command_parity.py +301 -0
- mokata-0.0.9rc1/tests/test_stage54f_decompose.py +316 -0
- mokata-0.0.9rc1/tests/test_stage54g_brainstorm_anchor.py +221 -0
- mokata-0.0.9rc1/tests/test_stage54h_agents_panel.py +186 -0
- mokata-0.0.9rc1/tests/test_stage55a_session_bundle.py +416 -0
- mokata-0.0.9rc1/tests/test_stage55b_session_transport.py +519 -0
- mokata-0.0.9rc1/tests/test_stage56_first_run.py +262 -0
- mokata-0.0.9rc1/tests/test_stage56b_reconfigure.py +326 -0
- mokata-0.0.9rc1/tests/test_stage57_directory_listing.py +119 -0
- mokata-0.0.9rc1/tests/test_stage58_ci_check.py +272 -0
- mokata-0.0.9rc1/tests/test_stage59_memory_intelligence.py +342 -0
- mokata-0.0.9rc1/tests/test_stage60_trust_visibility.py +297 -0
- mokata-0.0.9rc1/tests/test_stage61_reliability.py +410 -0
- mokata-0.0.9rc1/tests/test_stage61b_release_process.py +304 -0
- mokata-0.0.9rc1/tests/test_stage63_multiagent.py +307 -0
- mokata-0.0.9rc1/tests/test_stage64_vscode_extension.py +160 -0
- mokata-0.0.9rc1/tests/test_stage64b_copilot_chat.py +154 -0
- mokata-0.0.9rc1/tests/test_stage65_language_coverage.py +190 -0
- mokata-0.0.9rc1/tests/test_stage66_cross_platform.py +188 -0
- mokata-0.0.9rc1/tests/test_stage66b_windows_portability.py +124 -0
- mokata-0.0.9rc1/tests/test_stage67_performance.py +188 -0
- mokata-0.0.9rc1/tests/test_stage68_supply_chain.py +417 -0
- mokata-0.0.9rc1/tests/test_stage69_team_sync.py +225 -0
- mokata-0.0.9rc1/tests/test_stage6b_progress_events.py +305 -0
- mokata-0.0.9rc1/tests/test_stage6c_develop_counter.py +185 -0
- mokata-0.0.9rc1/tests/test_stage6d_badge_verbosity.py +200 -0
- mokata-0.0.9rc1/tests/test_stage6p_plan_file.py +275 -0
- mokata-0.0.9rc1/tests/test_stage6r_independent_review.py +334 -0
- mokata-0.0.9rc1/tests/test_stage70_community_stacks.py +353 -0
- mokata-0.0.9rc1/tests/test_stage70b_team_join.py +329 -0
- mokata-0.0.9rc1/tests/test_stage70c_todo_widget.py +182 -0
- mokata-0.0.9rc1/tests/test_stage71_team_audit.py +466 -0
- mokata-0.0.9rc1/tests/test_stage71a_project_scoped.py +377 -0
- mokata-0.0.9rc1/tests/test_state.py +52 -0
- mokata-0.0.9rc1/tests/test_toggles.py +159 -0
- mokata-0.0.9rc1/tests/test_trifecta.py +58 -0
- mokata-0.0.9rc1/tests/test_trust.py +65 -0
- mokata-0.0.9rc1/tests/test_version_upgrade.py +169 -0
- mokata-0.0.9rc1/tests/test_worktree.py +226 -0
mokata-0.0.9rc1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or Derivative
|
|
95
|
+
Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work, excluding
|
|
103
|
+
those notices that do not pertain to any part of the Derivative
|
|
104
|
+
Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and do
|
|
117
|
+
not modify the License. You may add Your own attribution notices
|
|
118
|
+
within Derivative Works that You distribute, alongside or as an
|
|
119
|
+
addendum to the NOTICE text from the Work, provided that such
|
|
120
|
+
additional attribution notices cannot be construed as modifying
|
|
121
|
+
the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 MoStack
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
mokata-0.0.9rc1/NOTICE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
mokata
|
|
2
|
+
Copyright 2026 MoStack
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
mokata is built clean-room. Its methodology and prompt devices are reimplemented
|
|
7
|
+
in mokata's own terminology; mokata takes no dependency on, and imports no code
|
|
8
|
+
or text from, any other AI-assisted-coding methodology framework.
|
mokata-0.0.9rc1/PKG-INFO
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mokata
|
|
3
|
+
Version: 0.0.9rc1
|
|
4
|
+
Summary: An open-source, spec-driven TDD framework for Claude Code — governed, knowledge-aware, human-gated.
|
|
5
|
+
Author: MoStack
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
Keywords: claude-code,tdd,spec-driven,framework,ai-assisted-coding
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Requires-Dist: mcp>=1.2; python_version >= "3.10"
|
|
13
|
+
Provides-Extra: schema
|
|
14
|
+
Requires-Dist: jsonschema>=4.0; extra == "schema"
|
|
15
|
+
Provides-Extra: mcp
|
|
16
|
+
Requires-Dist: mcp>=1.2; python_version >= "3.10" and extra == "mcp"
|
|
17
|
+
Provides-Extra: postgres
|
|
18
|
+
Requires-Dist: psycopg>=3.1; extra == "postgres"
|
|
19
|
+
Provides-Extra: neo4j
|
|
20
|
+
Requires-Dist: neo4j>=5.0; extra == "neo4j"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# mokata
|
|
24
|
+
|
|
25
|
+
**The memory + seatbelt for your AI coding agent.** Spec-driven TDD for Claude Code —
|
|
26
|
+
knowledge-aware, self-healing memory, human-gated, local-first. It remembers your project and
|
|
27
|
+
stops the agent shipping the wrong thing.
|
|
28
|
+
|
|
29
|
+
[](LICENSE)
|
|
30
|
+
[](https://github.com/JasGujral/mokata-oss/actions/workflows/ci.yml)
|
|
31
|
+
[](https://github.com/JasGujral/mokata-oss/releases/latest)
|
|
32
|
+
[](pyproject.toml)
|
|
33
|
+
[](https://jasgujral.github.io/mokata-oss/)
|
|
34
|
+
[](docs/concepts/governance.md)
|
|
35
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/JasGujral/mokata-oss)
|
|
36
|
+
|
|
37
|
+
📖 **Full documentation:** **<https://jasgujral.github.io/mokata-oss/>** — quickstart, tutorials, concepts, and the complete CLI + plugin reference.
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## See it catch a bad change (30 seconds)
|
|
42
|
+
|
|
43
|
+
An AI agent, mid-task, tries two bad changes — ship code with no spec, and stash a secret.
|
|
44
|
+
mokata stops both, and puts both on the audit ledger. (Real output; run it yourself with
|
|
45
|
+
`mokata init --profile standard --yes` in a scratch repo.)
|
|
46
|
+
|
|
47
|
+
```console
|
|
48
|
+
$ mokata run develop # the agent tries to write code with no spec...
|
|
49
|
+
[BLOCKED] spec-persisted — no saved spec — draft and emit it first (/mokata:spec); the completeness gate must pass before implementation.
|
|
50
|
+
|
|
51
|
+
$ # ...and tries to stash a secret (even with approve=True):
|
|
52
|
+
status: blocked findings: ['aws-access-key', 'high-entropy-token', 'sensitive-location']
|
|
53
|
+
|
|
54
|
+
$ mokata audit # every block is on the ledger
|
|
55
|
+
audit ledger — 2 entries:
|
|
56
|
+
#1 gate gate=spec-persisted phase=develop decision=blocked reason=no saved spec ...
|
|
57
|
+
#2 write_gate write_kind=memory target=memory:aws.key actor=mcp decision=blocked reason=secret detected
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**The full copy-paste demo + a 60-second screencast script:** [mokata catches a bad change](docs/tutorials/catches-a-bad-change.md). See *every* differentiator run in [differentiators in action](docs/tutorials/differentiators-in-action.md).
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## See mokata in action
|
|
65
|
+
|
|
66
|
+
A quick tour of the workflow and skills — brainstorm → spec → test → develop → review → ship, with governance, memory, and the always-on status badge.
|
|
67
|
+
|
|
68
|
+
https://github.com/user-attachments/assets/a6940119-1edb-4017-b935-cd48b80b4ea9
|
|
69
|
+
|
|
70
|
+
> ▶ Video not playing inline? [Watch it here](https://github.com/user-attachments/assets/a6940119-1edb-4017-b935-cd48b80b4ea9).
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
**mokata** is an open-source framework for Claude Code that brings the best ideas in AI-assisted coding into one governed, knowledge-aware engine. At its core is a spec-driven TDD engine that starts by **brainstorming the problem with you** — one question at a time, weighing two or three real approaches grounded in your actual codebase before committing to anything. Only then does it draft a spec, and no code is written until that specification passes a *provable completeness gate*, every acceptance criterion is statically mapped to a test (RED before GREEN), and the finished code is reviewed back against the spec. Around that engine, mokata builds in the layers a single tool usually leaves out — a **persistent codebase knowledge graph** so the agent navigates by structure instead of guessing, **persistent, self-healing memory** (decisions, conventions, and past conversations that survive across sessions and surface their own contradictions instead of silently rotting), and **active token-and-cost governance** that retrieves just what's needed rather than dumping files into context. **Memory and its self-healing ship as part of the framework, on by default — not an add-on you wire up.** It can also orchestrate the external tools you already trust — like code graphs — under one set of gates with a full audit trail, and every durable write, whether to code, memory, or config, is **human-gated**: nothing silent, nothing autonomous. And it's **fully configurable and composable** — switch any layer or tool on or off, pick a profile, or reach for a single capability on its own: generate tests, debug a failure, or review a diff as a standalone command or directly-invoked skill, entering the pipeline wherever you need rather than running the whole thing. mokata is local-first, phones home nothing by default, is Apache-2.0 licensed, and is built so you can review every decision it makes.
|
|
75
|
+
|
|
76
|
+
> **Naming:** **mokata** = the framework · **MoStack** = the brand it ships under.
|
|
77
|
+
|
|
78
|
+
## Why mokata
|
|
79
|
+
|
|
80
|
+
- **Spec-driven, provable completeness.** No code ships until every acceptance criterion maps to a test (RED before GREEN). The completeness gate *blocks* emit — it never silently passes.
|
|
81
|
+
- **Knowledge + memory built in.** A codebase knowledge graph (adopted, with a grep floor) and persistent, self-healing memory (on by default) — the agent navigates by structure and remembers decisions across sessions.
|
|
82
|
+
- **Governed by default.** Every durable write (code, memory, config) is human-gated; sync hooks block only for security (exit 2), async hooks observe; every gate decision and tool call lands in an append-only audit ledger.
|
|
83
|
+
- **Local-first, no telemetry.** Nothing leaves your machine unless you explicitly wire an external service. The `minimal` profile performs zero network egress.
|
|
84
|
+
- **Configurable & composable.** Toggle any layer/tool, pick a profile, run any capability standalone, and enter the pipeline from any phase.
|
|
85
|
+
- **Meets you where you work, ships trustworthy.** Runs under Claude Code, Cursor, Copilot, Windsurf, Codex, Gemini CLI, and Aider (a VS Code extension is planned, not in 0.0.9); sessions travel between machines; teams share one governed backend safely; and releases carry an SBOM + Sigstore provenance — no telemetry, ever.
|
|
86
|
+
|
|
87
|
+
## Install
|
|
88
|
+
|
|
89
|
+
**Start here → [Getting started](docs/getting-started.md).** The canonical, pip-first path.
|
|
90
|
+
|
|
91
|
+
**In Claude Code (recommended)** — one install, then one command wires the full workflow
|
|
92
|
+
(slash commands + Agent Skills + MCP server + status line), on your existing Claude Code
|
|
93
|
+
sign-in — no API key:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
pip install mokata # MCP server works out of the box on Python ≥ 3.10 (SDK is a default dep)
|
|
97
|
+
mokata setup claude # wires commands + skills + MCP + statusline — human-gated
|
|
98
|
+
# restart Claude Code, then:
|
|
99
|
+
mokata mcp status # expect: mokata-mcp: CONNECTED ✓
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
> On **Python 3.9** the MCP server is unavailable (it needs ≥ 3.10) — the CLI and everything
|
|
103
|
+
> else still work.
|
|
104
|
+
|
|
105
|
+
**As a CLI, with any AI tool** — harness-agnostic (Gemini, Codex, scripts, CI). The CLI is the
|
|
106
|
+
engine's mechanics (no LLM of its own); wire it into any shell- or MCP-capable assistant:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
pip install mokata
|
|
110
|
+
mokata init
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
See [Integrate with other AI tools](docs/how-to/integrate-other-ai-tools.md).
|
|
114
|
+
|
|
115
|
+
<!-- mokata:directory-listing:start -->
|
|
116
|
+
> ⏳ **Pending Claude plugin-directory approval.** A one-click Claude Code **plugin** is
|
|
117
|
+
> **planned, not yet available** — mokata isn't registered on any Claude Code marketplace.
|
|
118
|
+
> The supported way to run mokata inside Claude Code today is the pip-first path:
|
|
119
|
+
> `pip install mokata` → `mokata setup claude`
|
|
120
|
+
> (see [Getting started](https://jasgujral.github.io/mokata-oss/getting-started/)).
|
|
121
|
+
> _(This notice auto-flips once the listing is approved — single source:
|
|
122
|
+
> `scripts/directory_listing.py`.)_
|
|
123
|
+
<!-- mokata:directory-listing:end -->
|
|
124
|
+
|
|
125
|
+
> **Contributing (developers).** Only clone if you're working on mokata itself — end users never
|
|
126
|
+
> need to: `git clone https://github.com/JasGujral/mokata-oss.git && cd mokata-oss && pip install -e .`
|
|
127
|
+
> (on Python ≥ 3.10 this also pulls the MCP SDK). See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
128
|
+
|
|
129
|
+
## Quickstart
|
|
130
|
+
|
|
131
|
+
**In Claude Code (primary)** — after `mokata setup claude`, drive the workflow with slash commands:
|
|
132
|
+
|
|
133
|
+
```text
|
|
134
|
+
/mokata:brainstorm # Socratic pre-spec exploration (HARD-GATE before any spec)
|
|
135
|
+
/mokata:spec # draft the spec (blocked until every acceptance criterion maps to a test)
|
|
136
|
+
/mokata:test /mokata:develop # RED-before-GREEN
|
|
137
|
+
/mokata:review # spec-compliance, then quality
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
**Or via the CLI** (outside Claude Code):
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
mokata init # scaffold .mokata/ (default profile: standard); human-gated
|
|
144
|
+
mokata brainstorm # Socratic pre-spec exploration (HARD-GATE before spec)
|
|
145
|
+
mokata playbook # drive the full story end-to-end through the pipeline
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
> A `pip` CLI install is **terminal-only** — it runs the deterministic engine with no LLM
|
|
149
|
+
> attached. It does **not** put mokata inside Claude Code; for that, install the plugin or run
|
|
150
|
+
> `mokata setup claude`. ([Why two ways](https://jasgujral.github.io/mokata-oss/concepts/execution-model/).)
|
|
151
|
+
|
|
152
|
+
Full walkthrough: [`docs/quickstart.md`](docs/quickstart.md) · full hands-on guide → [the Complete Guide](https://jasgujral.github.io/mokata-oss/tutorials/mokata-complete-guide/) (with a downloadable PDF) · published docs: <https://jasgujral.github.io/mokata-oss/>
|
|
153
|
+
|
|
154
|
+
## Core concepts
|
|
155
|
+
|
|
156
|
+
- **7-phase pipeline + gates** — brainstorm → analysis → strawman → pre-mortem → probes → completeness gate → emit; enter at any phase, each phase's gates still apply.
|
|
157
|
+
- **Knowledge layer** — structural queries (callers/callees/imports/blast-radius) via an adopted graph, grep floor when absent; staleness is surfaced, never served silently.
|
|
158
|
+
- **Memory** — persistent / decision / episodic, on by default, self-healing by *surfacing* old→new diffs for your approval (never a silent rewrite).
|
|
159
|
+
- **Execution modes** — sequential gated flow (default, lowest-cost) or parallel subagents (fresh-context isolation + two-stage review, concurrent fan-out), chosen per run, degrade-safe; optional git-worktree isolation keeps concurrent/paused work off the main tree.
|
|
160
|
+
- **Governance & audit** — 4-tier rules, Karpathy gates, 4-layer secret protection, per-task model routing, reversible writes, full audit ledger. See the governed state at a glance with `mokata govern` (a read-only dashboard) and the *what-it-did-and-why* timeline with `mokata audit --why`.
|
|
161
|
+
- **Session lifecycle & portable sessions** — list runs (`mokata sessions`), resume from the last passed gate (`mokata resume`), pause/resume a mid-brainstorm (the HARD-GATE still holds), and **carry a session across machines or hand it to a teammate**: `mokata session push <tag>` / `pull <tag>` packages checkpoints + approach + in-progress brainstorm + relevant memory into a machine-path-free, versioned, **secret-scanned + human-gated** bundle. Sessions carry a human-friendly name you can `rename`.
|
|
162
|
+
- **Progress & visibility, one model** — one `RunProgress` drives every surface: an always-on **stage badge** (statusline, on by default, merge-safe), the native **to-do widget** where the harness has one, the printed run-progress block, and the per-subagent **lanes** in `mokata watch` / `progress --lanes`. No duplicated progress logic — channel-specific renderers over one source of truth.
|
|
163
|
+
- **Runs under every agent, shows up in your editor** — the engine runs behind a thin boundary (`mokata harness` shows the capability matrix) with in-harness surfaces for **Claude Code, Cursor, GitHub Copilot, Windsurf, Codex, Gemini CLI, and Aider**, each degrading clearly where it lacks a capability. A **VS Code extension** (`editors/vscode`) with a read-only Copilot Chat `@mokata` participant — governance, memory, and run-progress in your editor — is **planned (not in 0.0.9)**.
|
|
164
|
+
- **Team & sharing** — one guided `mokata team join` chains adopt → shared memory (BYO Postgres) → vault pull → onboard → doctor (each human-gated, secret-scanned, reversible); publish/adopt governed per-framework **community stacks** (`mokata stacks`); and the team's **audit/activity logs** can live shared or local, conflict-free — **no telemetry, nothing phoned home**. One shared backend safely hosts **many projects**: every shared row is scoped by a stable project key, so review defaults to your project (`--all` / `--project` to span or pick).
|
|
165
|
+
- **Supply-chain trust** — releases ship a reproducible sdist+wheel, a **CycloneDX SBOM**, and a **Sigstore build-provenance attestation** generated at tag-time in CI (the repo ships no pre-signed artifacts); all five CI workflows are least-privilege and SHA-pinned.
|
|
166
|
+
|
|
167
|
+
## Profiles & configuration
|
|
168
|
+
|
|
169
|
+
| Profile | Layers | Capabilities | Network |
|
|
170
|
+
|---|---|---|---|
|
|
171
|
+
| `minimal` | engine, governance | none (engine only) | **zero egress** |
|
|
172
|
+
| `standard` **(default)** | + knowledge, memory | code graph (ripgrep→grep) + memory (SQLite) | local-only |
|
|
173
|
+
| `full` | all | every known graph + memory provider (degrade to floors) | only present tools, all gated |
|
|
174
|
+
|
|
175
|
+
Per-layer / per-tool toggles, per-adapter trust dials, and profiles are all in the committed manifest. See [`docs/profiles.md`](docs/profiles.md).
|
|
176
|
+
|
|
177
|
+
## Commands & skills
|
|
178
|
+
|
|
179
|
+
`mokata skills` lists the catalog. Skills (each a `/mokata:*` command): `brainstorm`, `refine`, `onboard`, `spec`, `test`, `develop`, `review`, `debug`, `optimize`, `bug`, `ship`, `version`.
|
|
180
|
+
|
|
181
|
+
The CLI exposes 40+ subcommands, including:
|
|
182
|
+
|
|
183
|
+
- **Pipeline & skills** — `brainstorm`, `spec`, `test`, `develop`, `review`, `ship`, `refine`, `debug`, `bug`, `optimize`, `onboard`, plus `run`/`enter`/`exec`/`playbook` (`--dense`)/`preview`/`chain` and `skill author`.
|
|
184
|
+
- **Inspection (read-only)** — `status`, `query`, `rules`, `audit` (`--why`), `budget`, `coverage`, `lat-check`, `index`, `doctor`, `baseline`, `harness`, `progress` (`--lanes`), `watch`, `govern`, `sessions`.
|
|
185
|
+
- **Memory & knowledge** — `memory` (`edit`/`export`/`import`/`migrate`/`consolidate`), `govern`.
|
|
186
|
+
- **Session lifecycle & portability** — `sessions`, `resume`, `enter`, `session` (`push`/`pull`/`list`/`name`).
|
|
187
|
+
- **Team, stacks & sharing** — `team` (`join`/`adopt`/`connect`), `stacks` (`list`/`search`/`show`/`install`), `vault`, `marketplace`.
|
|
188
|
+
- **Setup, config & distribution** — `init`, `setup`/`unsetup`, `reconfigure`, `tour`, `config`, `bootstrap`, `validate`, `route`, `detect`, `reset`, `suggest`, `mcp`, `ci-check`, `export`/`import`, `version`/`upgrade`, `release-check`.
|
|
189
|
+
|
|
190
|
+
Full list with flags: the [CLI reference](https://jasgujral.github.io/mokata-oss/reference/cli/).
|
|
191
|
+
|
|
192
|
+
## Contributing · Security · License
|
|
193
|
+
|
|
194
|
+
- [`CONTRIBUTING.md`](CONTRIBUTING.md) — dev setup, the clean-room rule, tests in both jsonschema states.
|
|
195
|
+
- [`SECURITY.md`](SECURITY.md) — how to report a vulnerability (privately).
|
|
196
|
+
- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) — Contributor Covenant.
|
|
197
|
+
- [`LICENSE`](LICENSE) — Apache-2.0, © MoStack. mokata is built clean-room (no dependency on any other framework).
|
|
198
|
+
|
|
199
|
+
## Links
|
|
200
|
+
|
|
201
|
+
- **Documentation: <https://jasgujral.github.io/mokata-oss/>** (the published docs site; source in `docs/`, built with MkDocs)
|
|
202
|
+
- Changelog: [`CHANGELOG.md`](CHANGELOG.md)
|
|
203
|
+
- Issues & discussions: the repository's Issues / Discussions tabs
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# mokata
|
|
2
|
+
|
|
3
|
+
**The memory + seatbelt for your AI coding agent.** Spec-driven TDD for Claude Code —
|
|
4
|
+
knowledge-aware, self-healing memory, human-gated, local-first. It remembers your project and
|
|
5
|
+
stops the agent shipping the wrong thing.
|
|
6
|
+
|
|
7
|
+
[](LICENSE)
|
|
8
|
+
[](https://github.com/JasGujral/mokata-oss/actions/workflows/ci.yml)
|
|
9
|
+
[](https://github.com/JasGujral/mokata-oss/releases/latest)
|
|
10
|
+
[](pyproject.toml)
|
|
11
|
+
[](https://jasgujral.github.io/mokata-oss/)
|
|
12
|
+
[](docs/concepts/governance.md)
|
|
13
|
+
[](https://securityscorecards.dev/viewer/?uri=github.com/JasGujral/mokata-oss)
|
|
14
|
+
|
|
15
|
+
📖 **Full documentation:** **<https://jasgujral.github.io/mokata-oss/>** — quickstart, tutorials, concepts, and the complete CLI + plugin reference.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## See it catch a bad change (30 seconds)
|
|
20
|
+
|
|
21
|
+
An AI agent, mid-task, tries two bad changes — ship code with no spec, and stash a secret.
|
|
22
|
+
mokata stops both, and puts both on the audit ledger. (Real output; run it yourself with
|
|
23
|
+
`mokata init --profile standard --yes` in a scratch repo.)
|
|
24
|
+
|
|
25
|
+
```console
|
|
26
|
+
$ mokata run develop # the agent tries to write code with no spec...
|
|
27
|
+
[BLOCKED] spec-persisted — no saved spec — draft and emit it first (/mokata:spec); the completeness gate must pass before implementation.
|
|
28
|
+
|
|
29
|
+
$ # ...and tries to stash a secret (even with approve=True):
|
|
30
|
+
status: blocked findings: ['aws-access-key', 'high-entropy-token', 'sensitive-location']
|
|
31
|
+
|
|
32
|
+
$ mokata audit # every block is on the ledger
|
|
33
|
+
audit ledger — 2 entries:
|
|
34
|
+
#1 gate gate=spec-persisted phase=develop decision=blocked reason=no saved spec ...
|
|
35
|
+
#2 write_gate write_kind=memory target=memory:aws.key actor=mcp decision=blocked reason=secret detected
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**The full copy-paste demo + a 60-second screencast script:** [mokata catches a bad change](docs/tutorials/catches-a-bad-change.md). See *every* differentiator run in [differentiators in action](docs/tutorials/differentiators-in-action.md).
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## See mokata in action
|
|
43
|
+
|
|
44
|
+
A quick tour of the workflow and skills — brainstorm → spec → test → develop → review → ship, with governance, memory, and the always-on status badge.
|
|
45
|
+
|
|
46
|
+
https://github.com/user-attachments/assets/a6940119-1edb-4017-b935-cd48b80b4ea9
|
|
47
|
+
|
|
48
|
+
> ▶ Video not playing inline? [Watch it here](https://github.com/user-attachments/assets/a6940119-1edb-4017-b935-cd48b80b4ea9).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
**mokata** is an open-source framework for Claude Code that brings the best ideas in AI-assisted coding into one governed, knowledge-aware engine. At its core is a spec-driven TDD engine that starts by **brainstorming the problem with you** — one question at a time, weighing two or three real approaches grounded in your actual codebase before committing to anything. Only then does it draft a spec, and no code is written until that specification passes a *provable completeness gate*, every acceptance criterion is statically mapped to a test (RED before GREEN), and the finished code is reviewed back against the spec. Around that engine, mokata builds in the layers a single tool usually leaves out — a **persistent codebase knowledge graph** so the agent navigates by structure instead of guessing, **persistent, self-healing memory** (decisions, conventions, and past conversations that survive across sessions and surface their own contradictions instead of silently rotting), and **active token-and-cost governance** that retrieves just what's needed rather than dumping files into context. **Memory and its self-healing ship as part of the framework, on by default — not an add-on you wire up.** It can also orchestrate the external tools you already trust — like code graphs — under one set of gates with a full audit trail, and every durable write, whether to code, memory, or config, is **human-gated**: nothing silent, nothing autonomous. And it's **fully configurable and composable** — switch any layer or tool on or off, pick a profile, or reach for a single capability on its own: generate tests, debug a failure, or review a diff as a standalone command or directly-invoked skill, entering the pipeline wherever you need rather than running the whole thing. mokata is local-first, phones home nothing by default, is Apache-2.0 licensed, and is built so you can review every decision it makes.
|
|
53
|
+
|
|
54
|
+
> **Naming:** **mokata** = the framework · **MoStack** = the brand it ships under.
|
|
55
|
+
|
|
56
|
+
## Why mokata
|
|
57
|
+
|
|
58
|
+
- **Spec-driven, provable completeness.** No code ships until every acceptance criterion maps to a test (RED before GREEN). The completeness gate *blocks* emit — it never silently passes.
|
|
59
|
+
- **Knowledge + memory built in.** A codebase knowledge graph (adopted, with a grep floor) and persistent, self-healing memory (on by default) — the agent navigates by structure and remembers decisions across sessions.
|
|
60
|
+
- **Governed by default.** Every durable write (code, memory, config) is human-gated; sync hooks block only for security (exit 2), async hooks observe; every gate decision and tool call lands in an append-only audit ledger.
|
|
61
|
+
- **Local-first, no telemetry.** Nothing leaves your machine unless you explicitly wire an external service. The `minimal` profile performs zero network egress.
|
|
62
|
+
- **Configurable & composable.** Toggle any layer/tool, pick a profile, run any capability standalone, and enter the pipeline from any phase.
|
|
63
|
+
- **Meets you where you work, ships trustworthy.** Runs under Claude Code, Cursor, Copilot, Windsurf, Codex, Gemini CLI, and Aider (a VS Code extension is planned, not in 0.0.9); sessions travel between machines; teams share one governed backend safely; and releases carry an SBOM + Sigstore provenance — no telemetry, ever.
|
|
64
|
+
|
|
65
|
+
## Install
|
|
66
|
+
|
|
67
|
+
**Start here → [Getting started](docs/getting-started.md).** The canonical, pip-first path.
|
|
68
|
+
|
|
69
|
+
**In Claude Code (recommended)** — one install, then one command wires the full workflow
|
|
70
|
+
(slash commands + Agent Skills + MCP server + status line), on your existing Claude Code
|
|
71
|
+
sign-in — no API key:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install mokata # MCP server works out of the box on Python ≥ 3.10 (SDK is a default dep)
|
|
75
|
+
mokata setup claude # wires commands + skills + MCP + statusline — human-gated
|
|
76
|
+
# restart Claude Code, then:
|
|
77
|
+
mokata mcp status # expect: mokata-mcp: CONNECTED ✓
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
> On **Python 3.9** the MCP server is unavailable (it needs ≥ 3.10) — the CLI and everything
|
|
81
|
+
> else still work.
|
|
82
|
+
|
|
83
|
+
**As a CLI, with any AI tool** — harness-agnostic (Gemini, Codex, scripts, CI). The CLI is the
|
|
84
|
+
engine's mechanics (no LLM of its own); wire it into any shell- or MCP-capable assistant:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
pip install mokata
|
|
88
|
+
mokata init
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
See [Integrate with other AI tools](docs/how-to/integrate-other-ai-tools.md).
|
|
92
|
+
|
|
93
|
+
<!-- mokata:directory-listing:start -->
|
|
94
|
+
> ⏳ **Pending Claude plugin-directory approval.** A one-click Claude Code **plugin** is
|
|
95
|
+
> **planned, not yet available** — mokata isn't registered on any Claude Code marketplace.
|
|
96
|
+
> The supported way to run mokata inside Claude Code today is the pip-first path:
|
|
97
|
+
> `pip install mokata` → `mokata setup claude`
|
|
98
|
+
> (see [Getting started](https://jasgujral.github.io/mokata-oss/getting-started/)).
|
|
99
|
+
> _(This notice auto-flips once the listing is approved — single source:
|
|
100
|
+
> `scripts/directory_listing.py`.)_
|
|
101
|
+
<!-- mokata:directory-listing:end -->
|
|
102
|
+
|
|
103
|
+
> **Contributing (developers).** Only clone if you're working on mokata itself — end users never
|
|
104
|
+
> need to: `git clone https://github.com/JasGujral/mokata-oss.git && cd mokata-oss && pip install -e .`
|
|
105
|
+
> (on Python ≥ 3.10 this also pulls the MCP SDK). See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
106
|
+
|
|
107
|
+
## Quickstart
|
|
108
|
+
|
|
109
|
+
**In Claude Code (primary)** — after `mokata setup claude`, drive the workflow with slash commands:
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
/mokata:brainstorm # Socratic pre-spec exploration (HARD-GATE before any spec)
|
|
113
|
+
/mokata:spec # draft the spec (blocked until every acceptance criterion maps to a test)
|
|
114
|
+
/mokata:test /mokata:develop # RED-before-GREEN
|
|
115
|
+
/mokata:review # spec-compliance, then quality
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Or via the CLI** (outside Claude Code):
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
mokata init # scaffold .mokata/ (default profile: standard); human-gated
|
|
122
|
+
mokata brainstorm # Socratic pre-spec exploration (HARD-GATE before spec)
|
|
123
|
+
mokata playbook # drive the full story end-to-end through the pipeline
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
> A `pip` CLI install is **terminal-only** — it runs the deterministic engine with no LLM
|
|
127
|
+
> attached. It does **not** put mokata inside Claude Code; for that, install the plugin or run
|
|
128
|
+
> `mokata setup claude`. ([Why two ways](https://jasgujral.github.io/mokata-oss/concepts/execution-model/).)
|
|
129
|
+
|
|
130
|
+
Full walkthrough: [`docs/quickstart.md`](docs/quickstart.md) · full hands-on guide → [the Complete Guide](https://jasgujral.github.io/mokata-oss/tutorials/mokata-complete-guide/) (with a downloadable PDF) · published docs: <https://jasgujral.github.io/mokata-oss/>
|
|
131
|
+
|
|
132
|
+
## Core concepts
|
|
133
|
+
|
|
134
|
+
- **7-phase pipeline + gates** — brainstorm → analysis → strawman → pre-mortem → probes → completeness gate → emit; enter at any phase, each phase's gates still apply.
|
|
135
|
+
- **Knowledge layer** — structural queries (callers/callees/imports/blast-radius) via an adopted graph, grep floor when absent; staleness is surfaced, never served silently.
|
|
136
|
+
- **Memory** — persistent / decision / episodic, on by default, self-healing by *surfacing* old→new diffs for your approval (never a silent rewrite).
|
|
137
|
+
- **Execution modes** — sequential gated flow (default, lowest-cost) or parallel subagents (fresh-context isolation + two-stage review, concurrent fan-out), chosen per run, degrade-safe; optional git-worktree isolation keeps concurrent/paused work off the main tree.
|
|
138
|
+
- **Governance & audit** — 4-tier rules, Karpathy gates, 4-layer secret protection, per-task model routing, reversible writes, full audit ledger. See the governed state at a glance with `mokata govern` (a read-only dashboard) and the *what-it-did-and-why* timeline with `mokata audit --why`.
|
|
139
|
+
- **Session lifecycle & portable sessions** — list runs (`mokata sessions`), resume from the last passed gate (`mokata resume`), pause/resume a mid-brainstorm (the HARD-GATE still holds), and **carry a session across machines or hand it to a teammate**: `mokata session push <tag>` / `pull <tag>` packages checkpoints + approach + in-progress brainstorm + relevant memory into a machine-path-free, versioned, **secret-scanned + human-gated** bundle. Sessions carry a human-friendly name you can `rename`.
|
|
140
|
+
- **Progress & visibility, one model** — one `RunProgress` drives every surface: an always-on **stage badge** (statusline, on by default, merge-safe), the native **to-do widget** where the harness has one, the printed run-progress block, and the per-subagent **lanes** in `mokata watch` / `progress --lanes`. No duplicated progress logic — channel-specific renderers over one source of truth.
|
|
141
|
+
- **Runs under every agent, shows up in your editor** — the engine runs behind a thin boundary (`mokata harness` shows the capability matrix) with in-harness surfaces for **Claude Code, Cursor, GitHub Copilot, Windsurf, Codex, Gemini CLI, and Aider**, each degrading clearly where it lacks a capability. A **VS Code extension** (`editors/vscode`) with a read-only Copilot Chat `@mokata` participant — governance, memory, and run-progress in your editor — is **planned (not in 0.0.9)**.
|
|
142
|
+
- **Team & sharing** — one guided `mokata team join` chains adopt → shared memory (BYO Postgres) → vault pull → onboard → doctor (each human-gated, secret-scanned, reversible); publish/adopt governed per-framework **community stacks** (`mokata stacks`); and the team's **audit/activity logs** can live shared or local, conflict-free — **no telemetry, nothing phoned home**. One shared backend safely hosts **many projects**: every shared row is scoped by a stable project key, so review defaults to your project (`--all` / `--project` to span or pick).
|
|
143
|
+
- **Supply-chain trust** — releases ship a reproducible sdist+wheel, a **CycloneDX SBOM**, and a **Sigstore build-provenance attestation** generated at tag-time in CI (the repo ships no pre-signed artifacts); all five CI workflows are least-privilege and SHA-pinned.
|
|
144
|
+
|
|
145
|
+
## Profiles & configuration
|
|
146
|
+
|
|
147
|
+
| Profile | Layers | Capabilities | Network |
|
|
148
|
+
|---|---|---|---|
|
|
149
|
+
| `minimal` | engine, governance | none (engine only) | **zero egress** |
|
|
150
|
+
| `standard` **(default)** | + knowledge, memory | code graph (ripgrep→grep) + memory (SQLite) | local-only |
|
|
151
|
+
| `full` | all | every known graph + memory provider (degrade to floors) | only present tools, all gated |
|
|
152
|
+
|
|
153
|
+
Per-layer / per-tool toggles, per-adapter trust dials, and profiles are all in the committed manifest. See [`docs/profiles.md`](docs/profiles.md).
|
|
154
|
+
|
|
155
|
+
## Commands & skills
|
|
156
|
+
|
|
157
|
+
`mokata skills` lists the catalog. Skills (each a `/mokata:*` command): `brainstorm`, `refine`, `onboard`, `spec`, `test`, `develop`, `review`, `debug`, `optimize`, `bug`, `ship`, `version`.
|
|
158
|
+
|
|
159
|
+
The CLI exposes 40+ subcommands, including:
|
|
160
|
+
|
|
161
|
+
- **Pipeline & skills** — `brainstorm`, `spec`, `test`, `develop`, `review`, `ship`, `refine`, `debug`, `bug`, `optimize`, `onboard`, plus `run`/`enter`/`exec`/`playbook` (`--dense`)/`preview`/`chain` and `skill author`.
|
|
162
|
+
- **Inspection (read-only)** — `status`, `query`, `rules`, `audit` (`--why`), `budget`, `coverage`, `lat-check`, `index`, `doctor`, `baseline`, `harness`, `progress` (`--lanes`), `watch`, `govern`, `sessions`.
|
|
163
|
+
- **Memory & knowledge** — `memory` (`edit`/`export`/`import`/`migrate`/`consolidate`), `govern`.
|
|
164
|
+
- **Session lifecycle & portability** — `sessions`, `resume`, `enter`, `session` (`push`/`pull`/`list`/`name`).
|
|
165
|
+
- **Team, stacks & sharing** — `team` (`join`/`adopt`/`connect`), `stacks` (`list`/`search`/`show`/`install`), `vault`, `marketplace`.
|
|
166
|
+
- **Setup, config & distribution** — `init`, `setup`/`unsetup`, `reconfigure`, `tour`, `config`, `bootstrap`, `validate`, `route`, `detect`, `reset`, `suggest`, `mcp`, `ci-check`, `export`/`import`, `version`/`upgrade`, `release-check`.
|
|
167
|
+
|
|
168
|
+
Full list with flags: the [CLI reference](https://jasgujral.github.io/mokata-oss/reference/cli/).
|
|
169
|
+
|
|
170
|
+
## Contributing · Security · License
|
|
171
|
+
|
|
172
|
+
- [`CONTRIBUTING.md`](CONTRIBUTING.md) — dev setup, the clean-room rule, tests in both jsonschema states.
|
|
173
|
+
- [`SECURITY.md`](SECURITY.md) — how to report a vulnerability (privately).
|
|
174
|
+
- [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) — Contributor Covenant.
|
|
175
|
+
- [`LICENSE`](LICENSE) — Apache-2.0, © MoStack. mokata is built clean-room (no dependency on any other framework).
|
|
176
|
+
|
|
177
|
+
## Links
|
|
178
|
+
|
|
179
|
+
- **Documentation: <https://jasgujral.github.io/mokata-oss/>** (the published docs site; source in `docs/`, built with MkDocs)
|
|
180
|
+
- Changelog: [`CHANGELOG.md`](CHANGELOG.md)
|
|
181
|
+
- Issues & discussions: the repository's Issues / Discussions tabs
|