@ngockhoale/ukit3.7.9
Install/update an index-first AI workspace for Claude Code, OpenAI Codex and omp (Oh My Pi).
Built for omp
The author tagged this package oh-my-pi.
Reports 0
No reports yet.
Readme
UKit
UKit installs a project-local AI workspace (.claude/, adapters, docs, and index helpers) so your team can work with Claude Code, OpenAI Codex, and omp (Oh My Pi) from the same repo setup.
Install
Install the UKit CLI globally:
npm install -g @ngockhoale/ukitOpen any project root in the terminal and run:
ukit install
The same ukit install command handles both first-time setup and refreshes. If UKit changes, your templates change, or a teammate needs to re-apply the workspace, rerun ukit install.
After install
For normal team usage, ukit install is the only UKit command anyone should need to remember:
- open your AI tool
- describe the task in natural language
- let the workspace instructions route the flow
Fill in the generated docs baseline (docs/PROJECT.md, docs/MEMORY.md, docs/AI_HANDOFF/, docs/WORKLOG.md), then work in natural language. Do not onboard the team around ukit doctor, ukit diff, ukit uninstall, or ukit index ... — those remain maintainer/debug workflows, not the default human path.
What ukit install creates
Core workspace
.claude/skills/— canonical skills.claude/agents/— specialist agents.claude/hooks/— tool hooksCLAUDE.md— Claude Code instructionsAGENTS.md— shared instructions for AGENTS-compatible tools
Adapters
.codex/settings.json+.codex/settings.local.json— Codex config.codex/skills,.codex/ukit,.codex/agents— links to the shared.claude/skills, runtime and agents.omp/AGENTS.md— thin@../AGENTS.mdimport so omp reads the shared instructions.omp/RULES.md— sticky hard rules for omp sessions.omp/config.yml— omp model roles, tool approval, and bash patterns.omp/agents/— the six shared agents in omp's task-agent format.omp/hooks/pre/ukit-bridge.js— bridges omp events onto the existing.claude/hooks/*.sh
Project support files
.claude/ukit/.ukit/— installer manifests, metadata, backups.ukit/— hidden shared runtime storage for config, cache, and cross-agent memorydocs/— PROJECT / MEMORY / AI_HANDOFF / WORKLOG baselinePROJECT_IMPORTANT.md— your project-owner instruction file (see below)
PROJECT_IMPORTANT.md — project-owner instructions
ukit install seeds a root PROJECT_IMPORTANT.md once. After that the file is yours: UKit never rewrites, merges, formats, or deletes it — edits survive every ukit install rerun byte-for-byte, and uninstall backs it up to a sibling PROJECT_IMPORTANT.md.ukit-backup[.n] file instead of deleting it.
Put your non-negotiable project rules there. On each session start your AI tool receives its contents as advisory project-owner context. Keep the file at or below 6,000 Unicode code points — anything past that is truncated with an explicit warning. Do not put credentials or secrets in it: a fail-closed sensitive-value scan runs before injection and blocks anything that looks like a key or token.
Shared runtime
UKit installs a hidden shared local runtime at .ukit/ for production-oriented state that survives across agent sessions:
.ukit/storage/config.json— runtime defaults for compact/router/memory/validation/subagent hints.ukit/storage/cache/— reusable prompt-cache, compact history, and output summaries.ukit/storage/memory/— cross-agent local memory.ukit/storage/backups/— rollback bytes for risky Safe Patch Protocol edits
When long sessions approach the compact threshold, UKit compacts only safe-zone history/noise while preserving the active task, rules, decisions, and current code focus. If an older repo still has a visible legacy ukit/ runtime folder, rerunning ukit install migrates the shared runtime into hidden .ukit/ when the target paths are free.
Supported tools
| Tool | Instructions | Skills | Config |
|---|---|---|---|
| Claude Code | CLAUDE.md |
.claude/skills/ (canonical) |
.claude/settings.json |
| OpenAI Codex | AGENTS.md |
.claude/skills/ (referenced) |
.codex/settings.json, .codex/settings.local.json, .codex/README.md |
| omp (Oh My Pi) | .omp/AGENTS.md (imports AGENTS.md) |
.claude/skills/ (read via omp's claude provider — no symlink) |
.omp/config.yml, .omp/RULES.md, .omp/README.md |
All supported tools share the same SKILL.md ecosystem so the workspace is authored once and reused everywhere.
UKit Advisor in Codex
When Claude Code stalls, errors, or stops at a gate, open Codex in the same project and type the trigger alone — no copying logs:
ukit:advisor # latest Claude Code session of this project
ukit:advisor session <session-id> # one named session
ukit:advisor project <path> # latest session of another project you name
ukit:advisor <pasted output> # paste mode, as before
$ukit-advisor works the same way. Codex replies with exactly one Vietnamese prompt — no analysis or code fence — that you paste straight back into Claude Code. The advisor is read-only. It reads Claude Code transcripts (~/.claude/projects, or $CLAUDE_CONFIG_DIR) through a bundled read-only reader that matches sessions by project path, skips subagent transcripts and never guesses between concurrent sessions; ukit advisor context [--session <id>|--project <path>] [--json] prints the same digest in a terminal. Reading sessions needs a Codex model that can run shell commands; if no session matches, the command cannot run, or the Codex sandbox cannot read it, you get a short prompt asking Claude Code for its state instead. It treats session data and pastes as untrusted, never lifts an owner STOP, never asks Claude Code to republish a verified npm version, and redacts secrets.
$ukit-advisoris a native Codex skill at~/.agents/skills/ukit-advisor. It runs only when you invoke it explicitly.ukit:advisoris an alias routed by a small UKit-managed block in your global Codex instructions file ($CODEX_HOME/AGENTS.md, orAGENTS.override.mdif you use one;CODEX_HOMEdefaults to~/.codex). It is not a native Codex command.ukit installinstalls and refreshes both automatically when the Codex adapter is selected — no manual copying.ukit updaterefreshes them too, including with--no-installor outside a project, where it only upgrades an advisor UKit already installed. Restart Codex if the skill does not appear (skills are detected at session start). If Codex had never been run, the alias is added on the nextukit installorukit advisor install.ukit advisor statusshows the state;ukit advisor uninstallremoves only UKit-owned files and the managed block. If the block's BEGIN/END marker lines are damaged, orAGENTS.mdis a symlink, UKit leaves the file untouched and says so. SetUKIT_CODEX_ADVISOR=0to stop install/update from managing it. An existingukit-advisorskill that UKit did not create is never overwritten.
Sol review in Claude Code (/ukit:sol-review)
Type /ukit:sol-review <goal> in Claude Code to run that task with a three-model team: the main session (any model the owner picks) orchestrates, the Sonnet feature-implementer implements, and Sol (Codex, alias unic-sol by default) reviews read-only through codex exec --model <alias> --sandbox read-only with a JSON schema. Sol has to agree to the plan (ĐỒNG Ý / PHẢN BIỆN) before source edits, and has to pass the final diff (ĐẠT / CẦN SỬA / CHƯA ĐỦ BẰNG CHỨNG) for the exact current revision before the Stop gate counts the task as complete. /ukit:sol-review with no goal attaches the mode to the live task.
- Only the command typed by you activates it. Quoted text, tool output and subagent output never do. Plain prompts keep UKit's normal flow.
- Before any state is written, a preflight checks the Codex CLI, its login, the reviewer alias, and a gateway probe. The main-session model is never checked, restricted or changed. Each failure gets its own message, and the task stays as it was.
- A reviewer error, timeout, quota or route failure is never approval. Owner STOP cancels the session's review jobs and ignores late results. Sensitive files (
.env, keys) are withheld from the reviewer. ukit installalso installs the official Codex plugin for Claude Code (codex@openai-codexfromopenai/codex-plugin-cc, local scope) when theclaudeCLI is available. Run/reload-pluginsafterwards. An existing plugin install, version, scope or disable is kept. Codex auth, the gateway and the plugin's review gate are never touched.UKIT_CODEX_PLUGIN=offorsolReview.plugin.autoInstall=falseskips the install. UKit holds back the plugin's proactivecodex-rescuesubagent unless your latest prompt is a/codex:command, so default prompts stay on UKit's lane;/codex:*commands keep their native behavior.- Sol is also an always-available advisor (Claude Code, Codex, omp — anywhere the Codex CLI runs). Without activating anything, the agent can ask Sol for an independent cross-check at any stage — unclear intent, a design choice, a stuck debug, a risky change, or before claiming done — with
node .claude/ukit/runtime/sol-review.mjs advise --stage <stage> --question "<q>". Sol reads your own prompts (original and later, verbatim), the project rules, task state, the diff and its earlier findings (secrets withheld), and answerson-trackin one line or a few advice / minor / concern / critical items with evidence and a fix. Resolved findings are not repeated, an unchanged question returns the cached answer, and a failure is never approval. The agent weighs the advice and stays responsible; nothing is gated. - Config:
.ukit/storage/config.json→solReview(enabled,reviewerModel,effort,timeoutMs,maxRounds,advisor). Design:docs/plans/SOL_REVIEW_DESIGN.md.
Technical intelligence (ukit intel)
UKit includes Lean Intelligence: bounded, read-only reconnaissance of built, minified or compiled artifacts (.asar, bundles, Go/Mach-O/ELF/PE binaries, wasm, SQLite, apk/zip). It is pure Node plus optional trusted system tools (otool, nm, readelf, sqlite3 from fixed system directories), so there is nothing to install or download and nothing runs the target. The agent uses it automatically for questions like "how does this app really work"; you can also run ukit intel status, ukit intel recon <target> or ukit intel compare <a> <b>. Opt out with ukit intel disable. Details: docs/TECHNICAL_INTELLIGENCE.md.
Maintainer docs
Maintainer internals live in dedicated docs — linked here, not duplicated:
docs/CONTEXT_BUDGET.md— retuning the context budget (three-number edit)docs/UKIT_CODEV_PRINCIPLES.md— CoDev working principlesdocs/RELEASE_CHECKLIST.md— release steps
Maintainer/debug commands (advanced workflows, not team onboarding):
ukit diff— preview file changes before installukit doctor— validate UKit state and docs baselineukit doctor --prune-registry [--dry-run]— drop user-registry entries whose project root provably no longer exists (unmounted volumes, stat errors and entries with user memory are kept;--dry-runprints counts only)ukit uninstall— remove UKit-managed assetsukit status— inspect shared UKit runtime stateukit memory ...— inspect/export/forget shared memory itemsukit update— upgrade the global UKit CLI to the latest published versionukit index ...— run repo indexing/query/triage tools directlyukit telemetry ...— inspect the opt-in local flight recorder (segments, digests,Documents/UKit Supportexport) — see docs/OBSERVABILITY.mdukit build index— alias forukit index build
Development
For maintainers evolving UKit itself, run the test suite from the repo root:
yarn test
Repo-level index scripts:
yarn index:buildyarn index:refreshyarn index:query -- "<error|symbol|path>"yarn bug:triage -- "<error signature>"