cortex-code-agent-sdk
v1.0.2
Published
SDK for interacting with Cortex Code CLI programmatically
Downloads
753
Readme
cortex-code-agent-sdk
The Cortex Code Agent SDK lets you build agentic AI applications using Python and TypeScript. Your agents can read files, run commands, search codebases, execute SQL, and edit code, using the same tools and agent loop that power Cortex Code.
See the Cortex Code Agent SDK documentation for installation, usage, and reference.
Quickstart
import { createSession } from "cortex-code-agent-sdk";
const session = await createSession({ model: "claude-sonnet-4-6" });
await session.send("List the files in this repo");
for await (const event of session.stream()) {
console.log(event);
}
await session.close();