Skip to content
Agentmart
Submit a tool

self-inject

Run one test-gated self-improvement round on the Remedy codebase: draft a change, snapshot the diff, gate it with tests only, apply (restart sidecar / rebuild…

Skill by AhmiDarrow

IndexedApache-2.0★ 5
Write a review

Chalk Labs

Need help deploying self-inject?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/ahmidarrow-self-inject

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Run one test-gated self-improvement round on the Remedy codebase: draft a change, snapshot the diff, gate it with tests only, apply (restart sidecar / rebuild SPA) on green or roll back on red, record in the ledger, and continue. Use when self-improve, hot-inject, self-dev, fix our own code, "improve yourself", or run the auto-improvement loop.

Use cases: testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/self-inject

What's inside

Skill name
self-inject
Description
Run one test-gated self-improvement round on the Remedy codebase: draft a change, snapshot the diff, gate it with tests only, apply (restart sidecar / rebuild SPA) on green or roll back on red, record in the ledger, and continue. Use when self-improve, hot-inject, self-dev, fix our own code, "improve yourself", or run the auto-improvement loop.
License
Apache-2.0
Instructions
86 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Self-inject (Remedy improves Remedy)

## Goal

Close the loop on Remedy improving **this** repo. One round = draft a change,
**audit it with tests only**, apply it to the running product on green or roll it
back on red, record the result, and keep going. Never commit red; never leave the
tree or the running product broken.

## When to use

- User says self-improve, hot-inject, improve the codebase, fix our own code, self-dev.
- Triggered on command, or automatically by the sidecar scheduler (starts at
  boot when enabled). Organism learning ticks every ~60s with no user prompt;
  ruff self-heal waits for ~5 minutes of *user-turn* idle on a clean tree.

## Round steps (in order)

### 1. Orient + blast radius

```powershell
git status -sb
git log -5 --oneline
```

- Name which tree(s) the change touches: **Python sidecar** (`src/remedy/`) and/or
  **desktop SPA** (`desktop/src/`).
- Do a `change-safety` blast-radius pass before drafting. Bound the diff.

### 2. Draft

- Use normal `file_edit` / `file_write` tools. Keep the change minimal and focused.
- Do not touch generated/lock files unless the change requires it.

### 3. Snapshot (rollback point)

- Capture `git diff` before gating so a red round can be reverted exactly.

### 4. Gate — tests only

Run the verification for the changed tree(s):

| Tree | Gate |
|------|------|
| Python | `uv run pytest -q` (ruff/mypy as warnings, not hard fails) |
| Desktop | `cd desktop && npm test` |

Use the `self_inject.gate()` helper (driven by `project_fingerprint.suggest_verify`)
where available instead of typing commands by hand.

### 5. Apply or roll back

- **GREEN** → apply:
  - Python change → restart the sidecar so live source takes effect.
  - Desktop change → rebuild the SPA (`cd desktop && npm run build`) + re-resolve
    WebUI dir + hard-refresh, if the change must reach the WebUI.
- **RED** → roll back (`git checkout -- <paths>`), record the failure, **stop the round**.
  Do not retry-loop or silently keep a failing diff.

### 6. Record

- Append the outcome to the ledger: `~/.remedy/self_inject_ledger.jsonl`
  (diff-id / gate commands + exit codes / outcome / commit or revert ref).

### 7. Continue

- If the user asked for the loop, draft the next improvement and repeat.
- Otherwise return to idle (next round waits for the idle trigger or another command).

## Safety

| Do | Don't |
|----|--------|
| Test-gate every round | Commit a red diff |
| Snapshot before editing | Leave a broken working tree |
| Respect `instance_lock` / single serve | Restart mid-messenger-poll |
| Stop on first red | Silent retry loops / thrash |

## Related skills

- **self-dev-loop** — full orchestration (inject → gauntlet → soak → stress → ship)
- **change-safety** — blast radius before multi-file work
- **project-etiquette** — ship gates
- **gauntlet-security** · **soak-product** · **stress-suite**

From AhmiDarrow/RemedyAI, Apache-2.0.

More from AhmiDarrow/RemedyAI

Signals

Stars
5
Forks
1
Open issues
0
Last commit (this folder)
Aug 13, 2026 (2 months ago)
Last release
Oct 19, 2026 (19 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from AhmiDarrow

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get self-inject running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying self-inject?

CallGet help
Cite this page

self-inject skill. Agent Mart. https://agentmart.dev/skills/ahmidarrow-self-inject (last updated 2026-10-24)