Home / Glossary / Headless AI Agent
Headless AI Agent
Headless AI agent एक coding agent है जो human-facing interface या real-time interaction के बिना चलता है। यह background processes, CI/CD pipelines या scheduled jobs में tasks autonomously execute करता है — किसी भी step पर human input का wait किए बिना code पढ़ना, बदलाव करना, tests चलाना और results report करना।
Headless AI agents कैसे काम करते हैं
Headless mode में, AI agent एक command-line flag या API call के माध्यम से task receive करता है, इसे fully autonomously execute करता है और result return करता है। कोई interactive prompt नहीं, कोई approval dialogs नहीं और execution के दौरान कोई human नहीं। एजेंट pre-configured permissions के साथ काम करता है और CLAUDE.md जैसी configuration files से निर्देशों का पालन करता है।
Headless agents के सामान्य use cases
- +CI/CD में हर pull request पर automated code review
- +Merge से पहले linter errors और formatting issues auto-fixing
- +Commit history से release notes generate करना
- +Repository events पर templates से boilerplate code create करना
- +Repositories में nightly code quality audits चलाना
- +Documentation या i18n strings automatically translate करना
# Claude Code headless mode in a GitHub Action
- name: AI Code Review
run: |
claude -p "Review the changes in this PR.
Flag security issues, missing tests, and
style violations. Output as GitHub-flavored
markdown." --output-format json
# Or as a standalone command
claude -p "Fix all TypeScript errors in src/" \
--allowedTools "Edit,Read,Bash(npm run typecheck)"Headless agents को careful permission configuration की आवश्यकता है। चूंकि runtime पर कोई human actions approve नहीं करता, आपको पहले से exactly define करना होगा कि एजेंट क्या कर सकता और नहीं कर सकता। हमेशा file access और command execution को minimum necessary तक restrict करें।
Headless mode normal Claude Code से कैसे अलग है?+
क्या headless AI CI/CD के लिए safe है?+
क्या headless agents git commits बना सकते हैं?+
Related terms
Master Claude Code in days, not months
37 hands-on lessons from beginner to CI/CD automation. Module 1 is free.
START FREE →