abapgit-agent
v1.18.2
Published
ABAP Git Agent - Pull and activate ABAP code via abapGit from any git repository
Readme
title: abapGit Agent nav_order: 1 permalink: /
abapGit Agent
A local agent that enables AI coding tools (Claude, Copilot, etc.) to automatically pull and activate ABAP code from git repositories using REST API.
Overview
This project provides a bridge between AI coding tools and your ABAP system:
- Claude generates ABAP code → Push to git
- Local agent pulls from git → Activates in ABAP system
- Returns activation results → Claude fixes errors if any
Quick Start
For Existing Repositories
# 1. Install CLI
npm install -g abapgit-agent
# 2. Clone repo
git clone https://github.com/user/abap-project.git
cd abap-project
# 3. Initialize configuration
abapgit-agent init --package ZMY_PACKAGE
# 4. Edit .abapGitAgent with credentials
# 5. Create online repository in ABAP
abapgit-agent create
# 6. Import objects from ABAP to git
abapgit-agent import
# 7. Pull to activate in ABAP
abapgit-agent pullSee Creating New ABAP Projects to set up a new ABAP repository with Claude Code integration.
CLI Commands
Setup
abapgit-agent init --package ZMY_PACKAGE # Initialize local config
abapgit-agent create # Create online repo in ABAP
abapgit-agent import # Import objects from ABAP to git
abapgit-agent import --branch main # Import to specific branch
abapgit-agent delete # Delete repo from ABAPDevelopment
abapgit-agent pull # Pull and activate
abapgit-agent pull --files src/zcl_my_class.clas.abap # Pull specific files
abapgit-agent syntax --files src/zcl_my_class.clas.abap # Check syntax before commit
abapgit-agent inspect --files src/zcl_my_class.clas.abap # Code Inspector after pull
abapgit-agent unit --files src/zcl_my_test.clas.testclasses.abap # Run AUnit tests
abapgit-agent run --class ZCL_MY_RUNNER # Execute class headlessly
abapgit-agent run --program ZMY_PROGRAM # Execute report/program headlesslyExplore
abapgit-agent tree --package '$MY_PACKAGE' # Package hierarchy
abapgit-agent list --package '$MY_PACKAGE' # List objects
abapgit-agent view --objects ZCL_MY_CLASS # View object definition
abapgit-agent preview --objects SFLIGHT # Preview table data
abapgit-agent where --objects ZCL_MY_CLASS # Where-used list
abapgit-agent dump --date TODAY # Query short dumps (ST22)
abapgit-agent debug set --files abap/zcl_my_class.clas.abap:42 # Set breakpointUtility
abapgit-agent guide # Read full ABAP development guide
abapgit-agent ref "CORRESPONDING" # Search ABAP reference
abapgit-agent ref --topic sql # Browse by topic
abapgit-agent transport list # List transport requests
abapgit-agent upgrade # Upgrade CLI and ABAP backend
abapgit-agent status # Check configuration
abapgit-agent health # Verify ABAP connectionLocal Development
# Install dependencies
npm install
# Test a command manually
node bin/abapgit-agent --help
node bin/abapgit-agent syntax --files src/zcl_my_class.clas.abapRunning Tests
# Unit tests — no ABAP system needed (fast)
npm test
# Integration tests — requires a configured .abapGitAgent
npm run test:setup # one-time setup: clone test repos + activate ABAP objects
npm run test:all # full suite (setup runs automatically on first run)
# Run a single suite
npm run test:cmd # CLI command tests
npm run test:drop # drop command tests
npm run test:customize # customize command tests
npm run test:aunit # ABAP unit testsFull integration test guide: docs/integration-tests.md
Documentation
| Topic | File | |-------|------| | Full Documentation | https://sylvoscai.github.io/abapgit-agent/ | | Installation & Setup | docs/install.md | | All Commands Overview | docs/commands.md | | REST API Reference | docs/api.md |
Dependent Projects
This tool depends on and is designed to work with:
- abapGit - The foundation for managing ABAP code in git
License
MIT License

