Skip to content

Commit

Permalink
feat(coder): Add Coder agent, README, and file creation tool
Browse files Browse the repository at this point in the history
This commit introduces a new AI agent called "Coder" that assists with coding tasks. It
includes a README file outlining the Coder agent's features, examples, and similar
projects. Additionally, a new tool `fs_create.sh` is provided for creating files.

The motivation behind this is to provide an AI assistant capable of handling various
coding-related operations, such as project structure creation, screenshot-to-code
conversion, file system operations, code analysis, and diff-based file editing. The
`fs_create.sh` tool is the first step for file system operations.
  • Loading branch information
asyrjasalo committed Feb 26, 2025
1 parent 219b6bd commit 788a51c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions agents/coder/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Coder

An AI agent that assists your coding tasks.

## Features

- 🏗️ Intelligent project structure creation and management
- 🖼️ Convert screenshots into clean, functional code
- 📁 Comprehensive file system operations (create folders, files, read/write files)
- 🧐 Advanced code analysis and improvement suggestions
- 📊 Precise diff-based file editing for controlled code modifications

## Examples

![image](https://github.com/user-attachments/assets/97324fa9-f5ea-44cd-8aea-024d1442ca81)

https://github.com/user-attachments/assets/9363990f-15a9-48c6-b227-8900cfbe0a18

## Similar Projects

- https://github.com/Doriandarko/claude-engineer
- https://github.com/paul-gauthier/aider
19 changes: 19 additions & 0 deletions agents/coder/tools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e

# @env LLM_OUTPUT=/dev/stdout The output path

ROOT_DIR="${LLM_ROOT_DIR:-$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)}"

# @cmd Create a new file at the specified path with contents.
# @option --path! The path where the file should be created
# @option --contents! The contents of the file
fs_create() {
"$ROOT_DIR/utils/guard_path.sh" "$argc_path" "Create '$argc_path'?"
mkdir -p "$(dirname "$argc_path")"
printf "%s" "$argc_contents" > "$argc_path"
echo "File created: $argc_path" >> "$LLM_OUTPUT"
}

# See more details at https://github.com/sigoden/argc
eval "$(argc --argc-eval "$0" "$@")"
4 changes: 4 additions & 0 deletions agents/coder/tools.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fs_mkdir.sh
fs_ls.sh
fs_patch.sh
fs_cat.sh

0 comments on commit 788a51c

Please sign in to comment.