English
Keep top-level tools small, call MCP servers from a lightweight Node 24 TypeScript sandbox instead of dumping huge JSON Schemas, and run parallel git-worktree agents right inside your terminal.
npm install -g @irorange27/iki && ikiThe system prompt and the 3 built-in tools (bash/pwsh, job, ptc) stay fixed across turns. When workspace state, skills, or MCP servers change, iKi appends a short note to the latest turn instead of editing earlier history.
Read about context & caching| Area | Typical Setup | iKi |
|---|---|---|
| MCP Context Cost | Full JSON Schema sent on every turn | Compact index + on-demand types (e.g. Zotero 35 tools: 29 KB → ~360 chars) |
| Calling Multiple Tools | One round-trip per call; noisy outputs pile up | Promise.all in the sandbox, filtered locally in 1 turn |
| Prompt Cache Hits | Dynamic timestamps or changing tools bust the cache | Fixed system prompt & tools; changes append forward |
| Parallel Progress | Wait blindly or juggle tmux panes by hand | git worktree isolation + live status bar and log viewer |
Compact signatures for small servers, tool names for large ones—never repeated unless something changes.
Call mcp.describe() when a server is actually needed to get clean TypeScript declarations instead of verbose JSON Schema.
Run TypeScript inside an isolated Node 24 VM to batch calls and return only the cleaned result.
MCP integration and the TypeScript sandbox (PTC) are distinct capabilities that compose cleanly. Connecting a 35-tool server like Zotero MCP (~29 KB raw JSON Schema) adds only a ~360-char summary in Code Mode, with on-demand TypeScript types and batched execution in Node 24—or switch to Direct Mode anytime.
Split larger tasks across parallel workers in isolated git worktrees, using a stronger coordinator and faster workers. A live status strip shows what every worker and background command is doing so you are never waiting in the dark.
Read Swarm & Jobs docsClick any package to see what it owns and what it can depend on—checked automatically with dependency-cruiser and knip.
Core orchestration: session management, turn preparation, MCP Code Mode manager, git-worktree Swarm coordinator, and tool wiring.
Install iKi, connect a model provider, and keep the CLI up to date.
Walkthrough with Zotero MCP (35 tools), mcp.json import, and Code vs. Direct Mode.
Independent Node 24 sandbox for orchestrating built-in tools and MCP servers.
Worktree isolation, live progress views, and long-running background shell jobs.