Professional-grade agentic coding CLI with intelligent context awareness and autonomous development capabilities
npm install agentic-coder-cliProfessional-grade agentic coding CLI with intelligent context awareness and autonomous development capabilities.
- 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
``bash`
npm install -g agentic-coder-cli
Set your OpenAI API key:
`bash`
export OPENAI_API_KEY=your_api_key_here
Or configure via CLI:
`bash`
agentic config --set apiKey=your_api_key_here
`bash`
agentic init
`bash`
agentic code "Create a REST API endpoint for user authentication"
`bash`
agentic analyze
`bash`
agentic fix --type all
`bash`
agentic generate component --name UserProfile --output src/components/
`bash`
agentic watch
`bash`
agentic refactor "Convert callbacks to async/await" --scope "src/*/.js"
- init - Initialize agentic coder in current directorycode
- - Execute a coding task autonomouslyanalyze [path]
- - Analyze project structure and contextfix [files...]
- - Automatically fix issues in specified filesgenerate
- - Generate code components (component|api|test|docs)watch
- - Watch for changes and provide real-time assistancerefactor
- - Refactor code based on patterntest [files...]
- - Generate and run tests for specified filesconfig
- - Configure agentic coder settings
Create .agentic.json in your project root:
`json`
{
"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"
}
}
`javascript
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');
``
MIT