
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
saptiva-code
Advanced tools
AI-powered command-line workflow tool for developers
Installation • Quick Start • Features • Documentation • Contributing
Saptiva Code is a powerful command-line AI workflow tool adapted from Gemini CLI (details), It enhances your development workflow with advanced code understanding, automated tasks, and intelligent assistance.
Ensure you have Node.js version 20 or higher installed.
curl -qL https://www.npmjs.com/install.sh | sh
npm install -g saptiva-code
saptiva --version
# Start Saptiva Code
saptiva
# Example commands
> Explain this codebase structure
> Help me refactor this function
> Generate unit tests for this module
Control your token usage with configurable session limits to optimize costs and performance.
Create or edit .saptiva/settings.json
in your home directory:
{
"sessionTokenLimit": 32000
}
/compress
- Compress conversation history to continue within token limits/clear
- Clear all conversation history and start fresh/stats
- Check current token usage and limits📝 Note: Session token limit applies to a single conversation, not cumulative API calls.
Choose your preferred authentication method based on your needs:
Use API keys for Saptiva Code:
Configuration Methods:
Environment Variables
export SAPTIVA_API_KEY="your_api_key_here"
export SAPTIVA_BASE_URL="your_api_endpoint"
export SAPTIVA_MODEL="your_model_choice"
Project .env
File
Create a .env
file in your project root:
SAPTIVA_API_KEY=your_api_key_here
SAPTIVA_BASE_URL=your_api_endpoint
SAPTIVA_MODEL=your_model_choice
cd your-project/
saptiva
# Architecture analysis
> Describe the main pieces of this system's architecture
> What are the key dependencies and how do they interact?
> Find all API endpoints and their authentication methods
# Refactoring
> Refactor this function to improve readability and performance
> Convert this class to use dependency injection
> Split this large module into smaller, focused components
# Code generation
> Create a REST API endpoint for user management
> Generate unit tests for the authentication module
> Add error handling to all database operations
# Git automation
> Analyze git commits from the last 7 days, grouped by feature
> Create a changelog from recent commits
> Find all TODO comments and create GitHub issues
# File operations
> Convert all images in this directory to PNG format
> Rename all test files to follow the *.test.ts pattern
> Find and remove all console.log statements
# Performance analysis
> Identify performance bottlenecks in this React component
> Find all N+1 query problems in the codebase
# Security audit
> Check for potential SQL injection vulnerabilities
> Find all hardcoded credentials or API keys
> What are the core business logic components?
> What security mechanisms are in place?
> How does the data flow through the system?
> What are the main design patterns used?
> Generate a dependency graph for this module
> What parts of this module can be optimized?
> Help me refactor this class to follow SOLID principles
> Add proper error handling and logging
> Convert callbacks to async/await pattern
> Implement caching for expensive operations
> Generate comprehensive JSDoc comments for all public APIs
> Write unit tests with edge cases for this component
> Create API documentation in OpenAPI format
> Add inline comments explaining complex algorithms
> Generate a README for this module
> Set up a new Express server with authentication
> Create a React component with TypeScript and tests
> Implement a rate limiter middleware
> Add database migrations for new schema
> Configure CI/CD pipeline for this project
/help
- Display available commands/clear
- Clear conversation history/compress
- Compress history to save tokens/stats
- Show current session information/exit
or /quit
- Exit Saptiva CodeCtrl+C
- Cancel current operationCtrl+D
- Exit (on empty line)Up/Down
- Navigate command historySee CONTRIBUTING.md to learn how to contribute to the project.
For detailed authentication setup, see the authentication guide.
If you encounter issues, check the troubleshooting guide.
This project is based on Google Gemini CLI. We acknowledge and appreciate the excellent work of the Gemini CLI team. Our main contribution focuses on parser-level adaptations to better support Saptiva Code models.
FAQs
Unknown package
The npm package saptiva-code receives a total of 8 weekly downloads. As such, saptiva-code popularity was classified as not popular.
We found that saptiva-code demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.