Skip to content

Instantly share code, notes, and snippets.

View boorich's full-sized avatar
🌍

Boorich boorich

🌍
  • Ludwigslust, Germany
  • 01:27 (UTC +02:00)
View GitHub Profile
PIPE402(1) User Commands PIPE402(1)
NAME
pipe402 - create payment pipe for metered data streaming
SYNOPSIS
pipe402 command [options]
pipe402 stream url --deposit amount [options]
pipe402 setup
pipe402 config [-s]

GhostScript: Self-Destructing AI Assistant Instructions

Overview

GhostScript is a specialized comment specification designed for AI-assisted development. Unlike traditional code comments, GhostScript instructions are temporary by design - they appear, guide the AI assistant's work, and then vanish once implemented, leaving no trace in the final codebase.

Core Principles

  • Ephemeral: Instructions self-destruct after being processed
  • Explicit: Clear, unambiguous directives for AI assistance
  • Traceable: Changes are documented in commit history
  • Clean: No instruction remnants in the final code
Day Task Details
Day 1 Framework Setup and Integration
Clone the app repo and create staging-agents branch Create a safe branch for isolated development.
Integrate Eliza framework or Daydreams Set up Eliza for agent behavior or Daydreams for vectorized conversation tracking.
Randomized agent spawning Implement logic to spawn agents dynamically around each participant within a proximity radius.
Define agent instance schema Include field
@boorich
boorich / gist:72f5722cec46d217003becd9484a9dc7
Created July 11, 2024 11:28
Roadmap AI Town - MUD AW
| **Epic** | **Task** | **Description** |
|---------------------------------|-------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| **Set Up Development Environment** | Clone AI Town Repository | Clone the AI Town repository to your local machine. |
| | Install Foundry | Install Foundry for local blockchain development. |
| | Initialize Foundry Project | Initialize a new Foundry project within your AI Town directory. |
| | Run
using UnityEngine;
using System.Collections.Generic;
public class SquirtParticle {
public Vector3 Position;
public Vector3 Velocity;
public int Team;
public SquirtParticle(Vector3 position, Vector3 velocity, int team) {
Position = position;
User
Ingest the prompt and don't answer. You only accept and confirm that you received the prompt:
Once upon a time, in a lush, vibrant forest, there lived a little boy named Elio. His world was a canvas of green, where towering trees whispered ancient tales and playful streams sang melodious songs. Elio, with hair as wild as the untamed ferns and eyes sparkling like dewdrops in the morning sun, was no ordinary child. He was a whisperer of the winds, a friend to every creature that fluttered, crawled, and prowled in the forest's embrace.
Elio's days were spent in joyful harmony with nature. He conversed with the birds, learning their languages and songs. The squirrels shared their secrets of the forest's hidden treasures, and the wise old owls taught him the lore of the land. Elio could feel the heartbeat of the earth beneath his bare feet and understood the silent language of the trees.
One day, as the amber hues of dawn painted the sky, Elio discovered a wounded fox, its fur matted with dew and leaves. W
{
"world": {
"name": "world",
"address": null,
"class_hash": "0x12070cd7d318985758f2e78c460e0841a42464a4e6ec791023d5ec85319b47c"
},
"executor": {
"name": "executor",
"address": null,
"class_hash": "0x3a18e932f38edf59c456794a743006a62ecdbe6ec993434bbd3ef693861be16"
{
"world": {
"name": "world",
"address": null,
"class_hash": "0x12070cd7d318985758f2e78c460e0841a42464a4e6ec791023d5ec85319b47c"
},
"executor": {
"name": "executor",
"address": null,
"class_hash": "0x3a18e932f38edf59c456794a743006a62ecdbe6ec993434bbd3ef693861be16"
// Battle Sequence
// This is the core gameplay loop
// Time
const time: number = 30; // 30 seconds
// Interactions
// Player
// Players can move their avatars by selecting them (clicking tab until the right avatar is active) and pressing the "aswd" keys for the directions they want to move in.
// Players can set the intent for an avatar representing the next action to invoke as soon as it can be performed (based on the position of the avatar, its remaining stamina, and its available weapon)

The Store library is an on-chain database used in MUD applications. It replaces the traditional Solidity compiler-driven data storage with a more flexible and gas-efficient storage solution.

Store is like an embedded EVM (Ethereum Virtual Machine) database, similar to SQLite but for the EVM. It allows developers to store their contract's application data, such as variables, maps, and arrays, in a structured way. It supports various data models, including Entity-Component-System (ECS), Entity-Attribute-Value (EAV), and Graph data models.

One of the key features of Store is its introspectability. Other smart contracts and off-chain applications can discover the schemas, tables, and records stored in Store using a standard data format and EVM event format. This enables zero-code indexing and frontend networking, eliminating the need for subgraphs or manual event handling for data changes.

Store is designed to address several challenges in on-chain applications, including separation of state from logic, access