Registry / ai-ml / reasonix

reasonix

JSON →
library0.53.2jsnpmunverified

A DeepSeek-native coding agent that emphasizes a cache-first loop for cost reduction and a flash-first cost control strategy. Version 0.53.2, active release cadence, ships TypeScript types, requires Node >= 22. Provides CLI/TUI for agentic coding with tool-call repair and prompt caching vs standard LLM APIs.

npm install reasonix
INSTALL
IMPORT
SIG · REASONIX
R
reasonix
ai-mljavascriptv0.53.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Reasonix
import { Reasonix } from 'reasonix'
const Reasonix = require('reasonix')
ESM-only; no CJS support.
runAgent
import { runAgent } from 'reasonix'
Named export for the main agent function.
type AgentConfig
import type { AgentConfig } from 'reasonix'
TypeScript type export.

Creates a Reasonix agent with caching, runs a coding task, and prints the result.

import { Reasonix } from 'reasonix'; const agent = new Reasonix({ apiKey: process.env.DEEPSEEK_API_KEY ?? '', model: 'deepseek-chat', cacheConfig: { enable: true, ttl: 3600 } }); async function main() { const result = await agent.run('Write a Python Fibonacci function'); console.log(result); } main();
Debug
Known issues
gotchaRequires Node >= 22
fix
Upgrade Node to >= 22 or use an alternative agent.
affects: >=0.1.0
gotchaESM-only package; no CommonJS require()
fix
Use import syntax and ensure package.json has "type": "module".
affects: >=0.1.0
breakingDeepSeek API key required - no default
fix
Set DEEPSEEK_API_KEY environment variable or pass apiKey in config.
affects: *
deprecatedOlder configuration format for cacheConfig removed in v0.50
fix
Use new CacheConfig object with { enable: boolean, ttl: number }
affects: >=0.50.0
Errors
Common errors & fixes
ERR_MODULE_NOT_FOUND: Cannot find package 'reasonix'
Package not installed
fix
npm install reasonix
Error: DeepSeek API key not configured
Missing API key
fix
Set DEEPSEEK_API_KEY environment variable or pass apiKey in constructor options.
TypeError: agent.run is not a function
Using wrong import (default vs named)
fix
Use import { Reasonix } from 'reasonix' and const agent = new Reasonix(...)
Upgrade
Version history
0.53.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
reasonix — npm install reasonix · libregistry