SajiCode v1.2.0
SajiCode v1.2.0
This release makes SajiCode faster, safer, and much more capable for real multi-file coding work.
SajiCode is moving closer to the goal: an AI engineering team that can plan, delegate, build, recover from failures, and edit complex projects without losing control or safety.
What’s New
Multi-file writing and editing
Specialist agents can now apply structured multi-file changes in one batch.
New capabilities:
preview_file_batchapply_file_batch- write, replace, append, and prepend operations
- path validation before changes
- automatic snapshots
- rollback if a batch fails
- predictive code checks before risky files are written
- UI progress events for each file in the batch
This makes feature work much faster than writing one file at a time, while keeping changes safer.
Dependency-aware task graph
SajiCode can now plan work as a task graph with dependencies.
Example:
- Backend API can start immediately
- Frontend UI can start immediately
- QA tests wait until backend and frontend are complete
This improves parallel agent coordination and gives the PM a cleaner way to decide what can run now versus what is blocked.
Smarter PM delegation
The PM agent is now planner-only for implementation work.
PM can:
- create context
- create plans
- build task graphs
- delegate to specialist leads
- coordinate progress
PM cannot directly write app code or run implementation commands. This keeps responsibilities clean and makes the system safer.
Error recovery system
Added a deterministic error recovery system that classifies failures and suggests next actions.
It can recognize issues like:
- CommonJS/ESM mismatch
- missing modules
- TypeScript errors
- syntax errors
- permission errors
- timeouts
- invalid tool schemas
- PM implementation guardrail blocks
Recovery suggestions include retrying with a fix, delegating to the right lead, decomposing the task, or escalating.
Predictive code analysis
Agents can now scan code before writing or running it.
The analyzer can catch:
require()inside ES module projects- hardcoded secrets
- unsafe
innerHTML - plaintext password storage
- placeholder code
- empty catch blocks
- risky dynamic execution
- common runtime/security mistakes
This helps catch problems before they become failed builds or broken apps.
Intelligent caching
Added a cache layer for expensive project scans.
Currently cached:
- repo map scans
- project context collection
The cache invalidates when project files change, reducing repeated scan time while keeping context fresh.
Cleaner multi-agent terminal UI
The terminal output is now easier to follow.
Improvements:
- clearer PM and agent lanes
- cleaner task graph progress
- compact executable task views
- better multi-file batch progress
- less duplicated tool output
- easier visibility into what each agent is doing
Safety Improvements
This release adds stronger guardrails around file edits and agent responsibilities.
Multi-file edits now:
- stay inside the project root
- block protected paths like
.git,node_modules,dist, and real.envfiles - snapshot files before modification
- roll back the whole batch on failure
- block high-risk predictive findings unless explicitly acknowledged
PM guardrails now prevent the PM agent from writing implementation files directly.
Why This Release Matters
This is a major foundation upgrade.
SajiCode can now handle larger coding tasks with:
- better planning
- faster parallel execution
- safer multi-file edits
- clearer agent coordination
- proactive issue detection
- recovery guidance when things fail
It is a big step toward making SajiCode feel like a real AI engineering team instead of a single coding assistant.
Upgrade
npm install -g sajicode@latestOr run directly:
npx sajicode