Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/ambient-code/platform/trex.kind.removegit clone --depth 1 https://github.com/ambient-code/platformWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.00652 |
| Opus 5 | $0.00000 | $0.00326 |
| Sonnet 5 | $0.00000 | $0.00130 |
| Haiku 4.5 | $0.00000 | $0.00065 |
Grade C, and why
trex.kind.remove scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf plugins/{kindLowerPlural}/ Copies of this mod
1 near-identical copy found in the catalogue:
- trex.kind.remove — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Remove a Kind
Completely remove a generated Kind and all its artifacts from the project.
Instructions
Ask the user for the Kind name (PascalCase, e.g., "Widget").
Derive the naming variants (see /trex.kind.new for the full table):
Kind= PascalCase (e.g.,Widget)kindLowerPlural= camelCase plural (e.g.,widgets)kind_snake_case= snake_case (e.g.,widget)
Use the TodoWrite tool to track progress.
Step 1: Verify the Kind Exists
Check that the Kind's files exist before removing:
ls plugins/{kindLowerPlural}/plugin.go
ls pkg/api/{kind}.go
ls pkg/services/{kind}.go
If files don't exist, inform the user and stop.
Step 2: Remove Generated Files (11 files)
Delete all files created by the generator:
rm -rf plugins/{kindLowerPlural}/
rm -f pkg/api/{kind}.go
rm -f pkg/api/presenters/{kind}.go
rm -f pkg/handlers/{kind}.go
rm -f pkg/services/{kind}.go
rm -f pkg/dao/{kind}.go
rm -f pkg/dao/mocks/{kind}.go
rm -f pkg/db/migrations/*_add_{kindLowerPlural}.go
rm -f openapi/openapi.{kindLowerPlural}.yaml
rm -f test/integration/{kindLowerPlural}_test.go
rm -f test/factories/{kindLowerPlural}.go
Step 3: Remove Generated OpenAPI Client Files
rm -f pkg/api/openapi/model_{kind_snake_case}*.go
rm -f pkg/api/openapi/docs/{Kind}*.md
Step 4: Unwire from Existing Files
4.1 cmd/ambient-api-server/main.go
Remove the blank import line for the Kind's plugin.
4.2 pkg/db/migrations/migration_structs.go
Remove from MigrationList:
add{Kind}s(),
4.3 openapi/openapi.yaml
Remove the path $ref entries for this Kind (both collection and item paths).
Remove the schema $ref entries ({Kind}, {Kind}List, {Kind}PatchRequest).
Step 5: Regenerate OpenAPI Client
make generate
This ensures the OpenAPI client code no longer references the removed Kind.
Step 6: Verify Clean Removal
make binary
Fix any remaining references. Common issues:
- Other services importing the removed Kind's plugin
- Test files referencing the removed Kind's factory
- Stale references in OpenAPI generated code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 97 lines · 0 tokens per session scan C eabb426c745e
trex.kind.remove is a command published in the GitHub repository ambient-code/platform (129 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 652 tokens. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
MIGRATE_DESIGN
Design doc for the migration tool PR. Author: Sol ([email protected]). Co-authored-by: wakesync.
proposal
Create a structured feature proposal in docs/11-proposals/.
plan
Create a structured task-by-task implementation plan for a feature and write it to docs/superpowers/plans/.
diff-script
Compare an MDL script against the project's current state.
toh-help
Display all Toh Framework commands and quick usage guide.
doctor
Run procedural readiness checks for goal-flight.