observation

observation is a skill for Claude Code, Codex from XiaoLuoLYG/GOD. It costs 12 tokens per session (932 once invoked), scanned A, original, Apache-2.0.

A skill for getting the latest sensory description and structured surroundings from a simulated world. A tick is one step or moment in that simulation.

In plain words
What is it for?
Use it to inspect the current scene, including nearby agents, objects, time, and weather, and save that information for other skills.
Why use it?
It gives an agent fresh information about what is currently nearby instead of relying on an older observation.

Skill for Claude CodeCodex

About the project

GOD is a control room for observing and directing societies of language-model agents running in simulated worlds. It lets researchers inspect replays, question individual agents, alter future events, reset simulations, and export experiments for reuse. The catalogue entries are skills and agents for operating and investigating these simulations.

XiaoLuoLYG/GOD · 1,098 stars · on GitHub

Install

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.

agentmods
npx agentmods add skills/xiaoluolyg/god/observation
Any agent
npx skills add XiaoLuoLYG/GOD --skill observation
Clone the repo
git clone --depth 1 https://github.com/XiaoLuoLYG/GOD

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for observation

README.md
[![agentmods](https://agentmods.dev/badge/skills/xiaoluolyg/god/observation.svg)](https://agentmods.dev/skills/xiaoluolyg/god/observation)
Your own site
<a href="https://agentmods.dev/skills/xiaoluolyg/god/observation"><img src="https://agentmods.dev/badge/skills/xiaoluolyg/god/observation.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00932
Opus 5 $0.00006 $0.00466
Sonnet 5 $0.00002 $0.00186
Haiku 4.5 $0.00001 $0.00093

Measured 5d ago against content hash 7f3e9284b387, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

observation scanned grade A with 0 findings 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 5d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agentsociety/packages/agentsociety2/agentsociety2/agent/skills/observation/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Observation

You are a situated agent in a simulated world. This skill fetches the latest sensory observation for the current tick—what you can see, hear, and perceive around you.

When to Use

Activate this skill when you need fresh perception for the current tick. Other skills may read state/observation.txt / state/observation_ctx.json if those files exist—there is no hard activation order.

Workflow

  1. Call codegen with instruction: "<observe>" and ctx: {"id": <your_agent_id>} (replace <your_agent_id> with your actual agent ID from the Agent Identity section).
  2. Parse the response:
    • stdout contains the observation text (natural language description of what you perceive).
    • ctx contains structured environment data (positions, nearby agents, objects, time, weather, etc.).
  3. If the response contains status: "in_progress": the environment is still processing. Call done and resume next tick.
  4. Write the observation to workspace for downstream skills:
workspace_write("state/observation.txt", <stdout text>)
  1. If ctx contains useful structured data, also write it:
workspace_write("state/observation_ctx.json", <ctx as JSON string>)

Persisting perception

After a successful observe, if you want a durable trace, append one line to memory.jsonl with type: "observation" (or event) and a short factual summary. Skip if this tick’s perception duplicates the latest entry.

What Observation Contains

The observation text typically includes:

Location Information

  • Where you are (building, street, park, etc.)
  • Your current coordinates or position
  • Available exits or directions

Nearby Entities

  • Other agents in the vicinity
  • Objects and items you can interact with
  • Points of interest (shops, landmarks, etc.)

Environmental Context

  • Current time of day
  • Weather conditions
  • Any ongoing events or activities

Available Actions

  • What actions are possible in the current location
  • What interactions are available with nearby entities

Read the full file on GitHub · 103 lines

Changes

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.

  1. 5d ago First seen · 103 lines · 12 tokens per session scan A 7f3e9284b387

Subscribe to this mod's changes

observation is a skill published in the GitHub repository XiaoLuoLYG/GOD (1,098 stars, last pushed 8d ago), licensed Apache-2.0. It adds 12 tokens to every session and 932 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

game-design-theory

Comprehensive game design theory covering MDA framework, player psychology, balance principles, and progression systems. Master why games are fun.

nicepkg/agent-world · 31 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

openloomi-pet

OpenLoomi Pet sprite & state helper for Claude Code. Use when the user wants to change their Loomi Pet state, switch theme, drop in a custom character, override individual sprites, or ask Claude to mirror its lifecycle onto the pet. Triggers: pet state, /openloomi:pet, set pet, loomi pet, pet to happy, pet to working…

melandlabs/openloomi · 110 tokens

threejs-geometry

Three.js geometry creation - built-in shapes, BufferGeometry, custom geometry, instancing. Use when creating 3D shapes, working with vertices, building custom meshes, or optimizing with instanced rendering.

calesthio/OpenMontage · 46 tokens

threejs-animation

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

calesthio/OpenMontage · 40 tokens

threejs-fundamentals

Three.js scene setup, cameras, renderer, Object3D hierarchy, coordinate systems. Use when setting up 3D scenes, creating cameras, configuring renderers, managing object hierarchies, or working with transforms.

calesthio/OpenMontage · 51 tokens