Skip to content

Instantly share code, notes, and snippets.

@schwannden
schwannden / claude-managed-aagent-quick-start.md
Created April 9, 2026 07:34
Claude managed Agent QuickStart guide because the official QuickStart has several mistakes.

Claude Managed Agents — Quickstart

Create your first autonomous agent using the Anthropic CLI and curl.

Core Concepts

Concept Description
Agent The model, system prompt, tools, MCP servers, and skills
Environment A configured container template (packages, network access)
require(MTS)
# random walk
walk <- function(m){
steps <- rbinom(m, 1, 0.5)*2 - 1
res <- c(0)
for (i in 1:length(steps)) {
res <- c(res, res[length(res)] + steps[i])
}
res
}
@schwannden
schwannden / bivariateGaussian.R
Created January 19, 2017 14:32
The following code demonstrate how to draw a 3D surface plot given a bivariate Gaussian distribution
install.packages('plotly')
library(plotly)
# check if a matrix is invertable
invertable <- function(m) class(try(solve(m),silent=T)) == "matrix"
# generate the pdf function of multivariate gaussian
dmg.generator <- function(lambda = c(1, 1), b = c(0, 0), A = diag(2)) {
n <- length(lambda)
# check for dimensions
@schwannden
schwannden / grading_pollicy.md
Last active April 19, 2016 03:45
正規語言,評分標準

Grading policy

Answer is correct

  1. Small technical error: -2 (each) * ex: state diagram mistakes * ex: off by one error * ex: notational error
  2. Logical error: -5 (each) * ex: Circling prove * ex: You prove "for some" when you need to prove "for all", or vise versa
  • ex: Missing an important logical step, an assumption, or a condition