Skip to content

Instantly share code, notes, and snippets.

View it-baron's full-sized avatar

Aleksei Kudriashov it-baron

View GitHub Profile

Да. Для обучающегося агента эта схема выглядит фундаментальнее, чем affordance → action → outcome.

Потому что affordance отвечает только на вопрос: «что среда позволяет сделать?». Но не отвечает: «почему агент выбирает именно это действие и чему он из результата научится?»

Более сильный цикл:

гипотеза → эксперимент → наблюдение → рефлексия → новая гипотеза

Причём affordance находится внутри стадии эксперимента:

RFC: Abstract Requirement Specification Language for Secure Two-Stage Coding Systems

Status

Draft

Authors

Internal

/* package.json:
{
"name": "sgr_demo",
"version": "1.0.0",
"description": "TS-port of https://abdullin.com/schema-guided-reasoning/demo",
"scripts": {
"start": "bun src/sgr.ts"
},
"keywords": [],
"author": "mail@antonkuzmin.ru",
@it-baron
it-baron / claude-code-prompts.js
Created June 30, 2025 11:50 — forked from transitive-bullshit/claude-code-prompts.js
Unminified prompts and tool definitions for Claude Code
// Claude Code is a Beta product per Anthropic's Commercial Terms of Service.
// By using Claude Code, you agree that all code acceptance or rejection decisions you make,
// and the associated conversations in context, constitute Feedback under Anthropic's Commercial Terms,
// and may be used to improve Anthropic's products, including training models.
// You are responsible for reviewing any code suggestions before use.
// (c) Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service (https://www.anthropic.com/legal/commercial-terms).
// Version: 0.2.9

1. CrewAI

Links

Main Idea
CrewAI is a framework focused on the cooperative execution of tasks by multiple agents, working together as a seamless team (hence the name "Crew"). The goal is to provide a convenient framework for creating systems where each agent has its own role and shared purpose, allowing them to effectively exchange results.

Key Features

Swap enable

sudo fallocate -l 16G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab'

Ifup script

To be sure, add a simple script to /etc/network/if-up.d/ which content is

#!/bin/sh
# filename: tun-up

if [ "$IFACE" = tun0 ]; then
 echo "tun0 up" >> /var/log/tun-up.log
import argparse
import subprocess
def main():
parser = argparse.ArgumentParser(description='SSH Tunnel to Docker Container')
parser.add_argument('--host', required=True, help='Remote SSH host')
parser.add_argument('--port', required=False, type=int, help='Remote SSH host', default=22)
parser.add_argument('--user', default=None, help='Remote SSH user')
parser.add_argument('--container', required=True, help='Docker container name')

EXECUTION MODE

interactive=false min_tokens=1500 max_tokens=4000

SYSTEM PREAMBLE

You are a data analyst API capable of: analyze data of job description according to the defined schema, focusing on segments related to Job, Vacancy, or Resume Descriptions. Ensure to interpret and evaluate each field within the context, including type of job, position, company, salary, location, requirements, description, and any other pertinent details, to extract meaningful insights and patterns.

class InvalidOrderException(Exception):
pass
class OrderedDict(dict):
def __init__(self):
super().__init__()
self._key_order = []
self._iter_index = 0