ti-code-core
v0.1.14
Published
Core domain models and tools for the Effect v4 native ti agent
Downloads
107
Readme
ti-code-core
Core domain models, typed tool registry, bundled default tool plugin, and the
provider-neutral Agent service contract for ti-code.
This package is part of the ti-code workspace. It is published separately so
the CLI and future integrations can share the same Effect-native contracts.
Exports
ti-code-core- main package surface, including registry helpers, context-pack schemas/renderers, recursive subagent contracts, and bundledti-core-toolsplugin helpers.ti-code-core/agent- agent service boundary, streamed tool-output event model, run-option schema, and deterministic test layer.ti-code-core/file-tools- built-in tool implementations.ti-code-core/json- JSON helpers and validation utilities.ti-code-core/code-mode- experimental Code Mode harness over the tool registry.ti-code-core/plugins- static plugin manifest, capability, profile, skill, host contracts, and a pure Codex-styleSKILL.mdcompatibility adapter.ti-code-core/types- shared message, session, and tool types.
Code Mode keeps raw tool outputs intact in traces. Use codemode.readJson(args)
or codemode.json.* helpers when a tool returns JSON text that should be parsed
inside the code-mode function.
The live agent loop implementation lives in ti-code-llm/agent-runtime so it
can depend on LanguageModel and provider-specific tool adapters without making
ti-code-core depend on providers.
ToolExecutionContext.reportOutput carries incremental stdout / stderr
chunks from long-running tools without changing their final typed result. The
registry supplies a no-op reporter when a caller does not consume streaming
output.
ContextPack, SubagentRunInput, SubagentRunSnapshot, and
SubagentRuntimeEventSchema are core-owned boundary models for recursive agent
integration. Context packs retain trust labels and provenance when rendered into
child prompts, while runtime implementations remain in downstream packages.
Runtime
The public npm package targets Node.js 20 or newer. Self-contained no-Node
runtime binaries are distributed from GitHub Releases by the ti-code CLI
package.
