Skip to content

Instantly share code, notes, and snippets.

View tfantas's full-sized avatar
:octocat:

Thiago tfantas

:octocat:
View GitHub Profile
@tfantas
tfantas / memory.md
Created October 24, 2025 17:14 — forked from ruvnet/memory.md
Claude Memory Template

Claude Memory Template

Copy-Paste Instructions for Optimal AI Interaction

1. Core Identity and Objective

I am [Your Name/Role], focused on:

@tfantas
tfantas / X-appendix.md
Created October 7, 2025 06:23 — forked from ruvnet/X-appendix.md
ChatGPT App SDK & MCP Developer Mode MCP - Complete Tutorial

Appendix: Technical Details for ChatGPT App UI

A. Rendering model

  • Components render inside a sandboxed iframe managed by ChatGPT.
  • Your MCP tool returns data plus UI metadata that the Apps SDK interprets to mount your component.
  • The host injects a window.openai bridge into the iframe for props and events. ([OpenAI][1])

B. Component contract

@tfantas
tfantas / Flow.md
Created October 5, 2025 13:39 — forked from ruvnet/Flow.md
Claude Flow Playbook for Advanced Coordination, Context Engineering, and Artifact-Centric Swarms

Claude Flow treats memory as the backbone and MCP tools as the hands. You get concurrent agents that coordinate cleanly, keep context tight, and ship durable artifacts without dragging long text through prompts. It feels like an ops layer for intelligence.

The stack is simple. Claude Code as the client. Claude Flow as the MCP server. SQLite memory at .swarm/memory.db for state, events, patterns, workflow checkpoints, and consensus. Artifacts hold the big payloads. Manifests in memory link everything with ids, tags, and checksums.

Coordination is explicit. Agents write hints to a shared blackboard, gate risky steps behind consensus, and record every transition as an event. Hooks inject minimal context before tools run and persist verified outcomes after. Small bundles in, durable facts out.

Planning keeps runs stable. Use GOAP to sequence actions with clear preconditions. Use OODA to shorten loops.

Observe metrics, orient with patterns, decide through votes, act with orchestration. Topology adapts from hi

@tfantas
tfantas / notebook.ipynb
Created September 20, 2025 16:58 — forked from ruvnet/notebook.ipynb
5cdbbd43ab3a0c728fdd3e7a2a8aedd9
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tfantas
tfantas / gh-labels-creator.sh
Created September 4, 2025 17:24 — forked from d-oit/gh-labels-creator.sh
Create Github Labels with GitHub CLI (gh)
#!/bin/bash
# Check if GitHub CLI and jq are installed
if ! command -v gh &> /dev/null || ! command -v jq &> /dev/null; then
echo "Error: GitHub CLI (gh) and jq are required."
echo "Install gh: https://cli.github.com/"
echo "Install jq: https://stedolan.github.io/jq/"
exit 1
fi
{
"basics": {
"name": "Michael Kipchumba",
"label": "Front End Developer",
"email": "[email protected]",
"phone": "(070) 3206 2900",
"website": "https://mikechumba.com",
"summary": "I am a passionate front-end developer with a strong focus on creating user-friendly and accessible web applications. I have experience in designing and developing responsive websites using modern technologies like React, Next.js, and Angular. I am committed to delivering high-quality code and continuously improving my skills.",
"location": {
"address": "Ōita",
@tfantas
tfantas / brew-dnsmasq.md
Created July 24, 2025 07:43 — forked from davebarnwell/brew-dnsmasq.md
install dnsmasq with brew

Install dnsmasq and configure for *.dev.local domains

$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf

Reload configuration and clear cache

# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/

$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

@tfantas
tfantas / CloudFlare-API.md
Created July 3, 2025 12:57 — forked from marcostolosa/CloudFlare-API.md
Cloudflare API - Using Cloudflare’s API, you can do just about anything you can do on cloudflare.com via the customer dashboard.

Cloudflare's API Cheat-Sheet

VARIABLE VALUE
EMAIL The email address associated with your Cloudflare account.
KEY The global API key associated with your Cloudflare account.
DOMAIN The name of the domain to create a zone record for.
JUMP_START If true, automatically attempts to fetch existing DNS records when creating a domain’s zone record
ZONE_ID The unique ID of the domain’s zone record. Assigned by Cloudflare. Required when managing an existing zone record and its DNS records.
@tfantas
tfantas / publish-ghpages.md
Created June 6, 2025 08:54 — forked from tduarte/publish-ghpages.md
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref