agentic-coder-cli
v3.0.0
Published
Professional-grade agentic coding CLI with intelligent context awareness and autonomous development capabilities
Maintainers
Readme
Agentic Coder CLI
Professional-grade agentic coding CLI with intelligent context awareness and autonomous development capabilities.
Features
- Autonomous Code Generation: Generate complete code components based on natural language descriptions
- Intelligent Context Analysis: Understands your project structure, dependencies, and patterns
- Code Execution & Testing: Execute commands, run tests, and validate implementations
- Smart Refactoring: Apply refactoring patterns across your codebase
- Real-time Assistance: Watch mode for continuous coding assistance
- Multi-language Support: Works with JavaScript, TypeScript, Python, Ruby, Go, Rust, and more
- AI-powered Fixes: Automatically fix linting, type, and test issues
Installation
npm install -g agentic-coder-cliConfiguration
Set your OpenAI API key:
export OPENAI_API_KEY=your_api_key_hereOr configure via CLI:
agentic config --set apiKey=your_api_key_hereUsage
Initialize in your project
agentic initExecute a coding task
agentic code "Create a REST API endpoint for user authentication"Analyze project structure
agentic analyzeFix issues automatically
agentic fix --type allGenerate components
agentic generate component --name UserProfile --output src/components/Watch mode for real-time assistance
agentic watchRefactor code
agentic refactor "Convert callbacks to async/await" --scope "src/**/*.js"Commands
init- Initialize agentic coder in current directorycode <task>- Execute a coding task autonomouslyanalyze [path]- Analyze project structure and contextfix [files...]- Automatically fix issues in specified filesgenerate <type>- Generate code components (component|api|test|docs)watch- Watch for changes and provide real-time assistancerefactor <pattern>- Refactor code based on patterntest [files...]- Generate and run tests for specified filesconfig- Configure agentic coder settings
Configuration File
Create .agentic.json in your project root:
{
"model": "gpt-4",
"temperature": 0.7,
"maxTokens": 4000,
"debug": false,
"autoFix": true,
"watchPatterns": ["**/*.{js,ts,jsx,tsx}"],
"ignorePatterns": ["node_modules/**", ".git/**", "dist/**"],
"customCommands": {
"lint": "npm run lint",
"test": "npm test"
}
}API Usage
import { AgenticCoder } from 'agentic-coder-cli';
const coder = new AgenticCoder({
contextPath: '.',
model: 'gpt-4',
debug: true
});
// Execute a task
await coder.execute('Create a user authentication service');
// Analyze project
const analysis = await coder.analyzeProject(3);
// Fix issues
await coder.fixIssues(['src/index.js'], 'all');License
MIT
