Skip to content

Instantly share code, notes, and snippets.

View j-greig's full-sized avatar

James Greig j-greig

View GitHub Profile
@renschni
renschni / Manus_report.md
Last active April 22, 2025 02:49
In-depth technical investigation into the Manus AI agent, focusing on its architecture, tool orchestration, and autonomous capabilities.

I wrote an in-depth research prompt to conduct a GPT-Deep-Research on the Manus topic, seeking to replicate it with currently available open source tools. This is the result:

TLDR: Manus AI Agent Report

Manus is an autonomous AI agent built as a wrapper around foundation models (primarily Claude 3.5/3.7 and Alibaba's Qwen). It operates in a cloud-based virtual computing environment with full access to tools like web browsers, shell commands, and code execution. The system's key innovation is using executable Python code as its action mechanism ("CodeAct" approach), allowing it to perform complex operations autonomously. The architecture consists of an iterative agent loop (analyze → plan → execute → observe), with specialized modules for planning, knowledge retrieval, and memory management. Manus uses file-based memory to track progress and store information across operations. The system can be replicated using open-source components including CodeActAgent (a fine-tuned Mistral model), Docker for sandbox

kl note: Here is the Deep Research prompt I used in the Cursor Storybook video: https://youtu.be/gXmakVsIbF0
For background, this is a real-world tech feasibility task I am working on where I am trying to build out a realistic-looking fake website for an AI browsing agent to use to complete tasks. I found this random site that was close enough to what I wanted so I used it as a shortcut instead of taking the time to write out a full PRD or anything.
...above this was just the transcript and the initial guidance...
Act as a technical fellow and create a detailed, step-by-step guide to recreating this software using a modern stack. Here is the cursorrules for this repository:
# .cursorrules
Components & Naming
@adityaruplaha
adityaruplaha / LoginCommand.php
Last active August 22, 2023 11:57
Telegram Login Widget not working on certain browsers. - Investgation and workarounds.
<?php
/**
* This file is part of the TelegramBot package.
*
* (c) Avtandil Kikabidze aka LONGMAN <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
@chapmanjacobd
chapmanjacobd / alpine_url_params.md
Last active June 16, 2020 05:58
Alpine.js + Spruce URL Query Params

Very lightweight way to get query params on your Alpine.js page. Good for storing data in the URL

store.ts

import Spruce from '@ryangjchandler/spruce'

Spruce.store('settings', {})

export default Spruce
@terryupton
terryupton / modal.twig
Last active March 31, 2025 09:55
Ajax Loading a page into a modal with Alpine JS
<section x-data="{showModal: false, showLoading: false, html: ''}">
<button
@click="html='loading...'; showLoading = true; showModal = !showModal;
fetch('{{ entry.url }}', {
method: 'GET',
headers: {
'X-Requested-With': 'XMLHttpRequest',
},
})
@huylift
huylift / tachyons-to-tailwind-transform.js
Last active March 14, 2023 04:24 — forked from knoopx/tachyons-to-tailwind-transform.js
Transform tachyons classes to tailwind css (using babel-codemod)
// Installation:
// yarn add -D @codemod/cli @babel/plugin-syntax-jsx @babel/generator
import jsx from '@babel/plugin-syntax-jsx';
import generate from '@babel/generator';
const COLOR_MAP = {
'white': 'white',
'near-white': 'gray-100',
'light-gray': 'gray-200',
@piotrpog
piotrpog / emailLinks.twig
Created April 25, 2019 23:04
Twig macro converting email addresses in text into links secured from spambots. More info: http://craftsnippets.com/articles/converting-email-addresses-into-links-using-twig-macro
@philipboomy
philipboomy / gist:b4f22c26cca62f0779714ac97ebe7cb2
Last active October 25, 2019 17:17
Laravel Mix 4 with Tailwind and Purge
const mix = require('laravel-mix');
const tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
mix.setPublicPath('./web')
.postCss('src/css/main.css', 'css')
.options({
postCss: [tailwindcss('tailwind.config.js'), require('autoprefixer')],
processCssUrls: false,
})
.calendar {
tbody td {
border: 1px solid #dedede;
}
&__day {
&--available {
}
@simonswiss
simonswiss / index.md
Created October 18, 2018 08:02
A Real-Life Journey into the Opinionated World of "Utility-First" CSS - Links & Resoures