← Back to Skills Marketplace
minerva-care

Amp Code

by minerva-care · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
275
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install amp-code
Description
Delegate coding tasks to Sourcegraph Amp, an autonomous coding agent. Use when: multi-file changes, new features, bug fixes, test writing, or any coding task...
README (SKILL.md)

amp-code — Delegate Coding Tasks to Sourcegraph Amp

Use this skill to hand off coding work to Amp, an autonomous coding agent. Amp can read, write, refactor, and test code across an entire codebase without supervision.


When to delegate to Amp

Delegate when the task involves:

  • Multi-file changes — refactoring, moving modules, updating APIs
  • New features — implementing something that requires creating/editing several files
  • Bug fixes — especially when the root cause requires investigation and code changes
  • Test writing — generating test suites, adding coverage
  • Anything > ~5 min of coding — if you'd need multiple edit calls, let Amp do it

Do NOT delegate:

  • Simple single-line edits (just use edit)
  • Purely diagnostic/read-only questions (just use exec/read)
  • Tasks where you need fine-grained control over each file change

Modes

Mode Description Use when
rush Fast, lightweight model Small/clear tasks, quick fixes
smart Balanced model (default) Most tasks
deep Powerful model, slower, higher cost Complex architecture, hard bugs

How to run a task

Simple one-shot (recommended)

cd /path/to/project && \
  amp \
    --dangerously-allow-all \
    --no-notifications \
    --no-ide \
    -m smart \
    -x "Your task description here"

The -x flag (execute mode) makes amp non-interactive: it runs the task and exits, printing only the agent's final message to stdout.

Using the wrapper script

bash {baseDir}/scripts/amp-task.sh \
  --task "Add pagination to the /invoices endpoint" \
  --dir /path/to/your/project \
  --mode smart

The script handles: cd to project dir, thread creation (for auditability), execute mode, and clean output. It prints the thread ID and final agent response.


Key flags

Flag Effect
--dangerously-allow-all No confirmation prompts — agent acts autonomously
--no-notifications Suppress sound/system notifications
--no-ide Don't connect to IDE (safe for headless runs)
-x "message" Execute mode: non-interactive, prints final output
-m rush/smart/deep Select agent mode (model + system prompt)
-l "label" Tag the thread with a label (repeatable)

Working directory matters

Amp reads the codebase from the current directory. Always cd to the project root first, or pass --dir to the wrapper script. Without the right cwd, Amp won't see the right files.


Checking results

After a run, the wrapper script outputs:

  1. The thread ID — use this to inspect or continue the conversation
  2. The final agent message — summary of what was done

To see the full thread as markdown (all messages, tool calls, etc.):

amp threads markdown \x3Cthread-id>

To continue a thread (e.g., to follow up or fix something):

cd /path/to/project && \
  echo "Now also add tests for the pagination logic" | \
  amp threads continue \x3Cthread-id> \
    --dangerously-allow-all --no-notifications --no-ide -x

To list recent threads:

amp threads list

Example invocations

One-shot fix

cd /path/to/your/project && \
  amp --dangerously-allow-all --no-notifications --no-ide -x \
  "Fix the TypeError in src/api/invoices.js line 42 — amount is sometimes null"

Feature implementation (via wrapper)

bash {baseDir}/scripts/amp-task.sh \
  --task "Implement CSV export for the invoices list page — add a button in the UI and a /api/invoices/export endpoint" \
  --dir /path/to/your/project \
  --mode smart

Deep refactor

bash {baseDir}/scripts/amp-task.sh \
  --task "Migrate all database calls from raw SQL to Knex query builder. Maintain existing behaviour, add comments." \
  --dir /path/to/your/project \
  --mode deep

Quick test generation

bash {baseDir}/scripts/amp-task.sh \
  --task "Write Jest unit tests for all functions in src/utils/formatting.js" \
  --dir /path/to/your/project \
  --mode rush

Notes

  • Amp commits are tagged with Amp-Thread: trailer in git. Use this to find amp-authored commits.
  • The --dangerously-allow-all flag bypasses all tool permission checks. Only use on trusted projects.
  • Amp may make mistakes. Review the diff after large changes: git diff HEAD~1
  • For very long tasks, amp may time out. Break into smaller sub-tasks if needed.
  • Thread IDs are UUIDs. Save them if you want to audit or continue work later.
Usage Guidance
This skill genuinely wraps the Sourcegraph 'amp' CLI and looks coherent, but exercise caution: 1) The recommended --dangerously-allow-all flag disables confirmation prompts — only use it on projects you trust and after backing up or ensuring your repo is in a safe state. 2) Review amp-made diffs/commits before pushing (look for 'Amp-Thread:' trailers). 3) Ensure the 'amp' binary you run is from a trusted source and up-to-date. 4) Be aware Amp runs with your user privileges and can access local files, git credentials, SSH keys, and networked remotes; run in an isolated environment if you need to limit that access. 5) If you want more control, omit --dangerously-allow-all so prompts require confirmation, and inspect thread output via 'amp threads markdown <id>' before continuing.
Capability Analysis
Type: OpenClaw Skill Name: amp-code Version: 1.0.0 The skill bundle acts as a wrapper for the Sourcegraph 'amp' autonomous coding agent, but it explicitly utilizes the '--dangerously-allow-all' flag in both SKILL.md and scripts/amp-task.sh. This flag bypasses all manual confirmation prompts, granting the autonomous agent unrestricted permission to execute shell commands and modify the filesystem. While this capability is aligned with the stated purpose of autonomous coding, the lack of sandboxing or human-in-the-loop verification for high-risk operations makes it a significant security risk.
Capability Assessment
Purpose & Capability
The skill's name/description match what it requires and does: it requires the 'amp' CLI and provides instructions and a wrapper script to run Amp against a codebase. Nothing requested (no unrelated env vars or binaries) is out of scope.
Instruction Scope
The SKILL.md and wrapper script instruct the agent to run Amp in execute mode against the current project directory and explicitly recommend --dangerously-allow-all (no confirmations). This is coherent with delegating multi-file code edits, but it means Amp can run arbitrary actions (edit files, commit, run tests, possibly push) autonomously — so the agent will have broad ability to modify your repo and possibly interact with remotes or tooling available to your user account.
Install Mechanism
Instruction-only skill with no install spec; the wrapper script expects an existing 'amp' binary (or AMP_BIN override). No downloads or archive extraction are present.
Credentials
The skill declares no required environment variables or credentials (only an optional AMP_BIN override). That's proportionate, but be aware Amp runs with the invoking user's environment and filesystem access — any git credentials, SSH agent, config files, or other secrets present in the project or environment could be used by the agent.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request persistent platform privileges or modify other skills. Normal autonomous invocation is permitted by default.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install amp-code
  3. After installation, invoke the skill by name or use /amp-code
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Delegate coding tasks to Sourcegraph Amp — autonomous, non-interactive, headless-safe.
Metadata
Slug amp-code
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Amp Code?

Delegate coding tasks to Sourcegraph Amp, an autonomous coding agent. Use when: multi-file changes, new features, bug fixes, test writing, or any coding task... It is an AI Agent Skill for Claude Code / OpenClaw, with 275 downloads so far.

How do I install Amp Code?

Run "/install amp-code" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Amp Code free?

Yes, Amp Code is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Amp Code support?

Amp Code is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Amp Code?

It is built and maintained by minerva-care (@minerva-care); the current version is v1.0.0.

💬 Comments