AI Coding Agent β AI skill for Claude Code
A toy AI coding agent πΎ (like Claude Code/Cursor) built with Python and OpenRouter β explores codebases, reads/writes files, and runs code autonomously to complete tasks.
How to install AI Coding Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ElnaraKanybek/ai-coding-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Coding Agent does
A toy AI coding agent πΎ (like Claude Code/Cursor) built with Python and OpenRouter β explores codebases, reads/writes files, and runs code autonomously to complete tasks.
Alternatives in AI
- AIHawk β Open-source AI browser agent: describe any task in plain language and it autonomously browses, clicks, types a 30.3k β
- Late CLI β High-performance AI agent for long-horizon tasks and local models 442 β
- Qiaomu Markdown Proxy β Fetch any URL as clean Markdown via proxy services (r.jina.ai / defuddle.md) or built-in scripts 426 β
README
AI Coding Agent πΎ
A toy version of tools like Claude Code, Cursor, and OpenCode β a command-line AI agent that can explore a codebase, read and write files, and execute Python code to complete tasks, powered by free models via [OpenRouter](https://openrouter.ai/).
How it works
The agent uses an LLM as a decision-making engine in an iterative loop:
- The user gives a natural-language prompt (e.g. "Fix the bug: 3 + 7 * 2 shouldn't be 20").
- The LLM decides which function(s) it needs to call to accomplish the task.
- The agent executes those functions and returns the results to the LLM.
- The LLM either requests more function calls or produces a final response.
- This repeats (up to 20 iterations) until the LLM has a complete answer.
Available agent tools
get_files_infoβ list files and directories with size/type infoget_file_contentβ read file contents (truncated at 10,000 characters)write_fileβ write or overwrite file contentsrun_python_fileβ execute a Python file with optional arguments (30-second timeout)
All file operations are scoped to a fixed working directory (`./calculator`) for safety β the agent cannot read or write files outside of it.
Setup
- Clone this repo and install dependencies:
uv sync
Get a free API key from [OpenRouter](https://openrouter.ai/keys).
Create a `.env` file in the project root:
Usage
uv run main.py "your prompt here"
Add `--verbose` to see each function call, its arguments, results, and token usage:
uv run main.py "list the contents of the pkg directory" --verbose
Example
uv run main.py "Fix the bug: 3 + 7 * 2 shouldn't be 20."
The agent will explore the `calculator/` directory, read the relevant source files, identify the bug, apply a fix, and verify the fix works β all autonomously.
Project structure
ai-coding-agent/
βββ main.py # entry point, CLI args, agent loop
βββ prompts.py
Related Skills
Nadar Code
An autonomous, fully-local AI coding agent (Desktop IDE & CLI) powered by OpenRouter. It reads, writes, and ex
Anvil
Anvil is a single, self-contained AI coding agent for the terminal. The coder is a real agent β it reads, writ
Rudow Python Logger
Rudow β AI that reads your logs and tells you what broke, in plain English. Send logs to Rudow, then ask quest
Study AI Engineering
This repository is a structured knowledge base for studying AI Engineering, focusing on Harness, Loop, and Gra
Bengali Practice Partner
Bengali Practice Partner is an AI agent that helps beginners learn Bengali through simple, interactive convers
Codebase Detective
AI agent skill: investigate first, modify later. Map codebases, trace cross-file root causes, analyse blast ra
Related Agents
Cursor Rescue
Proactively use as an extra agentic lane on Cursor's own quota β bounded coding tasks (a spec file, a rename,
Hephaestus
Autonomous deep implementation worker. Full tool access for complex coding tasks. Explores codebase patterns,
Synapse Planner
Planning step in the Manager subagent pipeline (see synapse-manager.md) β dispatched by Manager, not for stand