Advanced code generation and shell scripting toolkit for AI agents, complementing basic-open-agent-tools with development-focused capabilities.
Project description
Coding Open Agent Tools
Advanced code generation and shell scripting toolkit for AI agents
This project provides specialized code generation, script creation, and development automation capabilities designed specifically for AI agents. It complements basic-open-agent-tools by building higher-level coding abstractions on top of its foundational utilities.
Project Status
✅ v0.1.0-beta Released - First beta with 39 migrated developer-focused tools from basic-open-agent-tools.
What's Available Now:
- ✅ Analysis Module (14 functions) - AST parsing, complexity analysis, imports, secrets
- ✅ Git Module (9 functions) - Read-only git operations
- ✅ Profiling Module (8 functions) - Performance and memory profiling
- ✅ Quality Module (7 functions) - Static analysis parsers
Coming Next:
- 🚧 Shell script generation module (planned for v0.2.0)
- 🚧 Python code generation module (planned for v0.3.0)
See docs/PRD for detailed requirements and specifications.
Relationship to Basic Open Agent Tools
Division of Responsibilities
basic-open-agent-tools (Foundation Layer):
- Core file system operations
- Text and data processing
- Document format handling (PDF, Word, Excel, PowerPoint, etc.)
- System utilities and network operations
- General-purpose, low-level operations
- 200+ foundational agent tools
coding-open-agent-tools (Development Layer):
- Code generation and scaffolding
- Shell script creation and validation
- Project structure generation
- Development workflow automation
- Language-specific tooling
- Security analysis for generated code
Dependency Model
coding-open-agent-tools (this project)
└─> basic-open-agent-tools (dependency)
└─> Python stdlib (minimal external dependencies)
This project will depend on basic-open-agent-tools for file operations, text processing, and other foundational capabilities, while providing specialized code generation features.
Planned Modules (v0.1.0)
1. Shell Script Generation Module (~15 functions)
Generate, validate, and analyze shell scripts for deployment, CI/CD, and system administration:
- Generation: Bash scripts, systemd services, cron jobs, Docker entrypoints, CI pipelines
- Validation: Syntax checking, dependency analysis, security scanning
- Utilities: Argument escaping, permission handling, documentation generation
Example:
import coding_open_agent_tools as coat
script = coat.generate_bash_script(
commands=["cd /app", "git pull", "npm install", "npm run build"],
variables={"NODE_ENV": "production"},
add_error_handling=True,
add_logging=True,
set_flags=["u", "o pipefail"]
)
# Validate before using
validation = coat.validate_shell_syntax(script, "bash")
security = coat.analyze_shell_security(script)
2. Python Code Generation Module (~18 functions)
Generate high-quality Python code with type hints, docstrings, and tests:
- Functions: Sync/async functions, lambdas with full type annotations
- Classes: Regular classes, dataclasses, Pydantic models, exceptions
- Documentation: Google/NumPy/Sphinx docstrings, module headers
- Tests: Pytest skeletons, fixtures, test classes
- Projects: Complete project scaffolding, pyproject.toml, README, .gitignore
Example:
import coding_open_agent_tools as coat
func = coat.generate_python_function(
name="process_data",
parameters=[
{"name": "data", "type": "list[dict[str, str]]", "description": "Input data"},
{"name": "operation", "type": "str", "description": "Operation type"}
],
return_type="dict[str, str]",
description="Process data with specified operation",
docstring_style="google",
add_type_checking=True,
add_error_handling=True,
raises=[
{"type": "TypeError", "description": "If parameters are wrong type"},
{"type": "ValueError", "description": "If operation is not supported"}
]
)
Design Philosophy
Same Principles as Basic Tools
- Minimal Dependencies: Prefer stdlib, add dependencies only when substantial value added
- Google ADK Compliance: All functions use JSON-serializable types, no default parameters
- Local Operations: No HTTP/API calls, focus on local development tasks
- Type Safety: Full mypy compliance with comprehensive type hints
- High Quality: 100% ruff compliance, comprehensive testing (80%+ coverage)
- Agent-First Design: Functions designed for LLM comprehension and use
Additional Focus Areas
- Code Quality: Generate code that follows best practices (PEP 8, type hints)
- Security: Built-in security analysis and validation for generated scripts
- Template-Driven: Extensive template library for common patterns
- Validation: Syntax checking and error detection before execution
- Self-Documenting: All generated code includes comprehensive documentation
Target Use Cases
For AI Agents
- Project Scaffolding: Create new projects with proper structure
- Boilerplate Reduction: Generate repetitive code structures
- Script Automation: Create deployment and maintenance scripts
- Test Generation: Scaffold comprehensive test coverage
- Documentation: Generate consistent docstrings and README files
For Developers
- Agent Development: Build agents that generate code
- Automation Engineering: Create development workflow automation
- DevOps: Generate deployment scripts and service configurations
- Framework Building: Integrate code generation into frameworks
Integration Example
import coding_open_agent_tools as coat
from basic_open_agent_tools import file_system
# Generate code using coding tools
code = coat.generate_python_function(...)
# Validate the generated code
validation = coat.validate_python_syntax(code)
if validation['is_valid'] == 'true':
# Write to file using basic tools
file_system.write_file_from_string(
file_path="/path/to/output.py",
content=code,
skip_confirm=False
)
Documentation
- Product Requirements Documents: Detailed specifications
Installation
# Install latest beta from source
git clone https://github.com/Open-Agent-Tools/coding-open-agent-tools.git
cd coding-open-agent-tools
pip install -e ".[dev]"
# Or install specific version (when published to PyPI)
pip install coding-open-agent-tools==0.1.0-beta
# This will automatically install basic-open-agent-tools as a dependency
Quick Start
import coding_open_agent_tools as coat
# Load all 39 functions
all_tools = coat.load_all_tools()
# Or load by category
analysis_tools = coat.load_all_analysis_tools() # 14 functions
git_tools = coat.load_all_git_tools() # 9 functions
profiling_tools = coat.load_all_profiling_tools() # 8 functions
quality_tools = coat.load_all_quality_tools() # 7 functions
# Use with any agent framework
from google.adk.agents import Agent
agent = Agent(
tools=all_tools,
name="CodeAnalyzer",
instruction="Analyze code quality and performance"
)
# Example: Analyze code complexity
from coding_open_agent_tools import analysis
complexity = analysis.calculate_complexity("/path/to/code.py")
print(f"Cyclomatic complexity: {complexity['total_complexity']}")
# Example: Check git status
from coding_open_agent_tools import git
status = git.get_git_status("/path/to/repo")
print(f"Modified files: {len(status['modified'])}")
Development Status
Current Phase: Planning and Requirements Next Steps:
- Initialize repository structure
- Set up development environment
- Implement Shell Script Generation Module (v0.1.0)
- Implement Python Code Generation Module (v0.2.0)
Quality Standards
- Code Quality: 100% ruff compliance (linting + formatting)
- Type Safety: 100% mypy compliance
- Test Coverage: Minimum 80% for all modules
- Google ADK Compliance: All function signatures compatible with agent frameworks
- Security: All generated code scanned for vulnerabilities
Contributing (Future)
Contributions will be welcome once the initial implementation is complete. We will provide:
- Contribution guidelines
- Code of conduct
- Development setup instructions
- Testing requirements
License
MIT License (same as basic-open-agent-tools)
Related Projects
- basic-open-agent-tools - Foundational toolkit for AI agents
- Google ADK - Agent Development Kit
- Strands Agents - Agent framework
Status: 🚧 Planning Phase Version: 0.0.0 (not yet released) Last Updated: 2025-10-14
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coding_open_agent_tools-0.1.1.tar.gz.
File metadata
- Download URL: coding_open_agent_tools-0.1.1.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0c68342ac2e99c9cb6391a6e32d18a819c794524249f9e05fe2905e47ad72e4
|
|
| MD5 |
d7339cb7b704feb27ecb4d78f5730f73
|
|
| BLAKE2b-256 |
2a469ac19c3042a9aef285c4364162a4e29c8b1869e1a54fce57e8c11374096d
|
Provenance
The following attestation bundles were made for coding_open_agent_tools-0.1.1.tar.gz:
Publisher:
publish.yml on Open-Agent-Tools/coding-open-agent-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coding_open_agent_tools-0.1.1.tar.gz -
Subject digest:
b0c68342ac2e99c9cb6391a6e32d18a819c794524249f9e05fe2905e47ad72e4 - Sigstore transparency entry: 606141584
- Sigstore integration time:
-
Permalink:
Open-Agent-Tools/coding-open-agent-tools@eb7bc9758838bfedc7e31822b7ae5e49b84a09df -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Open-Agent-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb7bc9758838bfedc7e31822b7ae5e49b84a09df -
Trigger Event:
release
-
Statement type:
File details
Details for the file coding_open_agent_tools-0.1.1-py3-none-any.whl.
File metadata
- Download URL: coding_open_agent_tools-0.1.1-py3-none-any.whl
- Upload date:
- Size: 43.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9193113f0318e8a6025dba40b9106a36e90b79c1e820f77c36bd197962882361
|
|
| MD5 |
e7c89a36886057c043b08e88b3d10341
|
|
| BLAKE2b-256 |
bf3be02beb0bc6f2878b4a04ec44c9e5d2085cba8b64fc60e719034b0330642b
|
Provenance
The following attestation bundles were made for coding_open_agent_tools-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Open-Agent-Tools/coding-open-agent-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coding_open_agent_tools-0.1.1-py3-none-any.whl -
Subject digest:
9193113f0318e8a6025dba40b9106a36e90b79c1e820f77c36bd197962882361 - Sigstore transparency entry: 606141590
- Sigstore integration time:
-
Permalink:
Open-Agent-Tools/coding-open-agent-tools@eb7bc9758838bfedc7e31822b7ae5e49b84a09df -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Open-Agent-Tools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@eb7bc9758838bfedc7e31822b7ae5e49b84a09df -
Trigger Event:
release
-
Statement type: